/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(36, 48, 89, 0.6);
  background: rgba(7, 11, 23, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
}

.bar nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.bar nav a:not(.button) {
  color: var(--soft);
  font-weight: 500;
  text-decoration: none;
}

.bar nav a:not(.button):hover {
  color: var(--text);
}

@media (max-width: 720px) {
  .bar nav .hide-small {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 6rem);
}

/* Faint instrument grid behind the hero, fading out toward the edges */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 -2rem;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(79, 157, 255, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 157, 255, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(16, 26, 54, 0.7);
  color: var(--soft);
  font-size: 0.875rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font: 800 clamp(2.5rem, 5.6vw, 4.5rem)/1.02 var(--display);
  font-stretch: 125%;
  letter-spacing: -0.015em;
}

.hero-copy > p {
  max-width: 34rem;
  margin: 0 0 2rem;
  color: var(--soft);
  font-size: 1.125rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* The interactive dial */
.dial-panel {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.dial-panel[data-level="warm"] {
  border-color: rgba(255, 179, 71, 0.5);
  box-shadow: 0 0 70px rgba(255, 179, 71, 0.14), 0 30px 80px rgba(0, 0, 0, 0.35);
}

.dial-panel[data-level="hot"] {
  border-color: rgba(255, 93, 82, 0.65);
  box-shadow: 0 0 90px rgba(255, 93, 82, 0.28), 0 30px 80px rgba(0, 0, 0, 0.35);
}

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

.dial-head h2 {
  margin: 0;
  font: 700 1.1rem/1.3 var(--display);
  font-stretch: 112%;
}

.chip {
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.85rem;
  white-space: nowrap;
}

.dial-panel[data-level="warm"] .chip {
  border-color: var(--amber);
  color: var(--amber);
}

.dial-panel[data-level="hot"] .chip {
  border-color: var(--hot);
  color: var(--hot-text);
}

.dial-who {
  margin: 0 0 0.5rem;
  color: var(--soft);
}

.dial {
  display: block;
  width: 100%;
  height: auto;
}

.dial-track {
  fill: none;
  stroke: #1b2750;
  stroke-width: 18;
  stroke-linecap: round;
}

.dial-fill {
  fill: none;
  stroke-width: 18;
  stroke-linecap: round;
  stroke-dasharray: 471.24;
  stroke-dashoffset: 471.24;
  transition: stroke-dashoffset 0.12s linear;
}

.dial-ticks line {
  stroke: #3a4a82;
  stroke-width: 2;
  stroke-linecap: round;
}

.dial-ticks .major {
  stroke: #6b7bb0;
  stroke-width: 3;
}

.dial-ticks text {
  fill: var(--soft);
  font: 500 13px var(--body);
  text-anchor: middle;
}

.needle {
  transform-box: view-box;
  transform-origin: 200px 200px;
  transform: rotate(-90deg);
  transition: transform 0.12s linear;
}

.needle line {
  stroke: var(--text);
  stroke-width: 4;
  stroke-linecap: round;
}

.hub {
  fill: var(--text);
}

.readout {
  margin: -2.75rem 0 0.25rem;
  text-align: center;
  font: 800 3.5rem/1 var(--display);
  font-stretch: 125%;
}

.readout .of {
  margin-left: 0.4rem;
  color: var(--soft);
  font-size: 1.1rem;
  font-weight: 600;
}

.dial-panel[data-level="warm"] .readout-value {
  color: var(--amber);
}

.dial-panel[data-level="hot"] .readout-value {
  color: var(--hot-text);
}

.verdict {
  min-height: 3.2em;
  margin: 0.5rem 0 1rem;
  color: var(--soft);
  text-align: center;
}

.verdict.tripped {
  color: var(--hot-text);
}

.triggers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trigger {
  width: 100%;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(7, 11, 23, 0.45);
  color: var(--text);
  font: 500 0.95rem/1 var(--body);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.trigger:hover:not(:disabled) {
  border-color: var(--amber);
  background: rgba(255, 179, 71, 0.08);
}

.trigger:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dial-note {
  margin: 1.25rem 0 0;
  color: var(--soft);
  font-size: 0.9rem;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .dial-fill,
  .needle,
  .dial-panel,
  .trigger {
    transition: none;
  }
}

/* Feature tiles */
.section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font: 800 clamp(1.7rem, 3.2vw, 2.4rem)/1.1 var(--display);
  font-stretch: 125%;
}

.section-head p {
  margin: 0;
  color: var(--soft);
}

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

.tile {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(23, 35, 77, 0.6), rgba(16, 26, 54, 0.6));
}

.span-4 {
  grid-column: span 4;
}

.span-3 {
  grid-column: span 3;
}

.span-2 {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .span-4,
  .span-3,
  .span-2 {
    grid-column: 1 / -1;
  }
}

.tile h3 {
  margin: 0 0 0.5rem;
  font: 800 1.3rem/1.2 var(--display);
  font-stretch: 112%;
}

.tile > p {
  max-width: 38rem;
  margin: 0 0 1.25rem;
  color: var(--soft);
}

.weights {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.weights li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) 2.2rem;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.925rem;
}

.weights .value {
  color: var(--soft);
  text-align: right;
}

.track {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #1b2750;
}

.bar {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.bar.low {
  background: var(--cold);
}

.bar.mid {
  background: var(--amber);
}

.bar.high {
  background: var(--hot);
}

.w-12 { width: 12%; }
.w-32 { width: 32%; }
.w-40 { width: 40%; }
.w-48 { width: 48%; }
.w-60 { width: 60%; }
.w-80 { width: 80%; }
.w-100 { width: 100%; }

.flow {
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow li {
  position: relative;
  padding: 0 0 1.1rem 1.6rem;
  color: var(--soft);
}

.flow li:last-child {
  padding-bottom: 0;
}

.flow li::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
}

.flow li::after {
  content: "";
  position: absolute;
  top: 1.2rem;
  bottom: -0.2rem;
  left: 4px;
  width: 2px;
  background: var(--line-strong);
}

.flow li:last-child::after {
  display: none;
}

.flow strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.chat {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0a1022;
  font-size: 0.925rem;
}

.chat-line {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.75rem;
}

.chat-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--line-strong);
  font: 700 0.95rem/1 var(--display);
}

.chat-avatar.bot {
  background: transparent;
}

.chat-name {
  margin-right: 0.4rem;
  font-weight: 600;
}

.chat-tag {
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  background: var(--cold);
  color: var(--on-amber);
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
}

.chat-text {
  margin: 0.1rem 0 0;
  color: var(--soft);
  overflow-wrap: anywhere;
}

.mock-panel {
  display: grid;
  gap: 0.6rem;
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 11, 23, 0.4);
  color: var(--soft);
  font-size: 0.925rem;
}

.mock-switch {
  position: relative;
  flex: none;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #2a3560;
}

.mock-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}

.mock-switch.on {
  background: var(--amber);
}

.mock-switch.on::after {
  left: 19px;
}

/* Commands */
.commands {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  gap: 0.9rem 2rem;
  margin: 0;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(23, 35, 77, 0.6), rgba(16, 26, 54, 0.6));
}

.commands dt {
  margin: 0;
}

.commands dd {
  margin: 0;
  color: var(--soft);
}

@media (max-width: 640px) {
  .commands {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }

  .commands dd {
    margin-bottom: 0.8rem;
  }
}

/* Closing call to action */
.cta {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  text-align: center;
}

.cta h2 {
  margin: 0 0 1.5rem;
  font: 800 clamp(1.8rem, 4vw, 2.8rem)/1.1 var(--display);
  font-stretch: 125%;
}

.cta .actions {
  justify-content: center;
}

/* Footer */
.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* Privacy and terms pages */
.prose {
  max-width: 42rem;
  padding-block: 2.5rem 4rem;
}

.prose h1 {
  margin: 0 0 0.5rem;
  font: 800 clamp(2rem, 4vw, 2.75rem)/1.1 var(--display);
  font-stretch: 125%;
}

.prose h2 {
  margin: 2.25rem 0 0.5rem;
  font: 700 1.25rem/1.3 var(--display);
  font-stretch: 112%;
}

.prose p,
.prose li {
  color: #cdd5ee;
}

.prose a {
  color: var(--amber);
}

.prose .updated {
  color: var(--soft);
}
