/* ============================================================
   SOFIE — LANDING PAGE
   Aesthetic: Refined editorial dark luxury
   ============================================================ */

/* --- TOKENS ------------------------------------------------ */
:root {
  --ink:        #0c0b0a;
  --ink-2:      #1a1917;
  --ink-3:      #2a2825;
  --cream:      #f0ebe0;
  --cream-2:    #d9d2c3;
  --cream-3:    #a89e8c;
  --gold:       #c8a96a;
  --gold-2:     #e2c98a;
  --gold-glow:  rgba(200,169,106,0.18);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Syne', sans-serif;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- RESET ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* --- CUSTOM CURSOR ----------------------------------------- */
.cursor {
  position: fixed; z-index: 10000; pointer-events: none;
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.08s var(--ease-expo), width 0.25s var(--ease-expo), height 0.25s var(--ease-expo), background 0.25s;
  mix-blend-mode: difference;
}
.cursor-trail {
  position: fixed; z-index: 9998; pointer-events: none;
  width: 32px; height: 32px;
  border: 1px solid rgba(200,169,106,0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: left 0.12s var(--ease-expo), top 0.12s var(--ease-expo), width 0.3s var(--ease-expo), height 0.3s var(--ease-expo), opacity 0.3s;
}
body:has(a:hover) .cursor, body:has(button:hover) .cursor { width: 18px; height: 18px; }
body:has(a:hover) .cursor-trail, body:has(button:hover) .cursor-trail { width: 48px; height: 48px; opacity: 0.6; }

/* --- SCROLL REVEAL ----------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-expo), transform 0.8s var(--ease-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- NAV --------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 70px;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(12,11,10,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200,169,106,0.08);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--cream);
}
.nav-links {
  display: flex; gap: 2.5rem;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-3);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cream); }
.nav-cta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--gold); color: var(--ink); }

/* --- HERO -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
}
#orb-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 820px;
  padding: clamp(7rem, 12vw, 10rem) clamp(1.5rem, 6vw, 5rem) 6rem;
  text-align: left;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 2.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.5; }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  color: var(--cream);
}
.hero-title .line { display: block; }
.hero-title .italic { font-style: italic; color: var(--gold-2); }
.hero-sub {
  max-width: 480px;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.75;
  color: var(--cream-3);
  margin-bottom: 3rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem;
}
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  border-radius: 2px;
  transition: background 0.25s, transform 0.2s var(--ease-back);
}
.btn-primary:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn-ghost {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cream-3);
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--cream); }
.btn-ghost .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-expo);
}
.btn-ghost:hover .arrow { transform: translateY(4px); }
.hero-scroll-hint {
  position: absolute; bottom: 3rem; left: clamp(1.5rem, 6vw, 5rem);
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream-3);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--cream-3), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- MARQUEE ----------------------------------------------- */
.marquee-wrapper {
  overflow: hidden;
  border-top: 1px solid rgba(200,169,106,0.12);
  border-bottom: 1px solid rgba(200,169,106,0.12);
  background: var(--ink-2);
  padding: 1rem 0;
}
.marquee-track {
  display: flex; align-items: center;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: var(--cream-2);
  padding: 0 1.5rem;
  letter-spacing: 0.04em;
}
.marquee-track .sep {
  color: var(--gold);
  font-style: normal;
  padding: 0 0.5rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

/* --- FEATURES ---------------------------------------------- */
.features {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 7vw, 6rem);
  max-width: 1300px;
  margin: 0 auto;
}
.features-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
}
.section-title em { font-style: italic; color: var(--gold-2); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: rgba(200,169,106,0.08);
  border: 1px solid rgba(200,169,106,0.08);
}
.feature-card {
  position: relative;
  background: var(--ink);
  padding: 2.5rem 2rem;
  overflow: hidden;
  transition: background 0.3s;
}
.feature-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold-glow);
  opacity: 0;
  transition: opacity 0.4s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card--wide {
  grid-column: span 2;
}
.card-wide-content {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  height: 100%;
}
.card-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--cream-3);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}
.card-icon {
  width: 40px; height: 40px;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 100%; height: 100%; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.7rem;
  line-height: 1.2;
}
.feature-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--cream-3);
}

/* Privacy orb */
.privacy-orb {
  position: relative;
  width: 120px; height: 120px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200,169,106,0.25);
  animation: orbRotate 8s linear infinite;
}
.orb-ring:nth-child(1) { width: 100%; height: 100%; animation-duration: 10s; }
.orb-ring:nth-child(2) { width: 72%; height: 72%; animation-duration: 7s; animation-direction: reverse; border-color: rgba(200,169,106,0.4); }
.orb-ring:nth-child(3) { width: 44%; height: 44%; animation-duration: 5s; border-color: rgba(200,169,106,0.6); }
.orb-core {
  width: 18px; height: 18px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 24px 8px var(--gold-glow);
}
@keyframes orbRotate {
  from { transform: rotate(0deg) scaleX(1); }
  50% { transform: rotate(180deg) scaleX(0.6); }
  to { transform: rotate(360deg) scaleX(1); }
}

/* --- HOW IT WORKS ------------------------------------------ */
.how {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 7vw, 6rem);
  background: var(--ink-2);
  border-top: 1px solid rgba(200,169,106,0.08);
  border-bottom: 1px solid rgba(200,169,106,0.08);
}
.how-label { margin-bottom: 3.5rem; }
.how-steps {
  max-width: 900px;
  display: flex; flex-direction: column; gap: 0;
}
.step {
  display: flex; gap: clamp(2rem, 5vw, 4rem);
  align-items: flex-start;
  padding: 2.5rem 0;
}
.step-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  min-width: 60px;
  line-height: 1;
}
.step-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.step-content p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--cream-3);
  max-width: 460px;
}
.step-connector {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(200,169,106,0.3), rgba(200,169,106,0.05));
  margin-left: 30px;
}

/* --- TESTIMONIALS ------------------------------------------ */
.testimonials {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 7vw, 6rem);
  max-width: 1300px;
  margin: 0 auto;
}
.testimonials .section-label { margin-bottom: 0.8rem; }
.testimonials .section-title { margin-bottom: clamp(3rem, 5vw, 4.5rem); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(200,169,106,0.08);
  border: 1px solid rgba(200,169,106,0.08);
}
.testimonial {
  background: var(--ink);
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  transition: background 0.3s;
}
.testimonial:hover { background: var(--ink-2); }
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.75;
  color: var(--cream-2);
}
.testimonial cite {
  display: flex; align-items: center; gap: 0.9rem;
  font-style: normal;
}
.cite-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: hsl(var(--hue), 35%, 28%);
  border: 1px solid hsl(var(--hue), 45%, 40%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  color: hsl(var(--hue), 60%, 80%);
  flex-shrink: 0;
}
.testimonial cite strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cream);
}
.testimonial cite em {
  display: block;
  font-size: 0.76rem;
  font-style: normal;
  color: var(--cream-3);
  margin-top: 0.1rem;
}

/* --- WAITLIST ---------------------------------------------- */
.waitlist {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  border-top: 1px solid rgba(200,169,106,0.1);
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 7vw, 6rem);
  text-align: center;
}
.waitlist-inner {
  position: relative; z-index: 2;
  max-width: 580px;
  margin: 0 auto;
}
.waitlist-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
  margin: 0.8rem 0 1.2rem;
}
.waitlist-inner h2 em { font-style: italic; color: var(--gold-2); }
.waitlist-sub {
  font-size: 0.92rem;
  color: var(--cream-3);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.waitlist-form {
  display: flex; gap: 0;
  border: 1px solid rgba(200,169,106,0.3);
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.3s;
}
.waitlist-form:focus-within { border-color: var(--gold); }
.waitlist-form input {
  flex: 1;
  background: transparent;
  border: none; outline: none;
  padding: 1rem 1.4rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--cream);
}
.waitlist-form input::placeholder { color: var(--cream-3); }
.waitlist-form button {
  background: var(--gold);
  border: none;
  padding: 1rem 1.8rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.waitlist-form button:hover { background: var(--gold-2); }
.waitlist-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--gold);
  min-height: 1.2em;
}

/* Decorative circles */
.waitlist-deco { position: absolute; inset: 0; pointer-events: none; }
.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200,169,106,0.06);
}
.c1 { width: 600px; height: 600px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.c2 { width: 400px; height: 400px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.c3 { width: 200px; height: 200px; top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* --- FOOTER ------------------------------------------------ */
.footer {
  padding: 2.5rem clamp(1.5rem, 7vw, 6rem);
  border-top: 1px solid rgba(200,169,106,0.1);
}
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(200,169,106,0.06);
  margin-bottom: 1.5rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--cream-2);
}
.footer-nav {
  display: flex; gap: 2rem;
}
.footer-nav a {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-3);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--cream); }
.footer-bottom {
  display: flex; justify-content: space-between;
  font-size: 0.76rem;
  color: var(--cream-3);
  opacity: 0.6;
}

/* --- RESPONSIVE -------------------------------------------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--wide { grid-column: span 2; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .card-wide-content { flex-direction: column; align-items: flex-start; }
  .privacy-orb { display: none; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: span 1; }
  .nav-cta { display: none; }
  .hero-scroll-hint { display: none; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form button { padding: 0.9rem; }
  .cursor, .cursor-trail { display: none; }
  body { cursor: auto; }
}
