:root {
  --primary: #ff6a00;
  --ink: #151515;
  --muted: #666b73;
  --line: #e8e9ec;
  --surface: #f5f6f8;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
[hidden] { display: none !important; }

.announcement { padding: 10px 24px; text-align: center; color: #fff; background: var(--primary); font-size: 14px; }
.site-header { max-width: 1180px; margin: auto; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
nav { display: flex; gap: 28px; color: var(--muted); font-size: 14px; }
nav a:hover { color: var(--primary); }
.nav-button { padding: 0; border: 0; color: var(--muted); background: none; cursor: pointer; }
.nav-button:hover { color: var(--primary); }

.hero { max-width: 1180px; min-height: 650px; margin: auto; padding: 90px 28px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 90px; }
.eyebrow { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.hero h1 { max-width: 720px; margin: 18px 0 22px; font-size: clamp(48px, 7vw, 88px); line-height: .98; letter-spacing: -.065em; }
.hero-copy > p { max-width: 640px; color: var(--muted); font-size: 19px; line-height: 1.8; }
.hero-actions { display: flex; gap: 14px; margin-top: 38px; }
.user-badge { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; }
.button { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-weight: 700; }
.button.primary { color: #fff; background: var(--primary); }
.button.ghost { border-color: var(--line); background: #fff; }
.button:hover { transform: translateY(-1px); }

.status-card { position: relative; padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, #fff, var(--surface)); box-shadow: 0 30px 80px rgba(17, 24, 39, .09); }
.status-card strong { display: block; margin-left: 22px; font-size: 22px; }
.status-card > p { color: var(--muted); }
.pulse { position: absolute; top: 41px; width: 11px; height: 11px; border-radius: 50%; background: #20b26b; box-shadow: 0 0 0 7px rgba(32,178,107,.13); }
.status-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 30px 0 0; }
.status-card dl div { padding: 18px; border-radius: 12px; background: #fff; }
.status-card dt { color: var(--muted); font-size: 12px; }
.status-card dd { margin: 8px 0 0; font-weight: 800; }

.section { max-width: 1180px; margin: auto; padding: 100px 28px; }
.section-heading span, .contact span { color: var(--primary); font-size: 13px; font-weight: 800; }
.section h2 { margin: 10px 0 36px; font-size: clamp(32px, 5vw, 54px); letter-spacing: -.045em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { min-height: 250px; padding: 30px; border: 1px solid var(--line); border-radius: 16px; }
.feature-card > span { color: var(--primary); font-weight: 800; }
.feature-card h3 { margin-top: 52px; font-size: 24px; }
.feature-card p { color: var(--muted); line-height: 1.7; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: end; border-top: 1px solid var(--line); }
.story .quote { color: var(--primary); font: 100px Georgia, serif; line-height: .2; }
.story p { color: var(--muted); font-size: 19px; line-height: 1.8; }
.contact { margin-bottom: 80px; display: flex; align-items: end; justify-content: space-between; border-radius: 24px; background: var(--surface); }
.contact h2 { max-width: 680px; margin-bottom: 0; }
footer { max-width: 1180px; margin: auto; padding: 34px 28px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.admin-body { background: var(--surface); }
.admin-shell { min-height: 100vh; }
.login-panel { width: min(440px, calc(100% - 40px)); margin: auto; padding-top: 11vh; }
.login-mark { width: 52px; height: 52px; margin-bottom: 30px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--primary); font-weight: 900; }
.login-panel h1 { margin: 12px 0; font-size: 40px; letter-spacing: -.04em; }
.login-panel > p { color: var(--muted); }
.login-panel form { margin-top: 34px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
label { display: grid; gap: 8px; color: #444; font-size: 13px; font-weight: 700; }
input, textarea { width: 100%; padding: 12px 13px; border: 1px solid #d9dce1; border-radius: 8px; background: #fff; outline: none; }
select { width: 100%; padding: 12px 13px; border: 1px solid #d9dce1; border-radius: 8px; background: #fff; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }
.login-panel label + label { margin-top: 18px; }
.login-panel button { width: 100%; margin-top: 24px; }
.form-message { min-height: 20px; color: var(--primary); font-size: 13px; }
.back-link { display: inline-block; margin-top: 22px; color: var(--muted); }
.security-note, .help-text { color: var(--muted); font-size: 13px; line-height: 1.6; }

.dashboard { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.dashboard aside { padding: 30px 22px; border-right: 1px solid var(--line); background: #fff; }
.dashboard aside .brand { display: block; margin: 0 10px 40px; }
.admin-nav { width: 100%; margin: 5px 0; padding: 12px; display: block; border: 0; border-radius: 8px; color: var(--muted); background: transparent; text-align: left; cursor: pointer; }
.admin-nav.active { color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, #fff); font-weight: 800; }
.logout { margin-top: 28px; }
.admin-content { padding: 46px clamp(24px, 6vw, 84px) 100px; }
.admin-content > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.admin-content h1 { margin: 7px 0 0; font-size: 42px; letter-spacing: -.04em; }
.save-state { padding: 8px 12px; border-radius: 999px; color: var(--muted); background: #fff; font-size: 12px; }
.form-card { max-width: 920px; margin-bottom: 20px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.form-card h2 { margin: 0 0 24px; font-size: 20px; }
.form-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.wide { grid-column: 1 / -1; }
.toggle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.toggle-grid label { padding: 15px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; }
.toggle-grid input { width: auto; accent-color: var(--primary); }
.feature-editor { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-editor fieldset { padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.feature-editor legend { color: var(--primary); font-size: 12px; font-weight: 800; }
.feature-editor label + label { margin-top: 14px; }
.sticky-actions { max-width: 920px; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; }
.admin-panel > header { max-width: 920px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.admin-panel > header h1 { margin: 7px 0 0; }
.user-list { display: grid; gap: 12px; }
.user-row { padding: 16px; display: grid; grid-template-columns: 1fr 2.6fr; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: 12px; }
.user-row strong, .user-row small { display: block; }
.user-row small { margin-top: 5px; color: var(--muted); }
.user-controls { display: grid; grid-template-columns: 1fr 1.4fr auto auto; gap: 8px; align-items: center; }
.status-check { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.status-check input { width: auto; accent-color: var(--primary); }

@media (max-width: 800px) {
  nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 50px; padding-top: 60px; }
  .hero h1 { font-size: 52px; }
  .feature-grid, .story, .feature-editor { grid-template-columns: 1fr; }
  .contact { align-items: start; flex-direction: column; gap: 30px; }
  footer { flex-direction: column; gap: 10px; }
  .dashboard { grid-template-columns: 1fr; }
  .dashboard aside { display: flex; gap: 6px; overflow: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .dashboard aside .brand { margin: 12px 20px 0 0; white-space: nowrap; }
  .admin-nav { white-space: nowrap; }
  .form-grid, .toggle-grid { grid-template-columns: 1fr; }
  .user-row, .user-controls { grid-template-columns: 1fr; }
}
