/* =====================================================================
   MiliWatt — 2026 light theme
   Stack: CSS custom properties · @property · color-mix() · :has()
          container queries · scroll-driven animations · view transitions
   ===================================================================== */

/* ---------- Animatable custom properties ---------- */
@property --aurora-rot {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@property --spot-x { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --spot-y { syntax: '<percentage>'; inherits: true; initial-value: 50%; }

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --brand-gold:   #FFB100;
  --brand-purple: #816E94;
  --brand-indigo: #4F46E5;
  --brand-cyan:   #06b6d4;

  /* Light surfaces */
  --bg:           #fafbfd;
  --bg-elev:     rgba(255, 255, 255, 0.72);
  --bg-elev-2:   rgba(255, 255, 255, 0.92);
  --border:      rgba(11, 18, 32, 0.07);
  --border-2:    rgba(11, 18, 32, 0.12);

  /* Ink */
  --ink:         #0b1220;
  --ink-2:       #475569;
  --ink-3:       #94a3b8;

  /* Semantic */
  --success: #16a34a;
  --warning: #f59e0b;
  --danger:  #ef4444;

  /* Shadows — soft, layered */
  --shadow-sm:  0 1px 2px rgba(11,18,32,0.04), 0 2px 6px rgba(11,18,32,0.04);
  --shadow-md:  0 1px 0 rgba(255,255,255,0.95) inset, 0 8px 24px rgba(11,18,32,0.06), 0 24px 48px rgba(11,18,32,0.04);
  --shadow-lg:  0 1px 0 rgba(255,255,255,0.98) inset, 0 16px 32px rgba(11,18,32,0.08), 0 36px 64px rgba(11,18,32,0.06);

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-brand:   'Orbitron', var(--font-display);

  /* Layout */
  --gutter: clamp(20px, 4vw, 64px);
  --max:    1240px;
  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 28px;

  /* Motion */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }

::selection { background: color-mix(in srgb, var(--brand-gold) 35%, white); color: var(--ink); }

.skip-link {
  position: absolute; top: -100px; left: 16px;
  padding: 10px 16px; background: var(--ink); color: #fff;
  border-radius: 8px; z-index: 9999;
}
.skip-link:focus { top: 16px; }

/* ---------- Aurora background (single static layer, cheap to paint) ---------- */
.aurora {
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 12% 10%, color-mix(in srgb, var(--brand-gold) 22%, transparent) 0%, transparent 60%),
    radial-gradient(55vmax 45vmax at 88% 18%, color-mix(in srgb, var(--brand-purple) 24%, transparent) 0%, transparent 60%),
    radial-gradient(60vmax 50vmax at 50% 110%, color-mix(in srgb, var(--brand-indigo) 18%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, #fafbfd 0%, #f4f7fc 100%);
}
.aurora > * { display: none; }

/* faint dot grid, painted by GPU once, masked into a soft vignette */
.aurora::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(11,18,32,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000, transparent 80%);
  opacity: 0.6;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg:  var(--ink);
  --btn-fg:  #fff;
  --btn-bd:  transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease);
  box-shadow: 0 1px 0 rgba(255,255,255,0.16) inset, 0 6px 18px rgba(11,18,32,0.12);
  position: relative;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 12px 28px rgba(11,18,32,0.18); }
.btn:active { transform: translateY(0); }

.btn-primary {
  --btn-bg: linear-gradient(135deg, #0b1220 0%, #1f2937 100%);
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-gold) 60%, transparent), color-mix(in srgb, var(--brand-purple) 60%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.7;
  pointer-events: none;
}

.btn-ghost {
  --btn-bg: #ffffff;
  --btn-fg: var(--ink);
  --btn-bd: var(--border-2);
  box-shadow: 0 4px 16px rgba(11,18,32,0.04);
}
.btn-ghost:hover { --btn-bg: #f4f7fc; }

.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin: 16px auto 0;
  width: min(calc(100% - 32px), var(--max));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 18px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.nav[data-scrolled="true"] {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 32px rgba(11,18,32,0.08);
}

.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.nav-brand img { border-radius: 8px; }

.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(11,18,32,0.04); }

.nav-cta {
  padding: 10px 18px;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .nav { padding: 8px 8px 8px 14px; }
  .nav-links { display: none; }
}

/* ---------- Section headers ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  margin: 0 0 56px;
}
.section-head .section-title,
.section-head .section-sub {
  max-width: 720px;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center; gap: 8px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 22px 0 14px;
  color: var(--ink);
}
.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.6;
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 50%, transparent); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 120px) var(--gutter) clamp(60px, 8vw, 100px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-content { max-width: 620px; }

.eyebrow {
  display: inline-flex;
  align-items: center; gap: 10px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 26px 0 22px;
  color: var(--ink);
}
.hero-title-accent {
  background: linear-gradient(120deg, var(--brand-purple) 0%, var(--brand-gold) 60%, var(--brand-indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reveal-line {
  display: block;
  overflow: hidden;
}
.reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: reveal-up 1s var(--ease-out) forwards;
}
.reveal-line:nth-child(2) > span { animation-delay: 0.12s; }

@keyframes reveal-up {
  to { transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 56ch;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.hero-trust strong { color: var(--ink); }
.hero-trust-avatars {
  display: flex;
}
.hero-trust-avatars span {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  background: var(--ink-3);
  box-shadow: 0 2px 6px rgba(11,18,32,0.12);
}
.hero-trust-avatars span:first-child { margin-left: 0; background: linear-gradient(135deg, var(--brand-gold), #ff8a3d); }
.hero-trust-avatars span:nth-child(2) { background: linear-gradient(135deg, var(--brand-purple), #c084fc); }
.hero-trust-avatars span:nth-child(3) { background: linear-gradient(135deg, var(--brand-indigo), #38bdf8); }
.hero-trust-avatars span:nth-child(4) { background: linear-gradient(135deg, var(--success), #84cc16); }

/* Hero visual — PV.png is a horizontal image of a vertical exploded model,
   so rotate it -90deg to make the model stand up, like the original layout. */
.hero-visual {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.hero-panel {
  width: clamp(560px, 90vw, 980px);
  max-width: none;
  height: auto;
  rotate: -90deg;
  filter: drop-shadow(0 24px 50px rgba(11,18,32,0.15));
  user-select: none;
  pointer-events: none;
  position: relative;
  z-index: 0;
}

@media (max-width: 960px) {
  .hero-panel { width: clamp(420px, 80vw, 640px); }
}

/* Floating glass cards */
.hero-card {
  position: absolute;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  font-size: 0.92rem;
  z-index: 2;
}
.hero-card-1 { top: 6%;  left: 0;     width: 220px; }
.hero-card-2 { top: 48%; right: 0;    width: 200px; }
.hero-card-3 { bottom: 6%; left: 14%; padding: 10px 14px; font-size: 0.86rem; display: flex; align-items: center; gap: 8px; }

.hero-card-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.hero-card-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-gold) 28%, white), white);
  border: 1px solid var(--border);
}
.hero-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-weight: 600;
}
.hero-card-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero-card-value.small { font-size: 1.1rem; }
.hero-card-unit { font-size: 0.85rem; font-weight: 500; color: var(--ink-2); }

.hero-card-trend {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--success);
}
.hero-card-trend.up { color: var(--success); }

.hero-spark { margin-top: 6px; height: 28px; }
.hero-spark svg { width: 100%; height: 100%; }

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent);
}

/* float animations removed for perf — the cards stay still */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 32px;
  }
  .hero-visual { aspect-ratio: 4/3; max-height: 480px; }
  .hero-card-1 { left: 0; top: 4%; }
  .hero-card-2 { right: 0; top: 50%; }
  .hero-card-3 { left: 8%; bottom: 4%; }
}

/* =====================================================================
   STATS STRIP
   ===================================================================== */
.stats {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 60px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat { padding: 8px 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
  background: linear-gradient(135deg, var(--ink) 0%, color-mix(in srgb, var(--brand-purple) 65%, var(--ink)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   PILLARS (problem / solution / promise)
   ===================================================================== */
.pillars {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pillar {
  --accent: var(--brand-purple);
  position: relative;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pillar header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pillar-problem  { --accent: var(--danger); }
.pillar-solution { --accent: var(--success); }
.pillar-promise  { --accent: var(--brand-gold); }

.pillar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--spot-x, 50%) var(--spot-y, 50%),
              color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.pillar:hover::before { opacity: 1; }

.pillar-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
  /* Reserve 2 lines so all 3 cards' lists start at the same vertical position */
  min-height: calc(2 * 1.3em);
}
.pillar-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.pillar-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-2);
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.pillar-list li:last-child { border-bottom: none; }
.pillar-list .emoji {
  font-size: 1.05rem;
  flex-shrink: 0;
  width: 1.5em;
  text-align: center;
  line-height: 1.5;
}
.pillar-list .pillar-text {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

@media (max-width: 960px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   STICKY-SCROLL FEATURE
   ===================================================================== */
.feature-scroll {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}
.feature-scroll-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.feature-scroll-text { padding: 20px 0; }
.feature-scroll-text .section-eyebrow { margin-bottom: 18px; }
.feature-scroll-text .section-title { text-align: left; margin: 0 0 40px; }

.feature-step {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  opacity: 0.5;
  transition: opacity 0.5s var(--ease);
}
.feature-step:first-of-type { border-top: none; }
.feature-step.active { opacity: 1; }
.feature-step h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 14px;
  color: var(--ink);
}
.step-num {
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-gold);
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-gold) 14%, white);
  border: 1px solid color-mix(in srgb, var(--brand-gold) 28%, transparent);
}
.feature-step p {
  color: var(--ink-2);
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 52ch;
}
.feature-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.feature-chips span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
}

/* Sticky visual */
.feature-scroll-visual {
  position: sticky;
  top: 100px;
  align-self: start;
}
.feature-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 177, 0, 0.16) 0%, transparent 55%),
    radial-gradient(circle at 82% 82%, rgba(129, 110, 148, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, #ffffff 0%, #eef2f9 100%);
  box-shadow: var(--shadow-lg);
}
.feature-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.45s ease-in-out;
  will-change: opacity;
}
.feature-img.active { opacity: 1; }
.feature-frame-glow { display: none; }

@media (max-width: 960px) {
  .feature-scroll-inner { grid-template-columns: 1fr; }
  .feature-scroll-visual { position: relative; top: 0; }
  .feature-frame { aspect-ratio: 16/10; }
}

/* =====================================================================
   LIVE DASHBOARD PREVIEW
   ===================================================================== */
.dashboard {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}

/* Bare dashboard image — no card chrome */
.dashboard-image {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 20px 40px rgba(11,18,32,0.08),
    0 40px 80px rgba(11,18,32,0.05);
  background: #ffffff;
}
.dashboard-image img {
  display: block;
  width: 100%;
  height: auto;
}

.dashboard-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-purple), var(--brand-indigo));
  opacity: 0.7;
}

.dashboard-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 20px;
}
.dashboard-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.dashboard-card-meta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.legend {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.legend i {
  width: 12px; height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.dashboard-card-totals {
  display: flex; gap: 32px;
}
.totals-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-weight: 600;
}
.totals-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 4px;
}
.totals-up { color: var(--success); }

.dashboard-chart {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
}
.dashboard-chart img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.dashboard-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.dashboard-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--ink-2);
  font-weight: 500;
}

@media (max-width: 760px) {
  .dashboard-card { padding: 20px; }
  .dashboard-card-totals { gap: 20px; }
  .totals-value { font-size: 1.3rem; }
}

/* =====================================================================
   TECH STACK BENTO
   ===================================================================== */
.tech-stack {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 18px;
}

.bento-card {
  --accent: var(--brand-gold);
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bento-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--spot-x, 50%) var(--spot-y, 50%),
              color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.bento-card:hover::after { opacity: 1; }
.bento-card:hover::before { opacity: 1; }

.bento-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, white), white);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 18%, transparent);
}

.bento-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.bento-card p {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}
.bento-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  align-self: flex-start;
}

.bento-card.span-2 { grid-column: span 2; }

.bento-card.featured {
  --accent: var(--brand-purple);
  grid-column: span 2;
  grid-row: span 2;
  background:
    radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--brand-purple) 20%, transparent), transparent 55%),
    radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--brand-gold) 22%, transparent), transparent 55%),
    rgba(255, 255, 255, 0.85);
  padding: 32px;
}
.bento-card.featured h4 { font-size: 1.45rem; margin-bottom: 10px; }
.bento-card.featured p  { font-size: 1rem; }
.bento-card.featured .bento-icon { width: 58px; height: 58px; font-size: 1.8rem; border-radius: 16px; }

.featured-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 18px;
}
.featured-meta span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
}

.bento-card.metric { --accent: var(--success); justify-content: space-between; }
.metric-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.025em;
}
.metric-unit { font-size: 0.95rem; font-weight: 600; color: var(--ink-3); margin-left: 4px; }
.metric-trend { display: inline-flex; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--success); margin-top: 6px; }

.bento-card.tech-ai          { --accent: var(--brand-purple); }
.bento-card.tech-iot         { --accent: #3b82f6; }
.bento-card.tech-edge        { --accent: var(--warning); }
.bento-card.tech-lora        { --accent: var(--brand-cyan); }
.bento-card.tech-twin        { --accent: #a855f7; }
.bento-card.tech-cloud       { --accent: #0ea5e9; }
.bento-card.tech-predictive  { --accent: var(--danger); }
.bento-card.tech-energy      { --accent: var(--brand-gold); }
.bento-card.tech-api         { --accent: #14b8a6; }

@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card.featured { grid-column: span 2; grid-row: span 2; }
  .bento-card.span-2   { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card,
  .bento-card.featured,
  .bento-card.span-2 { grid-column: auto; grid-row: auto; }
}

/* =====================================================================
   CTA BANNER
   ===================================================================== */
.cta-banner {
  max-width: var(--max);
  margin: 0 auto clamp(60px, 8vw, 100px);
  padding: 0 var(--gutter);
}
.cta-inner {
  position: relative;
  padding: clamp(50px, 8vw, 90px) clamp(28px, 5vw, 60px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 0%,  color-mix(in srgb, var(--brand-gold) 22%, transparent), transparent 50%),
    radial-gradient(circle at 82% 100%, color-mix(in srgb, var(--brand-purple) 22%, transparent), transparent 50%),
    linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  text-align: center;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11,18,32,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,18,32,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 18px 0 14px;
  color: var(--ink);
  position: relative;
}
.cta-sub {
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 580px;
  margin: 0 auto 32px;
  position: relative;
}
.cta-actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.9) 100%);
  border-top: 1px solid var(--border);
  padding: clamp(50px, 6vw, 80px) var(--gutter) 24px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
}
.footer-col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  color: var(--ink-2);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--ink); }

.footer-brand img { height: 56px; }
.footer-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: 14px;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-meta { color: var(--ink-2); font-size: 0.95rem; margin-top: 6px; max-width: 320px; }

.footer-author {
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-author-role {
  color: var(--ink-2);
  font-size: 0.9rem;
  margin: 4px 0 14px;
}
.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-2);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease), color 0.25s var(--ease);
  box-shadow: var(--shadow-sm);
}
.footer-linkedin svg { fill: currentColor; }
.footer-linkedin:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand-purple) 50%, transparent);
  color: var(--brand-purple);
}

.footer-bottom {
  max-width: var(--max);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--ink-3);
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
}
.footer-divider-dot { color: var(--ink-3); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* =====================================================================
   REVEAL UTILITY (used with IntersectionObserver in JS)
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger when reveal items live in a grid/section */
section .reveal:nth-child(1) { transition-delay: 0s; }
section .reveal:nth-child(2) { transition-delay: 0.06s; }
section .reveal:nth-child(3) { transition-delay: 0.12s; }
section .reveal:nth-child(4) { transition-delay: 0.18s; }
section .reveal:nth-child(5) { transition-delay: 0.24s; }
section .reveal:nth-child(6) { transition-delay: 0.30s; }

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .aurora-blob, .hero-panel, .hero-orb, .hero-scan, .float-a, .float-b, .float-c { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   VIEW TRANSITIONS (progressive enhancement)
   ===================================================================== */
@supports (view-transition-name: none) {
  .nav-brand img { view-transition-name: brand-mark; }
}
