/* Replate Marketing Site Styles
   Accessible, responsive, and lightweight (no framework) */

:root {
  --primary: #2E7D32; /* green */
  --secondary: #1565C0; /* blue */
  --accent: #FFB300; /* amber */
  --bg: #0b0d10;
  --surface: #12161b;
  --text: #e6e9ed;
  --muted: #9aa4af;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --radius: 12px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #475569;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
}
.logo {
  display: grid;
  place-items: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 80%, #000), var(--secondary));
  box-shadow: var(--shadow);
}
.brand-text { font-size: 1.1rem; }

.nav {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0; margin: 0;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav a:hover, .nav a:focus {
  outline: none;
  background: color-mix(in srgb, var(--muted) 16%, transparent);
}

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: center;
  color: #fff;
  background-image: url('https://images.unsplash.com/photo-1542838132-92c53300491e?q=80&w=2000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}
.hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
}
.hero-inner { position: relative; padding: 80px 0; }
.hero h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
  line-height: 1.1;
  margin: 0 0 14px 0;
  text-wrap: balance;
}
.lead { font-size: clamp(1rem, 1vw + .9rem, 1.25rem); max-width: 60ch; opacity: .95; }

.cta { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(46,125,50,.35); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 86%, black); }
.btn-secondary { background: var(--secondary); color: #fff; box-shadow: 0 6px 18px rgba(21,101,192,.35); }
.btn-secondary:hover { background: color-mix(in srgb, var(--secondary) 86%, black); }
.btn-outline { border: 2px solid color-mix(in srgb, var(--text) 15%, transparent); color: var(--text); }
.btn-outline:hover { border-color: color-mix(in srgb, var(--text) 30%, transparent); background: color-mix(in srgb, var(--text) 6%, transparent); }

/* Stats */
.stats { margin-top: 28px; display: flex; gap: 24px; }
.stat { display: grid; gap: 6px; text-align: left; }
.stat-value { font-size: clamp(1.6rem, 3vw + 1rem, 2.4rem); font-weight: 800; letter-spacing: .3px; }
.stat-label { color: #e8f5e9; opacity: .9; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; font-size: .8rem; }

.photo-credits { position: absolute; right: 10px; bottom: 8px; font-size: 12px; opacity: .7; }

/* Sections */
.section { padding: 64px 0; background: var(--bg); }
.section.alt { background: color-mix(in srgb, var(--surface) 90%, transparent); border-top: 1px solid color-mix(in srgb, var(--muted) 15%, transparent); }

.grid.two { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .grid.two { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

.ticks { padding-left: 18px; }
.ticks li { margin: 8px 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 14px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.step-icon { font-size: 28px; }

/* Footer */
.site-footer { border-top: 1px solid color-mix(in srgb, var(--muted) 15%, transparent); background: color-mix(in srgb, var(--surface) 92%, transparent); }
.footer-inner { padding: 24px 0; text-align: center; color: var(--muted); }
.small { font-size: .92rem; color: var(--muted); }

/* Focus outline for accessibility */
:where(a, button, .btn, [tabindex]) :focus-visible,
:where(a, button, .btn, [tabindex]).focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
