:root {
  --deep-blue: #0f172a;
  --violet: #6d28d9;
  --cyan: #0891b2;
  --amber: #d97706;
  --snow: #f8fafc;
  --mist: #e2e8f0;
  --emerald: #059669;
  --ruby: #dc2626;
  --ink: #dbe4f0;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-soft: rgba(15, 23, 42, 0.64);
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.26);
  --radius: 24px;
  --radius-sm: 16px;
  --container: min(1180px, calc(100vw - 32px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(109, 40, 217, 0.22), transparent 25%),
    radial-gradient(circle at top left, rgba(8, 145, 178, 0.18), transparent 32%),
    linear-gradient(180deg, #020617 0%, #0f172a 50%, #111827 100%);
  font-family: "Inter", "Segoe UI", sans-serif;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.1);
}

.topbar-inner,
.footer-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}

.brand-copy small {
  display: block;
  color: rgba(219, 228, 240, 0.72);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  color: rgba(219, 228, 240, 0.82);
  font-size: 0.95rem;
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  padding: 0.95rem 1.35rem;
  font-weight: 700;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
}

.button-primary,
button,
input[type="submit"] {
  color: white;
  background: linear-gradient(135deg, var(--violet), #8b5cf6);
  box-shadow: 0 18px 36px rgba(109, 40, 217, 0.35);
}

.button-secondary {
  color: white;
  background: rgba(226, 232, 240, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.15);
}

.hero {
  padding: 72px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.panel,
.dashboard-card {
  border: 1px solid rgba(226, 232, 240, 0.12);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.68));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 56px;
}

.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.14);
  color: #94f4ff;
  border: 1px solid rgba(8, 145, 178, 0.3);
  font-size: 0.82rem;
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  color: white;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.8rem, 4vw, 5.2rem);
  line-height: 0.95;
  margin-top: 22px;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

p,
li,
label,
input,
select,
textarea,
td,
th {
  line-height: 1.65;
  color: rgba(219, 228, 240, 0.9);
}

.lede {
  max-width: 62ch;
  font-size: 1.06rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-panel {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(8, 145, 178, 0.28), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(109, 40, 217, 0.42), transparent 30%);
  pointer-events: none;
}

.metric-grid,
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
}

.metric-grid,
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric {
  padding: 18px;
  background: rgba(248, 250, 252, 0.05);
  border: 1px solid rgba(248, 250, 252, 0.08);
  border-radius: 20px;
}

.metric strong {
  display: block;
  font-size: 1.8rem;
  color: white;
  margin-top: 10px;
}

.section {
  padding: 28px 0 60px;
}

.section-head {
  margin-bottom: 22px;
}

.panel,
.dashboard-card {
  padding: 24px;
}

.list {
  display: grid;
  gap: 16px;
}

.list-item {
  padding: 18px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.08);
}

.list-item:last-child {
  border-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.95rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(226, 232, 240, 0.08);
}

.form-card {
  max-width: 820px;
  margin: 48px auto;
  padding: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 10px;
}

.field-full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.14);
  background: rgba(2, 6, 23, 0.54);
  padding: 0.95rem 1rem;
  color: white;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(8, 145, 178, 0.65);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.14);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.step-pill {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.05);
  border: 1px solid rgba(248, 250, 252, 0.1);
}

.step-pill.active {
  background: rgba(109, 40, 217, 0.2);
  border-color: rgba(109, 40, 217, 0.5);
}

.status-ok {
  color: #86efac;
}

.status-ko {
  color: #fca5a5;
}

.notice,
.alert {
  padding: 16px 18px;
  border-radius: 16px;
  margin: 18px 0;
}

.notice {
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.35);
}

.alert {
  background: rgba(220, 38, 38, 0.14);
  border: 1px solid rgba(220, 38, 38, 0.35);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 32px 0 60px;
}

.sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 24px;
}

.sidebar a {
  display: block;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  color: rgba(219, 228, 240, 0.88);
}

.sidebar a.active {
  background: rgba(109, 40, 217, 0.18);
  color: white;
}

.footer {
  border-top: 1px solid rgba(226, 232, 240, 0.08);
  margin-top: 50px;
}

.footer p {
  color: rgba(219, 228, 240, 0.72);
}

@media (max-width: 980px) {
  .hero-grid,
  .dashboard-shell,
  .grid-4,
  .grid-3,
  .grid-2,
  .metric-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .topbar-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero-copy {
    padding: 32px;
  }
}
