:root {
  --ink: #0f1720;
  --ink-soft: #1c2a36;
  --sand: #eef2f4;
  --sand-2: #d8e0e6;
  --accent: #ff5a1f;
  --accent-2: #ff7a45;
  --muted: #5b6b78;
  --ok: #2f7d4e;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--sand);
  line-height: 1.5;
}

a { color: inherit; }

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(20px, 4vw, 56px);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.header-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.header-nav a {
  text-decoration: none;
  color: var(--sand);
  font-size: 0.95rem;
  opacity: 0.9;
}

.header-nav a:hover { opacity: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: #e64e12; }

.btn-ghost {
  background: transparent;
  border-color: rgba(244, 239, 230, 0.45);
  color: var(--sand);
}

.btn-dark {
  background: var(--ink);
  color: var(--sand);
}

.btn-dark:hover { background: #000; }

/* —— Hero: one composition, full-bleed —— */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  color: var(--sand);
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(15,23,32,.9) 10%, rgba(15,23,32,.4) 52%, rgba(15,23,32,.62) 100%),
    radial-gradient(900px 600px at 80% 20%, rgba(255,90,31,.38), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23eef2f4' stroke-opacity='.07'%3E%3Cpath d='M0 80h160M80 0v160'/%3E%3Ccircle cx='80' cy='80' r='38'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(160deg, #0f1720 0%, #243746 42%, #0f1720 100%);
  background-size: cover, cover, 120px 120px, cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% 40%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(255,90,31,.3), transparent 65%);
  animation: pulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 clamp(20px, 4vw, 56px) clamp(40px, 8vh, 88px);
  max-width: 920px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.92;
  margin: 0 0 18px;
  animation: rise .9s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 16ch;
  animation: rise .9s ease .1s both;
}

.hero p {
  margin: 0 0 28px;
  max-width: 38ch;
  color: rgba(244,239,230,.82);
  font-size: 1.08rem;
  animation: rise .9s ease .18s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise .9s ease .26s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Sections —— */
.section {
  padding: clamp(64px, 10vh, 110px) clamp(20px, 4vw, 56px);
}

.section-inner { max-width: 1100px; margin: 0 auto; }

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}

.section .sub {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 0 36px;
  font-size: 1.05rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 36px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 8px;
  border-top: 2px solid var(--ink);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.band {
  background: var(--ink);
  color: var(--sand);
}

.band .sub { color: rgba(244,239,230,.7); }

.band-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.band-cta h2 { margin: 0; max-width: 16ch; }

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

/* —— Cabinet —— */
.cab-body {
  min-height: 100vh;
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(255,90,31,.08), transparent 50%),
    var(--sand);
}

.cab-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--sand-2);
  background: rgba(244,239,230,.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 3;
}

.cab-top nav { display: flex; gap: 14px; align-items: center; }
.cab-top a { text-decoration: none; color: var(--muted); }
.cab-top a:hover { color: var(--ink); }

.cab-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 40px) 64px;
}

.cab-main h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

.lead { color: var(--muted); margin: 0 0 24px; }

.panel {
  background: #f8fbfd;
  border: 1px solid var(--sand-2);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack .row { width: 100%; }

label.check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}

label.check input {
  width: auto;
  padding: 0;
  accent-color: var(--accent);
}

label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--muted);
  flex: 1;
  min-width: 160px;
}

input, button {
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--sand-2);
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

button, .btn-sm {
  background: var(--ink);
  color: var(--sand);
  border-color: var(--ink);
  cursor: pointer;
  font-weight: 600;
}

button.danger {
  background: transparent;
  color: #b42318;
  border-color: #f0c4c0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--sand-2);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.flash {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.flash.ok { background: #e8f5eb; color: var(--ok); }
.flash.err { background: #fdecea; color: #b42318; }

.mono { font-family: ui-monospace, monospace; font-size: 0.85rem; }
.muted { color: var(--muted); }

.login-center {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(700px 400px at 70% 10%, rgba(255,90,31,.16), transparent 55%),
    var(--sand);
}

.login-box {
  width: min(440px, 100%);
  background: #f8fbfd;
  border: 1px solid var(--sand-2);
  border-radius: 20px;
  padding: 28px;
}

.login-box h1 {
  font-family: var(--font-display);
  margin: 8px 0 10px;
  letter-spacing: -0.03em;
}

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
  .header-nav .hide-mobile { display: none; }
  .hero { align-items: center; }
  .hero-inner { padding-top: 120px; }
}
