:root {
  --ink: #102018;
  --muted: #4d6356;
  --paper: #f3f6f1;
  --leaf: #1f7a4c;
  --leaf-deep: #0f4d30;
  --sand: #d8e2d4;
  --line: rgba(16, 32, 24, 0.12);
  --ok: #1f7a4c;
  --font-display: "Rubik", sans-serif;
  --font-body: "Assistant", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
}
body {
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(31, 122, 76, 0.18), transparent 60%),
    radial-gradient(700px 420px at 0% 80%, rgba(16, 32, 24, 0.08), transparent 55%),
    linear-gradient(160deg, #eef3ea 0%, #f7f8f4 45%, #e7efe4 100%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.04) translate3d(-1.5%, 1%, 0); }
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 4vw, 48px);
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.logo span { color: var(--leaf); }
.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-nav > a:first-child {
  margin-inline-end: 8px;
  color: var(--muted);
  font-weight: 600;
}

.ghost, .solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.ghost {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.45);
}
.solid {
  background: var(--leaf);
  color: #fff;
}
.ghost:hover, .solid:hover { transform: translateY(-2px); }
.solid:hover { background: var(--leaf-deep); }
.large { min-height: 52px; padding: 0 22px; font-size: 1.05rem; }

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: 24px clamp(18px, 4vw, 48px) 64px;
}
.brand-mark {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--leaf-deep);
  animation: rise 700ms ease both;
}
.hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.25;
  max-width: 16ch;
  animation: rise 700ms ease 80ms both;
}
.lead {
  margin: 0 0 28px;
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
  animation: rise 700ms ease 140ms both;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 700ms ease 200ms both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-visual {
  display: flex;
  justify-content: center;
}
.slip {
  width: min(100%, 360px);
  background: linear-gradient(180deg, #163528, #0f241c 70%);
  color: #e8f4ec;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(15, 36, 28, 0.28);
  animation: floaty 5.5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.slip-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-bottom: 18px;
}
.pulse { color: #6dffb0; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.slip-match {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.slip-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.odds {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #8dffc0;
}
.slip-result {
  margin-top: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.slip-result.ok { color: #8dffc0; }

.section {
  padding: 72px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.section h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.section-lead {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 42ch;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  max-width: 720px;
}
.steps li {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.steps strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.steps span { color: var(--muted); }

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.portal {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  transition: color 160ms ease;
}
.portal:hover { color: var(--leaf-deep); }
.portal-kicker {
  color: var(--leaf);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.portal strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.portal span:last-child { color: var(--muted); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 28px clamp(18px, 4vw, 48px) 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 12px;
  }
  .hero h1 { max-width: none; }
  .portal-grid { grid-template-columns: 1fr; }
  .header-nav > a:first-child { display: none; }
}
