/* ═══════════════════════════════════════════════════════════
   WORKPLACE WAVE — Full Site Design System
   Dark-first enterprise palette · Electric cyan accent
   Cabinet Grotesk (display) + Satoshi (body)
═══════════════════════════════════════════════════════════ */

:root, [data-theme="dark"] {
  --bg: #080d14;
  --surface: #0f1520;
  --surface-2: #141c2e;
  --surface-3: #1a2338;
  --border: #212d45;
  --border-light: #2a3a55;

  --text: #e8edf5;
  --text-muted: #7a8aaa;
  --text-faint: #344060;
  --text-inv: #080d14;

  --cyan: #00c8d4;
  --cyan-hover: #00aab5;
  --cyan-dim: rgba(0,200,212,.12);
  --cyan-glow: rgba(0,200,212,.18);
  --cyan-border: rgba(0,200,212,.3);

  --green: #22c55e;
  --violet: #818cf8;

  --r-sm: .375rem;
  --r-md: .625rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-full: 9999px;

  --shadow: 0 4px 24px rgba(0,0,0,.55);
  --shadow-lg: 0 16px 56px rgba(0,0,0,.7);
  --glow: 0 0 48px var(--cyan-glow);

  --nav-h: 68px;
  --max-w: 1200px;
  --t: 200ms cubic-bezier(.16,1,.3,1);
}

[data-theme="light"] {
  --bg: #f2f5fb;
  --surface: #ffffff;
  --surface-2: #f7f9ff;
  --surface-3: #edf1fa;
  --border: #d4daea;
  --border-light: #c4cedf;
  --text: #0c1220;
  --text-muted: #55637a;
  --text-faint: #a0aec0;
  --text-inv: #f2f5fb;
  --cyan: #0095a0;
  --cyan-hover: #007880;
  --cyan-dim: rgba(0,149,160,.09);
  --cyan-glow: rgba(0,149,160,.14);
  --cyan-border: rgba(0,149,160,.28);
  --shadow: 0 4px 24px rgba(12,18,32,.09);
  --shadow-lg: 0 16px 56px rgba(12,18,32,.14);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
main { display:block; margin:0; padding:0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: none; }
body {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(1rem,.95rem + .25vw,1.125rem);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
ul[role=list], ol[role=list] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 { font-family:'Cabinet Grotesk','Helvetica Neue',sans-serif; line-height:1.12; text-wrap:balance; }
p,li { text-wrap:pretty; }
a { color:inherit; text-decoration:none; }
::selection { background:rgba(0,200,212,.2); }
:focus-visible { outline:2px solid var(--cyan); outline-offset:3px; border-radius:var(--r-sm); }
@media(prefers-reduced-motion:reduce){ *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; } }

/* ── LAYOUT ── */
.container { width:100%; max-width:var(--max-w); margin-inline:auto; padding-inline:clamp(1.5rem,5vw,4rem); }
.section { padding-block: clamp(4rem,8vw,8rem); }
.hero-home.section, .hero-home { padding-top: 0 !important; position:relative; overflow:hidden; }
.section--alt { background: var(--surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }

/* ── TYPE SCALE ── */
.eyebrow { font-size:.75rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--cyan); margin-bottom:.75rem; }
.h1 { font-size:clamp(2.8rem,1rem+5.5vw,6.5rem); font-weight:900; letter-spacing:-.03em; }
.h2 { font-size:clamp(2rem,1rem+3vw,3.5rem); font-weight:800; letter-spacing:-.025em; }
.h3 { font-size:clamp(1.25rem,1rem+1vw,1.75rem); font-weight:700; }
.h4 { font-size:1.125rem; font-weight:700; }
.lead { font-size:clamp(1rem,.9rem+.6vw,1.3rem); color:var(--text-muted); line-height:1.75; max-width:58ch; }
.text-cyan { color:var(--cyan); }
.text-muted { color:var(--text-muted); }
.max-prose { max-width:68ch; }

/* ── BUTTONS ── */
.btn { display:inline-flex; align-items:center; gap:.5rem; font-weight:600; border-radius:var(--r-md); border:2px solid transparent; cursor:pointer; transition:background var(--t),border-color var(--t),color var(--t),box-shadow var(--t),transform var(--t); white-space:nowrap; text-decoration:none; }
.btn:hover { transform:translateY(-1px); }
.btn:active { transform:translateY(0); }
.btn-sm { font-size:.875rem; padding:.375rem 1rem; }
.btn-md { font-size:.9rem; padding:.625rem 1.5rem; }
.btn-lg { font-size:1rem; padding:.875rem 2rem; }
.btn-xl { font-size:1.05rem; padding:1rem 2.5rem; }
.btn-primary { background:var(--cyan); color:var(--text-inv); border-color:var(--cyan); }
.btn-primary:hover { background:var(--cyan-hover); border-color:var(--cyan-hover); box-shadow:var(--glow); }
.btn-outline { background:transparent; color:var(--text); border-color:var(--border-light); }
.btn-outline:hover { border-color:var(--cyan); color:var(--cyan); }
.btn-ghost { background:transparent; color:var(--text-muted); border-color:transparent; padding:.375rem .625rem; }
.btn-ghost:hover { background:var(--surface-3); color:var(--text); }

/* ── CARDS ── */
.card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:2rem; transition:border-color var(--t),transform var(--t),box-shadow var(--t); }
.card:hover { border-color:var(--cyan-border); transform:translateY(-2px); box-shadow:var(--shadow); }
.card--accent { border-color:var(--cyan-border); background:linear-gradient(135deg,var(--cyan-dim),transparent 70%); }

/* ── BADGE ── */
.badge { display:inline-flex; align-items:center; font-size:.72rem; font-weight:700; letter-spacing:.06em; padding:.2rem .75rem; border-radius:var(--r-full); background:var(--cyan-dim); color:var(--cyan); border:1px solid var(--cyan-border); }

/* ── DIVIDER ── */
.divider { height:1px; background:var(--border); margin-block:0; }

/* ── SECTION HEADER ── */
.section-header { margin-bottom:clamp(2.5rem,5vw,4rem); }
.section-header--center { text-align:center; }
.section-header--center .lead { margin-inline:auto; }

/* ── GRID HELPERS ── */
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:1.5rem; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:1.25rem; }
.split { display:grid; grid-template-columns:1fr 1fr; gap:clamp(3rem,6vw,6rem); align-items:center; }

/* ── STAT ── */
.stat-value { font-family:'Cabinet Grotesk',sans-serif; font-size:clamp(2.5rem,4vw,4rem); font-weight:900; color:var(--cyan); line-height:1; }
.stat-label { font-size:.8rem; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.08em; margin-top:.4rem; }

/* ── ICON BOX ── */
.icon-box { width:48px; height:48px; border-radius:var(--r-md); background:var(--cyan-dim); border:1px solid var(--cyan-border); color:var(--cyan); display:flex; align-items:center; justify-content:center; flex-shrink:0; }

/* ── TAG ── */
.tag { display:inline-flex; font-size:.72rem; font-weight:600; padding:.2rem .6rem; background:var(--surface-3); color:var(--text-muted); border-radius:var(--r-sm); border:1px solid var(--border); }
.tag--fw { background:var(--cyan-dim); color:var(--cyan); border-color:var(--cyan-border); font-weight:700; letter-spacing:.04em; }

/* ── SCROLL REVEAL ── */
.reveal { opacity:1; transform:translateY(0); transition:opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-d1 { transition-delay:.08s; }
.reveal-d2 { transition-delay:.16s; }
.reveal-d3 { transition-delay:.24s; }
.reveal-d4 { transition-delay:.32s; }

/* ══════════════════ NAV ══════════════════ */
.nav {
  position:sticky; top:0; z-index:200;
  background:rgba(8,13,20,.88);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid var(--border);
  height:var(--nav-h);
  transition:transform var(--t), box-shadow var(--t);
}
[data-theme="light"] .nav { background:rgba(242,245,251,.92); }
.nav__inner { display:flex; align-items:center; gap:1rem; height:100%; }

/* Logo */
.logo { display:flex; align-items:center; gap:.75rem; flex-shrink:0; text-decoration:none; }
.logo__mark { width:36px; height:36px; }
.logo__name { font-family:'Cabinet Grotesk',sans-serif; font-size:.95rem; font-weight:800; letter-spacing:.04em; color:var(--text); }
.logo__name span { color:var(--cyan); }

/* Nav links */
.nav__links { display:flex; align-items:center; gap:.25rem; margin-left:auto; list-style:none; }
.nav__links a { font-size:.82rem; font-weight:500; color:var(--text-muted); padding:.4rem .7rem; border-radius:var(--r-sm); transition:color var(--t), background var(--t); }
.nav__links a:hover, .nav__links a.active { color:var(--text); background:var(--surface-3); }

.nav__actions { display:flex; align-items:center; gap:.75rem; margin-left:1rem; }

/* Hamburger */
.nav__burger { display:none; flex-direction:column; gap:5px; padding:.4rem; background:none; border:none; cursor:pointer; }
.nav__burger span { display:block; width:22px; height:2px; background:var(--text); border-radius:2px; transition:transform var(--t), opacity var(--t); }

/* Mobile nav drawer */
.nav__drawer { display:none; }

/* ══════════════════ FOOTER ══════════════════ */
.footer { background:var(--surface); border-top:1px solid var(--border); padding-block:clamp(3rem,5vw,5rem) 1.5rem; }
.footer__grid { display:grid; grid-template-columns:1.8fr 1fr 1fr 1fr; gap:3rem; margin-bottom:3rem; }
.footer__brand p { font-size:.875rem; color:var(--text-muted); margin-top:1rem; max-width:30ch; line-height:1.7; }
.footer__col h4 { font-size:.8rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--text-muted); margin-bottom:1rem; }
.footer__col ul { list-style:none; display:flex; flex-direction:column; gap:.6rem; }
.footer__col ul a { font-size:.875rem; color:var(--text-muted); transition:color var(--t); }
.footer__col ul a:hover { color:var(--cyan); }
.footer__bottom { padding-top:1.5rem; border-top:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; }
.footer__bottom p { font-size:.8rem; color:var(--text-faint); max-width:none; }
.footer__bottom a { font-size:.8rem; color:var(--text-faint); transition:color var(--t); }
.footer__bottom a:hover { color:var(--cyan); }

/* ══════════════════ HERO (shared) ══════════════════ */
.hero { position:relative; overflow:hidden; }
.hero__grid { position:absolute; inset:0; background-image:linear-gradient(var(--cyan-dim) 1px,transparent 1px),linear-gradient(90deg,var(--cyan-dim) 1px,transparent 1px); background-size:64px 64px; opacity:.4; pointer-events:none; }
.hero__glow { position:absolute; top:-20%; right:-10%; width:700px; height:700px; background:radial-gradient(circle,rgba(0,200,212,.09) 0%,transparent 65%); pointer-events:none; }
.hero__content { position:relative; z-index:2; padding-top:0; padding-bottom:1.5rem; }

/* ══════════════════ TERMINAL (shared) ══════════════════ */
.terminal { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow-lg), var(--glow); overflow:hidden; font-family:'SFMono-Regular','Cascadia Code',monospace; font-size:.78rem; }
.terminal__bar { display:flex; align-items:center; gap:.5rem; padding:.75rem 1rem; background:var(--surface-2); border-bottom:1px solid var(--border); }
.terminal__dot { width:11px; height:11px; border-radius:50%; flex-shrink:0; }
.terminal__dot--r { background:#ff5f57; }
.terminal__dot--y { background:#febc2e; }
.terminal__dot--g { background:#28c840; }
.terminal__title { font-family:'Satoshi',sans-serif; font-size:.72rem; color:var(--text-muted); margin-left:auto; }
.terminal__body { padding:1.25rem; display:flex; flex-direction:column; gap:.875rem; }
.terminal__line { display:flex; align-items:flex-start; gap:.625rem; line-height:1.5; }
.terminal__line--dim { color:var(--text-faint); font-size:.74rem; }
.terminal__line span:last-child { color:var(--text); font-size:.78rem; line-height:1.55; }
.terminal__tag { display:inline-flex; flex-shrink:0; font-size:.62rem; font-weight:700; letter-spacing:.05em; padding:1px .45rem; border-radius:3px; margin-top:2px; }
.t-alert { background:rgba(239,68,68,.18); color:#f87171; border:1px solid rgba(239,68,68,.3); }
.t-ai { background:var(--cyan-dim); color:var(--cyan); border:1px solid var(--cyan-border); }
.t-query { background:rgba(129,140,248,.15); color:var(--violet); border:1px solid rgba(129,140,248,.3); }
.t-ok { background:rgba(34,197,94,.15); color:var(--green); border:1px solid rgba(34,197,94,.3); }
.terminal__cursor { color:var(--cyan); animation:blink 1.1s steps(1) infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ══════════════════ FUTURISTIC GLOBAL STYLES ══════════════════ */

/* Glowing cards */
.card {
  background: linear-gradient(135deg, rgba(15,21,32,.9), rgba(20,28,46,.6));
  border: 1px solid rgba(0,200,212,.12);
  box-shadow: 0 0 20px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.02);
  backdrop-filter: blur(8px);
}
.card:hover {
  border-color: rgba(0,200,212,.35);
  box-shadow: 0 0 30px rgba(0,200,212,.1), 0 8px 32px rgba(0,0,0,.4);
}

/* Stat values with glow */
.stat-value {
  text-shadow: 0 0 20px rgba(0,200,212,.4), 0 0 40px rgba(0,200,212,.15);
}

/* Neon section dividers */
.section--alt {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(0,200,212,.02) 50%, var(--surface) 100%);
  border-top: 1px solid rgba(0,200,212,.1);
  border-bottom: 1px solid rgba(0,200,212,.1);
  position: relative;
}
.section--alt::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,200,212,.3), transparent);
}

/* Eyebrow text glow */
.eyebrow {
  text-shadow: 0 0 15px rgba(0,200,212,.3);
}

/* Section headers */
.h2 {
  background: linear-gradient(135deg, var(--text) 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Futuristic tags */
.tag--fw {
  box-shadow: 0 0 8px rgba(0,200,212,.15);
}

/* Icon box glow */
.icon-box {
  box-shadow: 0 0 12px rgba(0,200,212,.15), inset 0 0 8px rgba(0,200,212,.05);
}

/* CTA banner enhanced */
.cta-banner {
  background: linear-gradient(135deg, rgba(0,200,212,.08), rgba(0,200,212,.02)) !important;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,212,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,212,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* Footer with subtle glow */
.footer {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(8,13,20,1) 100%);
  border-top: 1px solid rgba(0,200,212,.1);
}

/* Nav glow bottom border */
.nav {
  border-bottom: 1px solid rgba(0,200,212,.1);
}
.nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,200,212,.25), transparent);
}

/* Testimonial cards */
.testimonial {
  background: linear-gradient(135deg, rgba(15,21,32,.9), rgba(20,28,46,.6));
  border: 1px solid rgba(0,200,212,.08);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  transition: border-color var(--t), box-shadow var(--t);
}
.testimonial:hover {
  border-color: rgba(0,200,212,.25);
  box-shadow: 0 0 20px rgba(0,200,212,.08), 0 8px 32px rgba(0,0,0,.4);
}

/* Use case cards */
.uc-card {
  background: linear-gradient(135deg, rgba(15,21,32,.9), rgba(20,28,46,.6));
  border: 1px solid rgba(0,200,212,.1);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.uc-card:hover {
  border-color: rgba(0,200,212,.35);
  box-shadow: 0 0 25px rgba(0,200,212,.1), 0 8px 32px rgba(0,0,0,.4);
}

/* Card accent enhanced */
.card--accent {
  border-color: rgba(0,200,212,.25);
  background: linear-gradient(135deg, rgba(0,200,212,.08), rgba(0,200,212,.02));
  box-shadow: 0 0 30px rgba(0,200,212,.08), 0 8px 32px rgba(0,0,0,.4);
}

/* ══════════════════ RESPONSIVE ══════════════════ */
@media(max-width:960px) {
  .grid-3, .grid-4 { grid-template-columns:repeat(2,1fr); }
  .split { grid-template-columns:1fr; }
  .footer__grid { grid-template-columns:1fr 1fr; }
  .nav__links { display:none; }
  .nav__burger { display:flex; margin-left:auto; }
  .nav__actions .btn-primary { display:none; }
  .nav__drawer {
    display:block; position:fixed; top:var(--nav-h); left:0; right:0;
    background:var(--surface); border-bottom:1px solid var(--border);
    padding:1rem 1.5rem 1.5rem; z-index:199;
    transform:translateY(-110%); opacity:0;
    transition:transform .3s cubic-bezier(.16,1,.3,1), opacity .3s;
    pointer-events:none;
  }
  .nav__drawer.open { transform:translateY(0); opacity:1; pointer-events:all; }
  .nav__drawer ul { list-style:none; display:flex; flex-direction:column; gap:.25rem; }
  .nav__drawer ul a { display:block; font-size:.9rem; font-weight:500; color:var(--text-muted); padding:.6rem .75rem; border-radius:var(--r-sm); transition:color var(--t), background var(--t); }
  .nav__drawer ul a:hover { color:var(--text); background:var(--surface-3); }
  .nav__drawer .btn-primary { width:100%; justify-content:center; margin-top:1rem; }
}
@media(max-width:640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns:1fr; }
  .footer__grid { grid-template-columns:1fr; }
  .hero__ctas { flex-direction:column; }
}
