:root {
  --sage-950: #263325;
  --sage-800: #4f634b;
  --sage-650: #6f8467;
  --sage-500: #7f9276;
  --sage-200: #dce4d8;
  --ivory: #f8f5ee;
  --white: #fffdf9;
  --gold: #c8a45d;
  --ink: #253026;
  --muted: #6e776e;
  --danger: #9d4a4a;
  --shadow: 0 20px 70px rgba(52, 70, 49, .15);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(200,164,93,.19), transparent 25rem),
    radial-gradient(circle at 91% 30%, rgba(127,146,118,.20), transparent 29rem),
    var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: Georgia, serif; font-size: 22px; letter-spacing: .02em; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--white); background: var(--sage-800); border: 2px solid var(--gold); }
.nav-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button { border: 0; border-radius: 999px; padding: 12px 18px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; transition: transform .16s, box-shadow .16s; }
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(52,70,49,.15); }
.button-primary { background: var(--sage-800); color: white; }
.button-gold { background: var(--gold); color: #2d2a22; }
.button-ghost { background: rgba(255,253,249,.72); border: 1px solid rgba(79,99,75,.17); color: var(--sage-950); }
.button-danger { color: var(--danger); background: #f8e7e3; }
.eyebrow { text-transform: uppercase; color: var(--sage-650); letter-spacing: .18em; font-weight: 800; font-size: 12px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; margin: 0; }
.hero { padding: 7vh 0 12vh; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 7vw, 90px); align-items: center; }
.hero h1 { font-size: clamp(52px, 8vw, 104px); line-height: .9; color: var(--sage-800); margin: 20px 0 24px; }
.hero h1 span { color: var(--gold); font-style: italic; }
.hero p { max-width: 620px; font-size: 19px; line-height: 1.7; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-card { border-radius: 42px 42px 16px 42px; min-height: 510px; background: linear-gradient(145deg, var(--sage-650), var(--sage-950)); color: white; padding: 34px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.hero-card::before, .hero-card::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; width: 330px; height: 330px; }
.hero-card::before { right: -130px; top: -140px; }
.hero-card::after { left: -180px; bottom: -210px; border-color: rgba(200,164,93,.55); }
.date { font-family: Georgia, serif; font-size: 30px; position: relative; z-index: 1; }
.countdown { margin-top: 220px; position: relative; z-index: 1; }
.countdown strong { display: block; font-family: Georgia, serif; font-size: 72px; color: #ead7a9; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 72px; }
.feature, .card { background: rgba(255,253,249,.88); border: 1px solid rgba(79,99,75,.13); border-radius: 24px; padding: 24px; box-shadow: 0 12px 35px rgba(52,70,49,.08); }
.feature .icon { width: 46px; height: 46px; border-radius: 14px; background: var(--sage-200); color: var(--sage-800); display: grid; place-items: center; font-size: 22px; margin-bottom: 20px; }
.feature h3 { font-size: 22px; }
.feature p { color: var(--muted); line-height: 1.55; }
.panel { padding: 30px 0 70px; }
.panel-header { display:flex; align-items: end; justify-content: space-between; gap:16px; margin: 28px 0; }
.panel-header h1 { font-size: clamp(38px, 6vw, 62px); color: var(--sage-800); }
.login-card { width: min(460px, 100%); margin: 8vh auto; }
.login-card h1 { color: var(--sage-800); font-size: 42px; margin: 8px 0 12px; }
.muted { color: var(--muted); line-height: 1.55; }
.field { display: grid; gap: 7px; margin: 16px 0; }
.field label { font-size: 13px; color: var(--sage-800); font-weight: 800; }
.field input, .field select { width: 100%; border: 1px solid rgba(79,99,75,.22); background: white; border-radius: 14px; padding: 13px 14px; color: var(--ink); outline: none; }
.field input:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200,164,93,.14); }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; line-height: 1.4; }
.check input { margin-top: 3px; }
.form-message { min-height: 22px; color: var(--danger); font-size: 14px; margin: 8px 0; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stat { background: var(--sage-800); color: white; border-radius: 20px; padding: 20px; }
.stat span { display: block; opacity: .72; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.stat strong { font-size: 34px; font-family: Georgia, serif; display: block; margin-top: 8px; }
.tabs { display: flex; gap: 8px; margin: 24px 0 14px; overflow-x: auto; }
.tab { border: 1px solid rgba(79,99,75,.14); border-radius: 999px; padding: 10px 16px; background: var(--white); color: var(--muted); font-weight: 700; white-space: nowrap; }
.tab.active { background: var(--gold); color: var(--ink); border-color: transparent; }
.table-wrap { overflow-x: auto; border-radius: 22px; background: var(--white); border: 1px solid rgba(79,99,75,.12); }
table { border-collapse: collapse; width: 100%; min-width: 700px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid rgba(79,99,75,.10); font-size: 14px; }
th { color: var(--sage-800); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.badge { display:inline-flex; border-radius:999px; padding:5px 9px; font-size:11px; font-weight:800; background:var(--sage-200); color:var(--sage-800); }
.status-active { background:#d9ead6; color:#35583b; }
.status-hidden, .status-failed { background:#f6dfda; color:#8a3e3e; }
.status-processing { background:#f4e8c7; color:#725d26; }
.hidden { display: none !important; }
.submit-grid { display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
.legal-note { padding:16px; border-radius:16px; background:#edf1ea; color:var(--sage-800); font-size:13px; line-height:1.5; }
.footer { padding: 25px 0 42px; color: var(--muted); font-size: 13px; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; padding-top: 3vh; }
  .hero-card { min-height: 390px; }
  .countdown { margin-top: 130px; }
  .feature-grid, .submit-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .shell { width: min(100% - 22px, 1160px); }
  .topbar { align-items: flex-start; }
  .brand { font-size: 18px; }
  .hero h1 { font-size: 55px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .panel-header { align-items:flex-start; flex-direction:column; }
}
