/* =========================================================
   Tutorify AI — design system
   Palette: deep ink + warm gold + soft cream
   ========================================================= */

:root {
  --ink-900: #0a1228;
  --ink-800: #0f1b3a;
  --ink-700: #182a55;
  --ink-500: #3b4a78;
  --ink-300: #8893b8;
  --cream:   #f7f3ec;
  --cream-2: #efe7d8;
  --paper:   #fdfbf7;
  --gold:    #c9a24a;
  --gold-2:  #e8c97a;
  --gold-3:  #b78835;
  --rose:    #d97a6c;
  --teal:    #4f8a8b;
  --line:    rgba(10, 18, 40, 0.10);
  --line-2:  rgba(10, 18, 40, 0.18);

  --gold-grad: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 55%, var(--gold-3) 100%);
  --gold-sheen: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%);

  --shadow:    0 30px 60px -25px rgba(10, 18, 40, 0.35);
  --shadow-sm: 0 4px 18px -8px rgba(10, 18, 40, 0.25);
  --shadow-lg: 0 50px 90px -35px rgba(10, 18, 40, 0.45);
  --shadow-gold: 0 24px 50px -20px rgba(201, 162, 74, 0.45);

  --radius:   18px;
  --radius-lg: 26px;
  --maxw:     1180px;
  --ease:     cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --serif:    "Fraunces", "Georgia", serif;
  --sans:     "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle film grain over the whole page for a premium, less-flat feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(201,162,74,.3); color: var(--ink-900); }

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

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  z-index: 9999;
  background: var(--gold-grad);
  box-shadow: 0 0 12px rgba(232,201,122,.6);
  transition: width .12s linear;
}

/* ============== TYPOGRAPHY ============== */
.kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.kicker--light { color: rgba(255,255,255,.72); }
.section__head--center .kicker { justify-content: center; }
.section__head--center .kicker::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--ink-900);
}
.display em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.display--light { color: var(--paper); }
.display--light em { color: var(--gold-2); }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-500);
  font-weight: 300;
  font-style: italic;
  max-width: 60ch;
}
.lede--light { color: rgba(255,255,255,.78); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-2);
  background: rgba(232,201,122,.08);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(232,201,122,.25);
  margin: 0 0 28px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
.eyebrow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-sheen);
  transform: translateX(-130%);
  animation: sheen 6s ease-in-out infinite;
}
@keyframes sheen {
  0%, 60% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}

/* ============== BUTTONS ============== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform .35s var(--ease), background .25s ease, color .25s ease, box-shadow .35s var(--ease), border-color .25s ease;
  white-space: nowrap;
}
/* sheen sweep on hover for solid buttons */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-sheen);
  transform: translateX(-130%);
  transition: transform .7s var(--ease);
}
.btn--primary:hover::after { transform: translateX(130%); }
.btn--primary {
  background: var(--gold-grad);
  color: var(--ink-900);
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -18px rgba(201,162,74,.7); }
.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: var(--ink-900); color: var(--paper); transform: translateY(-2px); }
.btn--outline {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,.4);
}
.btn--outline:hover { background: var(--paper); color: var(--ink-900); transform: translateY(-2px); }
.btn--link {
  background: transparent;
  color: var(--ink-700);
  padding: 14px 8px;
  font-weight: 500;
}
.btn--link:hover { color: var(--gold); }

/* ============== NAV ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(8, 14, 32, 0.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
/* gold hairline glow under the nav */
.nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,201,122,.5), transparent);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(8, 14, 32, 0.82);
  box-shadow: 0 10px 40px -18px rgba(0,0,0,.6);
}
.nav.is-scrolled::after { opacity: 1; }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--paper);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand__logo {
  display: inline-block;
  width: 30px;
  height: 30px;
  /* Recolor the white logo silhouette to gold via the alpha mask. */
  background-color: var(--gold-2);
  -webkit-mask: url("../img/logo_white.png") no-repeat center / contain;
          mask: url("../img/logo_white.png") no-repeat center / contain;
  transition: transform .4s var(--ease), background-color .3s ease;
}
.brand:hover .brand__logo { transform: rotate(-8deg) scale(1.08); }
.brand__text span { color: var(--gold-2); font-weight: 500; }
.brand--dark { color: var(--paper); }
.brand--dark .brand__text span { color: var(--gold-2); }

.nav__links {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: rgba(255,255,255,.7);
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav__links a:hover { color: var(--paper); }
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--gold-grad);
  transition: right .3s var(--ease);
}
.nav__links a:hover::after { right: 0; }

/* nav CTA on the dark bar */
.nav .btn--ghost {
  color: var(--paper);
  border-color: rgba(255,255,255,.28);
}
.nav .btn--ghost:hover {
  background: var(--gold-grad);
  color: var(--ink-900);
  border-color: transparent;
}

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

/* ============== HERO ============== */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% -10%, #1a2a5c 0%, var(--ink-900) 52%, #05091a 100%);
  color: var(--paper);
  margin-top: -74px;            /* slide hero under the transparent nav */
  padding: 156px 0 80px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg .grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 40%, transparent 80%); mask-image: radial-gradient(ellipse at 50% 30%, #000 40%, transparent 80%); }
/* soft aurora glow behind the headline */
.hero::before {
  content: "";
  position: absolute;
  top: -10%; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232,201,122,.16), transparent 60%);
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  animation: float 16s ease-in-out infinite;
  will-change: transform;
}
.orb--1 { width: 480px; height: 480px; background: #4a3e88; top: -120px; left: -120px; }
.orb--2 { width: 380px; height: 380px; background: var(--gold); top: 28%; right: -110px; opacity: .22; animation-delay: -5s; }
.orb--3 { width: 340px; height: 340px; background: var(--teal); bottom: -120px; left: 38%; opacity: .22; animation-delay: -9s; }
@keyframes float {
  0%,100% { transform: translateY(0) translateX(0); }
  50%     { transform: translateY(-34px) translateX(22px); }
}

.hero__inner {
  position: relative;
  text-align: center;
  padding-bottom: 56px;
}
.hero__intro {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  color: rgba(255,255,255,.6);
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.3em;
}
.hero__title .word { display: inline-block; }
.hero__title .word--accent {
  font-style: italic;
  font-weight: 300;
  padding-right: 0.18em;
  background: linear-gradient(110deg, var(--gold-2) 0%, #fff4d8 30%, var(--gold) 55%, var(--gold-3) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer {
  to { background-position: 220% center; }
}
.hero__sub {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  color: rgba(255,255,255,.8);
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.hero__sub strong { color: var(--gold-2); font-weight: 500; }

.hero__pills {
  list-style: none;
  padding: 0;
  margin: 0 auto 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
}
.hero__pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  color: rgba(255,255,255,.85);
  font-weight: 400;
  backdrop-filter: blur(8px);
  transition: transform .3s var(--ease), background .25s, border-color .25s, color .25s;
}
.hero__pills .ic {
  width: 16px;
  height: 16px;
  color: var(--gold-2);
  flex-shrink: 0;
}
.hero__pills li:hover {
  background: rgba(232,201,122,.12);
  border-color: rgba(232,201,122,.4);
  color: var(--gold-2);
  transform: translateY(-3px);
}

.hero__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__cta .btn--link { color: rgba(255,255,255,.8); }
.hero__cta .btn--link:hover { color: var(--gold-2); }

/* hero stats strip */
.stats {
  list-style: none;
  margin: 56px auto 0;
  padding: 26px 18px;
  max-width: 860px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; gap: 28px 18px; } }
.stat {
  position: relative;
  text-align: center;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 12%;
  height: 76%;
  width: 1px;
  background: rgba(255,255,255,.12);
}
@media (max-width: 640px) {
  .stat:nth-child(odd)::before { display: none; }
}
.stat__num {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

/* video */
.video-frame {
  position: relative;
  margin-top: 64px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 60px 110px -34px rgba(0,0,0,.7), 0 0 0 1px rgba(232,201,122,.16);
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

/* ============== SECTIONS ============== */
.section { padding: 120px 0; position: relative; }
.section__head { max-width: 720px; margin: 0 0 60px; }
.section__head--center { margin: 0 auto 60px; text-align: center; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) {
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
}

.prose p { margin: 0 0 18px; color: var(--ink-700); }
.prose p:first-child { font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; color: var(--ink-900); font-weight: 400; }

/* vision */
.section--vision {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
}

/* ============== WHY ============== */
.section--why { background: var(--cream); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .why-grid { grid-template-columns: 1fr; } }

.why-card {
  background: linear-gradient(180deg, var(--paper), #fcf8f1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
/* gradient accent line that grows on hover */
.why-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(201,162,74,.4);
}
.why-card:hover::before { transform: scaleX(1); }
.why-card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ink-900), var(--ink-700));
  color: var(--gold-2);
  border-radius: 14px;
  margin: 0 0 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease);
}
.why-card:hover .why-card__icon { transform: scale(1.06) rotate(-4deg); }
.why-card__icon svg { width: 26px; height: 26px; }
.why-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.why-card p { color: var(--ink-700); margin: 0 0 14px; font-size: 15.5px; }

/* ============== FEATURES ============== */
.section--features { background: var(--paper); }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  padding: 48px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  background: var(--paper);
  transition: background .35s var(--ease);
}
.feature::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold-grad);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s var(--ease);
}
.feature:hover { background: var(--cream); }
.feature:hover::before { transform: scaleY(1); }
.feature__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.15em;
  display: block;
  margin: 0 0 16px;
}
.feature h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.feature p { color: var(--ink-700); margin: 0; font-size: 15.5px; }

/* ============== BENEFITS ============== */
.section--benefits {
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
}
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: benefit;
}
.benefit-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: padding-left .4s var(--ease);
}
.benefit-list li:hover { padding-left: 12px; }
.benefit-list li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 720px) {
  .benefit-list li { grid-template-columns: 1fr; gap: 12px; }
  .benefit-list li:hover { padding-left: 0; }
}
.benefit__index {
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 300;
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.benefit-list h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.65rem;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.benefit-list p { color: var(--ink-700); margin: 0; max-width: 70ch; }

/* ============== HOW ============== */
.section--how { background: var(--ink-900); color: var(--paper); position: relative; overflow: hidden; }
.section--how::before {
  content: "";
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,201,122,.12), transparent 65%);
  pointer-events: none;
}
.section--how .display { color: var(--paper); }
.section--how .display em { color: var(--gold-2); -webkit-text-fill-color: var(--gold-2); }
.section--how .kicker { color: var(--gold-2); }
.section--how .kicker::before, .section--how .kicker::after { background: var(--gold-2); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 32px 26px;
  overflow: hidden;
  transition: transform .4s var(--ease), background .35s, border-color .35s;
}
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.step:hover {
  border-color: rgba(232,201,122,.4);
  background: rgba(232,201,122,.05);
  transform: translateY(-6px);
}
.step:hover::before { transform: scaleX(1); }
.step__head span {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-2);
  font-size: 14px;
  letter-spacing: 0.1em;
}
.step__head h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 6px 0 14px;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.step p { color: rgba(255,255,255,.7); font-size: 15px; margin: 0; }

/* ============== INTEGRATIONS ============== */
.section--integrations { background: var(--paper); }
.logos {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 880px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .logos { grid-template-columns: repeat(2, 1fr); } }
.logos li {
  background: var(--paper);
  padding: 28px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  transition: background .25s;
}
.logos li img {
  max-height: 32px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: .55;
  filter: grayscale(1) contrast(.85);
  transition: opacity .3s var(--ease), filter .3s var(--ease), transform .3s var(--ease);
}
.logos li:hover { background: var(--cream); }
.logos li:hover img {
  opacity: 1;
  filter: none;
  transform: scale(1.06);
}

/* ============== SECURITY ============== */
.section--security { background: var(--cream); }
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .security-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .security-grid { grid-template-columns: 1fr; } }
.sec-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.sec-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.sec-card__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(201,162,74,.18), rgba(201,162,74,.06));
  color: var(--gold);
  margin: 0 0 16px;
  border: 1px solid rgba(201,162,74,.25);
  transition: transform .35s var(--ease);
}
.sec-card:hover .sec-card__icon { transform: scale(1.08); }
.sec-card__icon svg { width: 20px; height: 20px; }
.sec-card h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.sec-card p { margin: 0; color: var(--ink-500); font-size: 14.5px; line-height: 1.55; }

/* ============== CTA ============== */
.section--cta {
  background: var(--paper);
  padding: 80px 0 120px;
}
.cta__panel {
  position: relative;
  background: radial-gradient(ellipse at top right, #1d2d5e 0%, var(--ink-900) 60%, #060b1a 100%);
  color: var(--paper);
  border-radius: 28px;
  padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 80px);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(232,201,122,.14);
}
.cta__panel::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,201,122,.25), transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
}
.cta__panel::after {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(79,138,139,.2), transparent 70%);
  bottom: -150px; left: -150px;
  pointer-events: none;
}
.cta__panel > * { position: relative; }
.cta__panel .lede { margin-left: auto; margin-right: auto; }
.cta__buttons {
  display: flex; justify-content: center; gap: 14px;
  flex-wrap: wrap; margin-top: 36px;
}

/* ============== FOOTER ============== */
.foot {
  background: var(--ink-900);
  color: rgba(255,255,255,.6);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.foot__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot .brand__logo { width: 26px; height: 26px; }
.foot p { margin: 0; font-size: 14px; }

/* ============== REVEAL ANIMATION ============== */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .scroll-progress { display: none; }
}
