/* ============================================================
   ASCENT — Shared stylesheet
   Modern, premium, calm corporate-tech.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --indigo: #4F46E5;
  --indigo-600: #4F46E5;
  --indigo-700: #4338CA;
  --indigo-500: #6366F1;
  --indigo-400: #818CF8;
  --violet: #7C5CFF;
  --indigo-grad: linear-gradient(135deg, #6366F1 0%, #4338CA 100%);

  /* Ink / slate scale */
  --ink: #0F172A;          /* headings */
  --ink-2: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;    /* body */
  --slate-500: #64748B;    /* secondary */
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;    /* borders */
  --slate-150: #EAEFF5;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;

  /* Surfaces */
  --canvas: #FAFBFC;       /* off-white page bg */
  --surface: #FFFFFF;      /* cards */
  --dark: #1A1740;         /* deep indigo section */
  --dark-2: #15132F;

  /* Hairline */
  --hairline: #E7ECF3;

  /* Radii */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-pill: 999px;

  /* Shadows — soft layered */
  --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.06), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg: 0 12px 32px rgba(15,23,42,0.08), 0 4px 8px rgba(15,23,42,0.04);
  --shadow-xl: 0 24px 64px rgba(15,23,42,0.12), 0 8px 16px rgba(15,23,42,0.05);
  --shadow-indigo: 0 12px 28px rgba(79,70,229,0.28), 0 4px 8px rgba(79,70,229,0.18);

  /* Layout */
  --maxw: 1200px;
  --gutter: 24px;
  --nav-h: 68px;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Roboto Mono", "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--slate-600);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02","cv03","cv04","cv11";
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--indigo); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: var(--indigo); display: inline-block; opacity: 0.5; }
.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 16px 0 0; letter-spacing: -0.03em; }
.section-head p { font-size: clamp(16px, 2vw, 18px); color: var(--slate-500); margin-top: 16px; line-height: 1.55; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.center { text-align: center; }
.section-head.center { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  padding: 12px 20px; border-radius: var(--r-md);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap; cursor: pointer;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--indigo); color: #fff; box-shadow: var(--shadow-indigo); }
.btn--primary:hover { background: #4338CA; transform: translateY(-1px); box-shadow: 0 16px 34px rgba(79,70,229,0.34), 0 6px 12px rgba(79,70,229,0.2); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--slate-200); }
.btn--ghost:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.btn--ghost svg { transition: transform .18s ease; }
.btn--ghost:hover svg { transform: translateX(3px); }
.btn--lg { padding: 15px 26px; font-size: 16px; border-radius: var(--r-lg); }
.btn--on-dark { background: #fff; color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.btn--on-dark:hover { transform: translateY(-1px); background: #fff; }
.btn--outline-dark { background: rgba(255,255,255,0.06); color: #fff; border: 1px solid rgba(255,255,255,0.22); }
.btn--outline-dark:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(250,251,252,0.8);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--hairline); box-shadow: var(--shadow-sm); background: rgba(250,251,252,0.92); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-size: 14.5px; font-weight: 500; color: var(--slate-600);
  padding: 8px 14px; border-radius: var(--r-sm); transition: color .15s ease, background .15s ease;
}
.nav__links a:hover { color: var(--ink); background: var(--slate-100); }
.nav__links a.is-active { color: var(--indigo); }
.nav__right { display: flex; align-items: center; gap: 6px; }
.nav__signin { font-size: 14.5px; font-weight: 500; color: var(--slate-600); padding: 8px 14px; border-radius: var(--r-sm); transition: color .15s, background .15s; }
.nav__signin:hover { color: var(--ink); background: var(--slate-100); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--indigo-grad);
  display: grid; place-items: center; box-shadow: var(--shadow-indigo); flex: none;
}
.logo__mark svg { width: 19px; height: 19px; }
.logo__word { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }

/* Hamburger */
.nav__burger { display: none; width: 42px; height: 42px; border-radius: var(--r-sm); align-items: center; justify-content: center; color: var(--ink); transition: background .15s; }
.nav__burger:hover { background: var(--slate-100); }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(15,23,42,0.4); opacity: 0; transition: opacity .3s ease; backdrop-filter: blur(2px); }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 86vw);
  background: var(--surface); box-shadow: var(--shadow-xl);
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.1,1);
  display: flex; flex-direction: column; padding: 18px;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 18px; }
.drawer__close { width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--ink); }
.drawer__close:hover { background: var(--slate-100); }
.drawer__links { display: flex; flex-direction: column; gap: 2px; }
.drawer__links a { font-size: 17px; font-weight: 500; color: var(--ink); padding: 14px 12px; border-radius: var(--r-md); }
.drawer__links a:hover { background: var(--slate-100); }
.drawer__cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--hairline); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }
.reveal[data-delay="4"] { transition-delay: .28s; }
.reveal[data-delay="5"] { transition-delay: .35s; }

/* ---------- Striped image placeholder ---------- */
.ph {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background-color: var(--slate-50);
  background-image: repeating-linear-gradient(135deg, rgba(79,70,229,0.05) 0, rgba(79,70,229,0.05) 1px, transparent 1px, transparent 9px);
  border: 1px solid var(--slate-200);
  display: grid; place-items: center;
}
.ph__label {
  font-family: var(--mono); font-size: 12px; color: var(--slate-400);
  letter-spacing: 0.02em; background: rgba(255,255,255,0.7); padding: 5px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--slate-200);
}

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--hairline); padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; }
.footer__brand { max-width: 280px; }
.footer__brand p { font-size: 14.5px; color: var(--slate-500); margin-top: 16px; line-height: 1.6; }
.footer__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-400); font-weight: 600; margin-bottom: 16px; }
.footer__col ul { display: flex; flex-direction: column; gap: 11px; }
.footer__col a { font-size: 14.5px; color: var(--slate-600); transition: color .15s; }
.footer__col a:hover { color: var(--indigo); }
.footer__social { display: flex; gap: 8px; margin-top: 22px; }
.footer__social a { width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--slate-200); display: grid; place-items: center; color: var(--slate-500); transition: all .15s; }
.footer__social a:hover { color: var(--indigo); border-color: var(--indigo); background: var(--slate-50); transform: translateY(-1px); }
.footer__social svg { width: 17px; height: 17px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hairline); flex-wrap: wrap; }
.footer__bottom p { font-size: 13.5px; color: var(--slate-400); }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a { font-size: 13.5px; color: var(--slate-500); }
.footer__legal a:hover { color: var(--indigo); }
.footer__made { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--slate-400); }
.footer__made .flag { width: 18px; height: 13px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,0.05); }

/* ---------- Generic card ---------- */
.card {
  background: var(--surface); border: 1px solid var(--slate-200); border-radius: var(--r-xl);
  box-shadow: var(--shadow-xs); transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, border-color .25s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--slate-300); }

/* icon chip */
.icon-chip {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: linear-gradient(160deg, #EEF0FF, #E0E3FF); color: var(--indigo-700);
  box-shadow: inset 0 0 0 1px rgba(79,70,229,0.1);
}
.icon-chip svg { width: 22px; height: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: 1 / -1; max-width: 360px; }
}
@media (max-width: 860px) {
  .nav__links, .nav__signin, .nav__right .btn { display: none; }
  .nav__burger { display: flex; }
}
@media (max-width: 600px) {
  :root { --gutter: 18px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 18px; }
}
