:root {
  --ink: #ecfff5;
  --muted: #a7c7b6;
  --green-950: #031f16;
  --green-900: #073b2a;
  --green-800: #0a5038;
  --green-700: #08734d;
  --green-500: #18c47d;
  --green-400: #38e89b;
  --lime: #c7ff6b;
  --panel: rgba(8, 57, 40, 0.68);
  --line: rgba(197, 255, 218, 0.14);
  --danger: #ff7b7b;
  --warning: #ffd36b;
  --success: #58e39b;
  --shadow: 0 24px 70px rgba(0, 20, 13, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% 8%, rgba(41, 213, 132, 0.14), transparent 27rem),
    radial-gradient(circle at 10% 35%, rgba(199, 255, 107, 0.08), transparent 24rem),
    var(--green-950);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.announcement {
  min-height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 7px 24px;
  background: var(--lime);
  color: #082817;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.announcement-dot { width: 7px; height: 7px; border-radius: 50%; background: #08734d; box-shadow: 0 0 0 4px rgba(8,115,77,.13); }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -0.03em; font-size: 1.2rem; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  background: var(--lime);
  color: #06291a;
  font-weight: 950;
  box-shadow: inset 0 -4px 10px rgba(9, 70, 38, .14);
}
.site-header nav { display: flex; gap: 32px; color: var(--muted); font-size: .92rem; font-weight: 650; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--lime); }

main { overflow: hidden; }
.hero, .generator-section, .results-section, .how-section, .faq-section {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, .9fr);
  gap: 74px;
  align-items: center;
  padding: 90px 0 110px;
}
.hero-copy { position: relative; }
.hero-copy::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: -110px;
  top: -70px;
  border: 1px solid rgba(199,255,107,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(199,255,107,.025), 0 0 0 70px rgba(199,255,107,.02);
  pointer-events: none;
}
.eyebrow { margin: 0 0 12px; color: var(--green-400); font-size: .75rem; letter-spacing: .15em; font-weight: 850; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; max-width: 760px; font-size: clamp(3rem, 7vw, 5.8rem); line-height: .97; letter-spacing: -.065em; }
h2 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.045em; }
h3 { line-height: 1.25; letter-spacing: -.02em; }
.hero-lead { max-width: 650px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); }
.hero-actions, .generator-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--lime); color: #06291a; }
.button-primary:hover { background: #d6ff8f; }
.button-secondary { background: var(--green-700); color: white; }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.02); color: var(--ink); }
.button-ghost:hover { border-color: rgba(199,255,107,.4); }
.button-danger { background: rgba(255, 92, 92, .12); border-color: rgba(255, 123, 123, .25); color: #ffb0b0; }
.button-small { min-height: 38px; padding: 8px 12px; font-size: .85rem; border-radius: 9px; }
.button-block { width: 100%; }
.button:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 38px; color: #c0dacd; font-size: .84rem; }

.latest-card, .generator-card, .result-card, .steps-grid article, .faq-list details, .install-card {
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(13, 83, 58, .78), rgba(5, 43, 30, .8));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.latest-card { padding: 28px; border-radius: var(--radius-lg); transform: rotate(1.3deg); }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card-heading h2 { font-size: 1.35rem; letter-spacing: -.02em; }
.status-pill { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: rgba(56, 232, 155, .12); color: var(--green-400); font-size: .72rem; font-weight: 800; }
.number-row { display: flex; flex-wrap: wrap; gap: 8px; }
.number-row-large { margin: 34px 0 24px; gap: 9px; }
.number-ball, .mini-ball {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #06291a;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0,0,0,.22), inset 0 -4px 8px rgba(6, 41, 26, .14);
}
.number-ball { width: 55px; height: 55px; font-size: 1.05rem; }
.mini-ball { width: 35px; height: 35px; font-size: .77rem; }
.number-empty { background: rgba(255,255,255,.06); color: #8db4a0; box-shadow: none; border: 1px dashed rgba(255,255,255,.18); }
.is-generated { animation: ballIn .35s ease both; }
@keyframes ballIn { from { opacity: 0; transform: translateY(8px) scale(.92); } to { opacity: 1; transform: none; } }
.bonus-line { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; border-radius: 13px; background: rgba(199,255,107,.09); color: var(--muted); }
.bonus-line strong, .result-footer strong { color: var(--lime); font-size: 1.25rem; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 17px; color: #8eb5a1; font-size: .75rem; }

.generator-section, .results-section, .how-section, .faq-section { padding: 105px 0; }
.section-heading { margin-bottom: 46px; }
.section-heading p:not(.eyebrow) { color: var(--muted); max-width: 650px; }
.centered { text-align: center; }
.centered p:not(.eyebrow) { margin-inline: auto; }
.generator-card { max-width: 830px; margin: auto; padding: 44px; border-radius: var(--radius-lg); text-align: center; }
.generator-display { min-height: 74px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.generator-display .number-ball { width: 66px; height: 66px; font-size: 1.25rem; }
.generated-bonus { margin-top: 22px; color: var(--muted); }
.generated-bonus strong { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-left: 8px; border-radius: 50%; background: var(--lime); color: #082817; }
.published-result-stack, .generator-result-stack, .history-result-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.published-result-stack { margin: 28px 0 20px; }
.published-result, .generator-result-stack > div, .history-result-list > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 13px; background: rgba(0,0,0,.13); }
.published-result { padding: 12px 15px; }
.published-result span, .generator-result-stack span, .history-result-list span { color: var(--muted); font-size: .78rem; font-weight: 750; }
.published-result strong { color: var(--ink); font-size: 1.55rem; letter-spacing: .16em; }
.published-result.primary { border-color: rgba(199,255,107,.28); background: rgba(199,255,107,.08); }
.published-result.primary strong { color: var(--lime); }
.generator-result-stack { max-width: 520px; margin: 0 auto; }
.generator-result-stack > div { padding: 15px 18px; }
.generator-result-stack strong { color: var(--ink); font-size: 1.8rem; letter-spacing: .2em; }
.generator-result-stack > div:first-child strong { color: var(--lime); }
.history-result-list { margin-top: 20px; }
.history-result-list > div { padding: 9px 12px; }
.history-result-list strong { color: var(--ink); letter-spacing: .13em; }
.history-result-list > div:first-child strong { color: var(--lime); }
.generator-actions { justify-content: center; }
.copy-status { min-height: 24px; margin: 16px 0 0; color: var(--green-400); font-size: .85rem; }

.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 60px; }
.split-heading > p { max-width: 410px !important; }
.results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.result-card { padding: 22px; border-radius: var(--radius-md); box-shadow: none; }
.result-topline, .result-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.result-topline time { color: var(--muted); font-size: .78rem; }
.result-card .number-row { margin: 25px 0; }
.result-footer { border-top: 1px solid var(--line); padding-top: 13px; color: var(--muted); font-size: .8rem; }
.empty-state { padding: 36px; border: 1px dashed var(--line); border-radius: var(--radius-md); color: var(--muted); text-align: center; }

.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps-grid article { padding: 30px; border-radius: var(--radius-md); box-shadow: none; }
.steps-grid article > span { display: block; margin-bottom: 34px; color: var(--lime); font-weight: 900; font-size: 2.2rem; letter-spacing: -.07em; }
.steps-grid p { color: var(--muted); margin-bottom: 0; }
.faq-list { max-width: 850px; margin: auto; display: grid; gap: 12px; }
.faq-list details { border-radius: 15px; padding: 0 22px; box-shadow: none; }
.faq-list summary { cursor: pointer; padding: 20px 0; font-weight: 800; }
.faq-list details p { padding-bottom: 18px; color: var(--muted); }

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 50px auto 0;
  padding: 55px 0 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer h3 { color: var(--ink); font-size: .95rem; }
.site-footer > div:not(:first-child) { display: flex; flex-direction: column; gap: 8px; }
.site-footer a:hover { color: var(--lime); }
.footer-brand { color: var(--ink); margin-bottom: 18px; }
.copyright { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line); font-size: .78rem; }

.install-body { min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.install-shell { width: min(520px, 100%); }
.install-card { padding: 38px; border-radius: var(--radius-lg); }
.install-card h1 { font-size: clamp(2rem, 8vw, 3rem); }
.install-card > .brand-mark { margin-bottom: 24px; }
.stack-form { display: grid; gap: 17px; }
.stack-form label { display: grid; gap: 7px; color: #d8eee2; font-size: .88rem; font-weight: 700; }
.stack-form small { color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  background: rgba(0, 22, 14, .48);
  color: var(--ink);
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--green-400); box-shadow: 0 0 0 3px rgba(56,232,155,.1); }
.muted { color: var(--muted); }
.alert { margin: 18px 0; padding: 13px 15px; border: 1px solid; border-radius: 11px; font-size: .88rem; }
.alert-error { border-color: rgba(255,123,123,.28); background: rgba(255,123,123,.09); color: #ffc1c1; }
.alert-success { border-color: rgba(88,227,155,.28); background: rgba(88,227,155,.09); color: #a6ffd0; }
.alert-info { border-color: rgba(122,196,255,.28); background: rgba(122,196,255,.09); color: #b9e0ff; }

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 50px; padding-top: 70px; }
  .latest-card { max-width: 580px; transform: none; }
  .results-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
  .split-heading { align-items: start; flex-direction: column; gap: 10px; }
  .site-footer { grid-template-columns: 1.4fr 1fr; }
}

@media (max-width: 620px) {
  .site-header, .hero, .generator-section, .results-section, .how-section, .faq-section, .site-footer { width: min(100% - 28px, 1180px); }
  .hero { min-height: auto; padding: 60px 0 78px; }
  h1 { font-size: clamp(2.65rem, 14vw, 4.2rem); }
  .latest-card, .generator-card { padding: 22px; }
  .number-ball { width: 45px; height: 45px; }
  .generator-display .number-ball { width: 48px; height: 48px; font-size: 1rem; }
  .results-grid, .steps-grid, .site-footer { grid-template-columns: 1fr; }
  .generator-section, .results-section, .how-section, .faq-section { padding: 75px 0; }
  .site-footer { gap: 30px; }
  .copyright { grid-column: 1; }
  .trust-row { gap: 11px; flex-direction: column; }
}

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