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

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:         #0a0a0a;
  --surface:    #111111;
  --surface2:   #191919;
  --border:     rgba(255,255,255,0.07);
  --border2:    rgba(255,255,255,0.13);
  --text:       #e8e8e8;
  --text-dim:   #888888;
  --text-faint: #444444;
  --white:      #ffffff;
  --accent:     #c8c8c8;
  --ring1:      rgba(255,255,255,0.18);
  --ring2:      rgba(255,255,255,0.07);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Outfit', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --radius-card: 20px;
  --radius-btn:  999px;

  --transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 300;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

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

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; font-weight: 400; }

p  { color: var(--text-dim); font-size: 1rem; max-width: 55ch; }

/* ── Layout helpers ─────────────────────────────────────────── */
.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

section { padding-block: 100px; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: 0;
}

/* ── NAV ────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.75);
  transition: background var(--transition);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-logo span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-btn);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text) !important;
  background: var(--surface2);
  transition: background var(--transition), border-color var(--transition);
}
.nav-cta:hover {
  background: var(--surface);
  border-color: rgba(255,255,255,0.25);
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--white);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(255,255,255,0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  background: var(--surface2);
}

/* App Store badge */
.appstore-btn {
  display: inline-block;
  transition: transform var(--transition), opacity var(--transition);
}
.appstore-btn:hover { transform: translateY(-2px); opacity: 0.85; }
.appstore-btn img { height: 52px; width: auto; }

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
}

/* ── FEATURE ICON ───────────────────────────────────────────── */
.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
  background: var(--surface2);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.footer-legal {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-legal p {
  font-size: 0.72rem;
  color: var(--text-faint);
  max-width: 100%;
  line-height: 1.6;
  margin: 0 0 8px;
}
.footer-legal p:last-child { margin-bottom: 0; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo img { width: 24px; border-radius: 6px; }
.footer-logo span {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-dim); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* ── PAGE HERO (inner pages) ────────────────────────────────── */
.page-hero {
  padding-top: 140px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.page-hero p  { margin-top: 14px; font-size: 1.05rem; max-width: 50ch; }

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

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  section { padding-block: 64px; }
  footer .container { flex-direction: column; align-items: flex-start; }
}