/* ============================================
   BLACK RING — LANDINGS DESIGN SYSTEM v1
   Editorial Motion · Dark · Gold
   ============================================ */

/* ==== TOKENS ==== */
:root {
  /* Colors */
  --bg:         #0b0b0c;
  --bg-2:       #0f0f10;
  --bg-3:       #151516;
  --line:       rgba(255,255,255,0.07);
  --line-2:     rgba(255,255,255,0.14);
  --cream:      #f5f1e8;
  --text:       #ede8dc;
  --text-dim:   #9a948a;
  --text-mute:  #5e5a54;
  --gold:       #c9a961;
  --gold-bright:#e0c37f;
  --gold-dim:   #6d5c35;
  --success:    #25d366;

  /* Spacing scale (8-based) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;
  --s-9: 140px;
  --s-10: 200px;

  /* Typography scale (fluid) */
  --fs-xs:   12px;
  --fs-sm:   13px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   clamp(20px, 1.6vw, 24px);
  --fs-xl:   clamp(26px, 2.4vw, 36px);
  --fs-2xl:  clamp(32px, 3.5vw, 48px);
  --fs-3xl:  clamp(40px, 5vw, 72px);
  --fs-hero: clamp(44px, 7vw, 104px);

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Shadows / glows */
  --glow-gold: 0 20px 60px -15px rgba(201,169,97,0.45);
  --glow-soft: 0 20px 40px -20px rgba(0,0,0,0.6);

  /* Motion */
  --ease:     cubic-bezier(.22,1,.36,1);
  --ease-io:  cubic-bezier(.76,0,.24,1);

  /* Layout */
  --maxw: 1320px;
  --pad:  clamp(20px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--text); }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--gold); color: #000; }

/* ==== NOISE OVERLAY ==== */
.noise {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 500;
  opacity: 0.03; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ==== SCROLL PROGRESS ==== */
.scroll-bar {
  position: fixed; top: 0; left: 0;
  height: 1px; width: 0%; background: var(--gold);
  z-index: 200; transition: width 0.08s linear;
}

/* ==== NAV ==== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 22px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(11,11,12,0.7);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--cream);
  font-family: 'Fraunces', serif;
  font-size: 18px; font-weight: 400;
  letter-spacing: -0.01em;
}
.brand em { color: var(--gold); font-style: italic; font-size: 14px; }
.brand-ring {
  width: 14px; height: 14px;
  border: 1.5px solid var(--cream); border-radius: 50%;
  position: relative;
}
.brand-ring::after {
  content: ''; position: absolute; inset: 4px;
  background: var(--cream); border-radius: 50%;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--cream); font-size: 13px; letter-spacing: 0.04em;
  font-family: 'IBM Plex Mono', monospace;
  position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute;
  left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  color: var(--gold) !important;
  padding: 9px 18px; border-radius: var(--r-full);
  border: 1px solid var(--gold-dim);
  transition: all 0.25s var(--ease);
}
.nav-cta:hover {
  background: var(--gold); color: #000 !important;
  border-color: var(--gold);
}

/* ==== ATOMIC: Eyebrow / Tag ==== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--fs-xs); color: var(--text-dim);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.dot {
  width: 7px; height: 7px; background: var(--gold);
  border-radius: 50%; box-shadow: 0 0 12px var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ==== ATOMIC: Headings ==== */
.h1, .h-hero {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: var(--fs-hero);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--cream);
  max-width: 16ch;
}
.h1 em, .h-hero em { color: var(--gold); font-style: italic; }
.h1 .dim, .h-hero .dim { color: var(--text-dim); font-weight: 300; }

.h2, .sec-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: var(--fs-3xl);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--cream);
  max-width: 22ch;
}
.h2 em, .sec-title em { color: var(--gold); font-style: italic; }

.h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: var(--fs-xl);
  letter-spacing: -0.02em;
  color: var(--cream);
}

.lede {
  font-size: var(--fs-md);
  color: var(--text-dim);
  max-width: 52ch;
  line-height: 1.6;
  font-weight: 300;
}

/* ==== COMPONENT: Button Magnetic ==== */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
  cursor: pointer;
  will-change: transform;
}
.btn-primary {
  background: var(--gold);
  color: #0a0a0b;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-lg { padding: 20px 38px; font-size: 16px; }
.btn .arr {
  transition: transform 0.3s var(--ease);
}
.btn:hover .arr { transform: translateX(5px); }

/* ==== COMPONENT: Hero ==== */
.hero {
  position: relative;
  padding: 160px var(--pad) 80px;
  min-height: 92vh;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-ring {
  position: absolute; top: 50%; right: -150px;
  transform: translateY(-50%);
  width: 720px; height: 720px;
  pointer-events: none; opacity: 0.8;
  will-change: transform;
}
.hero-ring svg { width: 100%; height: 100%; }
.ring-slow, .ring-mid, .ring-fast { transform-origin: center; transform-box: fill-box; }
.ring-slow { animation: spin 120s linear infinite; }
.ring-mid  { animation: spin 60s linear infinite reverse; }
.ring-fast { animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  z-index: 2;
  display: flex; flex-direction: column; gap: var(--s-6);
}
.hero-foot {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-7);
  align-items: end;
  max-width: 1100px;
  margin-top: var(--s-5);
}
.hero-ctas {
  display: flex; align-items: center; gap: var(--s-4);
  flex-wrap: wrap;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-dim); letter-spacing: 0.04em;
}
.hero-meta em { color: var(--gold); font-style: normal; margin-right: 8px; }

/* ==== COMPONENT: Section Head ==== */
.sec-head {
  max-width: var(--maxw);
  margin: 0 auto var(--s-7);
  padding: 0 var(--pad);
}

/* ==== COMPONENT: Stat Grid ==== */
.stats-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat {
  padding: var(--s-6) var(--s-5);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: background 0.4s var(--ease);
}
.stat:hover { background: var(--bg-2); }
.stat-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--fs-xs); color: var(--text-mute);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.stat-tag em { color: var(--gold); font-style: normal; margin-right: 6px; }
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 300; line-height: 0.95;
  letter-spacing: -0.04em; color: var(--cream);
}
.stat-label {
  font-size: var(--fs-sm); color: var(--text-dim);
  line-height: 1.45;
}

/* ==== COMPONENT: Feature Grid ==== */
.features {
  padding: var(--s-9) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feat-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-3);
}
.feat {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5);
  transition: all 0.35s var(--ease);
  position: relative; overflow: hidden;
}
.feat::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(201,169,97,0.08), transparent 60%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.feat:hover {
  transform: translateY(-6px);
  border-color: var(--gold-dim);
}
.feat:hover::before { opacity: 1; }
.feat-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--fs-xs); color: var(--gold);
  letter-spacing: 0.1em; margin-bottom: var(--s-3);
}
.feat h3 {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: var(--fs-lg); color: var(--cream);
  margin-bottom: var(--s-2); letter-spacing: -0.02em;
}
.feat p {
  font-size: var(--fs-sm); color: var(--text-dim);
  line-height: 1.55;
}

/* ==== COMPONENT: Split Content ==== */
.split {
  padding: var(--s-9) 0;
}
.split-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-7);
  align-items: center;
}
.split.reverse .split-inner { grid-template-columns: 1.1fr 1fr; direction: rtl; }
.split.reverse .split-inner > * { direction: ltr; }
.split-body ul {
  list-style: none;
  margin: var(--s-4) 0;
  border-top: 1px solid var(--line);
}
.split-body li {
  padding: var(--s-3) 0;
  padding-left: var(--s-4);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-base); color: var(--text);
  position: relative;
}
.split-body li::before {
  content: '→';
  position: absolute; left: 0; top: var(--s-3);
  color: var(--gold);
}
.split-visual {
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 20% 30%, rgba(201,169,97,0.22), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(201,169,97,0.12), transparent 50%),
    linear-gradient(135deg, #1a1612, #0c0a07);
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
}
.split-visual::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(201,169,97,0.04) 14px, rgba(201,169,97,0.04) 15px);
}

/* ==== COMPONENT: FAQ Accordion ==== */
.faq {
  padding: var(--s-9) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  background: transparent; border: none;
  padding: var(--s-4) 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  text-align: left;
  font-family: 'Fraunces', serif;
  font-size: var(--fs-lg); font-weight: 400;
  color: var(--cream); letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.faq-q:hover { color: var(--gold); }
.faq-q .icon {
  width: 28px; height: 28px;
  border: 1px solid var(--line-2); border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold); font-family: 'IBM Plex Mono', monospace;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease), background 0.25s;
}
.faq-item.open .faq-q .icon {
  transform: rotate(45deg);
  background: var(--gold); color: #000;
}
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s var(--ease), padding 0.5s var(--ease);
  color: var(--text-dim); line-height: 1.6;
}
.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 0 var(--s-4) 0;
}

/* ==== COMPONENT: Internal Link Hub (SEO-critical) ==== */
.hub {
  padding: var(--s-9) 0;
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}
.hub-head {
  max-width: var(--maxw); margin: 0 auto var(--s-6);
  padding: 0 var(--pad); text-align: center;
}
.hub-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-3);
}
.hub-link {
  padding: var(--s-5);
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: var(--s-2);
  transition: all 0.3s var(--ease);
  position: relative;
}
.hub-link:hover {
  border-color: var(--gold-dim);
  background: var(--bg-2);
  transform: translateY(-3px);
}
.hub-link .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: var(--gold);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.hub-link .title {
  font-family: 'Fraunces', serif;
  font-size: var(--fs-lg); color: var(--cream);
  letter-spacing: -0.01em; line-height: 1.2;
}
.hub-link .desc {
  font-size: var(--fs-sm); color: var(--text-dim);
  line-height: 1.5;
}
.hub-link .arr {
  margin-top: var(--s-3);
  color: var(--gold);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  transition: transform 0.3s var(--ease);
}
.hub-link:hover .arr { transform: translateX(6px); }

/* ==== COMPONENT: CTA Final ==== */
.cta-final {
  position: relative;
  padding: var(--s-10) var(--pad);
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(201,169,97,0.08), transparent 60%);
}
.cta-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  z-index: 2;
}
.cta-meta {
  margin-top: var(--s-5);
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--fs-sm); color: var(--text-mute);
  letter-spacing: 0.04em;
}
.cta-meta .sep { margin: 0 12px; color: var(--gold); }

/* ==== COMPONENT: Footer ==== */
.footer {
  padding: var(--s-6) var(--pad) var(--s-4);
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column; gap: var(--s-3);
  align-items: center; text-align: center;
}
.foot-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif; font-size: 18px;
}
.foot-claim { color: var(--text-dim); font-style: italic; }
.foot-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--fs-xs); color: var(--text-mute);
  letter-spacing: 0.04em;
}

/* ==== FLOATING WA ==== */
.float-wa {
  position: fixed; bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  background: var(--success); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -5px rgba(37,211,102,0.5);
  z-index: 90;
  transition: all 0.25s var(--ease);
}
.float-wa:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 40px -5px rgba(37,211,102,0.75);
}

/* ==== REVEAL ANIMATIONS ==== */
.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-up.in { opacity: 1; transform: translateY(0); }

.mask { display: block; overflow: hidden; line-height: 1.05; padding-bottom: 0.05em; }
.mask-in { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.ready .mask-in { transform: translateY(0); }
.ready .h-hero .mask:nth-child(1) .mask-in { transition-delay: 0.1s; }
.ready .h-hero .mask:nth-child(2) .mask-in { transition-delay: 0.22s; }
.ready .h-hero .mask:nth-child(3) .mask-in { transition-delay: 0.34s; }
.ready .h-hero .mask:nth-child(4) .mask-in { transition-delay: 0.46s; }

/* ==== RESPONSIVE ==== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-foot { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .split-inner { grid-template-columns: 1fr; }
  .split.reverse .split-inner { grid-template-columns: 1fr; direction: ltr; }
  .split-visual { order: -1; aspect-ratio: 16/10; }
  .hero-ring { width: 500px; height: 500px; opacity: 0.5; right: -200px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { display: flex; }
  .hero { padding: 110px var(--pad) 60px; min-height: auto; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
}

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