/* ════════════════════════════════════════════════════════════════
   dopacap — landing · "Champagne Noir"
   Tokens mirror studio/brand.css ↔ Dopa/Core/Theme.swift.
   ════════════════════════════════════════════════════════════════ */

:root {
  --gold:        #C6A35C;
  --gold-soft:   #EAD7A6;
  --gold-deep:   #9A7C42;
  --noir:        #0B0B0D;
  --charcoal:    #16161A;
  --charcoal-2:  #1E1E24;
  --ivory:       #F3EFE7;
  --muted:       #9B9486;
  --platine:     #C9CDD2;

  --gold-grad:  linear-gradient(150deg, #EAD7A6 0%, #C6A35C 52%, #9A7C42 100%);
  --hair:       rgba(198,163,92,.22);
  --hair-soft:  rgba(198,163,92,.12);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--noir);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(198,163,92,.30); color: var(--ivory); }

img { max-width: 100%; display: block; }

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

/* ── tipografi temelleri ── */
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .42em;
  font-size: 12px;
  color: var(--muted);
}
.gold { color: var(--gold); }
em { font-style: normal; color: var(--gold); }

/* ── ALTIN KURAL: dengeli satırlar — tek başına kalan kelime/yamuk satır yok ──
   Başlıklar dengelenir (balance), gövde metni öksüz kelime bırakmaz (pretty). */
h1, h2, h3,
.sec-title, .closer-title, .honest-title, .hero-tagline, .gate-word,
.at-txt b, .card h3, .step h3, .grail figcaption, .lede {
  text-wrap: balance;
}
.hero-lead, .honest-lede, .card p, .step p, .at-txt small,
.sec-kicker, p.closer-sub, .concept .lede, #grails .lede {
  text-wrap: pretty;
}

/* diamond divider ornament */
.diamond-rule {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 22px 0;
}
.diamond-rule .rule {
  height: 1px; width: 64px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.diamond-rule .rule:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.diamond-rule .diamond {
  width: 9px; height: 9px; transform: rotate(45deg);
  background: var(--gold-grad);
  box-shadow: 0 0 14px rgba(198,163,92,.45);
}
.diamond-rule.small .rule { width: 40px; }

/* ════════════════════ HEADER ════════════════════ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 20px 40px;
  background: rgba(11,11,13,.5);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease), padding .4s var(--ease);
}
.site-head.scrolled {
  background: rgba(11,11,13,.9);
  border-bottom-color: var(--hair);
  padding-top: 13px; padding-bottom: 13px;
}
.brand { justify-self: start; text-decoration: none; display: inline-flex; align-items: center; }
.brand-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: .05em;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.nav {
  justify-self: center; display: flex; align-items: center; gap: 36px;
}
.nav a {
  color: var(--muted); text-decoration: none;
  font-size: 12px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  position: relative; padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 0; height: 1px; background: var(--gold);
  transition: width .35s var(--ease);
}
.nav a:hover { color: var(--ivory); }
.nav a:hover::after { width: 100%; }

.head-actions { justify-self: end; }

.head-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; letter-spacing: .12em; color: var(--muted);
}
.lang-switch button {
  background: none; border: 0; cursor: pointer;
  font: inherit; letter-spacing: inherit;
  color: var(--muted); padding: 2px 1px;
  transition: color .25s var(--ease);
}
.lang-switch button.is-active { color: var(--gold); }
.lang-switch button:hover { color: var(--ivory); }
.lang-sep { opacity: .5; }

/* ════════════════════ BUTONLAR ════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-weight: 600;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease);
  white-space: nowrap;
}
.btn-gold {
  flex-direction: column; gap: 1px;
  background: var(--gold-grad); color: #2A2008;
  padding: 13px 30px; border-radius: 12px;
  box-shadow: 0 10px 30px -12px rgba(198,163,92,.6);
}
.btn-gold .btn-kicker {
  font-size: 10px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; opacity: .7;
}
.btn-gold .btn-label { font-size: 15px; letter-spacing: .01em; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(198,163,92,.75); }
.btn-lg { padding: 16px 44px; }
.btn-lg .btn-label { font-size: 17px; }

.btn-ghost {
  color: var(--ivory); padding: 14px 26px;
  border: 1px solid var(--hair); border-radius: 12px;
  font-size: 15px; font-weight: 500;
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(198,163,92,.06); }

.btn-mini {
  background: var(--gold-grad); color: #2A2008;
  padding: 9px 20px; border-radius: 10px; font-size: 13.5px;
}
.btn-mini:hover { transform: translateY(-1px); }

/* ── App Store badge (Champagne Noir) — 2 boxes: dark badge + gold "Free" ── */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  transition: transform .28s var(--ease);
}
.appstore-badge:hover { transform: translateY(-2px); }
.appstore-badge:active { transform: translateY(0); }
.ab-main {
  display: inline-flex; align-items: center; gap: 13px;
  padding: 12px 22px; border-radius: 14px;
  background: linear-gradient(180deg, #1B1B20 0%, #0E0E12 100%);
  border: 1px solid rgba(198,163,92,.42);
  box-shadow: 0 12px 32px -16px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.05);
  transition: border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.appstore-badge:hover .ab-main {
  border-color: var(--gold);
  box-shadow: 0 18px 44px -18px rgba(198,163,92,.4), 0 12px 32px -16px rgba(0,0,0,.95);
}
.ab-apple { width: 23px; height: auto; flex: 0 0 auto; fill: var(--ivory); margin-top: -2px; }
.ab-txt { display: flex; flex-direction: column; line-height: 1.06; text-align: left; }
.ab-txt small { font-size: 10.5px; letter-spacing: .03em; color: var(--muted); }
.ab-txt b { font-family: var(--sans); font-weight: 600; font-size: 18px; color: var(--ivory); letter-spacing: .01em; }
.ab-free {
  align-self: center; display: inline-flex; align-items: center;
  padding: 4px 11px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); background: rgba(198,163,92,.07);
  border: 1px solid rgba(198,163,92,.38);
}
.badge-lg .ab-main { padding: 15px 30px; }
.badge-lg .ab-apple { width: 27px; }
.badge-lg .ab-txt small { font-size: 11.5px; }
.badge-lg .ab-txt b { font-size: 21px; }
.badge-lg .ab-free { font-size: 11px; padding: 5px 13px; }

/* ════════════════════ HERO ════════════════════ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: 120px 24px 90px;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% 34%, rgba(198,163,92,.16), transparent 62%),
    radial-gradient(1200px 700px at 50% 120%, rgba(198,163,92,.06), transparent 70%);
}
.frame-lines {
  position: absolute; inset: 26px; pointer-events: none;
  border: 1px solid var(--hair-soft);
}
.hero-inner { position: relative; max-width: 760px; }
.hero-icon {
  width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 30px;
  box-shadow: 0 18px 50px -18px rgba(0,0,0,.8), 0 0 0 1px var(--hair);
}
.wordmark-xl {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(58px, 13vw, 132px);
  line-height: .98; letter-spacing: .02em; margin-top: 18px;
  background: linear-gradient(170deg, #F2E2B4 0%, #C6A35C 50%, #8F7138 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-transform: lowercase;
}
.hero-tagline {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(22px, 4.4vw, 33px); color: var(--ivory);
  letter-spacing: .01em;
}
.hero-lead {
  max-width: 560px; margin: 26px auto 0;
  color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); line-height: 1.7;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center; margin-top: 40px;
}
.hero-note {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 34px; color: var(--muted);
  font-size: 13.5px; letter-spacing: .04em;
}
.hero-note .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(198,163,92,.14);
}

/* ════════════════════ BAND (generic section) ════════════════════ */
.band { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.band-alt { background: linear-gradient(180deg, var(--noir), #0E0E11 50%, var(--noir)); }
.band::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--wrap), calc(100% - 56px)); height: 1px;
  background: linear-gradient(90deg, transparent, var(--hair), transparent);
}

.sec-head {
  display: flex; align-items: baseline; gap: 20px; margin-bottom: 54px;
}
.sec-num {
  font-family: var(--serif); font-size: clamp(40px, 7vw, 66px);
  line-height: .8; color: rgba(198,163,92,.4); font-weight: 500;
}
.sec-num.quiet { color: rgba(198,163,92,.28); font-size: 34px; display: block; margin-bottom: 20px; }
.sec-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 5.2vw, 50px); line-height: 1.05; letter-spacing: .005em;
}
.sec-kicker {
  margin-top: 6px; color: var(--muted);
  font-size: 12px; text-transform: uppercase; letter-spacing: .34em;
}

.lede {
  max-width: 760px; font-family: var(--serif);
  font-size: clamp(22px, 3.4vw, 31px); line-height: 1.42;
  color: var(--ivory); font-weight: 400; margin-bottom: 56px;
}

/* ── kartlar / pillars ── */
.pillars, .feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.card {
  position: relative;
  background: linear-gradient(180deg, var(--charcoal), #121216);
  border: 1px solid var(--hair); border-radius: 16px;
  padding: 34px 30px;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover {
  transform: translateY(-4px); border-color: rgba(198,163,92,.5);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.9);
}
.card-idx {
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--gold); opacity: .7;
}
.card h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 26px; margin: 14px 0 10px;
}
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.62; }

/* ── how it works (steps) ── */
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
}
.step {
  position: relative; padding: 30px 26px 30px 24px;
  border-left: 1px solid var(--hair);
}
.step:first-child { border-left: 0; padding-left: 4px; }
.step-no {
  font-family: var(--serif); font-size: 17px; letter-spacing: .1em;
  color: var(--gold); opacity: .65;
}
.step h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 23px; margin: 16px 0 10px; line-height: 1.18;
}
.step p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ── Inside the app — single device, cross-fading screens ── */
.app-showcase {
  display: grid; grid-template-columns: 1fr auto;
  gap: clamp(36px, 6vw, 84px); align-items: center;
  max-width: 1000px; margin: 0 auto;
}
.app-tabs { display: flex; flex-direction: column; gap: 14px; }
.app-tab {
  display: flex; align-items: flex-start; gap: 16px; width: 100%;
  text-align: left; cursor: pointer; font-family: var(--sans);
  background: linear-gradient(180deg, var(--charcoal), #121216);
  border: 1px solid var(--hair); border-radius: 16px;
  padding: 19px 22px; color: var(--ivory);
  transition: border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
.app-tab:hover { transform: translateX(3px); border-color: rgba(198,163,92,.5); }
.app-tab.is-active { border-color: var(--gold); background: linear-gradient(180deg, #1e1b14, #141210); }
.at-ico {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px;
  display: grid; place-items: center; color: var(--gold);
  border: 1px solid var(--hair); background: rgba(198,163,92,.05);
  transition: .35s var(--ease);
}
.app-tab.is-active .at-ico {
  background: var(--gold-grad); color: #1a1407; border-color: transparent;
  box-shadow: 0 8px 20px -10px rgba(198,163,92,.6);
}
.at-ico svg { width: 21px; height: 21px; }
.at-txt b { font-family: var(--serif); font-weight: 600; font-size: 22px; display: block; margin-bottom: 3px; line-height: 1.12; }
.at-txt small { color: var(--muted); font-size: 14px; line-height: 1.5; text-wrap: pretty; }

.app-device { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.device-frame {
  position: relative; flex: 0 0 auto;
  width: clamp(228px, 25vw, 288px); aspect-ratio: 1179 / 2556;
  padding: 11px; border-radius: 14% / 6.4%;
  background: linear-gradient(155deg, #2c2c31 0%, #141417 46%, #050506 100%);
  border: 1px solid rgba(198,163,92,.28);
  box-shadow: 0 50px 100px -42px rgba(0,0,0,1), inset 0 1px 0 rgba(255,255,255,.07);
  animation: floatDevice 5.5s ease-in-out infinite;
}
.device-notch { display: none; }
.device-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 11.5% / 5.3%; overflow: hidden; background: #000;
}
.ds-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.05);
  transition: opacity .85s var(--ease), transform 1s var(--ease);
}
.ds-img.is-active { opacity: 1; transform: none; }
@keyframes floatDevice { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.device-dots { display: flex; gap: 9px; }
.device-dots .dot {
  width: 7px; height: 7px; border-radius: 50%; cursor: pointer;
  background: rgba(198,163,92,.32);
  transition: width .35s var(--ease), background .35s var(--ease), border-radius .35s var(--ease);
}
.device-dots .dot.is-active { width: 22px; border-radius: 4px; background: var(--gold); }

/* ── honesty ── */
.band-honest { background: radial-gradient(1000px 600px at 50% 0%, #121118, var(--noir) 70%); }
.honest-wrap { max-width: 720px; margin: 0 auto; text-align: center; }
.honest-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 6vw, 58px); line-height: 1.05;
}
.honest-lede {
  margin: 22px auto 40px; max-width: 560px;
  color: var(--muted); font-size: 18px; line-height: 1.7;
}
.honest-list {
  list-style: none; display: grid;
  grid-template-columns: repeat(2, 1fr); justify-content: center;
  gap: 13px 14px; max-width: 600px; margin: 0 auto;
}
.honest-list li {
  width: 100%; text-align: center;
  padding: 12px 22px; border: 1px solid var(--hair); border-radius: 999px;
  font-size: 14.5px; color: var(--ivory); letter-spacing: .01em;
  position: relative; white-space: nowrap;
}
.honest-list li::before {
  content: '◆'; color: var(--gold); font-size: 9px;
  margin-right: 9px; vertical-align: middle; opacity: .8;
}

/* ════════════════════ CLOSER ════════════════════ */
.closer {
  position: relative; text-align: center; overflow: hidden;
  padding: clamp(100px, 14vw, 170px) 24px;
  border-top: 1px solid var(--hair);
}
.closer-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 460px at 50% 18%, rgba(198,163,92,.18), transparent 64%);
}
.closer-inner { position: relative; max-width: 640px; margin: 0 auto; }
.closer-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 6.4vw, 62px); line-height: 1.06;
  margin: 18px 0 38px;
}
.closer-sub {
  margin-top: 26px; color: var(--muted);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(16px, 2.4vw, 19px); letter-spacing: .01em;
}
.closer-meta {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 12px;
  color: rgba(155,148,134,.78); font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase;
}
.closer-meta .diamond {
  width: 5px; height: 5px; transform: rotate(45deg);
  background: var(--gold); display: inline-block;
}

/* ════════════════════ FOOTER ════════════════════ */
.site-foot {
  text-align: center; padding: 64px 24px 72px;
  border-top: 1px solid var(--hair-soft);
}
.foot-mark {
  font-family: var(--serif); font-weight: 600; font-size: 30px;
  letter-spacing: .05em;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.foot-sub {
  margin-top: 4px; color: var(--muted);
  font-size: 11px; letter-spacing: .42em; text-transform: uppercase;
}
.foot-meta {
  margin-top: 24px; color: rgba(155,148,134,.7);
  font-size: 13px; letter-spacing: .03em;
}

/* ════════════════════ SCROLL REVEAL ════════════════════ */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }
.reveal:nth-child(4) { transition-delay: .18s; }

/* ════════════════════ MYSTERIOUS ENTRANCE (gate) ════════════════════ */
body.gated { overflow: hidden; height: 100svh; }

.gate {
  position: fixed; inset: 0; z-index: 9999; overflow: hidden;
  background: var(--noir);
}
.gate.gone { display: none; }
.gate-panel {
  position: absolute; left: 0; width: 100%; height: 50.5%; z-index: 1;
  background:
    radial-gradient(700px 360px at 50% 100%, rgba(198,163,92,.06), transparent 70%),
    linear-gradient(180deg, #101013 0%, #060608 100%);
  transition: transform 1.15s cubic-bezier(.76,0,.24,1);
}
.gate-top    { top: 0;    box-shadow: inset 0 -1px 0 var(--hair-soft); }
.gate-bottom { bottom: 0; box-shadow: inset 0 1px 0 var(--hair-soft);
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(198,163,92,.06), transparent 70%),
    linear-gradient(0deg, #101013 0%, #060608 100%); }
.gate.open .gate-top    { transform: translateY(-100%); }
.gate.open .gate-bottom { transform: translateY(100%); }

/* glowing seam where the doors meet */
.gate-seam {
  position: absolute; left: 0; right: 0; top: 50%; height: 1px; z-index: 3;
  transform: translateY(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(198,163,92,.45) 35%, rgba(234,215,166,.85) 50%, rgba(198,163,92,.45) 65%, transparent);
  opacity: .35; transition: opacity .5s ease, box-shadow .6s ease;
}
.gate.unlocking .gate-seam { opacity: 1; box-shadow: 0 0 30px 5px rgba(198,163,92,.45); }
.gate.open .gate-seam { opacity: 0; }

.gate-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  transition: opacity .55s ease;
}
.gate.open .gate-content { opacity: 0; pointer-events: none; }
.gate-eyebrow {
  font-size: 11px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.gate-word {
  font-family: var(--serif); font-weight: 600; text-transform: lowercase;
  font-size: clamp(46px, 12vw, 96px); line-height: 1; letter-spacing: .04em;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.gate-maison {
  margin-top: 10px; font-size: 11px; letter-spacing: .5em;
  text-transform: uppercase; color: var(--muted);
}

.lock {
  position: relative; margin: 42px 0 0; padding: 0;
  width: clamp(168px, 44vw, 224px); aspect-ratio: 220 / 320;
  background: none; border: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lock-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.lock .key {
  transform-box: view-box; transform-origin: 110px 172px;
  transition: transform 1s cubic-bezier(.66,0,.2,1), opacity .6s ease;
}
.lock .medallion { transition: filter .6s ease; }
.lock-glow {
  position: absolute; left: 50%; top: 59%; width: 66%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(198,163,92,.5), transparent 64%);
  opacity: .22; filter: blur(10px); pointer-events: none;
  transition: opacity .6s ease, transform .8s ease;
}
.lock:hover .lock-glow { opacity: .42; }
.lock:hover .key { transform: rotate(-7deg); }
/* expanding light burst from the keyhole on unlock */
.lock-burst {
  position: absolute; left: 50%; top: 55%; width: 12px; height: 12px;
  transform: translate(-50%, -50%) scale(0); border-radius: 50%; opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(244,232,196,.95) 0%, rgba(198,163,92,.55) 38%, transparent 70%);
}
.gate.unlocking .lock-burst { animation: lockBurst 1.15s cubic-bezier(.3,.7,.3,1) .12s forwards; }
@keyframes lockBurst {
  0%   { opacity: .95; transform: translate(-50%, -50%) scale(0); }
  55%  { opacity: .65; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(38); }
}
.lock:focus-visible { outline: none; }
.lock:focus-visible .medallion { filter: drop-shadow(0 0 10px rgba(198,163,92,.55)); }

/* unlock sequence */
.gate.unlocking .key { transform: rotate(86deg); }
.gate.unlocking .lock-glow { opacity: .9; transform: translate(-50%, -50%) scale(1.5); }
.gate.unlocking .medallion { filter: drop-shadow(0 0 18px rgba(198,163,92,.65)); }
.gate.unlocking .lock { cursor: default; }

.gate-hint {
  margin-top: 32px; color: var(--muted); font-size: 12.5px;
  letter-spacing: .16em; text-transform: uppercase;
  animation: hintPulse 2.6s ease-in-out infinite;
}
@keyframes hintPulse { 0%,100% { opacity: .42; } 50% { opacity: 1; } }
.gate.unlocking .gate-hint { animation: none; color: var(--gold); opacity: 1; }

/* ════════════════════ HERO COVER + SCROLL CUE ════════════════════ */
.hero-cover {
  position: absolute; inset: 0; pointer-events: none;
  background: url('assets/cover.png') center/cover no-repeat;
  opacity: .16;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 42%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 42%, #000 25%, transparent 78%);
}
.scroll-cue {
  position: absolute; bottom: 62px; left: 50%; transform: translateX(-50%);
  width: 25px; height: 40px; border: 1px solid var(--hair); border-radius: 13px;
  display: flex; justify-content: center; z-index: 3;
  background: rgba(11,11,13,.4); backdrop-filter: blur(2px);
}
.scroll-cue span {
  width: 3px; height: 8px; border-radius: 2px; background: var(--gold);
  margin-top: 7px; animation: cue 1.9s ease-in-out infinite;
}
@keyframes cue {
  0% { opacity: 0; transform: translateY(-4px); }
  40% { opacity: 1; } 80% { opacity: 0; transform: translateY(9px); }
}

/* ════════════════════ THE GRAILS (horizontal rail) ════════════════════ */
.band-grails { background: linear-gradient(180deg, var(--noir), #0C0C0F 50%, var(--noir)); }
.grail-rail {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 28px 26px; margin-top: 10px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.grail-rail::-webkit-scrollbar { display: none; }
.grail { flex: 0 0 auto; width: min(76vw, 332px); scroll-snap-align: center; }
.grail img {
  width: 100%; height: auto; aspect-ratio: 1080 / 1350; object-fit: cover;
  border-radius: 16px; border: 1px solid var(--hair); display: block;
  box-shadow: 0 30px 70px -34px rgba(0,0,0,.9);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.grail img:hover {
  transform: translateY(-6px); border-color: rgba(198,163,92,.5);
  box-shadow: 0 46px 92px -40px rgba(0,0,0,1);
}
.rail-hint {
  text-align: center; color: var(--muted); font-size: 11.5px;
  letter-spacing: .22em; text-transform: uppercase; margin-top: 2px;
}

/* ════════════════════ FOOTER SOCIAL ════════════════════ */
.foot-social {
  margin-top: 22px; display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}
.foot-social a {
  color: var(--ivory); opacity: .82; text-decoration: none;
  font-size: 13px; letter-spacing: .07em;
  transition: color .25s var(--ease), opacity .25s var(--ease);
}
.foot-social a:hover { color: var(--gold); opacity: 1; }
.foot-social .diamond {
  width: 4px; height: 4px; transform: rotate(45deg);
  background: var(--gold); display: inline-block; opacity: .65;
}

/* ════════════════════ RESPONSIVE ════════════════════ */
@media (max-width: 1024px) {
  .nav { gap: 18px; }
  .nav a { font-size: 13px; }
  .pillars, .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2px; }
  .step:nth-child(3) { border-left: 0; padding-left: 4px; }
}

/* Inside-the-app: stack phone above the feature tabs */
@media (max-width: 880px) {
  .app-showcase { grid-template-columns: 1fr; gap: 42px; justify-items: center; }
  .app-device { order: -1; }
  .app-tabs { width: 100%; max-width: 460px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .wrap { padding: 0 22px; }
  .nav { display: none; }
  .site-head { display: flex; justify-content: space-between; padding: 14px 22px; }
  .sec-head { margin-bottom: 40px; }
  .pillars, .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; border-top: 1px solid var(--hair); padding: 26px 4px; }
  .step:first-child { border-top: 0; }
  .frame-lines { inset: 16px; }
  .grail { width: min(82vw, 300px); }
  .gate-content { padding: 24px 20px; }
  .lock { margin-top: 34px; }
  .honest-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .head-actions { gap: 12px; }
  .btn-mini { padding: 8px 16px; font-size: 12.5px; }
  .hero { padding: 104px 20px 72px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-cta .appstore-badge { width: 100%; justify-content: center; }
  .honest-list li { font-size: 13.5px; padding: 10px 18px; }
  .app-tab { padding: 16px 18px; }
  .card { padding: 28px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gate-panel, .lock .key, .lock-glow, .gate-content, .gate-seam { transition: none; }
  .gate-hint, .scroll-cue span, .lock-burst { animation: none; }
  .device-frame { animation: none; }
  .ds-img { transition: opacity .2s linear; }
}
