:root {
  color-scheme: dark;
  --obsidian: #040507;
  --carbon: #0b0d11;
  --midnight: #101318;
  --graphite: #161a20;
  --ash: #20242b;
  --deep-lane-blue: #101c31;
  --steel-blue: #1b3158;
  --electric-blue: #2273ef;
  --bright-blue: #5d96f5;
  --glow-blue: #8bb3ff;
  --ice-blue: #d8e2f5;
  --cool-white: #f4f5f7;
  --text: rgba(244, 245, 247, 0.96);
  --muted: rgba(244, 245, 247, 0.64);
  --line: rgba(244, 245, 247, 0.08);
  --line-strong: rgba(244, 245, 247, 0.14);
  --panel: rgba(22, 26, 32, 0.72);
  --panel-soft: rgba(16, 19, 24, 0.72);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --shadow-tight: 0 12px 30px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", "Helvetica Neue", "Arial Nova", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(34, 115, 239, 0.2), transparent 28rem),
    radial-gradient(circle at bottom left, rgba(139, 179, 255, 0.08), transparent 34rem),
    linear-gradient(180deg, var(--carbon) 0%, var(--obsidian) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(140deg, transparent 0 34%, rgba(93, 150, 245, 0.09) 36%, rgba(216, 226, 245, 0.28) 37%, transparent 39%) 0 9rem / 100% 18rem no-repeat,
    linear-gradient(140deg, transparent 0 42%, rgba(93, 150, 245, 0.05) 43%, rgba(216, 226, 245, 0.18) 44%, transparent 46%) 0 17rem / 100% 20rem no-repeat,
    linear-gradient(180deg, rgba(4, 5, 7, 0) 0%, rgba(4, 5, 7, 0.54) 100%);
  opacity: 0.9;
}

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

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

.app-shell {
  position: relative;
  isolation: isolate;
}

.site-header,
.site-footer {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1rem 0;
  backdrop-filter: blur(16px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 7, 0.62);
  border: 1px solid transparent;
  border-bottom-color: rgba(244, 245, 247, 0.05);
  border-radius: 0 0 22px 22px;
  z-index: -1;
}

.site-header nav,
.site-footer div {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header nav a,
.site-footer a {
  color: var(--muted);
  transition: color 180ms ease;
}

.site-header nav a:hover,
.site-footer a:hover {
  color: var(--cool-white);
}

.brand {
  display: grid;
  gap: 0.18rem;
}

.brand-kicker {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

main {
  display: grid;
  gap: 4rem;
  padding-bottom: 4rem;
}

.hero {
  position: relative;
  min-height: calc(100svh - 78px);
  padding: 1rem 0 0;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 5rem -10vw auto;
  height: 30rem;
  background:
    radial-gradient(circle at 70% 30%, rgba(34, 115, 239, 0.18), transparent 12rem),
    linear-gradient(155deg, transparent 0 28%, rgba(139, 179, 255, 0.34) 29%, rgba(93, 150, 245, 0.08) 30%, transparent 31%) no-repeat,
    linear-gradient(155deg, transparent 0 40%, rgba(139, 179, 255, 0.2) 41%, rgba(93, 150, 245, 0.06) 42%, transparent 43%) no-repeat,
    linear-gradient(155deg, transparent 0 52%, rgba(139, 179, 255, 0.14) 53%, rgba(93, 150, 245, 0.04) 54%, transparent 55%) no-repeat;
  filter: blur(1px);
  opacity: 0.92;
  pointer-events: none;
}

.hero-grid,
.system-strip,
.detail-band,
.workspace {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  max-width: 38rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--bright-blue);
}

.hero h1,
.system-card h2,
.detail-band h2,
.workspace h2 {
  margin: 0;
  line-height: 0.94;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 9vw, 7rem);
  letter-spacing: -0.05em;
}

.lede,
.system-card p,
.detail-copy p,
.workspace-note,
.panel .info-block,
.conversation-list {
  color: var(--muted);
  line-height: 1.6;
}

.hero .lede {
  max-width: 34rem;
  margin-top: 1.15rem;
  font-size: 1.05rem;
}

.hero-actions,
.inline-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.hero-points {
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.72rem;
  max-width: 30rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.25rem;
  color: rgba(244, 245, 247, 0.78);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--electric-blue);
  box-shadow: 0 0 16px rgba(93, 150, 245, 0.46);
}

.primary-link,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  padding: 0.96rem 1.35rem;
  background: var(--electric-blue);
  color: var(--cool-white);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(34, 115, 239, 0.24);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.primary-link:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(34, 115, 239, 0.3);
  background: var(--bright-blue);
}

.secondary-link,
.ghost,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  padding: 0.96rem 1.35rem;
  background: rgba(22, 26, 32, 0.56);
  color: var(--cool-white);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.secondary-link:hover,
.ghost:hover,
.text-button:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 179, 255, 0.28);
  background: rgba(27, 49, 88, 0.38);
}

.text-button {
  padding: 0.72rem 1rem;
}

.hero-cockpit {
  display: grid;
  justify-items: end;
}

.cockpit-panel,
.panel,
.system-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(244, 245, 247, 0.025), rgba(244, 245, 247, 0)),
    linear-gradient(180deg, rgba(22, 26, 32, 0.82), rgba(11, 13, 17, 0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.cockpit-panel::before,
.panel::before,
.system-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(244, 245, 247, 0.06), transparent 28%, transparent 72%, rgba(93, 150, 245, 0.06));
  pointer-events: none;
}

.cockpit-panel {
  width: min(36rem, 100%);
  border-radius: 28px;
  padding: 1.25rem;
}

.cockpit-topline,
.workspace-header,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel-heading-static {
  display: grid;
  gap: 0.25rem;
}

.panel-label,
.status-pill,
.workspace-note {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-label {
  color: var(--muted);
}

.status-pill,
.workspace-note {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 179, 255, 0.18);
  background: rgba(34, 115, 239, 0.1);
  color: var(--glow-blue);
}

.message-stack {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.9rem;
}

.bubble {
  max-width: 24rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: rgba(22, 26, 32, 0.94);
  border: 1px solid rgba(244, 245, 247, 0.05);
  color: rgba(244, 245, 247, 0.92);
  box-shadow: var(--shadow-tight);
  line-height: 1.5;
}

.bubble.outbound {
  justify-self: end;
  background: var(--electric-blue);
  color: var(--cool-white);
}

.bubble.inbound.accent {
  background: rgba(34, 115, 239, 0.14);
  border-color: rgba(139, 179, 255, 0.16);
}

.cockpit-metrics {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.cockpit-metrics > div {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.cockpit-metrics strong {
  display: block;
  margin-top: 0.18rem;
  font-size: 1rem;
}

.metric-label {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.system-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.system-card {
  min-height: 100%;
  border-radius: 24px;
  padding: 1.35rem;
}

.system-card h2 {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  letter-spacing: -0.03em;
}

.system-card p:last-child {
  margin-bottom: 0;
}

.detail-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.detail-copy {
  max-width: 38rem;
}

.detail-list {
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(22, 26, 32, 0.64), rgba(16, 28, 49, 0.54));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-tight);
  overflow: hidden;
}

.detail-list p {
  margin: 0;
  padding: 1rem 1.1rem;
  color: rgba(244, 245, 247, 0.84);
  border-top: 1px solid var(--line);
}

.detail-list p:first-child {
  border-top: 0;
}

.workspace {
  border-radius: 32px;
  padding: 1.4rem;
  background:
    linear-gradient(180deg, rgba(16, 19, 24, 0.74), rgba(4, 5, 7, 0.82));
  border: 1px solid rgba(244, 245, 247, 0.06);
  box-shadow: var(--shadow);
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.3rem;
}

.panel {
  border-radius: 26px;
  padding: 1.2rem;
}

.panel h3 {
  margin: 0;
  font-size: 1.14rem;
  letter-spacing: -0.03em;
}

form {
  display: grid;
  gap: 0.85rem;
}

label {
  display: grid;
  gap: 0.38rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(244, 245, 247, 0.88);
}

input,
select,
textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(244, 245, 247, 0.08);
  padding: 0.92rem 1rem;
  background: rgba(4, 5, 7, 0.45);
  color: var(--cool-white);
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(244, 245, 247, 0.38);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(93, 150, 245, 0.5);
  box-shadow: 0 0 0 4px rgba(34, 115, 239, 0.14);
  background: rgba(11, 13, 17, 0.78);
}

textarea {
  min-height: 5.8rem;
  resize: vertical;
}

.info-block,
.conversation-list article {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(244, 245, 247, 0.06);
  background: rgba(4, 5, 7, 0.34);
}

.conversation-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.conversation-list strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
  color: var(--cool-white);
}

.site-footer {
  padding: 1.3rem 0 2rem;
  border-top: 1px solid rgba(244, 245, 247, 0.06);
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  padding: 0.88rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 179, 255, 0.16);
  background: rgba(11, 13, 17, 0.95);
  color: var(--cool-white);
  box-shadow: var(--shadow-tight);
  font-size: 0.9rem;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: reveal-in 700ms cubic-bezier(0.18, 0.8, 0.22, 1) forwards;
}

.reveal-1 {
  animation-delay: 50ms;
}

.reveal-2 {
  animation-delay: 120ms;
}

.reveal-3 {
  animation-delay: 210ms;
}

.reveal-4 {
  animation-delay: 300ms;
}

.reveal-5 {
  animation-delay: 380ms;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .hero-grid,
  .detail-band,
  .workspace-grid,
  .system-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 1rem;
  }

  .hero-grid {
    min-height: auto;
    padding-bottom: 1rem;
  }

  .hero-cockpit {
    justify-items: stretch;
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .workspace-header,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    width: calc(100% - 1rem);
    padding: 0.75rem 0;
  }

  .hero-grid,
  .system-strip,
  .detail-band,
  .workspace {
    width: calc(100% - 1rem);
  }

  .hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.3rem);
  }

  .workspace,
  .cockpit-panel,
  .panel,
  .system-card,
  .detail-list {
    border-radius: 24px;
  }

  .cockpit-metrics {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .inline-actions {
    flex-direction: column;
  }

  .primary-link,
  .secondary-link,
  .ghost,
  .text-button,
  button {
    width: 100%;
  }
}
