/* ============================================================
   Prima Codex, clean light minimal
   ============================================================ */

:root {
  /* Color */
  --ink: #0e1116;
  --ink-2: #3a4150;
  --ink-3: #6b7280;
  --line: #e7e9ee;
  --line-2: #eef0f4;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-soft-2: #f2f3f7;

  --accent: #4f46e5;       /* indigo */
  --accent-600: #4338ca;
  --accent-700: #3730b3;
  --accent-soft: #eef0ff;
  --ember: #ff7a45;        /* warm secondary, used sparingly */

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Shape */
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 10px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 8px 24px -8px rgba(16, 24, 40, .12);
  --shadow-lg: 0 30px 60px -20px rgba(31, 27, 90, .25);

  --container: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
em { font-style: italic; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 12px 18px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 15px 24px; font-size: 16px; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .55); }
.btn--primary:hover { background: var(--accent-600); box-shadow: 0 10px 22px -8px rgba(79, 70, 229, .6); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1c222d; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-soft); border-color: #d7dae2; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--ink-3); margin-bottom: 18px;
}
.eyebrow--accent { color: var(--accent); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-title { font-size: clamp(28px, 4vw, 42px); }
.section-sub { margin-top: 18px; color: var(--ink-2); font-size: 18px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .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;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }

.brand { display: inline-flex; align-items: center; font-weight: 700; letter-spacing: -0.02em; }
.brand__name { font-size: 17px; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { font-size: 15px; color: var(--ink-2); font-weight: 500; transition: color .15s ease; }
.nav__links a:not(.btn):hover { color: var(--ink); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s 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); }

.mobile-menu {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 24px 22px; border-bottom: 1px solid var(--line); background: #fff;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 12px 4px; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.mobile-menu .btn { margin-top: 12px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(79, 70, 229, .10), transparent 60%),
    radial-gradient(700px 360px at 0% 10%, rgba(255, 122, 69, .07), transparent 55%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 104px);
}
.hero__title { font-size: clamp(36px, 5.4vw, 60px); }
.hero__lede { margin-top: 22px; font-size: 19px; color: var(--ink-2); max-width: 32em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__meta { margin-top: 20px; font-size: 14px; color: var(--ink-3); }

/* Screenshots */
.shot {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-lg); overflow: hidden;
}
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption {
  padding: 14px 18px; font-size: 14.5px; color: var(--ink-2);
  border-top: 1px solid var(--line-2); background: var(--bg-soft);
}

.hero__visual { position: relative; }
.shot--hero { box-shadow: var(--shadow-lg); }
.hero__glow {
  position: absolute; inset: 8% -6% -12% 6%; z-index: -1; border-radius: 40px;
  background: linear-gradient(135deg, rgba(79,70,229,.25), rgba(255,122,69,.18));
  filter: blur(48px); opacity: .55;
}
.hero__counts {
  display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none;
  margin: 22px 0 0; padding: 0; justify-content: center;
  font-size: 14.5px; color: var(--ink-3);
}
.hero__counts li { font-weight: 500; }
.hero__count { font-weight: 700; color: var(--ink); }

/* ============================================================
   STRIP
   ============================================================ */
.strip { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--bg-soft); }
.strip__inner { padding: 30px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; justify-content: center; text-align: center; }
.strip__label { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.strip__items { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; margin: 0; padding: 0; justify-content: center; }
.strip__items li { font-size: 14.5px; color: var(--ink-2); font-weight: 500; position: relative; padding-left: 22px; }
.strip__items li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }

/* ============================================================
   PRODUCT
   ============================================================ */
.product { padding: clamp(72px, 10vw, 120px) 0; }
.shotgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.shotgrid .shot--wide { grid-column: 1 / -1; }

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding: clamp(72px, 10vw, 120px) 0; background: var(--bg-soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.grid--features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #dcdfe7; }
.card__icon {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.card__title { font-size: 19px; margin-bottom: 8px; }
.card__text { color: var(--ink-2); font-size: 15.5px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: clamp(72px, 10vw, 120px) 0; }
.about__inner { max-width: 760px; margin-inline: auto; }
.about__copy p { color: var(--ink-2); font-size: 17.5px; margin-top: 18px; max-width: 40em; }
.about__values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.value { display: flex; flex-direction: column; gap: 6px; }
.value__k { font-weight: 700; }
.value__v { color: var(--ink-2); font-size: 15px; }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: clamp(72px, 10vw, 120px) 0; }
.cta__inner {
  position: relative; overflow: hidden;
  text-align: center; max-width: 880px; margin-inline: auto;
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 76px) 32px;
}
.cta__inner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 320px at 50% -30%, rgba(79,70,229,.5), transparent 60%),
              radial-gradient(500px 260px at 90% 120%, rgba(255,122,69,.3), transparent 60%);
  pointer-events: none;
}
.cta__title { position: relative; font-size: clamp(28px, 4vw, 40px); }
.cta__sub { position: relative; margin-top: 16px; color: rgba(255,255,255,.72); font-size: 18px; }
.cta__buttons { position: relative; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.cta .btn--dark { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.cta .btn--dark:hover { background: rgba(255,255,255,.18); }
.cta__note { position: relative; margin-top: 26px; font-size: 13px; color: rgba(255,255,255,.5); max-width: 40em; margin-inline: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 56px 24px 36px; }
.footer__tag { margin-top: 14px; color: var(--ink-3); font-size: 14.5px; max-width: 24em; }
.footer__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 14px; font-weight: 600; }
.footer__col a { display: block; padding: 6px 0; color: var(--ink-2); font-size: 15px; transition: color .15s ease; }
.footer__col a:hover { color: var(--ink); }
.footer__base {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding: 22px 24px 36px; border-top: 1px solid var(--line-2);
  font-size: 13px; color: var(--ink-3);
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: 2; }
  .grid--features { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .grid--features { grid-template-columns: 1fr; }
  .shotgrid { grid-template-columns: 1fr; }
  .about__values { grid-template-columns: 1fr; gap: 18px; }
  .hero__actions .btn { flex: 1; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
