/* ============ SkinOS — warm design system ============ */

:root {
  --cream: #F6EFE6;
  --ivory: #FBF7F0;
  --terracotta: #C4674A;
  --terracotta-deep: #A94F35;
  --amber: #D99A4E;
  --copper: #A96F44;
  --bronze: #8A5A3B;
  --ink: #3B2A20;
  --ink-soft: #6B5546;
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 50% 0%, #FAF4EA 0%, var(--cream) 55%, #EFE4D4 100%);
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--terracotta); color: var(--ivory); }

/* ---------- header ---------- */

#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 56px);
}
.logo {
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.logo span { color: var(--terracotta); font-style: italic; }
#topbar nav { display: flex; gap: 28px; }
#topbar nav a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--ink-soft); text-decoration: none; transition: color 0.2s;
}
#topbar nav a:hover { color: var(--terracotta); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--terracotta); color: var(--ivory);
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: 0.03em;
  border: none; border-radius: 999px; cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 10px 30px -12px rgba(196, 103, 74, 0.55);
}
.btn:hover { background: var(--terracotta-deep); transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(196, 103, 74, 0.6); }
.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(59, 42, 32, 0.28);
}
.btn-ghost:hover { background: rgba(59, 42, 32, 0.06); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(59, 42, 32, 0.4); }
.btn-small { padding: 10px 20px; font-size: 13px; }

/* ---------- shared type ---------- */

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
}
h1 {
  font-family: var(--font-display); font-weight: 340; font-size: clamp(44px, 7.2vw, 104px);
  line-height: 1.02; letter-spacing: -0.015em;
}
h1 em, h2 em { font-style: italic; color: var(--terracotta); }
h2 {
  font-family: var(--font-display); font-weight: 380; font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.08; letter-spacing: -0.01em; margin-bottom: 18px;
}
.sub { font-size: clamp(15px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-soft); }

/* ---------- sections ---------- */

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

.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  text-align: left;
  padding: 90px clamp(20px, 7vw, 110px) 0;
}
.hero-copy { max-width: min(54vw, 900px); }
.hero h1 { font-size: clamp(42px, 5vw, 88px); }
@media (max-width: 768px) { .hero-copy { max-width: 100%; } }
.hero .sub { margin-top: 26px; }
.hero-actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }

.beat {
  min-height: 110svh;
  display: flex; align-items: center;
  padding: 0 clamp(20px, 7vw, 110px);
}

.card {
  max-width: 460px;
  padding: clamp(28px, 3vw, 44px);
  background: rgba(251, 247, 240, 0.62);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(169, 111, 68, 0.18);
  border-radius: 22px;
  box-shadow: 0 30px 60px -30px rgba(59, 42, 32, 0.25);
}
.card p { font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.card .btn { margin-top: 22px; }
.chips { display: none; margin-top: 18px; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--bronze);
  padding: 6px 12px; border: 1px solid rgba(169, 111, 68, 0.35); border-radius: 999px;
}

/* ---------- CTA / footer ---------- */

.cta {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 0;
}
.cta h2 { font-size: clamp(44px, 6vw, 88px); }
.cta .sub { margin-top: 14px; }
.cta-actions {
  margin-top: 36px;
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}

.cta footer {
  margin: auto -24px 0;
  width: calc(100% + 48px);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px clamp(20px, 4vw, 56px);
  font-size: 12px; line-height: 1.6; color: var(--ink-soft);
  /* The disclaimer has to stay readable over the 3D model behind it. */
  background: rgba(238, 228, 216, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* ---------- grain ---------- */

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

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  #topbar nav { display: none; }
}

@media (max-width: 768px) {
  .hero { align-items: center; text-align: center; padding-top: 110px; justify-content: flex-start; }
  .hero-actions { justify-content: center; }
  .chips { display: flex; }
  .beat { align-items: flex-end; padding-bottom: 8vh; }
  .beat { justify-content: center; }
  /* On a phone the card sits directly over the 3D model. */
  .card { max-width: 100%; background: rgba(251, 247, 240, 0.92); }
  .br-d { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
