/* ============================================================
   Ring Sizer — Premium dark/gold design system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Surfaces */
  --bg:        #08080A;
  --bg-1:      #0B0B0E;
  --bg-2:      #101015;
  --surface:   #131318;
  --surface-2: #17171E;

  /* Ink */
  --ink:       #F4EFE6;
  --ink-soft:  #CFC7B6;
  --muted:     #8E8878;
  --muted-2:   #6C6858;

  /* Gold */
  --gold-1:    #F6E7B6;
  --gold-2:    #E0C079;
  --gold-3:    #C4A059;
  --gold-4:    #9C7C42;
  --gold-grad: linear-gradient(135deg, #F8ECC0 0%, #E3C57E 42%, #BE9852 100%);
  --gold-grad-soft: linear-gradient(135deg, rgba(248,236,192,.16), rgba(190,152,82,.06));

  /* Lines */
  --line:      rgba(224,192,121,0.16);
  --line-soft: rgba(255,255,255,0.06);
  --line-gold: rgba(224,192,121,0.32);

  --shadow-lg: 0 40px 120px -40px rgba(0,0,0,0.9);
  --shadow-gold: 0 24px 80px -30px rgba(190,152,82,0.45);

  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(60% 30% at 50% 0%, rgba(196,160,89,0.14), transparent 60%),
    radial-gradient(45% 22% at 85% 12%, rgba(196,160,89,0.06), transparent 60%),
    radial-gradient(50% 24% at 8% 42%, rgba(196,160,89,0.05), transparent 60%);
  background-repeat: no-repeat;
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(224,192,121,0.28); color: #fff; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "◆";
  font-size: 8px;
  color: var(--gold-3);
}

.serif-num { font-family: 'Cormorant Garamond', serif; font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 2px;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .3s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold-grad);
  color: #1a1408;
  box-shadow: 0 10px 40px -12px rgba(196,160,89,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 55px -14px rgba(196,160,89,0.7); }
.btn-ghost {
  background: transparent;
  color: var(--gold-1);
  border-color: var(--line-gold);
}
.btn-ghost:hover { border-color: var(--gold-2); background: rgba(224,192,121,0.06); transform: translateY(-2px); }

.link-gold {
  color: var(--gold-2);
  border-bottom: 1px solid var(--line-gold);
  transition: color .3s, border-color .3s;
}
.link-gold:hover { color: var(--gold-1); border-color: var(--gold-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,10,0.92);
  border-bottom: 1px solid var(--line-soft);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(8,8,10,0.6); backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%); }
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
}
.logo-mark {
  width: 20px; height: 20px;
  display: inline-block;
  background: var(--gold-grad);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 18px -2px rgba(224,192,121,0.6);
}
.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color .25s;
}
.nav a:hover { color: var(--gold-2); }
.nav .pill {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-1);
  border: 1px solid var(--line-gold);
  border-radius: 100px;
  padding: 7px 14px;
}
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 108px 28px 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-emblem { margin-bottom: 34px; filter: drop-shadow(0 20px 50px rgba(196,160,89,0.35)); }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(3.2rem, 8.5vw, 6.6rem);
  font-weight: 500;
  max-width: 15ch;
  line-height: 0.98;
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-standards {
  margin-top: 52px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-standards .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold-3); }

/* ---------- Section scaffolding ---------- */
.section { padding: 100px 0; position: relative; }
.section-head { max-width: 620px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 500;
  margin-bottom: 18px;
}
.section-head p { color: var(--ink-soft); font-size: 1.1rem; max-width: 52ch; }
.section-head.center p { margin-left: auto; margin-right: auto; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-gold), transparent);
  border: 0;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ---------- App showcase ---------- */
.app-showcase { text-align: center; }
.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-1);
  border: 1px solid var(--line-gold);
  background: var(--gold-grad-soft);
  border-radius: 100px;
  padding: 10px 20px;
}
.beta-badge .blink {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 10px 1px rgba(224,192,121,0.9);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.devices {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 58px;
}
.device-col { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.device-col.raised { transform: translateY(-26px); }
.device-caption {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.device-caption strong { display: block; color: var(--ink); font-weight: 600; letter-spacing: 0.16em; margin-bottom: 4px; }

.device {
  width: 258px;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(155deg, #2a2a30, #0d0d10 55%, #202027);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.6);
  position: relative;
}
.device::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 42px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.14);
  pointer-events: none;
}
.device-screen {
  border-radius: 34px;
  overflow: hidden;
  background: #0A0A0B;
  aspect-ratio: 390 / 844;
}
.device-screen svg { width: 100%; height: 100%; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step {
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 38px 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
  transition: border-color .4s, transform .4s var(--ease);
}
.step:hover { border-color: var(--line-gold); transform: translateY(-4px); }
.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.4rem;
  font-weight: 400;
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 20px;
}
.step h3 { font-size: 1.7rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Features grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 4px; overflow: hidden; }
.feature {
  background: var(--bg-1);
  padding: 40px 34px;
  transition: background .4s;
}
.feature:hover { background: var(--surface); }
.feature-mark {
  width: 42px; height: 42px;
  margin-bottom: 22px;
  color: var(--gold-2);
}
.feature h3 { font-size: 1.55rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.97rem; }

/* ---------- AI Vision ---------- */
.vision {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 80% 10%, rgba(196,160,89,0.14), transparent 55%),
    radial-gradient(70% 90% at 10% 90%, rgba(196,160,89,0.08), transparent 55%),
    var(--bg-1);
  padding: 72px 60px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}
.vision .eyebrow { margin-bottom: 22px; }
.vision h2 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); margin-bottom: 22px; }
.vision p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 18px; max-width: 48ch; }
.vision ul { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.vision li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-soft); font-size: 1rem; }
.vision li::before { content: "◆"; color: var(--gold-2); font-size: 9px; margin-top: 7px; flex: none; }
.vision-tag {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-1); border: 1px solid var(--line-gold);
  border-radius: 100px; padding: 6px 14px; margin-bottom: 24px;
}
.vision-art { display: flex; justify-content: center; align-items: center; }
.vision-art svg { filter: drop-shadow(0 20px 60px rgba(196,160,89,0.3)); }

/* ---------- Jeweler CTA band ---------- */
.jeweler {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 80px 40px;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(196,160,89,0.12), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-1));
}
.jeweler .eyebrow { margin-bottom: 22px; }
.jeweler h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 20px; }
.jeweler p { color: var(--ink-soft); font-size: 1.14rem; max-width: 54ch; margin: 0 auto 36px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 70px 0 40px;
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 54px; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; margin-top: 20px; max-width: 34ch; }
.kodeora {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 22px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-soft); border-radius: 100px;
  padding: 9px 16px; transition: border-color .3s, color .3s;
}
.kodeora strong { color: var(--gold-2); font-weight: 600; }
.kodeora .k-arrow { color: var(--gold-2); }
.kodeora:hover { border-color: var(--line-gold); color: var(--ink-soft); }
.footer-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a { color: var(--ink-soft); font-size: 0.95rem; transition: color .25s; }
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 30px; border-top: 1px solid var(--line-soft);
  color: var(--muted-2); font-size: 0.85rem;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--gold-2); }

/* ---------- Doc pages (privacy / terms / support) ---------- */
.doc-page { padding: 80px 0 60px; }
.doc-content { max-width: 760px; margin: 0 auto; }
.doc-content h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 12px; }
.doc-meta { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.04em; margin-bottom: 40px; }
.doc-content h2 { font-size: 1.9rem; margin: 44px 0 14px; }
.doc-content h3 { font-size: 1.4rem; margin: 30px 0 10px; color: var(--ink); }
.doc-content p { color: var(--ink-soft); margin-bottom: 16px; }
.doc-content ul { margin: 0 0 18px 4px; padding-left: 22px; color: var(--ink-soft); }
.doc-content li { margin-bottom: 9px; }
.doc-content a { color: var(--gold-2); border-bottom: 1px solid var(--line-gold); }
.doc-content a:hover { color: var(--gold-1); }
.doc-content strong { color: var(--ink); font-weight: 600; }

.callout {
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold-3);
  background: var(--gold-grad-soft);
  border-radius: 4px;
  padding: 22px 26px;
  margin: 8px 0 40px;
}
.callout p { color: var(--ink-soft); margin: 0; }

.faq-grid { display: grid; gap: 2px; margin: 24px 0 40px; }
.faq {
  background: var(--bg-1);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 26px 28px;
  transition: border-color .3s;
}
.faq:hover { border-color: var(--line-gold); }
.faq h3 { font-size: 1.35rem; margin-bottom: 8px; }
.faq p { margin: 0; }

.contact-card {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 48px 32px;
  margin-top: 48px;
  background: radial-gradient(70% 120% at 50% 0%, rgba(196,160,89,0.1), transparent 60%), var(--bg-1);
}
.contact-card h3 { font-size: 2rem; margin-bottom: 10px; }
.contact-card p { color: var(--ink-soft); margin-bottom: 26px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .blink { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .nav { gap: 26px; }
  .nav a:not(.pill) { display: none; }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .vision { grid-template-columns: 1fr; padding: 54px 34px; }
  .vision-art { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .device-col.raised { transform: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { gap: 18px; }
  .nav a:not(.pill) { display: none; }
  .section { padding: 72px 0; }
  .hero { padding: 72px 22px 64px; }
  .hero-cta { flex-direction: column; width: 100%; max-width: 320px; }
  .hero-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
