/* ============================================================
   DRIFTSTONE — Global Styles
   Invisible interface design: ultra-light, floating, effortless
   ============================================================ */

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

:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --surface-2: #f5f4f0;
  --border: rgba(0,0,0,0.06);
  --border-mid: rgba(0,0,0,0.10);
  --text-primary: #1a1916;
  --text-secondary: #6b6860;
  --text-muted: #a8a59f;
  --gold: #c8a96e;
  --gold-light: #dfc28e;
  --gold-dark: #a8893e;
  --accent-line: #e8e4dc;
  --shadow-soft: 0 2px 24px rgba(0,0,0,0.04);
  --shadow-mid: 0 8px 48px rgba(0,0,0,0.07);
  --shadow-strong: 0 16px 64px rgba(0,0,0,0.10);
  --radius: 2px;
  --radius-lg: 4px;
  --nav-h: 72px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.8rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); }
h4 { font-size: 1.2rem; font-weight: 500; }

p { color: var(--text-secondary); font-weight: 300; font-size: 0.975rem; line-height: 1.75; }

a { color: inherit; text-decoration: none; }

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

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 40px; }

section { padding: 100px 0; }

/* ---- NAVIGATION ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(250,250,248,0.98);
  box-shadow: var(--shadow-soft);
}

.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 500;
  letter-spacing: 0.05em; color: var(--text-primary);
  text-transform: uppercase;
}

.nav-logo svg { width: 28px; height: 28px; }

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

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

.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--gold); transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--text-primary); color: #fff !important;
  padding: 9px 22px; font-size: 0.78rem !important; letter-spacing: 0.08em !important;
  text-transform: uppercase; transition: background var(--transition) !important;
}

.nav-cta:hover { background: var(--gold) !important; color: var(--text-primary) !important; }
.nav-cta::after { display: none !important; }

/* hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--text-primary); transition: var(--transition); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block; padding: 13px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: var(--transition); cursor: pointer; border: none;
}

.btn-dark {
  background: var(--text-primary); color: #fff;
}
.btn-dark:hover { background: var(--gold); color: var(--text-primary); }

.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-mid);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-gold {
  background: var(--gold); color: var(--text-primary);
}
.btn-gold:hover { background: var(--gold-dark); color: #fff; }

/* ---- CARDS ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 36px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-mid);
  transform: translateY(-2px);
}

/* ---- SECTION LABELS ---- */
.label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}

.section-head { margin-bottom: 64px; }
.section-head .label { display: block; }
.section-head h2 { max-width: 600px; }
.section-head p { margin-top: 20px; max-width: 520px; }

/* ---- DIVIDERS ---- */
hr.fine {
  border: none; border-top: 1px solid var(--border);
  margin: 60px 0;
}

.gold-line {
  display: block; width: 40px; height: 1px; background: var(--gold);
  margin: 24px 0;
}

/* ---- FORM ---- */
.form-group { margin-bottom: 24px; }

.form-group label {
  display: block; font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 8px; font-weight: 400;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 13px 16px;
  background: var(--surface); color: var(--text-primary);
  border: 1px solid var(--border-mid);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 300;
  outline: none; transition: border-color var(--transition);
  -webkit-appearance: none; appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }

.form-group textarea { resize: vertical; min-height: 120px; }

/* ---- FOOTER ---- */
footer {
  background: var(--text-primary); color: rgba(255,255,255,0.6);
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 60px;
}

.footer-brand .nav-logo { color: #fff; margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.875rem; }

.footer-col h5 {
  font-family: 'DM Sans', sans-serif; font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 20px; font-weight: 400;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 0.875rem; color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}

.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.8rem; }
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal a { font-size: 0.78rem; color: rgba(255,255,255,0.35); transition: color var(--transition); }
.footer-legal a:hover { color: var(--gold); }

/* ---- HERO ---- */
.hero-main {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 100px;
  min-height: 100vh;
  display: flex; align-items: center;
}

/* ---- STATS ROW ---- */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  margin: 60px 0;
}

.stat-item {
  background: var(--surface); padding: 36px 32px;
}

.stat-item .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem; font-weight: 300; color: var(--text-primary);
  line-height: 1;
}

.stat-item .unit { color: var(--gold); font-size: 1.5rem; }
.stat-item p { font-size: 0.82rem; margin-top: 8px; }

/* ---- COOKIE BANNER ---- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: var(--text-primary);
  padding: 24px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-banner p {
  color: rgba(255,255,255,0.6); font-size: 0.85rem; flex: 1; min-width: 240px;
}

.cookie-banner a { color: var(--gold); }

.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }

.cookie-btn {
  padding: 9px 22px; font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer; border: none; font-family: 'DM Sans', sans-serif;
  font-weight: 400; transition: var(--transition);
}

.cookie-accept { background: var(--gold); color: var(--text-primary); }
.cookie-accept:hover { background: var(--gold-light); }
.cookie-decline { background: transparent; color: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.15); }
.cookie-decline:hover { border-color: rgba(255,255,255,0.35); color: rgba(255,255,255,0.7); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}

.page-hero .label { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.8rem); }
.page-hero p { margin-top: 20px; max-width: 600px; font-size: 1rem; }

/* ---- PRICING ---- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
}

.pricing-card {
  background: var(--surface); padding: 48px 40px;
  position: relative; transition: var(--transition);
}

.pricing-card.featured {
  background: var(--text-primary);
}

.pricing-card.featured .plan-name { color: rgba(255,255,255,0.5); }
.pricing-card.featured h3 { color: #fff; }
.pricing-card.featured .price { color: var(--gold); }
.pricing-card.featured .price-note { color: rgba(255,255,255,0.4); }
.pricing-card.featured .feature-item { color: rgba(255,255,255,0.65); border-color: rgba(255,255,255,0.08); }
.pricing-card.featured .btn-outline { border-color: rgba(255,255,255,0.25); color: #fff; }
.pricing-card.featured .btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.featured-badge {
  position: absolute; top: 20px; right: 20px;
  background: var(--gold); color: var(--text-primary);
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; font-weight: 400;
}

.plan-name {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px;
}

.price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem; font-weight: 300; color: var(--text-primary);
  line-height: 1;
}

.price-note {
  font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; margin-bottom: 32px;
}

.feature-list { list-style: none; margin-bottom: 40px; }

.feature-item {
  padding: 12px 0; font-size: 0.875rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px;
}

.feature-item::before {
  content: ''; display: inline-block; width: 4px; height: 4px;
  background: var(--gold); border-radius: 50%; flex-shrink: 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .container { padding: 0 24px; }
  .container-sm { padding: 0 24px; }
  section { padding: 72px 0; }

  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(250,250,248,0.98); backdrop-filter: blur(16px);
    flex-direction: column; gap: 0; padding: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  }
  .nav-links.open { max-height: 500px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px 24px; font-size: 0.85rem; }
  .nav-cta { margin: 16px 24px !important; display: inline-block; }
  .nav-toggle { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .stats-row { grid-template-columns: 1fr 1fr; }
  .cookie-banner { padding: 20px 24px; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  h1 { font-size: 2.4rem; }
}
