:root {
  --bg: #06101f;
  --ink: #f8fbff;
  --muted: #a8b5cf;
  --quiet: #73819c;
  --panel: #0b1528;
  --panel-2: #101c33;
  --line: #263a67;
  --brand: #7c4dff;
  --brand-2: #2f80ed;
  --mint: #62d58d;
  --amber: #f2aa2f;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: overlay;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(4, 8, 18, 0.9), rgba(4, 8, 18, 0.42));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(124, 77, 255, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(47, 128, 237, 0.28);
}

.brand.small {
  font-size: 1rem;
}

.brand.small img {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: #d6def4;
  font-size: 0.95rem;
}

.nav-links a {
  opacity: 0.88;
}

.nav-links a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: min(760px, 82vh);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 116px clamp(20px, 6vw, 84px) 72px;
  background:
    linear-gradient(90deg, rgba(4, 8, 18, 0.94) 0%, rgba(4, 8, 18, 0.8) 36%, rgba(4, 8, 18, 0.28) 100%),
    url("../screenshots/starling-chat-2026.png") center right / cover no-repeat;
  border-bottom: 1px solid rgba(91, 126, 196, 0.26);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 540px at 18% 35%, rgba(124, 77, 255, 0.22), transparent 70%),
    radial-gradient(720px 460px at 78% 80%, rgba(47, 128, 237, 0.18), transparent 72%),
    linear-gradient(180deg, rgba(5, 10, 22, 0.15), rgba(5, 10, 22, 0.72));
}

.hero-content {
  position: relative;
  width: min(720px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--mint);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.88;
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: #dce5f8;
  font-size: clamp(1.1rem, 2.1vw, 1.5rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(135deg, #8b5dff 0%, #5d8dff 100%);
  box-shadow: 0 16px 36px rgba(124, 77, 255, 0.34);
}

.button.primary:hover {
  background: linear-gradient(135deg, #9a6fff 0%, #6e9dff 100%);
}

.button.secondary {
  border: 1px solid rgba(214, 224, 255, 0.34);
  background: rgba(10, 17, 34, 0.68);
}

.section,
.intro-band,
.app-section {
  padding: clamp(56px, 8vw, 100px) clamp(18px, 5vw, 72px);
}

.intro-band {
  background:
    radial-gradient(720px 360px at 12% 0%, rgba(124, 77, 255, 0.12), transparent 70%),
    radial-gradient(640px 320px at 92% 100%, rgba(47, 128, 237, 0.1), transparent 70%),
    linear-gradient(180deg, #081426 0%, #060f1f 100%);
  border-top: 1px solid rgba(91, 126, 196, 0.08);
  border-bottom: 1px solid rgba(91, 126, 196, 0.08);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.intro-grid,
.app-grid,
.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
  overflow-wrap: break-word;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

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

.step-card,
.download-card,
.feature-list article {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(160deg, rgba(124, 77, 255, 0.05), transparent 55%),
    linear-gradient(180deg, #11203c 0%, #0a1628 100%);
  padding: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.step-card::before,
.feature-list article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 255, 0.45), transparent);
  opacity: 0.6;
}

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-weight: 800;
}

.step-card p,
.feature-list p {
  margin-bottom: 0;
}

.app-section {
  background:
    radial-gradient(900px 380px at 80% -10%, rgba(98, 213, 141, 0.08), transparent 70%),
    radial-gradient(700px 360px at 0% 110%, rgba(124, 77, 255, 0.1), transparent 72%),
    linear-gradient(180deg, #0a182d 0%, #08142a 100%);
}

.app-copy p {
  font-size: 1.05rem;
}

.screenshot-frame {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel-2);
  box-shadow: var(--shadow);
}

.screenshot-frame img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 16 / 10;
}

.screenshot-frame figcaption {
  padding: 14px 18px 16px;
  font-size: 0.95rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--panel);
  line-height: 1.5;
}

.screenshot-frame figcaption strong {
  color: var(--ink);
  font-weight: 800;
  margin-right: 6px;
}

.tour-frame {
  margin-bottom: 36px;
}

.tour-frame img {
  aspect-ratio: 16 / 9;
}

.tour-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.tour-grid .screenshot-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #060d1c;
}

.tour-grid .screenshot-frame {
  max-width: 920px;
  margin: 0 auto;
}

.security-band {
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(242, 170, 47, 0.14), transparent 72%),
    radial-gradient(700px 380px at 0% 100%, rgba(98, 213, 141, 0.12), transparent 72%),
    linear-gradient(180deg, rgba(8, 20, 38, 0.96), rgba(7, 13, 26, 1));
}

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

.download-section {
  background:
    radial-gradient(700px 360px at 50% -20%, rgba(47, 128, 237, 0.16), transparent 72%),
    linear-gradient(180deg, #081426 0%, #050b16 100%);
}

.download-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-start;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.download-card .os-logo {
  width: 28px;
  height: 28px;
  color: #d6def4;
  opacity: 0.9;
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.download-card:hover .os-logo {
  color: #ffffff;
  opacity: 1;
  transform: translateY(-1px);
}

.download-card > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.download-card:hover {
  transform: translateY(-3px);
  border-color: #6b8ee8;
  background: #101d36;
}

.download-card .platform {
  color: var(--amber);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.download-card strong {
  font-size: 1.4rem;
}

.download-card small {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(91, 126, 196, 0.26);
  padding: 26px clamp(18px, 5vw, 72px);
  background: #050b16;
}

.install-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(3, 7, 15, 0.76);
  backdrop-filter: blur(12px);
}

.install-modal[data-open="true"] {
  display: grid;
}

.install-modal__panel {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border: 1px solid rgba(124, 77, 255, 0.36);
  border-radius: 10px;
  background:
    linear-gradient(160deg, rgba(124, 77, 255, 0.08), transparent 54%),
    #0b1528;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  padding: clamp(22px, 4vw, 34px);
}

.install-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(214, 224, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.install-modal__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.install-modal h2 {
  padding-right: 34px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.install-modal__lede {
  margin: 14px 0 18px;
}

.install-modal ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.install-modal li {
  margin: 16px 0;
  line-height: 1.55;
}

.install-modal li strong {
  color: var(--ink);
}

.install-modal code {
  color: #eaf1ff;
}

.install-modal pre {
  overflow-x: auto;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid rgba(91, 126, 196, 0.32);
  border-radius: 8px;
  background: rgba(4, 8, 18, 0.72);
}

.install-modal__copy {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(214, 224, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.install-modal__note {
  margin: 18px 0 0;
  font-size: 0.92rem;
}

.install-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  color: var(--quiet);
  font-size: 0.9rem;
}

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

.footer-inner p {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 720px;
    align-items: flex-end;
    background-position: 62% center;
  }

  .intro-grid,
  .app-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: 680px;
    padding: 96px 18px 54px;
  }

  h2 {
    font-size: 1.55rem;
    line-height: 1.1;
  }

  .section,
  .intro-band,
  .app-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .steps,
  .download-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .install-modal__footer {
    align-items: stretch;
    flex-direction: column;
  }
}
