/* DeepMeadows base styles
   Palette: black + lavender (matches the logo)
   Typography: Fraunces (display), Inter (body), JetBrains Mono (code)
*/

:root {
  /* Colors */
  --black-900: #0a0a0e;
  --black-800: #141420;
  --black-700: #1c1c2c;

  --lavender-200: #e2d6f7;
  --lavender-300: #c8b5e8;
  --lavender-400: #b09ed4;
  --lavender-500: #9682c0;
  --lavender-700: #6b4e9e;

  --cream: #f5f0ff;

  --bg: var(--black-900);
  --surface: var(--black-800);
  --surface-2: var(--black-700);
  --border: rgba(200, 181, 232, 0.10);

  --text: var(--cream);
  --muted: rgba(245, 240, 255, 0.58);
  --dim: rgba(245, 240, 255, 0.36);

  --accent: var(--lavender-300);
  --accent-soft: var(--lavender-500);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --container: 1180px;
  --container-narrow: 720px;
  --radius: 14px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.content {
  flex: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--lavender-200); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(40px, 7vw, 72px); }
h2 { font-size: clamp(28px, 4.5vw, 44px); }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

p { color: var(--text); }
strong { color: var(--text); font-weight: 600; }
code, pre { font-family: var(--font-mono); font-size: 0.9em; }

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

.section-pad {
  padding: 96px 0;
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  margin-bottom: 16px;
}
.section-sub {
  color: var(--muted);
  font-size: 18px;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #A855F7 100%);
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 24px -8px rgba(124, 58, 237, 0.55);
}
.btn-primary:hover {
  color: #ffffff;
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 1px 0 rgba(255,255,255,0.16) inset, 0 12px 30px -8px rgba(124, 58, 237, 0.7);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--surface);
  border-color: rgba(200,181,232,0.28);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 14, 0.85);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.nav-logo:hover { color: var(--text); }
.nav-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #A855F7 100%);
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  box-shadow: 0 6px 18px -6px rgba(124, 58, 237, 0.55);
  transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover {
  color: #ffffff !important;
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(124, 58, 237, 0.7);
}

@media (max-width: 720px) {
  .nav-links li:not(:last-child) { display: none; }
}

/* Footer */
footer {
  background: var(--black-800);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { font-size: 22px; margin-bottom: 12px; }
.footer-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h4 {
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--dim);
}
.footer-tagline { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* Legal pages */
.legal h1 { font-size: 44px; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 32px 0 12px; }
.legal p, .legal ul { margin-bottom: 16px; color: var(--muted); }
.legal ul { padding-left: 24px; }
.legal li { margin-bottom: 8px; }
.legal-updated { color: var(--dim); font-family: var(--font-mono); font-size: 13px; margin-bottom: 32px; }
