:root {
  --blue: #071126;
  --blue-soft: #0d1a36;
  --gold: #c9a85a;
  --cream: #f7f4ef;
  --paper: #ffffff;
  --ink: #061638;
  --muted: #6d7284;
  --line: rgba(6, 22, 56, 0.14);
  --line-dark: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(7, 17, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(20px, 5vw, 54px);
  background: rgba(7, 17, 38, 0.92);
  color: #fff;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
}

.main-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.primary-button {
  background: var(--gold);
  color: #071126;
}

.secondary-button {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: inherit;
}

.light .secondary-button,
.panel .secondary-button {
  border-color: var(--line);
  color: var(--ink);
}

.ghost-button {
  background: transparent;
  color: inherit;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.full {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 17, 38, 0.95), rgba(7, 17, 38, 0.42)),
    url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 40px));
  margin-left: clamp(20px, 5vw, 54px);
  padding: 90px 0;
}

.eyebrow,
.small-label {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(46px, 7vw, 78px);
}

h1 em {
  display: block;
  color: var(--gold);
  font-style: italic;
}

h2 {
  max-width: 800px;
  font-size: clamp(34px, 5vw, 54px);
}

h3 {
  font-size: 26px;
}

.hero-copy {
  max-width: 660px;
  margin: 28px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 21px;
}

.hero-buttons,
.form-row,
.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.section {
  padding: clamp(70px, 8vw, 110px) clamp(20px, 5vw, 54px);
}

.light {
  background: var(--cream);
}

.dark {
  background: var(--blue);
  color: #fff;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(260px, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 54px;
}

.section-head p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.two-column,
.three-column,
.segment-grid {
  display: grid;
  gap: 1px;
  margin-top: 46px;
}

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

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

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

.two-column article,
.three-column article,
.segment-card,
.panel {
  background: var(--paper);
  padding: clamp(28px, 5vw, 52px);
}

.dark .three-column article,
.segment-card {
  background: var(--blue-soft);
  border: 1px solid var(--line-dark);
}

.dark p {
  color: rgba(255, 255, 255, 0.74);
}

.line {
  display: block;
  width: 48px;
  height: 1px;
  margin-bottom: 28px;
  background: var(--gold);
}

.segment-card {
  min-height: 260px;
}

.segment-card span,
.three-column article > span {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--gold);
  font-weight: 800;
}

.app-shell {
  padding: 70px clamp(20px, 5vw, 54px);
  background: var(--blue);
  color: #fff;
}

.panel {
  width: min(1080px, 100%);
  margin: 0 auto 24px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.panel.narrow {
  width: min(560px, 100%);
}

form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #ddd8ce;
  background: #f7f4ef;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
}

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

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.checkbox input {
  width: auto;
  margin-top: 4px;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  color: var(--muted);
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.dashboard-head {
  width: min(1080px, 100%);
  margin: 0 auto 26px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mini-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-actions button,
.status-select {
  min-height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px 10px;
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 54px);
  background: #050b18;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: 420px;
  padding: 16px 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}

[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  .site-header,
  .dashboard-head,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    margin-left: 0;
    flex-wrap: wrap;
  }

  .section-head,
  .two-column,
  .three-column,
  .segment-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 680px;
  }
}
