/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

@font-face {
  font-family: "Cormorant Garamond Local";
  src: url("CormorantGaramond-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: block;
}

:root {
  --bg: #0a0911;
  --surface: #ffffff;
  --surface-alt: #f3f1ee;
  --border: #e8e5e0;
  --text: #18161f;
  --text-secondary: #5f596f;
  --text-tertiary: #8b8497;
  --accent: #bca7ff;
  --accent-hover: #cab9ff;
  --radius: 18px;
  --max-w: 920px;
  --hero-bg: #06060a;
  --hero-text: #f7f4ff;
  --hero-muted: rgba(238, 232, 255, 0.76);
  --hero-outline: rgba(255, 255, 255, 0.08);
}

html {
  scroll-behavior: smooth;
  background: var(--hero-bg);
}

body {
  font-family: "Cormorant Garamond Local", "Cormorant Garamond", Georgia, serif;
  background: var(--hero-bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.page-vanta {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    center / cover no-repeat
    url("bg1.jpg");
  opacity: 0;
  transition: opacity 0.45s ease-out;
}

.page-sheen {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.84));
}

.site-shell {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.page-main {
  width: min(100%, 1200px);
  margin: 0 auto;
  flex: 1;
  min-height: 0;
  padding: 84px 24px 12px;
  display: flex;
}

/* ── Nav ─────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 5, 7, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--hero-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon {
  height: 24px;
  width: 24px;
  object-fit: contain;
}

.nav-links { display: flex; gap: 24px; align-items: center; }

.nav-links a {
  color: rgba(247, 244, 255, 0.72);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--hero-text); text-decoration: none; }

.nav-cta {
  background: rgba(245, 240, 255, 0.12) !important;
  color: var(--hero-text) !important;
  padding: 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-weight: 600 !important;
  font-size: 16px !important;
  transition: background 0.15s, border-color 0.15s;
}

.nav-cta:hover {
  background: rgba(245, 240, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.18);
  text-decoration: none !important;
}

.intro-panel {
  flex: 1;
  min-height: 0;
  padding: 42px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-body {
  width: 100%;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  max-width: 680px;
  margin: 0 auto 18px;
  color: var(--hero-text);
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.intro-panel h1 {
  max-width: 980px;
  margin: 0 auto 20px;
  color: var(--hero-text);
  font-family: "Cormorant Garamond Local", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 0.98;
}

.intro-subtitle {
  margin: 0 auto 36px;
  color: var(--hero-muted);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.18;
}

.device-showcase {
  position: relative;
  width: min(100%, 920px);
  height: clamp(320px, 44vh, 480px);
  margin: 0 auto 58px;
  perspective: 1200px;
}

.device-showcase::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(54vw, 520px);
  height: min(28vw, 240px);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(188, 167, 255, 0.14) 0%, rgba(188, 167, 255, 0.05) 42%, transparent 72%);
  filter: blur(24px);
  pointer-events: none;
}

.device-phone,
.device-appstore {
  position: absolute;
  bottom: 0;
  height: 100%;
  width: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  filter: drop-shadow(0 28px 70px rgba(0, 0, 0, 0.34));
  transform-origin: center bottom;
  opacity: 0;
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.device-phone {
  left: 22%;
  z-index: 1;
  transform: rotate(-7deg) translateY(10px);
}

.device-appstore {
  left: 44%;
  height: 90%;
  z-index: 2;
  transform: rotate(6deg) translateY(-6px);
}

body.visuals-ready .page-vanta,
body.visuals-ready .device-phone,
body.visuals-ready .device-appstore {
  opacity: 1;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.app-store-badge-link {
  display: inline-flex;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}

.app-store-badge-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
  text-decoration: none;
}

.app-store-badge {
  display: block;
  width: auto;
  height: 60px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--hero-text);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  text-decoration: none;
}

/* ── Footer ──────────────────────────────────── */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 14px 0 18px;
  flex-shrink: 0;
  background: rgba(5, 5, 7, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left p {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-top: 2px;
}

.footer-links { display: flex; gap: 20px; }

.footer-links a {
  color: rgba(247, 244, 255, 0.62);
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--hero-text);
  text-decoration: none;
}

/* ── Legal pages ─────────────────────────────── */
.legal-page {
  padding: 100px 0 80px;
  max-width: 640px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 6px;
}

.legal-page .last-updated {
  color: var(--text-tertiary);
  font-size: 13px;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 8px;
}

.legal-page p, .legal-page li {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.legal-page ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.legal-page a { color: var(--accent); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .page-main {
    padding: 82px 18px 10px;
  }
  .intro-panel {
    padding: 24px 20px;
  }
  .intro-panel h1 {
    max-width: 360px;
    font-size: 34px;
    margin-bottom: 18px;
  }
  .intro-subtitle {
    font-size: 16px;
    margin-bottom: 28px;
  }
  .device-showcase {
    width: min(100%, 330px);
    height: clamp(220px, 34svh, 300px);
    margin-bottom: 36px;
  }
  .device-phone,
  .device-appstore {
    position: absolute;
    bottom: 0;
    width: auto;
    max-height: none;
  }
  .device-phone {
    left: 10%;
    height: 100%;
    transform: rotate(-7deg) translateY(6px);
  }
  .device-appstore {
    left: 47%;
    height: 88%;
    transform: rotate(6deg) translateY(-4px);
  }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-left { display: none; }
  .footer-links { justify-content: center; }
  .footer-links a { font-size: 13px; }
  .hero-actions {
    width: 100%;
  }
  .app-store-badge {
    height: 58px;
  }
}
