/* LIFI Website — PPT / Deck visual system
   Matches NXG Perak LIFI presentation: dark navy, teal accent, slide cards
   Executing entity: NXG Science Corp (Canada) / NXG System Sdn. Bhd. (Malaysia) */

:root {
  --bg: #0b1220;
  --bg-deep: #070b14;
  --card: #141c2e;
  --card-hover: #1a2438;
  --line: #1e2a42;
  --teal: #00d4c8;
  --teal-soft: rgba(0, 212, 200, 0.12);
  --teal-line: rgba(0, 212, 200, 0.35);
  --text: #e8eef7;
  --muted: #8b9bb4;
  --gold: #f0c040;
  --white: #ffffff;
  --max: 1180px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --slide-pad: clamp(2.5rem, 5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.55;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(var(--max), calc(100% - 2.75rem));
  margin-inline: auto;
}
.container.narrow { width: min(760px, calc(100% - 2.75rem)); }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--teal);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { text-decoration: none; display: flex; flex-direction: column; gap: 1px; }
.logo-mark {
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--teal);
  font-size: 1.05rem;
}
.logo-sub {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-links a:hover { color: var(--teal); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal); color: #041018; }
.btn-primary:hover { background: #2ee6d6; }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm {
  padding: 0.4rem 0.95rem;
  font-size: 0.75rem;
  background: var(--teal);
  color: #041018;
  border-radius: 4px;
}
.btn-sm:hover { background: #2ee6d6; color: #041018; }

/* ===== SLIDE SECTIONS ===== */
.slide {
  position: relative;
  padding: var(--slide-pad) 0;
  border-bottom: 1px solid var(--line);
}
.slide::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--teal);
  opacity: 0.35;
}
.slide-alt { background: var(--bg); }
.slide-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.slide-title {
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  color: var(--white);
}
.slide-lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6.5rem 0 4rem;
  background:
    radial-gradient(ellipse 70% 55% at 75% 15%, rgba(0, 212, 200, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 35% at 15% 85%, rgba(30, 60, 120, 0.18), transparent 50%),
    var(--bg-deep);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--teal);
}
.hero-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(3.8rem, 14vw, 7rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.hero-tag {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 1.35rem;
}
.hero-desc {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2.25rem;
}
.hero-desc strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3rem; }

/* ===== LOGO IMAGES ===== */
.logo-img { display: block; max-height: 48px; width: auto; height: auto; }
.footer-logo { max-height: 36px; width: auto; height: auto; }
.closing-line { margin-top: 0; font-size: 1rem; }

/* ===== METRICS ===== */
.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--teal);
}
.metric strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}
.metric span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ===== GRID LAYOUTS ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.45rem 1.35rem;
}
.card:hover { background: var(--card-hover); }
.card-num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.7rem;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.card p, .card li { color: var(--muted); font-size: 0.9rem; }
.card ul { padding-left: 1.1rem; }
.card li { margin-bottom: 0.4rem; }

/* ===== PILLARS ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
.pillar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.25rem 1rem;
  border-top: 3px solid var(--teal);
}
.pillar h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.45rem;
}
.pillar p { font-size: 0.8rem; color: var(--muted); }

/* ===== PILOT LAYOUT ===== */
.pilot-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 1.5rem;
  align-items: stretch;
}
.fact-table {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.fact-row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.fact-row:last-child { border-bottom: none; }
.fact-row .k {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fact-row .v { color: var(--text); }
.pilot-note {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  background: var(--teal-soft);
  border: 1px solid var(--teal-line);
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--text);
}
.map-frame {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.map-frame img { width: 100%; flex: 1; object-fit: cover; }
.map-cap {
  padding: 0.65rem 1rem;
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  letter-spacing: 0.03em;
}

/* ===== STEPS (timeline) ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.35rem 1.15rem;
}
.step-n {
  display: inline-flex;
  width: 1.85rem;
  height: 1.85rem;
  align-items: center;
  justify-content: center;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
  border: 1px solid var(--teal-line);
}
.step h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--white); }
.step p { font-size: 0.85rem; color: var(--muted); }

/* ===== PANEL ===== */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.75rem;
  border-left: 3px solid var(--teal);
}
.panel p { color: var(--muted); margin-bottom: 0.85rem; }
.panel p:last-child { margin-bottom: 0; }
.panel strong { color: var(--text); }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.contact-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.25rem;
}
.contact-item .label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}
.contact-item p { color: var(--text); font-size: 0.92rem; }

/* ===== DISCLAIMER ===== */
.disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--teal);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer .logo-mark { color: var(--teal); font-weight: 800; letter-spacing: 0.14em; }
.footer p { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.02em; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .pillars, .steps { grid-template-columns: 1fr 1fr; }
  .pillars .card:last-child { grid-column: span 2; }
  .pilot-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.85rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .pillars, .steps, .metric-row { grid-template-columns: 1fr; }
  .pillars .card:last-child { grid-column: auto; }
  .fact-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .hero h1 { letter-spacing: 0.08em; }
}

.contact-grid-live {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.92rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .form-note {
  font-size: 0.78rem;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .contact-grid-live { grid-template-columns: 1fr; }
}
