:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --band: #12151a;
  --panel: #1d1f24;
  --panel-2: #262932;
  --line: #383d48;
  --text: #f5f7fb;
  --muted: #aab0bd;
  --blue: #4da3ff;
  --cyan: #39d8ff;
  --green: #40d483;
  --gold: #f1c84b;
  --red: #ff4d57;
  --magenta: #d85cff;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.landing {
  min-height: 92vh;
  display: grid;
  align-content: space-between;
  padding: 24px clamp(18px, 4vw, 58px) 70px;
  background:
    linear-gradient(90deg, rgba(4, 6, 9, 0.94) 0%, rgba(4, 6, 9, 0.84) 42%, rgba(4, 6, 9, 0.34) 100%),
    url("obelisk-sentinel.png") right center / min(72vw, 940px) auto no-repeat,
    #050607;
  border-bottom: 1px solid var(--line);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-brand {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
}

.site-mark,
.mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #060708;
  border: 1px solid var(--line);
  overflow: hidden;
}

.site-mark img,
.mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-brand strong,
.brand strong {
  display: block;
  font-size: 17px;
}

.site-brand small,
.brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.ghost-button {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(16,18,22,0.72);
  color: var(--text);
  padding: 10px 13px;
  cursor: pointer;
}

.hero-copy {
  width: min(720px, 100%);
  padding: 16vh 0 0;
}

.eyebrow,
.label {
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

h1, h2, h3, p { margin: 0; }

h1 {
  margin-top: 8px;
  font-size: clamp(54px, 9vw, 124px);
  line-height: 0.9;
}

.hero-text {
  width: min(600px, 100%);
  margin-top: 18px;
  color: #dce6f6;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.32;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

button,
.primary,
.secondary {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  padding: 10px 14px;
  cursor: pointer;
}

button.primary,
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #07111e;
  font-weight: 800;
}

button.secondary,
.secondary {
  background: #20242c;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-proof span {
  border-left: 3px solid var(--green);
  background: rgba(18,21,26,0.72);
  padding: 9px 12px;
  color: #dce6f6;
  font-size: 13px;
  font-weight: 800;
}

.band {
  padding: 64px clamp(18px, 5vw, 76px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.intro-band,
.portal-band {
  background: var(--band);
}

.dark-band {
  background: #0f1116;
}

.content-narrow {
  width: min(900px, 100%);
}

.content-narrow h2,
.section-title h2,
.portal-heading h2 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
}

.content-narrow p:not(.eyebrow),
.portal-heading p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.section-title {
  width: min(940px, 100%);
  margin-bottom: 26px;
}

.feature-grid,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.feature-card,
.plan-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.feature-kicker,
.plan-label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-card h3,
.plan-card h3 {
  margin-top: 9px;
  font-size: 22px;
}

.feature-card p,
.plan-card p,
.plan-card li {
  color: var(--muted);
  line-height: 1.5;
}

.feature-card p,
.plan-card p {
  margin-top: 10px;
}

.plan-card ul {
  margin: 16px 0;
  padding-left: 20px;
}

.setup-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.setup-flow div {
  border-top: 3px solid var(--cyan);
  background: var(--panel);
  padding: 16px;
}

.setup-flow strong {
  color: var(--gold);
  font-size: 24px;
}

.setup-flow p,
.safety-note {
  color: var(--muted);
  line-height: 1.5;
}

.safety-note {
  margin-top: 20px;
  width: min(980px, 100%);
}

.portal-heading {
  margin-bottom: 24px;
  width: min(920px, 100%);
}

.shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 820px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.side {
  border-right: 1px solid var(--line);
  background: #15171b;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  height: 42px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 0 12px;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.status-card {
  margin-top: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px;
  box-shadow: var(--shadow);
}

.status-card strong {
  display: block;
  margin: 6px 0;
  font-size: 22px;
}

.status-card small {
  color: var(--muted);
  line-height: 1.45;
}

.workspace {
  padding: 28px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar h2 {
  font-size: 34px;
  line-height: 1;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.actions {
  display: flex;
  gap: 10px;
}

.license-panel,
.panel,
.metric {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.license-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  padding: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field-help {
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

input, select, textarea {
  width: 100%;
  background: #101216;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 11px;
  min-height: 42px;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.tab {
  display: none;
  gap: 18px;
}

.tab.active {
  display: grid;
}

.grid {
  display: grid;
  gap: 14px;
}

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

.metric {
  padding: 18px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.panel {
  padding: 18px;
}

.panel h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.muted {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 14px;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.toggle-grid.compact {
  margin: 14px 0;
}

.toggle {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111318;
  border: 1px solid var(--line);
  padding: 10px;
  color: var(--text);
}

.toggle input,
.checkline input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

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

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  background: #0b0c0f;
  border: 1px solid var(--line);
  padding: 14px;
  color: #dbe7ff;
  min-height: 72px;
}

.steps {
  margin: 0 0 14px 20px;
  color: var(--muted);
  line-height: 1.7;
}

.event-feed {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.event-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: #111318;
  padding: 10px;
}

.event-row strong { color: var(--text); }
.event-row code { color: var(--gold); }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  min-width: 260px;
  max-width: 440px;
  background: #090a0d;
  border-left: 4px solid var(--blue);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: 160ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .feature-grid,
  .setup-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shell {
    grid-template-columns: 1fr;
  }

  .side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .landing {
    min-height: 88vh;
    background:
      linear-gradient(180deg, rgba(4, 6, 9, 0.9), rgba(4, 6, 9, 0.82)),
      url("obelisk-sentinel.png") center 12vh / 92vw auto no-repeat,
      #050607;
  }

  .site-header,
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero-copy {
    padding-top: 38vh;
  }

  .feature-grid,
  .plan-grid,
  .setup-flow,
  .license-panel,
  .grid.three,
  .toggle-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .event-row {
    grid-template-columns: 1fr;
  }
}
