:root {
  --bg: #fafaf7;
  --bg-alt: #f1efe9;
  --text: #1a1a1a;
  --text-muted: #555;
  --accent: #0f766e;
  --accent-hover: #115e59;
  --border: #e5e3dc;
  --max-width: 1100px;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131312;
    --bg-alt: #1c1c1a;
    --text: #f0eee7;
    --text-muted: #a8a59c;
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --border: #2a2a28;
  }
}

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

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 100;
  transform: translateY(-100%);
  transition: transform 0.15s;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  transform: translateY(0);
  color: var(--bg);
  outline: 2px solid var(--bg);
  outline-offset: -4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

h1, h2, h3 { line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 1rem; text-wrap: balance; }
.subtitle {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: -0.25rem 0 1.25rem;
}
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }
p.lead { font-size: 1.15rem; color: var(--text); max-width: 60ch; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; width: 100%; }

/* ===== Header / Nav ===== */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand span { color: var(--accent); }
.nav-menu {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
.nav-menu a {
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ===== Hero ===== */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.hero .container { text-align: left; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 3rem;
  align-items: start;
}
.hero-title { grid-column: 1 / -1; }
.hero-text p.lead + p.lead { margin-top: 1rem; }
.hero-text .cta { margin-top: 1.5rem; }

.fun-fact {
  max-width: 340px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
}
.fun-fact::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: -1px;
  width: 3px;
  height: calc(100% - 3rem);
  background: var(--accent);
  border-radius: 3px;
}
.fun-fact-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.fun-fact p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.fun-fact p:last-child { margin-bottom: 0; }

/* ===== Sections ===== */
section { padding: 4rem 0; }
section + section { border-top: 1px solid var(--border); }
.section-title { margin-bottom: 2rem; }

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card h3 { color: var(--text); }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* ===== Process steps ===== */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-left: 5rem; }
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ===== CTA ===== */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  margin-top: 1rem;
  transition: background 0.15s, transform 0.1s;
}
.cta:hover { background: var(--accent-hover); color: var(--bg); transform: translateY(-1px); }
.cta-block {
  text-align: center;
  padding: 4rem 0;
  background: var(--bg-alt);
  border-radius: var(--radius);
  margin: 2rem 0;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.site-footer .sep { color: var(--border); margin: 0 0.4rem; }
.site-footer strong { color: var(--text); font-weight: 600; }
.site-footer .block p { margin: 0.15rem 0; }
.site-footer .copyright {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  opacity: 0.85;
  color: var(--text-muted);
}

/* ===== Banner image ===== */
.banner {
  width: 100%;
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
}
.banner img {
  width: 100%;
  height: clamp(180px, 22vw, 320px);
  object-fit: cover;
  display: block;
}
.banner.banner-sm img { height: clamp(140px, 16vw, 220px); }




/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1rem;
    display: none;
  }
  .nav-menu[data-open="true"] { display: flex; }
  .hero { padding: 3rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  section { padding: 3rem 0; }
}
