:root {
  --bg: #fafafa;
  --panel: #ffffff;
  --text: #0a0a0a;
  --muted: #666666;
  --faint: #8a8a8a;
  --line: #e5e5e5;
  --line-strong: #d4d4d4;
  --black: #000000;
  --radius: 8px;
  --max: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: 90px 90px;
  letter-spacing: 0;
}

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

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

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(250, 250, 250, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1220px;
  min-height: 68px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  width: 0;
  height: 0;
  border-right: 10px solid transparent;
  border-bottom: 18px solid var(--black);
  border-left: 10px solid transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #333333;
  font-size: 14px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-button {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 20px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.button.primary {
  border-color: var(--black);
  background: var(--black);
  color: #ffffff;
}

.button.small {
  min-height: 34px;
  padding: 0 13px;
  font-size: 13px;
}

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 24px 28px;
  text-align: center;
}

.hero::before {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  height: 300px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background:
    radial-gradient(circle at 24% 72%, rgba(255, 102, 0, 0.32), transparent 26%),
    radial-gradient(circle at 50% 65%, rgba(255, 230, 0, 0.28), transparent 24%),
    radial-gradient(circle at 74% 70%, rgba(0, 179, 136, 0.30), transparent 28%);
  content: "";
  filter: blur(0.2px);
  opacity: 0.92;
  pointer-events: none;
}

.announcement {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 72px;
  color: #191919;
  font-size: 14px;
}

.pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #0366d6;
  font-size: 13px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

.page-title {
  margin: 0;
  max-width: 1040px;
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p,
.page-lead {
  max-width: 690px;
  margin: 24px auto 0;
  color: #4d4d4d;
  font-size: 20px;
  line-height: 1.65;
}

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

.hero-visual {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 54px auto 0;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 24px;
}

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

.section-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.section-copy {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.search {
  width: min(100%, 280px);
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.product-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-icon {
  display: grid;
  overflow: hidden;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent, #000000);
  color: #ffffff;
  font-weight: 800;
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.product-card h3 {
  margin: 30px 0 10px;
  font-size: 24px;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: #333333;
  font-size: 12px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.arrow-link {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.arrow-link:hover {
  border-color: var(--black);
  background: var(--black);
  color: #ffffff;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 90px;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 28px;
  align-items: start;
  margin-top: 36px;
}

.detail-panel {
  padding: 24px;
}

.feature-grid,
.metric-grid,
.wiki-grid {
  display: grid;
  gap: 14px;
}

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

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.metric {
  padding: 18px;
}

.metric strong {
  display: block;
  font-size: 26px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.feature {
  padding: 20px;
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.platform-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 16px;
  padding: 16px;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.90);
  background-size: 72px 72px;
}

.platform-stage {
  display: grid;
  min-height: 580px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 24px;
}

.platform-panel {
  display: grid;
  width: 100%;
  gap: 18px;
  place-items: center;
}

.platform-rail {
  display: grid;
  align-content: start;
  gap: 10px;
}

.platform-tab {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.platform-tab.is-active {
  border-color: var(--black);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.platform-tab span {
  color: var(--muted);
  font-size: 13px;
}

.platform-tab strong {
  font-size: 16px;
  line-height: 1.25;
}

.platform-tab small {
  color: var(--faint);
  font-size: 12px;
}

.device-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid #d8d8d8;
  background: #111111;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.08);
}

.device-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.device-carousel,
.carousel-track,
.carousel-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.device-carousel {
  cursor: grab;
  touch-action: pan-y;
}

.device-carousel.is-dragging {
  cursor: grabbing;
}

.carousel-slide {
  margin: 0;
}

.carousel-slide img {
  position: absolute;
  inset: 0;
}

.phone .device-frame img {
  object-position: center bottom;
}

.phone .device-frame {
  width: min(100%, 270px);
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  border-width: 7px;
  border-radius: 30px;
}

.tablet .device-frame {
  width: min(100%, 760px);
  aspect-ratio: 4 / 3;
  border-width: 7px;
  border-radius: 20px;
}

.desktop .device-frame {
  width: min(100%, 820px);
  aspect-ratio: 16 / 10;
  border-width: 7px;
  border-radius: 16px;
}

.tv .device-frame {
  width: min(100%, 860px);
  aspect-ratio: 16 / 9;
  border-width: 7px;
  border-radius: 14px;
}

.screen-overlay {
  position: absolute;
  right: 12px;
  bottom: 54px;
  left: 12px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.42);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.screen-overlay strong {
  font-size: 15px;
  line-height: 1.1;
}

.carousel-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  gap: 10px;
  align-items: center;
}

.carousel-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: #ffffff;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.carousel-dot.is-active {
  width: 18px;
  background: #ffffff;
}

.platform-copy {
  max-width: 620px;
  text-align: center;
}

.platform-copy span {
  color: var(--muted);
  font-size: 13px;
}

.platform-copy h3 {
  margin: 8px 0 8px;
  font-size: 26px;
  line-height: 1.1;
}

.platform-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.side-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  color: var(--muted);
}

.side-list strong {
  color: var(--text);
  font-weight: 600;
}

.policy {
  max-width: 860px;
}

.doc-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
}

.doc-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  padding: 12px;
}

.doc-sidebar a {
  display: block;
  border-radius: 6px;
  padding: 10px 12px;
  color: #333333;
  font-size: 14px;
}

.doc-sidebar a:hover {
  background: #f1f1f1;
}

.markdown {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  padding: 34px;
}

.markdown h1,
.markdown h2,
.markdown h3 {
  margin: 0 0 16px;
  line-height: 1.15;
}

.markdown h1 {
  font-size: 42px;
}

.markdown h2 {
  margin-top: 34px;
  font-size: 26px;
}

.markdown p,
.markdown li {
  color: #3f3f3f;
  font-size: 16px;
  line-height: 1.75;
}

.markdown code {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  background: #f5f5f5;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 24px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  max-width: var(--max);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

@media (max-width: 820px) {
  .nav {
    padding: 0 18px;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    padding: 8px;
  }

  .nav-links[data-open] {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .nav-actions .button:not(.mobile-keep) {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero {
    padding-top: 32px;
  }

  .announcement {
    margin-bottom: 42px;
  }

  .hero h1,
  .page-title {
    font-size: 38px;
  }

  .hero p,
  .page-lead {
    font-size: 17px;
  }

  .terminal-body,
  .page-grid,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .terminal-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-grid,
  .feature-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .platform-showcase {
    grid-template-columns: 1fr;
  }

  .platform-stage {
    min-height: auto;
    padding: 16px;
  }

  .section-header,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    width: 100%;
  }

  .doc-sidebar {
    position: static;
  }
}
