/* StrataView.earth — marketing site stylesheet
   Brand: Sadberry Singer, Inc.
   Palette: Ash #311f0b, Almond #a3896a, Air #e5ddcd, Teal #2B8A8A,
   Teal Dark #1E7070, Copper #C87941, Gold #D4A855
   Type: Source Serif 4 (display) + Inter (UI)
*/

:root {
  --ash: #311f0b;
  --almond: #a3896a;
  --air: #e5ddcd;
  --teal: #2B8A8A;
  --teal-dark: #1E7070;
  --copper: #C87941;
  --gold: #D4A855;
  --bg: #0C1821;
  --surface: #132530;
  --surface-2: #1A3040;
  --light-bg: #F5F2ED;
  --text: #E8E4DC;
  --text-muted: #8FA3B0;
  --text-faint: #5A6E7A;
  --border: rgba(255, 255, 255, 0.12);
  --divider: rgba(255, 255, 255, 0.08);

  --serif: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  --container: 1200px;
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

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

::selection { background: var(--teal); color: var(--bg); }

/* Typography */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; font-family: var(--sans); font-weight: 600; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1rem;
}

p { color: var(--text-muted); }
.lead { font-size: 1.125rem; color: var(--text); max-width: 60ch; }

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4rem 0; }
@media (min-width: 768px) { section { padding: 6rem 0; } }

/* Header & nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(12, 24, 33, 0.85);
  border-bottom: 1px solid var(--divider);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; font-family: var(--serif); font-weight: 600; font-size: 1.125rem; color: var(--text); white-space: nowrap; }
.brand span { display: inline-block; }
.brand svg { width: 32px; height: 32px; color: var(--teal); flex-shrink: 0; }
.nav-links { display: none; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; gap: 0.75rem; align-items: center; }
.nav-cta .btn-ghost { display: none; }
@media (min-width: 900px) { .nav-cta .btn-ghost { display: inline-flex; } }
@media (max-width: 480px) {
  .nav { padding: 0 1rem; }
  .brand { font-size: 1rem; gap: 0.5rem; }
  .brand svg { width: 26px; height: 26px; }
  .nav-cta .btn-primary { padding: 0.625rem 1rem; font-size: 0.875rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.9375rem; font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost { background: transparent; color: var(--text-muted); padding: 0.5rem 1rem; }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* Hero */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(43, 138, 138, 0.18), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212, 168, 85, 0.10), transparent 50%);
}
.hero-grid {
  display: grid; gap: 3rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 5rem; } }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { margin-bottom: 2rem; font-size: 1.25rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--divider);
  flex-wrap: wrap;
}
.hero-meta div { font-family: var(--mono); font-size: 0.75rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; }
.hero-meta div strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--gold); font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1; margin-bottom: 0.25rem; }

.hero-visual {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(43, 138, 138, 0.15), transparent 50%);
  border-radius: var(--radius-xl); pointer-events: none;
}
.hero-visual-header {
  display: flex; gap: 0.5rem; margin-bottom: 1rem;
}
.hero-visual-header span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); }
.hero-visual-body { display: grid; gap: 0.75rem; }
.hero-stat {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem; background: rgba(0, 0, 0, 0.25); border-radius: var(--radius-md);
  border-left: 3px solid var(--teal);
}
.hero-stat .label { font-size: 0.8125rem; color: var(--text-muted); }
.hero-stat .value { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); font-weight: 600; }
.hero-stat.danger { border-left-color: var(--copper); }
.hero-stat.success { border-left-color: #4CAF7D; }

/* Section */
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head h2 { margin-bottom: 1rem; }

.feature-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: var(--teal); transform: translateY(-2px); }
.feature-icon {
  display: inline-flex; width: 44px; height: 44px;
  background: rgba(43, 138, 138, 0.15); color: var(--teal);
  border-radius: var(--radius-md); align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.feature h3 { margin-bottom: 0.75rem; font-family: var(--sans); font-size: 1.125rem; font-weight: 600; }
.feature p { font-size: 0.9375rem; }

/* Trust strip */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 3rem 0;
}
.trust-strip-grid {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .trust-strip-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-badge {
  display: flex; flex-direction: column; gap: 0.5rem; align-items: center; text-align: center;
  padding: 1rem;
}
.trust-badge .icon { color: var(--gold); }
.trust-badge h4 { font-size: 0.9375rem; }
.trust-badge p { font-size: 0.8125rem; color: var(--text-faint); }

/* Pricing */
.pricing-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.tier {
  padding: 2.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  position: relative;
}
.tier.featured { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.tier .badge {
  position: absolute; top: -12px; left: 2rem;
  background: var(--teal); color: #fff;
  font-size: 0.6875rem; font-weight: 600; padding: 0.25rem 0.75rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.08em;
}
.tier h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 0.5rem; }
.tier .price { font-family: var(--serif); font-size: 2.5rem; color: var(--gold); margin: 1rem 0; line-height: 1.1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.tier .price span { font-size: 0.9375rem; color: var(--text-muted); font-weight: 400; font-family: var(--sans); }
.tier ul { list-style: none; margin: 1.5rem 0; flex: 1; }
.tier li { padding: 0.5rem 0; padding-left: 1.5rem; position: relative; font-size: 0.9375rem; }
.tier li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--divider);
  padding: 3rem 0 2rem;
  background: var(--surface);
  margin-top: 4rem;
}
.footer-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); margin-bottom: 1rem; font-family: var(--mono); font-weight: 500; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer a { color: var(--text-muted); font-size: 0.875rem; }
.footer a:hover { color: var(--teal); }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--divider);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  color: var(--text-faint); font-size: 0.8125rem;
}

/* Forms */
.form { max-width: 440px; margin: 0 auto; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--text); }
.form-input {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-family: var(--sans); font-size: 0.9375rem;
  border-radius: var(--radius-md);
  transition: border-color 0.15s;
}
.form-input:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43, 138, 138, 0.2);
}
.form-help { font-size: 0.8125rem; color: var(--text-faint); margin-top: 0.375rem; }
.form-error {
  background: rgba(224, 82, 82, 0.1); border: 1px solid rgba(224, 82, 82, 0.3);
  color: #FF8888; padding: 0.75rem 1rem; border-radius: var(--radius-md);
  font-size: 0.875rem; margin-bottom: 1rem;
}
.form-success {
  background: rgba(76, 175, 125, 0.1); border: 1px solid rgba(76, 175, 125, 0.3);
  color: #6FE0A0; padding: 0.75rem 1rem; border-radius: var(--radius-md);
  font-size: 0.875rem; margin-bottom: 1rem;
}

/* Auth card */
.auth-card {
  max-width: 440px; margin: 4rem auto;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.auth-card .lead { font-size: 0.9375rem; margin-bottom: 2rem; }

/* Trust page */
.control-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9375rem; }
.control-table th { text-align: left; padding: 0.75rem 1rem; background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); }
.control-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--divider); color: var(--text-muted); }
.control-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.control-table .ctrl-id { font-family: var(--mono); font-size: 0.8125rem; color: var(--gold); white-space: nowrap; }

.callout {
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(43, 138, 138, 0.1), rgba(212, 168, 85, 0.05));
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-md);
  margin: 2rem 0;
}
.callout h4 { color: var(--teal); margin-bottom: 0.5rem; font-family: var(--mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* Skip link for a11y */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal); color: #fff; padding: 0.75rem 1.25rem;
  z-index: 1000; border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; }

/* Mobile menu */
.mobile-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--text); cursor: pointer;
}
@media (min-width: 900px) { .mobile-toggle { display: none; } }
.mobile-menu {
  display: none;
  border-top: 1px solid var(--divider);
  padding: 1rem 0; background: var(--bg);
}
.mobile-menu.open { display: block; }
.mobile-menu .container { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-menu a { padding: 0.875rem 0; color: var(--text-muted); font-weight: 500; border-bottom: 1px solid var(--divider); }
.mobile-menu a:last-child { border-bottom: 0; }
