@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #050508;
  --bg-2: #0A0B12;
  --surface: #0D0E15;
  --surface-2: #14151F;
  --text: #E6E8EF;
  --text-2: #8B90A3;
  --text-3: #565B6E;
  --accent: #E28743;
  --accent-2: #F0A868;
  --teal: #1B4D3E;
  --teal-2: #2E7A5F;
  --night: #1C2A4A;
  --border: rgba(230, 232, 239, 0.10);
  --border-strong: rgba(230, 232, 239, 0.18);
  --shadow: 0 30px 80px rgba(0,0,0,0.45);
}

:root[data-theme="light"] {
  --bg: #F7F7FA;
  --bg-2: #F2F1F6;
  --surface: #FFFFFF;
  --surface-2: #F0F0F5;
  --text: #14161F;
  --text-2: #5B6072;
  --text-3: #8B8FA0;
  --accent: #C96A2E;
  --accent-2: #B85A20;
  --teal: #155A46;
  --teal-2: #0F4536;
  --night: #2B3E66;
  --border: rgba(20, 22, 31, 0.10);
  --border-strong: rgba(20, 22, 31, 0.16);
  --shadow: 0 20px 60px rgba(20,22,31,0.10);
}

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

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

html, body { width: 100%; max-width: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  transition: background-color .4s ease, color .4s ease;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.display {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
}

/* ---------- Ambient animated backdrop ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}
.ambient::before, .ambient::after, .ambient .blob {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  will-change: transform;
}
.ambient::before {
  width: 60vw; height: 60vw;
  left: -10vw; top: -18vw;
  background: radial-gradient(circle, var(--accent), transparent 65%);
  animation: driftA 26s ease-in-out infinite alternate;
}
.ambient::after {
  width: 55vw; height: 55vw;
  right: -14vw; top: 10vh;
  background: radial-gradient(circle, var(--teal-2), transparent 65%);
  opacity: .4;
  animation: driftB 32s ease-in-out infinite alternate;
}
.ambient .blob {
  width: 45vw; height: 45vw;
  left: 20vw; bottom: -20vh;
  background: radial-gradient(circle, var(--night), transparent 68%);
  opacity: .5;
  animation: driftC 38s ease-in-out infinite alternate;
}
@keyframes driftA {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6vw, 8vh) scale(1.12); }
}
@keyframes driftB {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-8vw, 6vh) scale(1.08); }
}
@keyframes driftC {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5vw, -6vh) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .ambient::before, .ambient::after, .ambient .blob { animation: none; }
}
:root[data-theme="light"] .ambient::before,
:root[data-theme="light"] .ambient::after,
:root[data-theme="light"] .ambient .blob { opacity: .28; }

/* ---------- Nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px max(24px, calc((100vw - 1080px) / 2));
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  text-decoration: none; color: var(--text-2); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.current { color: var(--text); background: var(--surface-2); }

.lang-switch { display: flex; align-items: center; gap: 2px; margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--border); }
.lang-switch a {
  text-decoration: none; color: var(--text-3); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.04em; padding: 6px 8px; border-radius: 6px; transition: color .2s, background-color .2s;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.current { color: var(--accent); }

.nav-toggle { display: none; }
.nav-cluster { display: flex; align-items: center; }

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 16px; padding-bottom: 16px;
  }
  .nav-cluster { flex-direction: column; gap: 8px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 7px 10px; font-size: 13px; }
  .lang-switch { margin-left: 0; padding-left: 0; border-left: none; }
  .theme-toggle { margin-left: 8px; }
}

/* ---------- Layout ---------- */
main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 40px; text-align: center; }
.hero .eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Fraunces', serif; font-weight: 600; font-style: italic;
  font-size: clamp(38px, 6vw, 68px); line-height: 1.08; letter-spacing: -0.01em;
  margin-bottom: 22px; text-wrap: balance;
}
.hero h1 em { color: var(--accent); font-style: italic; }
.hero .lede { color: var(--text-2); font-size: clamp(16px, 2vw, 19px); max-width: 620px; margin: 0 auto 36px; text-wrap: balance; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border-strong);
  padding: 9px 18px; border-radius: 999px; font-size: 13.5px; color: var(--text-2);
  box-shadow: var(--shadow);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-2); }

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--accent); color: #050508; box-shadow: 0 12px 30px rgba(226,135,67,0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(226,135,67,0.36); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head .eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-head h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.01em; margin-bottom: 12px; text-wrap: balance; }
.section-head p { color: var(--text-2); font-size: 16px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid, .grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 28px 26px; box-shadow: var(--shadow); transition: transform .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card .icon { font-size: 26px; margin-bottom: 14px; }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 14.5px; }

/* ---------- Shots gallery ---------- */
.shots {
  display: flex; gap: 22px; overflow-x: auto; padding: 20px 4px 30px;
  scroll-snap-type: x mandatory;
}
.shots::-webkit-scrollbar { height: 6px; }
.shots::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.shots img {
  scroll-snap-align: center;
  width: 220px; border-radius: 28px; flex: none;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5), 0 0 0 1px var(--border-strong);
}

/* ---------- Prose (legal pages) ---------- */
.prose-head { padding: 72px 0 20px; }
.prose-head .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.prose-head h1 { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.01em; margin-bottom: 10px; }
.prose-head .updated { color: var(--text-3); font-size: 13.5px; margin-top: 18px; font-variant-numeric: tabular-nums; }

.clause { padding: 30px 0; border-top: 1px solid var(--border); }
.clause:first-of-type { border-top: none; }
.clause-head { display: flex; gap: 14px; align-items: baseline; margin-bottom: 12px; }
.clause-num { font-size: 13px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; flex: none; width: 24px; }
.clause h2 { font-size: 18.5px; letter-spacing: -0.005em; }
.clause-body { padding-left: 38px; max-width: 66ch; color: var(--text); font-size: 15.5px; }
.clause-body p { margin-bottom: 14px; }
.clause-body p:last-child { margin-bottom: 0; }
.clause-body ul { margin: 0 0 14px; padding-left: 20px; }
.clause-body li { margin-bottom: 8px; }
.clause-body p.muted { color: var(--text-2); font-size: 14.5px; }
.callout { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; margin: 30px 0 40px; }
.callout .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }

@media (max-width: 640px) {
  .clause-body { padding-left: 0; }
  .clause-head { flex-direction: column; gap: 4px; }
}

/* ---------- FAQ (support page) ---------- */
.faq-item { padding: 26px 0; border-top: 1px solid var(--border); }
.faq-item:first-of-type { border-top: none; }
.faq-item h3 { font-size: 17px; margin-bottom: 8px; font-weight: 600; }
.faq-item p { color: var(--text-2); font-size: 15px; max-width: 64ch; }
.faq-item p a { color: var(--accent); }

.contact-card {
  margin-top: 8px; padding: 26px 28px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow);
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.contact-card .label { font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.contact-card .value { font-size: 18px; font-weight: 600; }
.contact-card .value a { color: var(--text); text-decoration: none; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border); margin-top: 60px;
  padding: 44px max(24px, calc((100vw - 1080px) / 2)) 60px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: var(--text-3); font-size: 13.5px;
}
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; color: var(--text-3); transition: color .2s; }
footer a:hover { color: var(--accent); }

/* ---------- Theme toggle button ---------- */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); cursor: pointer; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; margin-left: 10px;
  transition: border-color .2s;
}
.theme-toggle:hover { border-color: var(--accent); }
