*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #050507;
  --ink: #f7f7f8;
  --muted: #b7bac6;
  --soft: #737889;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.105);
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #66e7ff;
  --pink: #ff6fd8;
  --green: #86ff9d;
  --amber: #ffd166;
  --black: #050507;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(102, 231, 255, 0.1), transparent 360px),
    linear-gradient(120deg, rgba(255, 111, 216, 0.08), transparent 42%),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 5, 7, 0.84);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.nav-inner,
.content {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.46);
}

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

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.075);
  outline: none;
}

.nav-links .support-link {
  color: #051014;
  background: var(--cyan);
}

.nav-links .support-link:hover,
.nav-links .support-link:focus-visible {
  color: #051014;
  background: #9af1ff;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(5, 5, 7, 0.96) 0%, rgba(5, 5, 7, 0.78) 42%, rgba(5, 5, 7, 0.28) 100%),
    linear-gradient(180deg, transparent 0%, rgba(5, 5, 7, 0.2) 64%, var(--bg) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent 0%, black 38%, black 100%);
}

.device-stage {
  position: absolute;
  inset: 64px 0 0 36%;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 22px;
  transform: rotate(-3deg);
}

.device {
  width: min(29vw, 310px);
  min-width: 240px;
  aspect-ratio: 390 / 844;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 38px;
  background: #0b0c10;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.58);
}

.device.secondary {
  margin-top: 82px;
  opacity: 0.9;
}

.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(102, 231, 255, 0.18), transparent 36%),
    linear-gradient(24deg, rgba(255, 111, 216, 0.18), transparent 52%),
    #0a0b10;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.screen-top {
  height: 56px;
  padding: 14px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 780;
}

.screen-dot-row {
  display: flex;
  gap: 5px;
}

.screen-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.chat-feed {
  padding: 22px 16px 0;
  display: grid;
  gap: 14px;
}

.welcome-mark {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 8px auto 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.welcome-mark img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.bubble {
  width: fit-content;
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 14px;
  line-height: 1.36;
}

.bubble.user {
  justify-self: end;
  color: #071014;
  background: var(--cyan);
  border-color: transparent;
}

.thinking-card,
.tool-card,
.model-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(0, 0, 0, 0.34);
  padding: 14px;
}

.thinking-card h4,
.tool-card h4,
.model-card h4 {
  margin: 0 0 9px;
  color: var(--cyan);
  font-size: 12px;
  text-transform: uppercase;
}

.line {
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
}

.line.short {
  width: 58%;
}

.tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.tool-row span:last-child {
  color: var(--green);
  font-weight: 800;
}

.model-list {
  display: grid;
  gap: 9px;
}

.model-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}

.model-pill strong {
  color: var(--green);
}

.composer {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.11);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.send {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--cyan);
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(1140px, calc(100% - 32px));
  min-height: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 86px;
}

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

.eyebrow {
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid rgba(102, 231, 255, 0.28);
  color: var(--cyan);
  background: rgba(102, 231, 255, 0.09);
  font-size: 12px;
  font-weight: 880;
  text-transform: uppercase;
}

h1 {
  max-width: 650px;
  font-size: 76px;
  line-height: 0.96;
  font-weight: 920;
}

.hero-copy {
  max-width: 590px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.45;
}

.hero-actions,
.support-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.085);
  font-weight: 820;
  text-decoration: none;
}

.button.primary {
  color: #051014;
  border-color: transparent;
  background: var(--cyan);
}

.button:hover,
.button:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.button.primary:hover,
.button.primary:focus-visible {
  color: #051014;
  background: #9af1ff;
}

.hero-note {
  max-width: 560px;
  margin-top: 20px;
  color: var(--soft);
  font-size: 14px;
}

section {
  padding: 84px 0;
}

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

h2 {
  max-width: 700px;
  font-size: 38px;
  line-height: 1.08;
  font-weight: 900;
}

.section-head p,
.support-intro {
  max-width: 570px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

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

.feature-card,
.mode-card,
.info-card,
.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
}

.feature-card,
.mode-card {
  min-height: 190px;
  padding: 20px;
}

.feature-card h3,
.mode-card h3,
.info-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.feature-card p,
.mode-card p,
.info-card p,
.info-card li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 8px;
  border-radius: 8px;
  color: #051014;
  background: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.tag.pink {
  background: var(--pink);
}

.tag.green {
  background: var(--green);
}

.tag.amber {
  background: var(--amber);
}

.showcase {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(100deg, rgba(102, 231, 255, 0.1), rgba(255, 111, 216, 0.08) 48%, rgba(134, 255, 157, 0.08)),
    rgba(255, 255, 255, 0.025);
}

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

.mode-card {
  min-height: 230px;
}

.support-band {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.support-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.info-stack {
  display: grid;
  gap: 14px;
}

.info-card {
  padding: 20px;
}

.info-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.email-link {
  color: var(--cyan);
  font-weight: 850;
}

.form-panel {
  padding: 22px;
  background: rgba(8, 9, 14, 0.78);
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  padding: 11px 12px;
  font: inherit;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  outline: 2px solid rgba(102, 231, 255, 0.2);
}

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.form-status {
  color: var(--soft);
  font-size: 13px;
}

.support-hero {
  padding: 92px 0 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(5, 5, 7, 0.96), rgba(5, 5, 7, 0.68)),
    url("/spike/assets/spike-icon.png") right 11% center / 360px auto no-repeat;
}

.support-hero h1 {
  font-size: 60px;
}

.support-hero .support-intro {
  margin-top: 18px;
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.footer {
  padding: 34px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--soft);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--ink);
  outline: none;
}

@media (max-width: 980px) {
  .nav-inner,
  .content,
  .hero-content {
    width: min(100% - 24px, 760px);
  }

  .nav-links a:not(.support-link) {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 730px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(5, 5, 7, 0.7) 0%, rgba(5, 5, 7, 0.95) 60%, var(--bg) 100%);
  }

  .hero-grid {
    mask-image: none;
  }

  .device-stage {
    inset: 66px auto auto 50%;
    width: 760px;
    transform: translateX(-50%) rotate(-3deg);
    opacity: 0.44;
  }

  .device {
    min-width: 220px;
    width: 220px;
  }

  h1 {
    font-size: 54px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .section-head,
  .support-layout,
  .footer-inner {
    display: grid;
  }

  .support-layout {
    grid-template-columns: 1fr;
  }

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

  .mode-grid,
  .contact-row {
    grid-template-columns: 1fr;
  }

  .support-hero {
    background:
      linear-gradient(180deg, rgba(5, 5, 7, 0.74), var(--bg)),
      url("/spike/assets/spike-icon.png") right -80px top 34px / 250px auto no-repeat;
  }

  .support-hero h1 {
    font-size: 46px;
  }
}

@media (max-width: 620px) {
  .brand span {
    font-size: 16px;
  }

  .nav-links .support-link {
    min-height: 36px;
    padding: 0 10px;
  }

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

  .device-stage {
    inset: 66px 12px auto;
    width: auto;
    justify-content: center;
    gap: 10px;
    opacity: 0.34;
    transform: rotate(-3deg);
  }

  .device {
    width: clamp(132px, 39vw, 170px);
    min-width: 0;
    padding: 10px;
    border-radius: 28px;
  }

  .screen {
    border-radius: 21px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 30px;
  }

  section {
    padding: 62px 0;
  }

  .feature-grid,
  .support-form {
    grid-template-columns: 1fr;
  }

  .form-foot {
    display: grid;
  }
}
