/* ══════════════════════════════════════════
   Navia Systems — Organic Precision
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  /* Greens from logo */
  --green-light: #5cb85c;
  --green: #3a8f3a;
  --green-dark: #2d6e2d;
  --green-glow: rgba(90, 184, 90, 0.15);
  --green-glow-strong: rgba(90, 184, 90, 0.3);

  /* Light theme */
  --bg: #fafaf8;
  --bg-elevated: #ffffff;
  --bg-subtle: #f0efe9;
  --text: #1a1a18;
  --text-secondary: #71716a;
  --text-tertiary: #a3a39b;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.15);
  --nav-bg: rgba(250,250,248,0.8);
  --card-hover: rgba(90, 184, 90, 0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.05), 0 24px 48px rgba(0,0,0,0.1);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  /* Sizing */
  --max-width: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
}

/* ── Dark Theme ── */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0f0c;
    --bg-elevated: #161a16;
    --bg-subtle: #1c211c;
    --text: #e8e8e2;
    --text-secondary: #8a8a80;
    --text-tertiary: #5a5a52;
    --border: rgba(255,255,255,0.06);
    --border-strong: rgba(255,255,255,0.12);
    --nav-bg: rgba(12,15,12,0.8);
    --card-hover: rgba(90, 184, 90, 0.06);
    --shadow: 0 1px 3px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.3), 0 24px 48px rgba(0,0,0,0.5);
  }
}

:root[data-theme="dark"] {
  --bg: #0c0f0c;
  --bg-elevated: #161a16;
  --bg-subtle: #1c211c;
  --text: #e8e8e2;
  --text-secondary: #8a8a80;
  --text-tertiary: #5a5a52;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);
  --nav-bg: rgba(12,15,12,0.8);
  --card-hover: rgba(90, 184, 90, 0.06);
  --shadow: 0 1px 3px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.3), 0 24px 48px rgba(0,0,0,0.5);
}

/* ── Theme Toggle ── */

#theme-toggle {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text-secondary);
}
#theme-toggle:hover {
  background: var(--green-glow);
  border-color: var(--green);
  color: var(--green);
}

/* ── Theme-aware logo ── */
.logo-light { display: block; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}

/* ── Reset ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--green-light); }

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

/* ── Nav ── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.nav-logo .mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

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

.nav-links a {
  font-family: var(--font-display);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--green); }

/* ── Container ── */

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

main { padding-top: 64px; }

/* ── Hero ── */

.hero {
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-logo {
  height: 140px;
  margin: 0 auto 40px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
}

.hero h1 strong {
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero .subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Section ── */

section {
  padding: 80px 0;
}

.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.6;
}

.section-desc.centered {
  margin: 0 auto;
  text-align: center;
}

/* ── Product Cards ── */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.product-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-dark), var(--green-light));
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover {
  border-color: var(--border-strong);
  background: var(--card-hover);
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: translateY(-2px);
}

.product-card:hover::before { opacity: 1; }

.product-card .card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  flex-grow: 1;
}

.badge {
  font-family: var(--font-display);
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  width: fit-content;
}

.badge-live {
  background: var(--green-glow-strong);
  color: var(--green);
}

.badge-soon {
  background: var(--bg-subtle);
  color: var(--text-tertiary);
}

/* ── Product Page Hero ── */

.product-hero {
  text-align: center;
  padding: 100px 0 40px;
}

.product-hero .icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin: 0 auto 28px;
  box-shadow: var(--shadow);
}

.product-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.product-hero .tagline {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

/* ── Buttons ── */

.cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(58, 143, 58, 0.3);
}
.btn-primary:hover {
  background: var(--green-light);
  color: #fff;
  box-shadow: 0 4px 16px rgba(58, 143, 58, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-glow);
}

.price-tag {
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 15px;
}

.price-tag strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

/* ── Features Grid ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
}

.feature {
  background: var(--bg-elevated);
  padding: 36px;
  transition: background 0.3s;
}

.feature:hover { background: var(--card-hover); }

.feature-icon {
  font-size: 24px;
  margin-bottom: 16px;
  display: block;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ── How It Works ── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 48px;
}

.step {
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  color: var(--green-glow-strong);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

:root[data-theme="dark"] .step-number,
.step-number {
  -webkit-text-stroke: 1px var(--green);
  color: transparent;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-secondary);
  font-size: 15px;
}

.step code {
  font-family: var(--font-mono);
  background: var(--bg-subtle);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 13px;
  border: 1px solid var(--border);
}

/* ── Requirements ── */

.req-grid {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 40px;
}

.req {
  text-align: center;
  padding: 24px 32px;
}

.req h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.req p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ── CTA Section ── */

.cta-section {
  text-align: center;
  padding: 80px 0 100px;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, var(--green-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ── Download Section ── */

.download-section {
  text-align: center;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.download-section h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-section p {
  color: var(--text-secondary);
  font-size: 15px;
}

.download-section .meta {
  color: var(--text-tertiary);
  font-size: 13px;
  margin-top: 12px;
  font-family: var(--font-display);
}

/* ── Footer ── */

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

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright {
  font-family: var(--font-display);
  color: var(--text-tertiary);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-display);
  color: var(--text-tertiary);
  font-size: 13px;
  text-decoration: none;
}
.footer-links a:hover { color: var(--text-secondary); }

/* ── Legal Pages ── */

.legal {
  padding: 100px 0 60px;
  max-width: 680px;
  margin: 0 auto;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-bottom: 48px;
  font-family: var(--font-display);
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}

.legal p, .legal li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ── Responsive ── */

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .req-grid { flex-direction: column; align-items: center; }
  .nav-links { gap: 20px; }
  section { padding: 60px 0; }
  .hero { padding: 80px 0 40px; }
  .hero-logo { height: 100px; }
}

@media (max-width: 480px) {
  .cta-group { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .container { padding: 0 20px; }
}
