/* ═══════════════════════════════════════════════════════════
   SYNTEXHUB — The Private AI Atelier
   Design system: champagne gold · ivory · near-black
   ═══════════════════════════════════════════════════════════ */

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

::selection { background: rgba(200, 161, 92, 0.28); color: #F5EFDD; }

:root {
  --bg: #0A0A0C;
  --bg-raise: #0D0D11;
  --bg-footer: #08080A;
  --line: rgba(200, 161, 92, 0.16);
  --line-soft: rgba(237, 231, 218, 0.08);
  --gold: #C8A15C;
  --gold-bright: #E3C88F;
  --gold-deep: #A87F42;
  --ivory: #EDE7DA;
  --text: #C9C3B6;
  --muted: #8E887C;
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --px: clamp(1.25rem, 5vw, 5.5rem);
  --gold-gradient: linear-gradient(105deg, #E9D5A3 0%, #C8A15C 48%, #A87F42 100%);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.75 var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ivory);
  line-height: 1.12;
  letter-spacing: 0.005em;
}

a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

img, svg { display: block; }

/* Thin luxury scrollbar */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #0B0B0E; }
::-webkit-scrollbar-thumb { background: #2A2A30; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8C6D33; }
html { scrollbar-color: #2A2A30 #0B0B0E; scrollbar-width: thin; }

/* ═══ Shared atoms ═══ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.accent {
  font-style: italic;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-right: 0.05em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1.15rem 2.1rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(180deg, #E3C88F 0%, #B98F4C 100%);
  color: #16120A;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}
.btn-gold:hover {
  background: linear-gradient(180deg, #EFDAAC 0%, #C89A55 100%);
  box-shadow: 0 12px 40px rgba(200, 161, 92, 0.28), 0 1px 0 rgba(255,255,255,0.3) inset;
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: rgba(200, 161, 92, 0.38);
  color: var(--ivory);
  background: transparent;
}
.btn-ghost:hover {
  border-color: rgba(200, 161, 92, 0.85);
  background: rgba(200, 161, 92, 0.06);
  transform: translateY(-2px);
}

.btn-small { padding: 0.85rem 1.6rem; font-size: 0.68rem; }

/* ═══ Navigation ═══ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 12, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.nav-inner {
  width: min(1240px, 100% - 2 * var(--px));
  margin-inline: auto;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ivory);
}
.wordmark span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2.4rem;
}
.nav-links a {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ivory);
  margin-inline: auto;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.nav-toggle[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 8, 10, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: var(--px);
}
.mobile-menu[hidden] { display: none; }
.mobile-links { display: flex; flex-direction: column; text-align: center; }
.mobile-links a {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--ivory);
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-links a:last-child { border-bottom: none; }
.mobile-cta { min-width: min(320px, 80vw); }

/* ═══ Hero ═══ */

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 7.5rem var(--px) 5.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 72% 18%, rgba(200, 161, 92, 0.08), transparent 70%),
    radial-gradient(ellipse 38% 38% at 18% 82%, rgba(200, 161, 92, 0.05), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(200, 161, 92, 0.04), transparent 70%);
}

.hero-seal {
  position: absolute;
  right: 8%;
  top: 50%;
  width: clamp(200px, 24vw, 340px);
  height: auto;
  transform: translateY(-50%);
  opacity: 0.55;
  animation: seal-rotate 120s linear infinite;
  pointer-events: none;
}
@keyframes seal-rotate { to { transform: translateY(-50%) rotate(360deg); } }

.hero-inner {
  position: relative;
  max-width: 860px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.04;
  text-wrap: balance;
}

.lede {
  max-width: 620px;
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.fine {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═══ Motto strip ═══ */

.motto {
  border-block: 1px solid var(--line-soft);
  background: #0B0B0E;
  overflow: hidden;
}
.motto-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.motto-seq {
  display: flex;
  align-items: center;
  padding-block: 1.15rem;
}
.motto-item {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  padding-inline: 2.6rem;
  white-space: nowrap;
}
.motto-diamond {
  width: 9px;
  height: 9px;
  fill: var(--gold);
  opacity: 0.8;
  flex: none;
}
@keyframes marquee { to { transform: translateX(-33.3333%); } }

/* ═══ Sections ═══ */

.band { padding: clamp(5rem, 11vw, 8.5rem) 0; }
.band-alt {
  background: linear-gradient(180deg, #0D0D11 0%, #0B0B0E 100%);
  border-block: 1px solid var(--line-soft);
}

.container {
  width: min(1200px, 100% - 2 * var(--px));
  margin-inline: auto;
}

section[id] { scroll-margin-top: 100px; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  max-width: 720px;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.section-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); text-wrap: balance; }
.section-lede {
  max-width: 560px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

/* Practice cards */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.card {
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(237, 231, 218, 0.022), rgba(237, 231, 218, 0.005));
  padding: 2.6rem 2.2rem 2.8rem;
  transition: border-color 0.45s ease, transform 0.45s ease, background 0.45s ease;
}
.card:hover {
  border-color: rgba(200, 161, 92, 0.35);
  transform: translateY(-5px);
  background: linear-gradient(180deg, rgba(200, 161, 92, 0.045), rgba(237, 231, 218, 0.005));
}
.card-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  margin-bottom: 1.9rem;
}
.card-icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.42rem; margin-bottom: 0.9rem; min-height: 2.3em; }
.card p { font-size: 0.92rem; line-height: 1.8; color: var(--muted); }

/* Method steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  list-style: none;
}
.step {
  position: relative;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.step::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.6rem;
  height: 1px;
  background: var(--gold);
}
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.step h3 { font-size: 1.35rem; }
.step p { font-size: 0.92rem; line-height: 1.8; color: var(--muted); }

/* Split layouts (Privacy / Concierge) */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: start;
}
.split-text { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 120px; }
.split-text h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); text-wrap: balance; }
.split-lede { color: var(--muted); font-size: 0.98rem; line-height: 1.85; max-width: 480px; }
.split-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
  padding-top: 0.5rem;
}
.split-coda {
  margin-top: 1.5rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.guarantee {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.1rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.guarantees { border-top: 1px solid var(--line-soft); }
.guarantee-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.75rem;
  color: var(--gold);
  line-height: 1.2;
}
.guarantee h3 { font-size: 1.18rem; margin-bottom: 0.45rem; }
.guarantee p { font-size: 0.9rem; line-height: 1.75; color: var(--muted); }

/* Concierge stats */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.stat {
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(237, 231, 218, 0.02), transparent);
  padding: 2.1rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: border-color 0.4s ease;
}
.stat:hover { border-color: rgba(200, 161, 92, 0.35); }
.stat-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.2rem, 3.4vw, 2.9rem);
  line-height: 1;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.8;
}

/* ═══ Access ═══ */

.access { text-align: center; }
.access-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 0.9rem;
}
.ornament .rule {
  width: 84px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 161, 92, 0.55));
}
.ornament .rule:last-child {
  background: linear-gradient(90deg, rgba(200, 161, 92, 0.55), transparent);
}
.ornament-diamond { width: 9px; height: 9px; fill: var(--gold); }
.split-text .ornament {
  justify-content: flex-start;
  margin: 1.25rem 0 0;
}
.split-text .ornament .rule { width: 56px; }
.access .eyebrow::after {
  content: '';
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.access h2 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 820px; text-wrap: balance; }
.access-lede {
  max-width: 640px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.85;
}

/* ═══ Footer ═══ */

.footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-footer);
  padding: clamp(3.5rem, 7vw, 5rem) 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}
.footer-tag {
  margin-top: 1.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}
.footer-links { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links a {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--gold); }
.footer-note {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 2.1;
  align-self: start;
}
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6B665B;
}

/* ═══ Reveal animations ═══ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ═══ Responsive ═══ */

@media (max-width: 1100px) {
  .hero-seal { display: none; }
}

@media (max-width: 1024px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-text { position: static; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .nav-inner { height: 72px; }
}

/* ═══ Reduced motion ═══ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motto-track { animation: none; justify-content: center; }
  .hero-seal { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .stat { transition: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
