:root {
  --ink: #10231d;
  --muted: #5f6f69;
  --paper: #f7f5ef;
  --surface: #fffdf8;
  --emerald: #08785d;
  --emerald-dark: #075642;
  --mint: #dff3eb;
  --line: #d9e2dc;
  --warm: #e7b76d;
  --shadow: 0 24px 70px rgba(16, 35, 29, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 4%, rgba(8,120,93,.12), transparent 32rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

img { max-width: 100%; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 99;
  padding: .75rem 1rem;
  background: var(--ink);
  color: white;
  border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }

.shell { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217,226,220,.85);
  background: rgba(247,245,239,.92);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(145deg, #0cd89c, var(--emerald-dark));
  box-shadow: 0 10px 24px rgba(8,120,93,.24);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.nav-links { display: flex; align-items: center; gap: 1.1rem; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--emerald-dark); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--emerald);
  text-decoration: none;
  font-weight: 750;
  color: white;
  background: var(--emerald);
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--emerald-dark); }
.button.secondary { color: var(--emerald-dark); background: transparent; }

.hero {
  min-height: 76vh;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  color: var(--emerald-dark);
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .14em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--warm); }

h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { max-width: 15ch; margin: 0; font-size: clamp(3.1rem, 7.4vw, 6.8rem); }
h2 { margin: 0 0 1rem; font-size: clamp(2.2rem, 4.4vw, 4.2rem); }
h3 { margin: 0 0 .65rem; font-size: 1.25rem; }

.hero p { max-width: 58ch; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.hero-card {
  position: relative;
  min-height: 490px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 2rem;
  background: #071813;
  box-shadow: var(--shadow);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 20%, rgba(5,26,20,.9) 92%),
    url("klyve-marca.png") center/cover no-repeat;
  opacity: .82;
}
.hero-card-content { position: relative; padding: 2rem; color: white; }
.hero-card-content p { color: rgba(255,255,255,.75); font-size: 1rem; }

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head p, .lead { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(255,253,248,.76);
}
.card-number { color: var(--emerald); font-family: Georgia, serif; font-size: 2.2rem; }
.card p { margin-bottom: 0; color: var(--muted); }

.dark-band { color: white; background: var(--ink); }
.dark-band .section-head p, .dark-band .card p { color: #c7d5cf; }
.dark-band .card { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.04); }

.statement {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 2rem;
  align-items: start;
}
.statement blockquote {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.15;
}

.article-list { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
.article-card { min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; }
.article-card a { color: var(--emerald-dark); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tag { width: fit-content; padding: .32rem .65rem; border-radius: 999px; color: var(--emerald-dark); background: var(--mint); font-size: .78rem; font-weight: 800; }

.legal-hero { max-width: 800px; padding-block: clamp(4rem, 8vw, 7rem) 3rem; }
.legal-hero h1 { max-width: 18ch; font-size: clamp(2.8rem, 6vw, 5.4rem); }
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 3rem; padding-bottom: 7rem; }
.legal-nav { position: sticky; top: 100px; align-self: start; padding: 1rem; border-left: 2px solid var(--mint); }
.legal-nav a { display: block; margin: .45rem 0; color: var(--muted); text-decoration: none; }
.legal-copy { max-width: 780px; }
.legal-copy h2 { margin-top: 3.5rem; font-family: inherit; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy p, .legal-copy li { color: #394943; }
.notice { padding: 1.2rem; border: 1px solid #b7dacc; border-radius: 1rem; background: var(--mint); }

.site-footer { padding-block: 2.5rem; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; }
.footer-links a { color: var(--muted); font-size: .9rem; }
.small { color: var(--muted); font-size: .88rem; }

@media (max-width: 820px) {
  .nav-links a:not(.button) { display: none; }
  .hero, .statement, .article-list, .legal-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 3.5rem; }
  .hero-card { min-height: 390px; }
  .grid { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
  .footer-grid { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
