/* ---------- Tokens ---------- */
:root{
  --ink:#050505;
  --paper:#FFFFFF;
  --paper-warm:#FAFAF8;
  --blue:#3569FF;
  --violet:#9757FF;
  --slate:#65656E;
  --line: rgba(5,5,5,0.12);
  --line-dark: rgba(255,255,255,0.14);
  --beam: linear-gradient(135deg, var(--blue), var(--violet));
  /* Darkened ~10% from --blue/--violet so white button text clears WCAG AA (4.5:1) at both gradient ends */
  --beam-btn: linear-gradient(135deg, #305fe6, #884ee6);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Archivo', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 3px;
  --radius-pill: 999px;
  --container: 1180px;
  --nav-h: 72px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --grid-line-light: rgba(5,5,5,0.035);
  --grid-line-dark: rgba(255,255,255,0.045);
  --grid-size: 44px;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{ font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
p{ margin: 0; }
ul{ margin:0; padding:0; list-style:none; }
button{ font: inherit; background:none; border:none; cursor:pointer; color: inherit; }

.wrap{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }

::selection{ background: var(--blue); color: #fff; }

/* ---------- Accessibility ---------- */
.skip-link{
  position:absolute; left:-9999px; top:0; z-index: 200;
  background: var(--ink); color:#fff; padding: 12px 18px;
  font-family: var(--font-mono); font-size: 13px;
}
.skip-link:focus{ left: 16px; top: 16px; }

:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn-primary{
  position: relative;
  overflow: hidden;
  background: var(--beam-btn);
  color: #fff;
  padding: 12px 22px;
  font-size: 15px;
}
.btn-primary::before{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 8px 20px rgba(53,105,255,0.25); }
.btn-primary:hover::before{ transform: translateX(100%); }
.btn-primary:active{ transform: translateY(0) scale(0.98); }
.btn-sm{ padding: 9px 16px; font-size: 13.5px; }
.btn-lg{ padding: 15px 28px; font-size: 16px; }

/* ---------- Header / Nav ---------- */
#scroll-sentinel{ position: absolute; top: 0; height: 1px; width: 1px; }
.site-header{
  position: sticky; top:0; z-index: 100;
  height: var(--nav-h);
  display:flex; align-items:center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(5,5,5,0);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.scrolled{
  border-bottom-color: transparent;
  box-shadow: 0 8px 24px rgba(5,5,5,0.06);
}
.nav-inner{
  width: 100%;
  display:flex; align-items:center; justify-content:space-between;
  gap: 24px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{
  width: auto;
  height: 34px;
  filter:
    drop-shadow(0 0 0.75px rgba(5,5,5,0.5))
    drop-shadow(0 1px 1px rgba(5,5,5,0.18))
    drop-shadow(0 6px 10px rgba(5,5,5,0.10));
}
.brand-word{ font-family: var(--font-display); font-size: 15.5px; font-weight: 500; }
.brand-word strong{ font-weight: 700; }

.nav-links{ display:flex; align-items:center; gap: 32px; }
.nav-links a{
  position: relative;
  font-size: 14.5px; font-weight: 500; color: var(--slate);
  transition: color 0.2s var(--ease);
}
.nav-links a::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 2px;
  background: var(--beam);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover{ color: var(--ink); }
.nav-links a:hover::after{ transform: scaleX(1); }

.nav-actions{ display:flex; align-items:center; gap: 14px; }
.nav-toggle{
  display:none;
  flex-direction: column; justify-content:center; align-items:center;
  gap: 5px; width: 40px; height: 40px; border-radius: var(--radius);
}
.nav-toggle span{ width: 20px; height: 2px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
  background-image:
    linear-gradient(var(--grid-line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-light) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}
.hero::before{
  content: '';
  position: absolute;
  top: -25%;
  right: -12%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53,105,255,0.10), rgba(151,87,255,0.07) 45%, transparent 72%);
  filter: blur(70px);
  pointer-events: none;
}
.hero::after{
  content: '';
  position: absolute;
  top: 220px;
  left: -8%;
  width: 32%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53,105,255,0.16), rgba(151,87,255,0.10) 50%, transparent 74%);
  filter: blur(50px);
  pointer-events: none;
}
.hero-inner{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 18px;
}
.hero-copy h1{
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  max-width: 12ch;
}
.hero-copy h1 em{ font-style: italic; }
.hero-sub{
  position: relative;
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate);
  max-width: 44ch;
  text-shadow:
    0 0 6px rgba(53,105,255,0.30),
    0 0 16px rgba(53,105,255,0.22),
    0 0 32px rgba(151,87,255,0.16);
}
.hero-visual{ display: flex; }

.signal{
  max-width: 380px;
  padding-left: 28px;
  border-left: 2px solid var(--line);
}
.signal-mark{
  width: 34px;
  height: auto;
  margin-bottom: 22px;
  filter:
    drop-shadow(0 0 0.75px rgba(5,5,5,0.5))
    drop-shadow(0 1px 1px rgba(5,5,5,0.18))
    drop-shadow(0 6px 10px rgba(5,5,5,0.10));
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.signal-beam{
  width: 34px;
  height: 3px;
  margin-bottom: 22px;
  background: var(--beam);
  border-radius: 2px;
  transform-origin: left;
  transition: transform 0.5s 0.2s var(--ease);
}
.offer-list{ display: flex; flex-direction: column; gap: 12px; }
.offer-list li{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  color: var(--ink);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.offer-list li:nth-child(1){ transition-delay: 0.35s; }
.offer-list li:nth-child(2){ transition-delay: 0.48s; }
.offer-list li:nth-child(3){ transition-delay: 0.61s; }

/* JS-enabled: start hidden, reveal via IntersectionObserver-added .in-view */
.js .signal-mark{ opacity: 0; transform: translateY(8px); }
.js .signal-beam{ transform: scaleX(0); }
.js .offer-list li{ opacity: 0; transform: translateY(10px); }

.hero-visual.in-view .signal-mark{ opacity: 1; transform: translateY(0); }
.hero-visual.in-view .signal-beam{ transform: scaleX(1); }
.hero-visual.in-view .offer-list li{ opacity: 1; transform: translateY(0); }

/* ---------- Sections (shared) ---------- */
section{ padding: 88px 0; scroll-margin-top: calc(var(--nav-h) + 16px); }
.section-head{
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 48px;
}
.reveal{
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal{ opacity: 0; transform: translateY(18px); }
.reveal.in-view{ opacity: 1; transform: translateY(0); }

/* ---------- Services ---------- */
.services{
  position: relative;
  background: var(--paper-warm);
  background-image:
    linear-gradient(var(--grid-line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-light) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  overflow: hidden;
}
.services::before{
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(151,87,255,0.08), rgba(53,105,255,0.05) 45%, transparent 72%);
  filter: blur(60px);
  pointer-events: none;
}
.service-row{
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 32px;
  padding: 36px 28px;
  margin: 0 -28px;
  border-top: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-row:last-child{ border-bottom: 1px solid var(--line); }
.service-row:hover,
.service-row.active{
  background: linear-gradient(100deg, rgba(53,105,255,0.08), rgba(151,87,255,0.05) 70%);
  box-shadow:
    0 0 0 1px rgba(53,105,255,0.16),
    0 16px 44px rgba(53,105,255,0.16),
    0 16px 44px rgba(151,87,255,0.10);
}
.service-label h3{ font-size: 1.5rem; transition: color 0.3s var(--ease); }
.service-row:hover .service-label h3,
.service-row.active .service-label h3{ color: var(--blue); }
.coming-soon{
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
}
.beam-rule{
  display:block;
  width: 46px; height: 3px;
  background: var(--beam);
  margin-top: 14px;
  border-radius: 2px;
  transition: width 0.35s var(--ease);
}
.service-row:hover .beam-rule,
.service-row.active .beam-rule{ width: 72px; }
.service-body p{ color: var(--slate); max-width: 56ch; }
.service-body p + p{ margin-top: 14px; }

/* ---------- Work ---------- */
.work{
  position: relative;
  background: var(--ink);
  background-image:
    linear-gradient(var(--grid-line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-dark) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  color: rgba(255,255,255,0.85);
  overflow: hidden;
}
.work .section-head{ color: #fff; }
.work-glow{
  position: absolute;
  top: -140px;
  right: -10%;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53,105,255,0.24), rgba(151,87,255,0.14) 45%, transparent 72%);
  filter: blur(60px);
  pointer-events: none;
  transition: left 0.6s var(--ease), top 0.6s var(--ease), width 0.6s var(--ease), filter 0.6s var(--ease);
}
.work-glow.focused{
  width: 260px;
  filter: blur(36px);
  background: radial-gradient(circle, rgba(53,105,255,0.34), rgba(151,87,255,0.22) 45%, transparent 72%);
}
.category-picker{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
.category-btn{
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 16px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  color: rgba(255,255,255,0.75);
  background: transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.category-btn:hover{ border-color: var(--blue); color: #fff; }
.category-btn[aria-pressed="true"]{
  background: var(--beam-btn);
  border-color: transparent;
  color: #fff;
}
.category-note{
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.category-note a{
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.category-note a:hover{ color: #fff; }

.category-preview{
  position: relative;
  margin-top: 28px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 36px;
  background: rgba(255,255,255,0.04);
  max-width: 62ch;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 24px 48px rgba(0,0,0,0.35),
    0 8px 20px rgba(53,105,255,0.08);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.category-preview.showing{ opacity: 1; transform: translateY(0); }
.category-preview-label{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.category-preview-headline{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.4;
  color: #fff;
}
.category-preview-features{
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.category-preview-features li{
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.category-preview-features li::before{
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--beam);
}
.category-preview-note{
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.5);
  max-width: 46ch;
}
.category-preview .btn{ margin-top: 24px; }

.demo-offer{
  position: relative;
  margin-top: 32px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 44px;
  background: rgba(255,255,255,0.04);
  max-width: 62ch;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 24px 48px rgba(0,0,0,0.35),
    0 8px 20px rgba(53,105,255,0.08);
}
.demo-line{
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.1vw, 1.4rem);
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
}
.demo-note{
  margin-top: 16px;
  font-size: 15px;
  color: rgba(255,255,255,0.55);
}

/* ---------- About ---------- */
.about{
  background-image:
    linear-gradient(var(--grid-line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-light) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}
.about-inner p{
  font-size: 18px;
  line-height: 1.65;
  max-width: 62ch;
  color: var(--slate);
}

/* ---------- FAQ ---------- */
.faq{
  background-image:
    linear-gradient(var(--grid-line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-light) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}
.faq-row{
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.faq-row:last-child{ border-bottom: 1px solid var(--line); }
.faq-q h3{ font-size: 1.1rem; }
.faq-a p{ color: var(--slate); max-width: 52ch; }

/* ---------- Contact ---------- */
.contact{
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(var(--grid-line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-light) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}
.contact::before{
  content: '';
  position: absolute;
  bottom: -30%;
  right: -8%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(151,87,255,0.07), transparent 72%);
  filter: blur(50px);
  pointer-events: none;
}
.contact-inner{ position: relative; max-width: 640px; margin-left: 0; margin-right: 0; }
.contact-sub{
  margin-top: 12px;
  font-size: 17px;
  color: var(--slate);
}
.contact .btn{ margin-top: 32px; }
.signature{
  margin-top: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--slate);
}
.socials{
  display:flex; gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.socials a{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--slate);
  transition: color 0.2s var(--ease);
}
.socials a:hover{ color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--ink);
  background-image:
    linear-gradient(var(--grid-line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-dark) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  color: rgba(255,255,255,0.7);
  padding: 52px 0;
}
.footer-inner{
  display:flex; flex-direction: column; align-items:flex-start; gap: 14px;
}
.footer-mark-wrap{ position: relative; display: inline-flex; }
.footer-mark-glow{
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53,105,255,0.4), rgba(151,87,255,0.24) 50%, transparent 75%);
  filter: blur(12px);
  pointer-events: none;
}
.footer-mark{ position: relative; width: auto; height: 32px; }
.tagline{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: #fff;
}
.copyright{
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* ---------- 404 ---------- */
.not-found{ padding: 140px 0; }
.not-found h1{
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  max-width: 16ch;
  margin-top: 18px;
}
.not-found .hero-sub{ margin-top: 22px; max-width: 50ch; }
.not-found-actions{ margin-top: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px){
  .hero-inner{ grid-template-columns: 1fr; gap: 40px; }
  .hero-copy h1{ max-width: none; }
  .service-row{ grid-template-columns: 1fr; gap: 14px; padding: 28px 16px; margin: 0 -16px; }
  .faq-row{ grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 768px){
  .nav-links{
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-links.open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a{
    width: 100%;
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle{ display:flex; width: 44px; height: 44px; }
  .nav-actions .btn-sm{ padding: 12px 16px; }

  section{ padding: 64px 0; }
  .hero{ padding: 40px 0 48px; }

  .socials{ gap: 4px; margin-top: 32px; }
  .socials a{ display: inline-flex; align-items: center; padding: 12px; }
}

@media (max-width: 480px){
  .wrap{ padding: 0 18px; }
  .demo-offer{ padding: 28px; }
  .category-preview{ padding: 28px; }
}
