/* ============================================================
   ALTYN Therapy — Meta-safe microsite
   Premium dark-gold aesthetic. No external runtime, system-fast.
   ============================================================ */

:root {
  --bg-main: #050607;
  --bg-soft: #0c0d0f;
  --bg-card: rgba(18, 18, 20, 0.74);
  --bg-card-solid: #111114;
  --gold: #d6b46a;
  --gold-soft: #f1d08a;
  --gold-deep: #a88842;
  --burgundy: #5a1424;
  --rose: #b96c6c;
  --text-main: #f6f1e8;
  --text-muted: #b9aea0;
  --text-dim: #8a8074;
  --line-soft: rgba(214, 180, 106, 0.22);
  --line-faint: rgba(214, 180, 106, 0.08);

  --font-display: 'Cormorant Garamond', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv01';
}

::selection { background: rgba(214, 180, 106, 0.35); color: #fff; }

a { color: var(--gold-soft); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

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

p { margin: 0 0 1em; color: var(--text-muted); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 500; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; font-family: var(--font-body); letter-spacing: -0.005em; }

/* Layout container */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

/* Ambient background light */
.ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 12%, rgba(214, 180, 106, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 60% at 8% 90%, rgba(90, 20, 36, 0.18), transparent 65%);
}

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

main, header, footer, section { position: relative; z-index: 2; }

/* ============== TOP NAV ============== */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-faint);
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.18em;
  color: var(--text-main); text-transform: uppercase;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-soft), var(--gold-deep) 75%);
  box-shadow: 0 0 18px rgba(214, 180, 106, 0.35);
}
.brand-name strong { font-weight: 500; }
.brand-name span { color: var(--text-dim); font-weight: 400; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 0.86rem; color: var(--text-muted); letter-spacing: 0.04em;
}
.nav-links a:hover { color: var(--gold-soft); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ============== HERO ============== */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center;
  padding: 80px 0 90px;
  min-height: 78vh;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: ''; width: 36px; height: 1px; background: var(--gold);
}

.hero h1 { color: var(--text-main); margin-bottom: 26px; }
.hero h1 em {
  font-style: italic; color: var(--gold-soft); font-weight: 400;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-muted); max-width: 540px; line-height: 1.6; margin-bottom: 36px;
}

.offer-line {
  display: inline-flex; gap: 16px; align-items: center; flex-wrap: wrap;
  padding: 14px 20px; border: 1px solid var(--line-soft);
  border-radius: 999px; background: rgba(18, 18, 20, 0.55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 0.92rem; color: var(--text-main); margin-bottom: 40px;
}
.offer-line .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: 0.7; }

.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  font-family: var(--font-body); font-size: 0.96rem; font-weight: 600;
  letter-spacing: 0.01em; text-decoration: none;
  cursor: pointer; border: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  position: relative;
}

.btn-primary {
  color: #1a1408;
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  box-shadow: 0 10px 30px -10px rgba(214, 180, 106, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px -12px rgba(214, 180, 106, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #0a0805;
}
.btn-primary::after {
  content: '→'; font-size: 1.05rem; font-weight: 400; transition: transform .25s ease;
}
.btn-primary:hover::after { transform: translateX(3px); }

.btn-ghost {
  color: var(--text-main); background: transparent;
  border: 1px solid var(--line-soft);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.hero-disclaimer {
  margin-top: 32px;
  font-size: 0.82rem; color: var(--text-dim); letter-spacing: 0.01em; line-height: 1.55;
}
.hero-disclaimer .dot { color: var(--gold); margin: 0 8px; opacity: 0.6; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1023 / 1537;
  max-height: 720px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line-faint);
}
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% center;
  filter: contrast(1.02) brightness(0.98);
}
.hero-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,6,7,0.55) 100%);
  pointer-events: none;
}
.hero-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 30% 30%, rgba(214,180,106,0.08), transparent 60%);
  z-index: 1; pointer-events: none;
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 48px 0 70px; min-height: auto; }
  .hero-visual { order: -1; max-height: 520px; aspect-ratio: 4/5; }
}

/* ============== Mobile-first hero (≤768px) ============== */
.h1-mobile { display: none; }
.h1-desktop { display: inline; }
.sub-mobile { display: none; }
.sub-desktop { display: inline; }

@media (max-width: 768px) {
  .nav { padding: 10px 0; border-bottom: none; }
  .brand { font-size: 1rem; letter-spacing: 0.14em; }
  .brand-mark { width: 18px; height: 18px; }
  .container { padding: 0 18px; }

  .hero { padding: 8px 0 36px; gap: 14px; }
  /* IMAGE FIRST on mobile — premium ad hero */
  .hero-visual {
    order: 0;
    max-height: 28vh;
    aspect-ratio: 5 / 4;
    margin-bottom: 4px;
    border-radius: 22px;
  }
  .hero-visual img { object-position: center 32%; }
  .hero-text { order: 1; }

  .h1-mobile { display: block; }
  .h1-desktop { display: none; }
  .sub-mobile { display: inline; }
  .sub-desktop { display: none; }

  .hero-eyebrow { margin-bottom: 8px; font-size: 0.66rem; letter-spacing: 0.18em; }
  .hero-eyebrow::before { width: 24px; }
  .hero h1 {
    font-size: clamp(2rem, 8.5vw, 2.45rem);
    line-height: 1.03;
    margin-bottom: 10px;
    letter-spacing: -0.015em;
  }
  .hero-sub { font-size: 16px; line-height: 1.4; margin-bottom: 12px; max-width: 100%; }

  .offer-line {
    padding: 9px 12px; font-size: 14px; gap: 6px;
    margin-bottom: 12px; width: 100%; justify-content: center;
    white-space: nowrap; overflow: hidden;
  }

  .cta-row { width: 100%; flex-direction: column; gap: 8px; align-items: stretch; }
  .cta-row .btn {
    width: 100%;
    height: 56px;
    padding: 0 22px;
    font-size: 16px;
    border-radius: 999px;
  }
  .cta-row .btn::after { font-size: 1rem; }

  .hero-disclaimer { margin-top: 12px; font-size: 0.72rem; text-align: center; line-height: 1.5; }
}

/* ============== SECTION HEADER ============== */
.section { padding: 90px 0; border-top: 1px solid var(--line-faint); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.76rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.section-head p { font-size: 1.05rem; color: var(--text-muted); }

/* ============== FORMAT CARDS ============== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-faint); border-radius: var(--radius-md);
  padding: 36px 30px; position: relative; transition: border-color .3s ease, transform .3s ease;
}
.card:hover { border-color: var(--line-soft); transform: translateY(-2px); }
.card-num {
  font-family: var(--font-display); font-size: 0.95rem;
  color: var(--gold); letter-spacing: 0.18em;
  margin-bottom: 22px;
  display: inline-flex; align-items: center; gap: 12px;
}
.card-num::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); width: 50px; }
.card h3 { margin-bottom: 14px; color: var(--text-main); }
.card p { color: var(--text-muted); font-size: 0.96rem; margin: 0; }

/* ============== INCLUDES / EXCLUDES ============== */
.duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px;
}
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

.panel {
  background: var(--bg-card); border: 1px solid var(--line-faint);
  border-radius: var(--radius-md); padding: 34px 32px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.panel h3 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 500;
  letter-spacing: 0.02em; margin-bottom: 22px;
}
.panel.in h3 { color: var(--gold-soft); }
.panel.out h3 { color: var(--text-muted); }

.list { list-style: none; padding: 0; margin: 0; }
.list li {
  padding: 12px 0 12px 24px; position: relative;
  color: var(--text-muted); font-size: 0.96rem;
  border-bottom: 1px solid var(--line-faint);
}
.list li:last-child { border-bottom: none; }
.list li::before {
  content: ''; position: absolute; left: 0; top: 21px;
  width: 10px; height: 1px; background: var(--gold); opacity: 0.7;
}
.panel.out .list li::before { background: var(--text-dim); opacity: 0.5; }

/* ============== FAQ ============== */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line-faint);
  padding: 6px 0;
}
.faq-q {
  width: 100%; background: transparent; border: 0;
  padding: 28px 36px 28px 0; text-align: left;
  color: var(--text-main); font-family: var(--font-body);
  font-size: 1.08rem; font-weight: 500; line-height: 1.45;
  cursor: pointer; position: relative; letter-spacing: -0.005em;
}
.faq-q::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--gold); font-weight: 300;
  transition: transform .3s ease;
}
.faq-item[open] .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  padding: 0 36px 28px 0; color: var(--text-muted); font-size: 0.98rem; line-height: 1.65;
  margin: 0;
}

/* ============== FINAL CTA ============== */
.final {
  text-align: center; padding: 110px 0 100px;
  border-top: 1px solid var(--line-faint);
  position: relative;
}
.final::before {
  content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 200px; height: 1px; background: var(--gold); opacity: 0.5;
}
.final h2 { max-width: 720px; margin-left: auto; margin-right: auto; margin-bottom: 22px; }
.final p { color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }
.final .micro { margin-top: 28px; color: var(--text-dim); font-size: 0.82rem; }

/* ============== FOOTER ============== */
.foot {
  border-top: 1px solid var(--line-faint);
  padding: 50px 0 80px;
  color: var(--text-dim);
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 36px; } }
.foot-brand .brand { margin-bottom: 18px; }
.foot-brand p { font-size: 0.9rem; color: var(--text-dim); max-width: 360px; }
.foot h4 {
  font-family: var(--font-body); font-size: 0.76rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 18px;
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 12px; }
.foot a { color: var(--text-muted); font-size: 0.92rem; }
.foot a:hover { color: var(--gold-soft); }
.foot-bottom {
  margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line-faint);
  font-size: 0.8rem; color: var(--text-dim);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}

/* ============== LEGAL PAGES ============== */
.legal {
  max-width: 760px; margin: 0 auto; padding: 80px 0 90px;
}
.legal h1 {
  font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 14px;
}
.legal .updated {
  color: var(--text-dim); font-size: 0.84rem; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 40px;
}
.legal h2 {
  font-size: 1.4rem; margin-top: 44px; margin-bottom: 16px; color: var(--gold-soft);
  font-family: var(--font-body); font-weight: 600; letter-spacing: -0.005em;
}
.legal p, .legal li { color: var(--text-muted); font-size: 1rem; line-height: 1.75; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { border-bottom: 1px solid var(--line-soft); }

.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.88rem; margin-bottom: 40px;
}
.back-link:hover { color: var(--gold-soft); }

/* ============== BRIDGE PAGE ============== */
.bridge {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; text-align: center;
}
.bridge-inner { max-width: 540px; }
.bridge-mark {
  width: 64px; height: 64px; margin: 0 auto 30px;
  border-radius: 50%; position: relative;
  background: radial-gradient(circle at 35% 30%, var(--gold-soft), var(--gold-deep) 75%);
  box-shadow: 0 0 50px rgba(214, 180, 106, 0.4);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 50px rgba(214, 180, 106, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 70px rgba(214, 180, 106, 0.6); }
}
.bridge h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 18px; }
.bridge p { font-size: 1.02rem; color: var(--text-muted); margin-bottom: 32px; }
.bridge .copy-line {
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--radius-md); padding: 14px 18px;
  font-family: var(--font-body); font-size: 0.92rem; color: var(--text-main);
  margin: 28px auto; display: inline-block;
  letter-spacing: 0.01em;
}
.bridge-meta {
  margin-top: 30px; font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.05em;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition: none !important; }
}
