/* =========================================================
   AKCERO — shared design tokens
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400&family=JetBrains+Mono:wght@200;300&display=swap');

:root {
  /* Surfaces */
  --bg-0: #04060a;
  --bg-1: #07090e;
  --bg-2: #0c1118;
  --bg-3: #131923;
  --line:  rgba(232, 237, 242, 0.08);
  --line-2: rgba(232, 237, 242, 0.16);

  /* Foreground */
  --fg:      #e8edf2;
  --fg-dim:  rgba(232, 237, 242, 0.62);
  --fg-mute: rgba(232, 237, 242, 0.36);

  /* Accents */
  --cyan:   oklch(0.86 0.13 200);
  --cyan-2: oklch(0.72 0.16 205);
  --violet: oklch(0.72 0.16 290);
  --violet-2: oklch(0.58 0.18 295);
  --amber:  oklch(0.82 0.13 75);

  /* Glow */
  --glow-cyan:   0 0 80px oklch(0.86 0.13 200 / 0.35);
  --glow-violet: 0 0 80px oklch(0.72 0.16 290 / 0.35);

  /* Type */
  --f-display: 'Outfit', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Spacing rhythm */
  --gutter: clamp(20px, 4vw, 56px);
  --maxw:   1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-0);
  color: var(--fg);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.005em;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

::selection { background: oklch(0.86 0.13 200 / 0.3); color: var(--fg); }

/* =========================================================
   Atmosphere / global background grid
   ========================================================= */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, oklch(0.72 0.16 290 / 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 90%, oklch(0.86 0.13 200 / 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(232,237,242,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(232,237,242,0.025) 1px, transparent 1px);
  background-size: 88px 88px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 95%);
}

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(180deg, rgba(4,6,10,0.78) 0%, rgba(4,6,10,0.35) 100%);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-brand .mark {
  width: 68px; height: 50px;
  border: none;
  border-radius: 0;
  background-image: url('akcero-logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
}
.nav-brand .mark::before { display: none; }
.nav-brand > span:not(.mark) { display: none; }
.nav-links {
  display: flex; gap: 36px;
  font-family: var(--f-mono);
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--fg-dim);
  transition: color 200ms;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: -10px; top: 50%;
  width: 4px; height: 4px;
  background: var(--cyan);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 8px var(--cyan);
}
.nav-cta {
  font-family: var(--f-mono);
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: all 220ms;
}
.nav-cta:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 24px oklch(0.86 0.13 200 / 0.25);
}

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* =========================================================
   Mobile nav menu (hamburger + slide-in panel)
   The hamburger button + panel-open class are injected by akcero.js
   ========================================================= */
.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  cursor: pointer;
  margin-left: 12px;
  position: relative;
  z-index: 110;
  transition: border-color 200ms;
}
.nav-toggle:hover { border-color: var(--cyan); }
.nav-toggle .bar {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--fg);
  position: relative;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), top 280ms cubic-bezier(.2,.7,.2,1);
}
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--fg);
  transition: transform 280ms cubic-bezier(.2,.7,.2,1);
}
.nav-toggle .bar::before { top: -5px; }
.nav-toggle .bar::after  { top: 5px; }
.nav-open .nav-toggle .bar { background: transparent; }
.nav-open .nav-toggle .bar::before { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle .bar::after  { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }

  /* Mobile menu panel — slides in as a fullscreen-ish overlay */
  .nav-links {
    display: flex !important;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 100px var(--gutter) 40px;
    background: rgba(4, 6, 10, 0.96);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    font-size: 16px;
    letter-spacing: 0.28em;
    z-index: 105;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 320ms cubic-bezier(.2,.7,.2,1),
                transform 320ms cubic-bezier(.2,.7,.2,1),
                visibility 320ms;
  }
  .nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links a { color: var(--fg-dim); }
  .nav-open .nav-links a {
    opacity: 0;
    animation: nav-link-in 500ms cubic-bezier(.2,.7,.2,1) forwards;
  }
  .nav-open .nav-links a:nth-child(1) { animation-delay: 80ms; }
  .nav-open .nav-links a:nth-child(2) { animation-delay: 130ms; }
  .nav-open .nav-links a:nth-child(3) { animation-delay: 180ms; }
  .nav-open .nav-links a:nth-child(4) { animation-delay: 230ms; }
  .nav-open .nav-links a:nth-child(5) { animation-delay: 280ms; }
  @keyframes nav-link-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* lock body scroll when menu open */
  body.nav-open { overflow: hidden; }
}

/* =========================================================
   Type primitives
   ========================================================= */
.eyebrow {
  font-family: var(--f-mono);
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.h-display {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(48px, 8vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.025em;
}
.h1 {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.018em;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.lead {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 56ch;
}
.mono {
  font-family: var(--f-mono);
  font-weight: 200;
  letter-spacing: 0.04em;
}

/* the ACCELERATE INNOVATE tagline */
.tagline {
  font-family: var(--f-mono);
  font-weight: 100;
  font-size: 12px;
  letter-spacing: 0.62em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.tagline .dot {
  display: inline-block;
  width: 3px; height: 3px;
  background: var(--cyan);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 6px 4px;
  box-shadow: 0 0 6px var(--cyan);
}

/* =========================================================
   Buttons / chips
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg);
  transition: all 280ms cubic-bezier(.2,.7,.2,1);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 60px at var(--mx,50%) var(--my,50%), oklch(0.86 0.13 200 / 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 220ms;
}
.btn:hover { border-color: var(--cyan); box-shadow: 0 0 30px oklch(0.86 0.13 200 / 0.18); }
.btn:hover::before { opacity: 1; }
.btn-primary {
  background: var(--fg);
  color: var(--bg-0);
  border-color: var(--fg);
}
.btn-primary:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 40px oklch(0.86 0.13 200 / 0.4);
}
.btn .arrow { width: 14px; height: 14px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-weight: 200;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.chip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }

/* =========================================================
   Section scaffolding
   ========================================================= */
section { position: relative; z-index: 1; }
.section {
  padding: clamp(80px, 12vh, 160px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.hairline { height: 1px; background: var(--line); width: 100%; }

/* footer */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 80px var(--gutter) 40px;
  background: var(--bg-1);
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-col h4 {
  font-family: var(--f-mono);
  font-weight: 200;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  font-weight: 300;
  font-size: 14px;
  color: var(--fg-dim);
  transition: color 180ms;
}
.footer-col a:hover { color: var(--fg); }
.footer-base {
  max-width: var(--maxw);
  margin: 60px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
@media (max-width: 640px) {
  .footer-base {
    justify-content: center;
    text-align: center;
  }
  .footer-base > span { flex: 1 0 100%; }
}

/* =========================================================
   CTA section — shared across all pages
   ========================================================= */
.cta {
  position: relative;
  padding: clamp(120px, 18vh, 220px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 600px; height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, oklch(0.72 0.16 290 / 0.25), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.cta-grid {
  position: relative; z-index: 1;
  display: grid;
  gap: 32px;
  justify-items: center;
}
.cta h2 {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(40px, 6vw, 96px);
  letter-spacing: -0.022em;
  line-height: 1.0;
  max-width: 14ch;
}
.cta h2 em {
  font-style: normal;
  background-image: linear-gradient(120deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-audience {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-top: 8px;
}
.cta-actions {
  margin-top: 20px;
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}

/* =========================================================
   Responsive baseline tweaks
   ========================================================= */
@media (max-width: 640px) {
  .nav {
    padding: 14px var(--gutter);
  }
  .nav-brand .mark {
    width: 52px;
    height: 38px;
  }
  /* general section padding — tighten on small screens */
  .section { padding: clamp(60px, 9vh, 100px) var(--gutter); }
  /* Halo + cursor follower: hide entirely on touch */
}
@media (pointer: coarse) {
  /* no custom cursor on touch devices */
  body { cursor: auto; }
}
@media (max-width: 480px) {
  .btn { padding: 14px 20px; font-size: 10px; letter-spacing: 0.2em; gap: 10px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.28em; }
}

/* Disable heavy 3D tilt + cursor halo on touch */
@media (pointer: coarse) {
  .pcard,
  .pillar,
  .feat,
  .signal,
  .stat,
  .hz-feat,
  .who-card,
  .mode-card {
    transform: none !important;
  }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1100ms cubic-bezier(.2,.7,.2,1), transform 1100ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }

/* =========================================================
   Corner brackets — futuristic frame
   ========================================================= */
.frame {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
}
.frame::before, .frame::after,
.frame > .br-tl, .frame > .br-tr, .frame > .br-bl, .frame > .br-br {
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--cyan);
  border-style: solid;
  border-width: 0;
}
