:root {
  --bg: #0a0e13;
  --bg-glow: rgba(243, 154, 60, 0.18);
  --surface-soft: rgba(30, 41, 57, 0.9);
  --line: rgba(159, 176, 195, 0.18);
  --line-strong: rgba(159, 176, 195, 0.34);
  --text: #f2f5f8;
  --muted: #a9b6c6;
  --accent: #f39a3c;
  --accent-deep: #d2781e;
  --accent-soft: rgba(243, 154, 60, 0.16);
  --link: #8bc5ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at top right, var(--bg-glow), transparent 32%),
    radial-gradient(circle at bottom left, rgba(78, 126, 184, 0.12), transparent 28%),
    linear-gradient(180deg, #0a0e13 0%, #080b10 100%);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: #bedfff;
}

.content-link {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.26rem 0.78rem;
  border: 1px solid rgba(211, 117, 24, 0.42);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff8ef;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(211, 117, 24, 0.22);
  vertical-align: middle;
}

.content-link:hover,
.content-link:focus-visible {
  color: #fff;
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(211, 117, 24, 0.28);
}

.disabled-link {
  pointer-events: none;
  cursor: default;
  opacity: 0.68;
  filter: saturate(0.55);
}

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

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  color: #ffd5ac;
  background: rgba(243, 154, 60, 0.12);
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  letter-spacing: 0.01em;
}

h2,
h3,
h4 {
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
}

h1 {
  font-family: "Sora", "Avenir Next", "Trebuchet MS", sans-serif;
  margin-bottom: 12px;
  font-size: clamp(2.9rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 56px;
}

.hero {
  margin-bottom: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 34px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(155deg, rgba(243, 154, 60, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(20, 28, 39, 0.96), rgba(12, 18, 26, 0.98));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(243, 154, 60, 0.12);
  color: #ffc994;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.subtitle {
  max-width: 42rem;
  margin: 12px 0 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-actions,
.tablist,
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-link,
.tab-button,
.section-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-link {
  padding: 0.85rem 1.15rem;
  border: 1px solid transparent;
  color: #fff5ea;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.button-link:hover {
  transform: translateY(-1px);
  color: #fff;
}

.button-link.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.tabs-shell {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 22px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(20, 28, 39, 0.96), rgba(12, 18, 26, 0.98));
}

.hero-heading {
  margin-bottom: 26px;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 22px;
}

.hero-title-row h1 {
  margin-bottom: 0;
}

.hero-icon {
  width: 94px;
  height: 94px;
  flex: 0 0 auto;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.28));
}

.hero-feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-feature-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.hero-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  align-self: stretch;
  border: 1px solid rgba(243, 154, 60, 0.22);
  border-radius: 16px;
  color: #ffd7b1;
  background:
    linear-gradient(180deg, rgba(243, 154, 60, 0.16), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-feature-icon svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.hero-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-feature-item strong,
.hero-feature-item span {
  /* display: block; */
}

.hero-feature-item strong {
  margin-top: 2px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.hero-feature-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.hero-actions {
  margin-top: 30px;
}

.tablist {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin: 0 -22px 22px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.tab-button {
  min-width: 132px;
  margin-bottom: -1px;
  position: relative;
  padding: 0.95rem 1.25rem 0.9rem;
  border: 1px solid transparent;
  border-bottom-color: transparent;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  justify-content: flex-start;
  box-shadow: none;
}

.tab-button:hover,
.tab-button:focus-visible {
  transform: none;
  outline: none;
  color: var(--text);
  border-color: rgba(159, 176, 195, 0.18);
  border-bottom-color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.section-nav a:hover,
.section-nav a:focus-visible {
  transform: translateY(-1px);
  outline: none;
  color: var(--text);
  border-color: var(--line-strong);
}

.tab-button[aria-selected="true"] {
  border-color: rgba(159, 176, 195, 0.28);
  border-bottom-color: rgba(20, 28, 39, 0.98);
  color: #fff8ef;
  background:
    linear-gradient(180deg, rgba(243, 154, 60, 0.22), rgba(255, 255, 255, 0.04) 28%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: inset 0 3px 0 rgba(243, 154, 60, 0.92);
}

.tab-panel {
  display: none;
  padding: 28px;
  /* border: 1px solid var(--line); */
  /* border-radius: var(--radius-lg); */
  /* background:
    linear-gradient(180deg, rgba(24, 33, 46, 0.94), rgba(16, 22, 31, 0.96)); */
}

.tab-panel.is-active {
  display: block;
}

.panel-intro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.panel-intro h2 {
  margin-bottom: 8px;
  font-size: 2.15rem;
}

.panel-intro p {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
}

.documentation-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-top: -10px;
}

.documentation-nav {
  position: sticky;
  top: 18px;
  z-index: 2;
  align-self: start;
  margin-top: -12px;
}

.documentation-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.documentation-nav-label {
  margin: 0 0 6px;
  color: #ffc994;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.documentation-nav a {
  padding: 0.7rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.documentation-nav a:hover,
.documentation-nav a:focus-visible,
.documentation-nav a.is-active {
  transform: translateX(2px);
  outline: none;
  color: var(--text);
  border-color: rgba(243, 154, 60, 0.2);
  background: rgba(243, 154, 60, 0.12);
}

.documentation-content {
  min-width: 0;
}

.documentation-section {
  scroll-margin-top: 32px;
}

.documentation-section + .documentation-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.documentation-section h3 {
  margin-bottom: 16px;
  font-size: 2rem;
}

.documentation-section h4 {
  margin: 24px 0 12px;
  font-size: 1.2rem;
}

.documentation-section p,
.documentation-section li {
  color: #d7e0ea;
}

.documentation-section ul {
  margin: 0;
  padding-left: 1.25rem;
}

.documentation-section li + li {
  margin-top: 0.5rem;
}

.screenshot-grid,
.feature-columns,
.split-columns {
  display: grid;
  gap: 24px;
}

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

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

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

.screenshot-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.screenshot-grid figcaption {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.screenshot-grid img,
details img {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.screenshot-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.benefit-list {
  margin: 0;
  padding-left: 1.25rem;
}

.benefit-list li {
  padding-left: 0.25rem;
}

.callout {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(243, 154, 60, 0.24);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: #ffe1bf;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
}

details + details {
  margin-top: 16px;
}

details[open] {
  background: rgba(243, 154, 60, 0.06);
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

details img {
  width: min(420px, 100%);
  margin-top: 16px;
}

.table-wrap,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: rgba(255, 255, 255, 0.05);
  color: #fff2e5;
  font-size: 0.94rem;
}

tbody tr:last-child td {
  border-bottom: none;
}

.section-nav {
  justify-content: flex-end;
}

.section-nav a {
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.92rem;
}

.stack > * + * {
  margin-top: 22px;
}

.legal-card {
  padding: 22px;
  scroll-margin-top: 32px;
}

.legal-card h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.legal-card ul,
.legal-card ol {
  margin: 0;
  padding-left: 1.25rem;
  color: #d7e0ea;
}

.legal-card li + li {
  margin-top: 0.5rem;
} 

.license-banner {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(243, 154, 60, 0.12);
  color: #ffc994;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.footer {
  margin-top: 22px;
  padding: 0 6px;
  text-align: center;
  color: var(--muted);
  font-size: 0.96rem;
}

@media (max-width: 1100px) {
  .documentation-layout {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 0;
  }

  .documentation-nav {
    top: 12px;
    margin-top: 0;
  }

  .documentation-nav-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .documentation-nav-label {
    flex-basis: 100%;
    margin-bottom: 2px;
  }
}

@media (max-width: 980px) {
  .hero-feature-list,
  .feature-columns,
  .split-columns {
    grid-template-columns: 1fr;
  }

  .panel-intro {
    flex-direction: column;
  }

  .section-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--max-width), calc(100% - 20px));
  }

  .hero,
  .tabs-shell,
  .tab-panel {
    padding: 20px;
  }

  .tablist {
    gap: 4px;
    margin: 0 -20px 18px;
    padding: 0 10px;
  }

  .tab-button {
    min-width: 0;
    padding: 0.85rem 0.95rem 0.8rem;
  }

  .hero-heading {
    margin-bottom: 22px;
  }

  .hero-title-row {
    gap: 16px;
  }

  .hero-icon {
    width: 78px;
    height: 78px;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .documentation-section h3 {
    font-size: 1.7rem;
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 3.5rem);
  }

  table {
    min-width: 640px;
  }
}
