/*
 * NatureNet marketing site
 *
 * Tokens are mirrored verbatim from docs/BRAND.md / src/index.css.
 * If a token changes here, also change it in src/index.css and src/theme.js.
 */

:root {
  --color-text:           #0f172a;
  --color-text-secondary: #64748b;
  --color-text-muted:     #94a3b8;
  --color-bg:             #f8fafa;
  --color-bg-raised:      #ffffff;
  --color-border:         #e2e8f0;
  --color-border-subtle:  #f1f5f9;
  --color-accent:         #0d9488;
  --color-accent-light:   #14b8a6;
  --color-accent-hover:   #0f766e;
  --color-accent-subtle:  rgba(13, 148, 136, 0.08);
  --color-surface-hover:  rgba(13, 148, 136, 0.05);
  --color-nav-bg:         #0f172a;
  --color-nav-text:       rgba(255, 255, 255, 0.72);
  --color-nav-text-active:#ffffff;
  --color-marker:         #ea580c;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.10);

  --font-sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --content-max: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--color-accent-hover); }

::selection { background: rgba(13, 148, 136, 0.18); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-nav-bg);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ────────────────────────────────────────────────────────────────
 * Header
 * ──────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(248, 250, 250, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--color-text); }
.brand-mark { color: var(--color-accent); flex-shrink: 0; }
.brand-name { font-size: 17px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 12px;
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-md);
}
.nav-link:hover {
  color: var(--color-text);
  background: var(--color-surface-hover);
}

@media (max-width: 640px) {
  .site-nav .nav-link:not(.btn) { display: none; }
}

/* ────────────────────────────────────────────────────────────────
 * Buttons
 * ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

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

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-subtle);
}

/* ────────────────────────────────────────────────────────────────
 * Hero
 * ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 32px var(--gutter) 56px;
}

.hero-art {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #cfe7e3, #f8fafa);
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-copy {
  margin-top: 32px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  border-radius: var(--radius-sm);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

.lede {
  margin: 0 0 28px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 56ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* From md up: hero is a two-column overlap layout — copy reads on the
 * atmospheric "text safe zone" the illustration was generated to leave
 * empty on the right. */
@media (min-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 88px;
    min-height: 540px;
  }
  .hero-art {
    grid-row: 1;
    grid-column: 1;
    aspect-ratio: auto;
    height: 540px;
  }
  .hero-copy {
    grid-row: 1;
    grid-column: 1;
    align-self: center;
    justify-self: end;
    margin-top: 0;
    padding: 40px 48px;
    max-width: 560px;
    background: linear-gradient(
      to left,
      rgba(248, 250, 250, 0.96) 0%,
      rgba(248, 250, 250, 0.92) 60%,
      rgba(248, 250, 250, 0) 100%
    );
    border-radius: var(--radius-xl);
  }
}

/* ────────────────────────────────────────────────────────────────
 * Steps section
 * ──────────────────────────────────────────────────────────────── */

.steps {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px var(--gutter) 96px;
}

.steps-head {
  max-width: 720px;
  margin: 0 0 48px;
}

.steps-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.step-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 760px) {
  .step-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.step {
  position: relative;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.step:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  margin-bottom: 20px;
}

.step-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.steps-cta {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* ────────────────────────────────────────────────────────────────
 * Footer
 * ──────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--color-nav-bg);
  color: var(--color-nav-text);
  padding: 48px var(--gutter) 32px;
}

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

.brand-footer {
  color: #fff;
}
.brand-footer .brand-mark {
  color: var(--color-accent-light);
}
.brand-footer .brand-name {
  font-size: 16px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
}

.footer-nav a {
  color: var(--color-nav-text);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-nav a:hover { color: var(--color-nav-text-active); }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-muted);
  display: inline-block;
  flex-shrink: 0;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.status-dot.ok {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.status-dot.bad {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.footer-meta {
  max-width: var(--content-max);
  margin: 0 auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

/* ────────────────────────────────────────────────────────────────
 * Reduced motion
 * ──────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ────────────────────────────────────────────────────────────────
 * Mobile input zoom guard (matches src/index.css convention)
 * ──────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  select,
  textarea { font-size: 16px !important; }
}
