:root {
  --carbon: #07111f;
  --midnight: #0b1730;
  --panel: rgba(15, 31, 59, 0.84);
  --panel-strong: rgba(11, 23, 48, 0.96);
  --line: rgba(129, 181, 255, 0.18);
  --cyan: #44e3ff;
  --electric: #4c7dff;
  --mint: #73ffbf;
  --frost: #d9f4ff;
  --muted: #90aacf;
}

::selection {
  background: rgba(68, 227, 255, 0.26);
  color: #ffffff;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(76, 125, 255, 0.2), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(68, 227, 255, 0.18), transparent 20%),
    linear-gradient(180deg, #07111f 0%, #091325 42%, #0b1730 100%);
}

.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(54px);
  opacity: 0.65;
  pointer-events: none;
}

.orb-one {
  top: -5rem;
  right: -3rem;
  width: 18rem;
  height: 18rem;
  background: rgba(68, 227, 255, 0.18);
}

.orb-two {
  bottom: 6rem;
  left: -3rem;
  width: 14rem;
  height: 14rem;
  background: rgba(76, 125, 255, 0.2);
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 6px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 94%);
}

.hero-frame,
.panel-card,
.metric-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 25, 49, 0.92), rgba(8, 18, 36, 0.95));
  box-shadow: 0 0 0 1px rgba(68, 227, 255, 0.08), 0 24px 70px rgba(2, 11, 30, 0.55);
  backdrop-filter: blur(14px);
}

.hero-frame {
  display: grid;
  gap: 1.25rem;
  border-radius: 2rem;
  padding: 1.5rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.brand-logo {
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 auto;
  border-radius: 1rem;
  border: 1px solid rgba(68, 227, 255, 0.24);
  box-shadow: 0 0 0 1px rgba(68, 227, 255, 0.08), 0 12px 28px rgba(2, 11, 30, 0.4);
}

.brand-text {
  display: grid;
  gap: 0.2rem;
}

.brand-name {
  margin: 0;
  color: #f7fcff;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(68, 227, 255, 0.18);
  background: rgba(68, 227, 255, 0.08);
  padding: 0.45rem 0.8rem;
  color: var(--frost);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-chip-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 14px rgba(115, 255, 191, 0.75);
}

.hero-kicker,
.panel-kicker {
  margin: 1rem 0 0.7rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 12ch;
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #f7fcff;
}

.hero-copy {
  max-width: 46rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.hero-metrics {
  display: grid;
  gap: 1rem;
}

.metric-card {
  border-radius: 1.5rem;
  padding: 1rem 1.1rem;
}

.metric-value {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

.metric-label {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.panel-card {
  border-radius: 1.85rem;
  padding: 1.4rem;
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.panel-title {
  max-width: 14ch;
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 2.15rem;
  line-height: 1;
  color: #ffffff;
}

.panel-chip,
.status-pill {
  border-radius: 999px;
  border: 1px solid rgba(68, 227, 255, 0.18);
  background: rgba(68, 227, 255, 0.08);
  padding: 0.55rem 0.8rem;
  color: var(--frost);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field-wrap {
  display: grid;
  gap: 0.5rem;
}

.field-label {
  color: #eef8ff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field {
  width: 100%;
  border-radius: 1.15rem;
  border: 1px solid rgba(129, 181, 255, 0.18);
  background: rgba(217, 244, 255, 0.04);
  color: #ffffff;
  padding: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.field::placeholder {
  color: rgba(144, 170, 207, 0.6);
}

.field:focus {
  outline: none;
  border-color: rgba(68, 227, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(68, 227, 255, 0.1);
  transform: translateY(-1px);
}

.tone-pill {
  position: relative;
  display: grid;
  gap: 0.18rem;
  cursor: pointer;
  border-radius: 1.2rem;
  border: 1px solid rgba(129, 181, 255, 0.16);
  background: rgba(217, 244, 255, 0.04);
  padding: 1rem;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.tone-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(68, 227, 255, 0.35);
}

.tone-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tone-pill:has(input:checked) {
  border-color: rgba(68, 227, 255, 0.5);
  background: linear-gradient(180deg, rgba(68, 227, 255, 0.12), rgba(217, 244, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(68, 227, 255, 0.12);
}

.tone-name {
  color: #f7fcff;
  font-weight: 700;
}

.tone-desc,
.toggle-copy,
.soft-note,
.status-card,
.summary-text,
.summary-meta,
.workspace-meta {
  color: var(--muted);
}

.tone-desc {
  font-size: 0.82rem;
  line-height: 1.5;
}

.toggle-card,
.soft-note,
.status-card,
.workspace-surface,
.summary-surface,
.headline-card {
  border-radius: 1.35rem;
  border: 1px solid rgba(129, 181, 255, 0.14);
  background: rgba(217, 244, 255, 0.04);
}

.toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
}

.toggle-title {
  margin: 0 0 0.2rem;
  color: #eef8ff;
  font-weight: 700;
}

.toggle-track {
  height: 1.9rem;
  width: 3.8rem;
  border-radius: 999px;
  background: rgba(217, 244, 255, 0.12);
  transition: background-color 160ms ease;
}

.toggle-knob {
  position: absolute;
  left: 0.25rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 160ms ease;
  box-shadow: 0 4px 14px rgba(5, 12, 24, 0.42);
}

.peer:checked ~ .toggle-track {
  background: rgba(68, 227, 255, 0.42);
}

.peer:checked ~ .toggle-knob {
  transform: translateX(1.9rem);
}

.soft-note,
.status-card,
.workspace-surface,
.summary-surface {
  padding: 1rem 1.05rem;
}

.soft-note {
  font-size: 0.88rem;
  line-height: 1.75;
}

.primary-button {
  width: 100%;
  border: 0;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, var(--cyan), var(--electric));
  padding: 1rem 1.2rem;
  color: #031120;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(76, 125, 255, 0.28);
}

.status-card {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.summary-surface {
  margin-top: 1rem;
}

.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.workspace-title {
  margin: 0;
  color: #ffffff;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.75rem;
  line-height: 1;
}

.workspace-meta,
.summary-meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.copy-button {
  border-radius: 999px;
  border: 1px solid rgba(68, 227, 255, 0.18);
  background: rgba(68, 227, 255, 0.08);
  color: var(--frost);
  padding: 0.72rem 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.copy-button:hover {
  transform: translateY(-1px);
  border-color: rgba(68, 227, 255, 0.42);
  background: rgba(68, 227, 255, 0.16);
}

.headline-card {
  padding: 1rem;
}

.headline-card.warn {
  border-color: rgba(115, 255, 191, 0.3);
  background: rgba(115, 255, 191, 0.06);
}

.headline-card.danger {
  border-color: rgba(255, 117, 117, 0.34);
  background: rgba(255, 117, 117, 0.08);
}

.summary-text {
  min-height: 8rem;
  margin: 0;
  line-height: 1.9;
}

@media (min-width: 900px) {
  .hero-frame {
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
    align-items: stretch;
  }

  .hero-metrics {
    align-content: stretch;
  }
}

@media (max-width: 768px) {
  .hero-title {
    max-width: none;
    font-size: clamp(2.5rem, 15vw, 4.4rem);
  }

  .panel-title {
    max-width: none;
    font-size: 1.9rem;
  }

  .hero-frame,
  .panel-card {
    border-radius: 1.5rem;
  }
}
