:root {
  --accent: #4361ee;
  --accent-soft: rgba(67, 97, 238, 0.12);
  --yellow: #ffd166;
  --orange: #ff6b35;
  --green: #06d6a0;
  --surface: #f7f5f0;
  --surface-elevated: #ffffff;
  --ink: #1b1733;
  --ink-muted: rgba(27, 23, 51, 0.68);
  --ink-faint: rgba(27, 23, 51, 0.45);
  --line: rgba(27, 23, 51, 0.1);
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(27, 23, 51, 0.1);
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(67, 97, 238, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 5%, rgba(255, 209, 102, 0.22), transparent 50%),
    radial-gradient(ellipse 50% 35% at 70% 100%, rgba(6, 214, 160, 0.12), transparent 55%),
    var(--surface);
  line-height: 1.6;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #2f49d1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 245, 240, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.site-footer__inner,
.wrap {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

@media (min-width: 640px) {
  .site-header__inner,
  .site-footer__inner,
  .wrap {
    width: min(100% - 2rem, var(--max));
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  padding-top: max(0.75rem, env(safe-area-inset-top));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  min-width: 0;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
}

.brand span {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .brand span {
    font-size: 1.05rem;
  }
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .nav {
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    font-size: 0.92rem;
    overflow: visible;
  }
}

.nav a {
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.35rem 0.15rem;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

.hero {
  padding: clamp(1.75rem, 6vw, 5rem) 0 clamp(1.5rem, 4vw, 3.5rem);
}

.hero__grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  grid-template-areas:
    "copy"
    "panel"
    "features";
}

.hero__copy { grid-area: copy; }
.hero__panel { grid-area: panel; }
.hero__features {
  grid-area: features;
  margin-top: 0.25rem;
}

@media (min-width: 860px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas:
      "copy panel"
      "features panel";
    gap: 1.25rem 3rem;
    align-items: end;
  }

  .hero__features {
    margin-top: 0.5rem;
    align-self: start;
  }

  .hero__panel {
    align-self: end;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .eyebrow {
    font-size: 0.72rem;
  }
}

.hero h1,
.doc h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 9vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero h1 {
  max-width: 12ch;
}

.hero__lede,
.doc .lede {
  margin: 0 0 1rem;
  max-width: 36rem;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.platform {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.7rem 0.35rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

@media (min-width: 640px) {
  .platforms {
    gap: 0.65rem;
    margin: 0 0 1.5rem;
  }

  .platform {
    gap: 0.55rem;
    min-height: 2.75rem;
    padding: 0.4rem 0.85rem 0.4rem 0.55rem;
  }
}

.platform__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.platform__icon svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 640px) {
  .platform__icon {
    width: 2rem;
    height: 2rem;
  }

  .platform__icon svg {
    width: 20px;
    height: 20px;
  }
}

.platform__meta {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.15;
}

.platform__name {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.platform__status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.platform--live {
  border-color: rgba(6, 214, 160, 0.35);
  background: rgba(6, 214, 160, 0.1);
}

.platform--live .platform__icon {
  background: rgba(6, 214, 160, 0.18);
  color: #049870;
}

.platform--live .platform__status {
  color: #049870;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  touch-action: manipulation;
}

@media (max-width: 479px) {
  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: #2f49d1;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero__panel {
  position: relative;
  width: min(100%, 280px);
  margin-inline: auto;
  padding: 0.85rem;
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.65)),
    linear-gradient(160deg, var(--accent-soft), rgba(255, 209, 102, 0.18));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .hero__panel {
    width: min(100%, 340px);
    padding: 1.25rem;
  }
}

@media (min-width: 860px) {
  .hero__panel {
    width: 100%;
  }
}

.hero__panel img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 9 / 16;
  max-height: min(62vh, 520px);
  object-fit: cover;
  object-position: top center;
  background: #0f0f1e;
}

@media (min-width: 860px) {
  .hero__panel img {
    max-height: none;
  }
}

.hero__badge {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  width: fit-content;
  max-width: calc(100% - 2.2rem);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(27, 23, 51, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

@media (min-width: 640px) {
  .hero__badge {
    left: 1.75rem;
    right: auto;
    bottom: 1.75rem;
    max-width: none;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
  }
}

.section {
  padding: 0.5rem 0 3rem;
}

@media (min-width: 640px) {
  .section {
    padding: 1rem 0 4.5rem;
  }
}

.section__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 720px) {
  .section__head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
}

.section__head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 5vw, 2.1rem);
  letter-spacing: -0.03em;
}

.section__head p {
  margin: 0;
  max-width: 28rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

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

@media (min-width: 720px) {
  .shot-grid {
    gap: 1.25rem;
    grid-template-columns: repeat(4, 1fr);
  }
}

.shot {
  margin: 0;
  min-width: 0;
}

.shot img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(27, 23, 51, 0.08);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  background: #1b1733;
}

@media (min-width: 640px) {
  .shot img {
    border-radius: 14px;
  }
}

.shot figcaption {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--ink-faint);
  font-weight: 600;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .shot figcaption {
    margin-top: 0.55rem;
    font-size: 0.82rem;
  }
}

.features {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .features {
    gap: 0.85rem;
    font-size: 1rem;
  }
}

.features li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink-muted);
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green);
}

.doc {
  padding: 1.5rem 0 3rem;
}

@media (min-width: 640px) {
  .doc {
    padding: 2.5rem 0 4rem;
  }
}

.doc-card {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 1.1rem;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .doc-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
  }
}

.doc-card h1 {
  font-size: clamp(1.65rem, 6vw, 2.6rem);
}

.doc-card .meta {
  margin: 0 0 1.25rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

@media (min-width: 640px) {
  .doc-card .meta {
    margin: 0 0 1.5rem;
    font-size: 0.82rem;
  }
}

.doc-card h2 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .doc-card h2 {
    margin: 1.75rem 0 0.65rem;
    font-size: 1.15rem;
  }
}

.doc-card p,
.doc-card li {
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}

.doc-card ul {
  padding-left: 1.15rem;
}

.doc-card li + li {
  margin-top: 0.35rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 max(1.5rem, env(safe-area-inset-bottom));
  color: var(--ink-faint);
  font-size: 0.84rem;
}

@media (min-width: 640px) {
  .site-footer {
    padding: 1.5rem 0 2rem;
    font-size: 0.88rem;
  }
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: space-between;
  }
}

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

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

/* Motion */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim {
  animation: rise-in 0.7s ease both;
}

.anim-d1 { animation-delay: 0.08s; }
.anim-d2 { animation-delay: 0.16s; }
.anim-d3 { animation-delay: 0.24s; }
.anim-d4 { animation-delay: 0.32s; }
.anim-d5 { animation-delay: 0.4s; }
.anim-d6 { animation-delay: 0.48s; }
.anim-d7 { animation-delay: 0.56s; }
.anim-d8 { animation-delay: 0.64s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim { animation: none; }
  .btn:hover { transform: none; }
}
