/* ModelSet v2: developer infrastructure visual system */
:root {
  --bg: #f5f6f3;
  --bg-alt: #ecefea;
  --surface: #ffffff;
  --surface-hover: #f8f9f6;
  --border: #dfe3dd;
  --border-strong: #c8cec6;
  --accent: #c95f3f;
  --accent-hover: #ad4e33;
  --accent-light: #f8e9e3;
  --accent-lighter: #fcf4f1;
  --accent-gradient: #c95f3f;
  --success: #16845b;
  --signal: #2f68c5;
  --text-primary: #171a17;
  --text-secondary: #5a625b;
  --text-tertiary: #7f8980;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  --shadow-sm: 0 1px 2px rgba(20, 28, 20, 0.06);
  --shadow-md: 0 14px 40px rgba(20, 28, 20, 0.1);
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}

html {
  scroll-padding-top: 78px;
}

body {
  padding-top: 64px;
  background: var(--bg);
  background-image: none;
  font-family: 'IBM Plex Sans', 'Noto Sans SC', sans-serif;
  color: var(--text-primary);
  overflow-x: clip;
}

body * {
  letter-spacing: 0;
}

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

.container {
  width: min(100%, 1280px);
  max-width: 1280px;
  padding-inline: 32px;
}

::selection {
  background: #282d29;
  color: #fff;
}

:focus-visible {
  outline: 3px solid rgba(47, 104, 197, 0.5);
  outline-offset: 3px;
}

/* Navigation */
.nav {
  height: 64px;
  background: rgba(248, 249, 246, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-inner {
  height: 64px;
}

.nav-logo {
  gap: 10px;
  color: var(--text-primary);
}

.nav-logo-mark {
  width: 120px;
  height: auto;
}

.nav-links {
  gap: 2px;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: #e8ebe6;
}

.nav-cta,
.btn-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 5px;
  box-shadow: none;
}

.nav-cta:hover,
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.lang-btn {
  height: 36px;
  padding: 0 11px;
  border-radius: 5px;
  background: transparent;
  border-color: var(--border-strong);
}

.lang-menu {
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}

.lang-option {
  border-radius: 4px;
}

.nav-menu-btn {
  width: 38px;
  height: 38px;
  border-radius: 5px;
}

/* Shared structure */
.section {
  padding: 88px 0;
}

.section-header,
.models-header {
  max-width: 720px;
  margin: 0 auto 44px;
}

.section-eyebrow {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  text-transform: uppercase;
}

.section-header h2,
.section-header h1,
.models-header h2 {
  margin-bottom: 12px;
  font-size: 36px;
  line-height: 1.22;
  font-weight: 700;
}

.section-header p,
.models-header p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: none;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 30px rgba(22, 28, 22, 0.06);
}

/* Hero */
.hero {
  min-height: 720px;
  padding: 76px 0 68px;
  display: flex;
  align-items: center;
  background-color: #f5f6f3;
  background-image:
    linear-gradient(#dfe3dd 1px, transparent 1px),
    linear-gradient(90deg, #dfe3dd 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center center;
  border-bottom: 1px solid var(--border);
}

.hero::before,
.hero::after {
  display: none;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(560px, 1.12fr);
  gap: 72px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 132, 91, 0.12);
}

.hero-status code {
  padding-left: 9px;
  border-left: 1px solid var(--border-strong);
  color: var(--text-tertiary);
}

.hero h1 {
  display: block;
  overflow: visible;
  margin-bottom: 24px;
  max-width: 660px;
  font-size: 56px;
  line-height: 1.08;
  font-weight: 700;
}

.hero h1::after {
  display: none;
}

.hero h1 span {
  color: var(--text-primary);
  text-decoration-line: underline;
  text-decoration-color: rgba(201, 95, 63, 0.7);
  text-decoration-thickness: 5px;
  text-underline-offset: 8px;
}

.hero-sub {
  max-width: 610px;
  margin-bottom: 30px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.hero-actions {
  gap: 10px;
}

.hero-actions .btn-primary,
.hero-actions .btn-ghost {
  min-height: 46px;
  padding: 0 20px;
  font-size: 14px;
}

.hero-actions .btn-ghost {
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text-primary);
}

.hero-actions .btn-ghost:hover {
  background: #fff;
  border-color: #aeb5ad;
}

.hero-protocols {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  color: var(--text-tertiary);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.hero-protocols span {
  position: relative;
}

.hero-protocols span + span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a2aaa2;
}

/* Routing console */
.hero-terminal {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #343a35;
  border-radius: 8px;
  background: #1e231f;
  box-shadow: 16px 18px 0 #dce0da, 0 26px 80px rgba(22, 28, 22, 0.18);
  color: #f2f5f1;
}

.hero-terminal::after {
  display: none;
}

.terminal-header {
  min-height: 50px;
  padding: 0 18px;
  justify-content: space-between;
  background: #272c28;
  border-bottom: 1px solid #3a403b;
}

.console-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: #c6cdc7;
}

.console-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
}

.console-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  color: #8ee0b8;
}

.console-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #47c98a;
  box-shadow: 0 0 0 4px rgba(71, 201, 138, 0.12);
}

.console-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.api-protocol-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 136px;
  padding: 3px;
  border: 1px solid #454c46;
  border-radius: 5px;
  background: #1c211d;
}

.api-protocol-option {
  min-width: 0;
  height: 26px;
  padding: 0 9px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #8f9991;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.api-protocol-option:hover {
  color: #e4e9e5;
}

.api-protocol-option.active {
  background: #c4755a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  color: #fff;
}

.api-protocol-option:focus-visible {
  outline: 2px solid #f0a386;
  outline-offset: 2px;
}

.console-request {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  background: #1a1f1b;
  border-bottom: 1px solid #343a35;
}

.console-request code {
  min-width: 0;
  overflow: hidden;
  color: #dce2dc;
  font-family: var(--mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.http-method {
  color: #e79578;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.terminal-copy {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 4px;
  border-color: #495049;
  background: #272d28;
  color: #b8c0b9;
  white-space: nowrap;
}

.terminal-body {
  min-height: 292px;
  padding: 26px 22px 20px;
  color: inherit;
  font-family: 'IBM Plex Sans', 'Noto Sans SC', sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.route-flow {
  display: grid;
  grid-template-columns: minmax(90px, 0.85fr) 28px minmax(150px, 1.2fr) 28px minmax(120px, 1fr);
  align-items: center;
  gap: 8px;
}

.route-node {
  min-width: 0;
  border: 1px solid #424943;
  border-radius: 6px;
  background: #272d28;
}

.route-source {
  padding: 14px 12px;
}

.route-node-label,
.route-source code {
  display: block;
}

.route-node-label {
  margin-bottom: 5px;
  color: #f2f5f1;
  font-weight: 600;
}

.route-source code {
  color: #879188;
  font-size: 10px;
  white-space: nowrap;
}

.route-gateway {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 12px;
  border-color: rgba(201, 95, 63, 0.85);
  background: #312923;
  box-shadow: inset 3px 0 0 var(--accent);
}

.route-gateway-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: var(--accent);
  font-family: var(--mono);
  font-weight: 600;
}

.route-gateway strong,
.route-gateway small {
  display: block;
  min-width: 0;
}

.route-gateway > span:last-child {
  min-width: 0;
}

.route-gateway strong {
  margin-bottom: 3px;
  font-size: 12px;
  white-space: nowrap;
}

.route-gateway small {
  color: #a8b0a9;
  font-size: 9px;
  line-height: 1.4;
}

.route-connector {
  position: relative;
  display: block;
  height: 1px;
  background: #586159;
}

.route-connector::after {
  content: '';
  position: absolute;
  top: -3px;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1px solid #7f8a81;
  border-right: 1px solid #7f8a81;
  transform: rotate(45deg);
}

.route-connector i {
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef9575;
  animation: routePulse 2.4s linear infinite;
}

@keyframes routePulse {
  from { left: 0; opacity: 0; }
  20%, 80% { opacity: 1; }
  to { left: calc(100% - 5px); opacity: 0; }
}

.route-targets {
  display: grid;
  gap: 6px;
}

.route-targets > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #3c433d;
  border-radius: 4px;
  background: #252a26;
}

.route-targets strong {
  overflow: hidden;
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
}

.route-targets small {
  color: #7f8980;
  font-family: var(--mono);
  font-size: 8px;
}

.provider-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.anthropic-dot { background: #e67f5e; }
.openai-dot { background: #a7b0a8; }
.google-dot { background: #4d87d8; }

.console-log {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  margin-top: 24px;
  padding: 12px;
  border: 1px solid #343a35;
  border-radius: 4px;
  background: #1a1f1b;
  color: #aab2ab;
  font-family: var(--mono);
  font-size: 10px;
}

.log-time { color: #727d74; }
.log-success { color: #5fd29a; }

.console-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #343a35;
  background: #242925;
}

.console-metrics > div {
  padding: 13px 16px;
}

.console-metrics > div + div {
  border-left: 1px solid #343a35;
}

.console-metrics span,
.console-metrics strong {
  display: block;
  font-family: var(--mono);
}

.console-metrics span {
  margin-bottom: 4px;
  color: #778179;
  font-size: 8px;
}

.console-metrics strong {
  color: #d8ded8;
  font-size: 11px;
}

.console-metrics .metric-ok {
  color: #5fd29a;
}

/* Trust metrics */
.stats {
  padding: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  gap: 0;
  text-align: left;
}

.stat-item {
  min-width: 0;
  padding: 28px 30px;
}

.stat-item + .stat-item {
  border-left: 1px solid var(--border);
}

.stat-value {
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 600;
}

.stat-value span {
  color: var(--accent);
}

.stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
}

.stats .reveal {
  opacity: 1;
  transform: none;
}

/* Features */
#features {
  background: #fff;
}

.features-row-1,
.features-row-2 {
  gap: 14px;
  margin-bottom: 14px;
}

.feature-card,
.feature-card.wide {
  padding: 28px;
}

.feature-card.wide {
  gap: 32px;
  border-top: 3px solid var(--accent);
}

.feature-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  border-radius: 5px;
  background: #edf0ec;
  color: #343a35;
}

.feature-card h3 {
  font-size: 16px;
}

.feature-card p {
  font-size: 13px;
}

.feature-metrics {
  gap: 0;
  border-left: 1px solid var(--border);
}

.metric {
  padding: 12px 18px;
  text-align: left;
  background: transparent;
  border-radius: 0;
}

.metric + .metric {
  border-top: 1px solid var(--border);
}

.metric-value {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--accent);
}

/* Model directory */
.models-section {
  background: #202521;
  color: #f3f5f2;
  border-block: 1px solid #343a35;
}

.models-header p {
  color: #aeb6af;
}

.models-section .section-eyebrow {
  color: #ed997b;
}

.model-tabs {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 30px;
  padding: 3px;
  gap: 0;
  border: 1px solid #414841;
  border-radius: 6px;
  background: #191d1a;
}

.model-tab {
  padding: 8px 15px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #9fa8a0;
  font-family: var(--mono);
  font-size: 11px;
}

.model-tab:hover {
  border-color: transparent;
  color: #fff;
}

.model-tab.active {
  border-color: transparent;
  background: #353b36;
  color: #fff;
}

.models-grid {
  gap: 10px;
}

.model-item,
.model-item.hot {
  min-width: 0;
  padding: 15px 16px;
  border-color: #39403a;
  border-radius: 6px;
  background: #292f2a;
  color: #f1f4f1;
}

.model-item.hot {
  border-left: 3px solid var(--accent);
}

.model-item:hover {
  border-color: #555f56;
  box-shadow: none;
}

.model-info,
.model-info > div {
  min-width: 0;
}

.model-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
}

.model-icon.anthropic,
.model-icon.openai,
.model-icon.google,
.model-icon.deepseek,
.model-icon.qwen,
.model-icon.mistral {
  background: #3b423c;
}

.model-item .model-desc {
  max-width: none;
  color: #aab2ab;
}

.model-item .scenario-tag {
  padding: 2px 6px;
  border-color: #424a43;
  border-radius: 3px;
  background: #323833;
  color: #aeb6af;
}

.model-item .scenario-tag.hot {
  border-color: rgba(230, 127, 94, 0.4);
  background: rgba(201, 95, 63, 0.12);
  color: #efa082;
}

.model-item .status-badge {
  border-radius: 3px;
}

.model-item .status-badge.available {
  background: rgba(71, 201, 138, 0.12);
  color: #76dbaa;
}

.model-item .status-badge.coming-soon {
  background: #343a35;
  color: #8f9990;
}

.model-item .coming-overlay {
  background: rgba(32, 37, 33, 0.78);
  backdrop-filter: blur(2px);
}

.model-item .coming-overlay span {
  border-color: #586159;
  border-radius: 4px;
  background: #292f2a;
  color: #b1b9b2;
}

.models-summary {
  padding: 18px 20px;
  border-color: #39403a;
  border-radius: 6px;
  background: #292f2a;
}

.models-summary p,
.models-summary .prov {
  color: #aeb6af;
}

/* Pricing */
#pricing {
  background: #f5f6f3;
}

.nope-grid {
  gap: 10px;
}

.nope-card {
  padding: 22px 18px;
  text-align: left;
}

.nope-icon {
  width: 30px;
  height: 30px;
  margin: 0 0 20px;
  border-radius: 4px;
  background: #f5e2dc;
}

.promise-box {
  padding: 28px;
  border-radius: 8px;
}

.promise-icon {
  border-radius: 4px;
}

.promo-section {
  padding: 0 0 56px;
  background: #f5f6f3;
}

.promo-banner {
  max-width: 760px;
  padding: 20px 24px;
  border: 1px solid #e2c2b6;
  border-radius: 6px;
  background: #fff8f5;
}

.promo-banner::before {
  display: none;
}

.promo-icon {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: var(--accent);
}

.promo-icon svg {
  width: 21px;
  height: 21px;
}

.promo-tag {
  border-radius: 3px;
}

/* Referral */
.referral {
  background: #edf0ec;
  border-block: 1px solid var(--border);
}

.referral .section {
  padding: 80px 0;
}

.reward-showcase {
  max-width: 760px;
  padding: 30px;
  border-radius: 8px;
  text-align: left;
}

.reward-showcase::before {
  width: 3px;
  height: 100%;
  right: auto;
  background: var(--accent);
}

.reward-amount {
  font-family: var(--mono);
  font-size: 38px;
  font-weight: 600;
}

.reward-note {
  justify-content: flex-start;
}

.free-forever,
.redeem-box,
.checkin-box {
  max-width: 760px;
  padding: 20px 22px;
  border-radius: 6px;
  background: #fff;
}

.free-forever {
  border-color: var(--border);
}

.free-forever-icon,
.redeem-icon,
.checkin-icon {
  width: 42px;
  height: 42px;
  border-radius: 5px;
}

.steps-grid {
  gap: 10px;
}

.step-card {
  padding: 22px 18px;
  text-align: left;
}

.step-card::after {
  display: none;
}

.step-num {
  width: 28px;
  height: 28px;
  margin: 0 0 18px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
}

/* FAQ */
#faq {
  background: #fff;
}

#faq .container {
  max-width: 980px;
}

.faq-item {
  margin-bottom: 0;
  border-width: 0 0 1px;
  border-radius: 0;
}

.faq-toggle {
  min-height: 62px;
  padding: 16px 4px;
  font-family: inherit;
  font-size: 15px;
}

.faq-answer-inner {
  padding: 0 42px 20px 4px;
  font-size: 14px;
}

/* CTA and footer */
.cta-section {
  padding: 70px 0;
  background: #232824;
}

.cta-box {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.cta-box h3 {
  font-size: 32px;
}

.btn-white {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
}

.btn-white:hover {
  background: #db7556;
}

.footer {
  padding: 54px 0 28px;
  background: #181c19;
  border-top-color: #323833;
}

.footer-logo {
  color: #fff;
}

.footer-brand p,
.footer-link,
.footer-contact-label,
.footer-qr-label,
.footer-bottom {
  color: #8e988f;
}

.footer-link:hover,
.footer-link.active {
  color: #f19a7d;
}

.footer-bottom {
  border-top-color: #323833;
}

.footer-qr-item img {
  border-color: #414841;
  border-radius: 4px;
}

.toast,
.qr-modal-content {
  border-radius: 6px;
}

/* About page */
.about-section {
  padding-top: 104px;
  background: #f5f6f3;
}

.about-section .section-header {
  max-width: 820px;
  margin: 0 0 34px;
  text-align: left;
}

.about-section .section-header h2,
.about-section .section-header h1 {
  font-size: 52px;
}

.about-hero {
  max-width: 820px;
  margin: 0 0 60px;
  text-align: left;
}

.about-hero .about-tagline {
  font-size: 18px;
  line-height: 1.8;
}

.about-hero .about-tagline strong {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: rgba(201, 95, 63, 0.55);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.about-mission {
  padding: 36px 0;
  margin-bottom: 60px;
  overflow: visible;
  border-width: 1px 0;
  border-radius: 0;
  background: transparent;
}

.about-mission::before {
  display: none;
}

.about-mission-grid {
  gap: 72px;
}

.about-mission-item h3 {
  font-size: 17px;
}

.about-mission-item h3 .about-icon {
  border-radius: 4px;
  background: #e5e9e3;
  color: #343a35;
}

.about-values-title {
  margin-bottom: 24px;
  text-align: left;
  font-size: 22px;
}

.about-values-grid {
  gap: 10px;
}

.about-value-card {
  padding: 24px 20px;
  border-radius: 7px;
  text-align: left;
}

.about-value-icon {
  width: 36px;
  height: 36px;
  margin: 0 0 22px;
  border-radius: 4px;
  background: #e6eae4;
  color: #343a35;
}

.about-payment {
  padding: 26px 28px;
  border-left: 3px solid var(--accent);
  border-radius: 7px;
}

.about-payment-icon {
  width: 44px;
  height: 44px;
  border-radius: 5px;
  background: #f7e6e0;
}

.about-payment-tag {
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 1040px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 24px 18px;
    background: rgba(248, 249, 246, 0.98);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 12px;
  }

  .nav-menu-btn {
    display: inline-flex;
  }

  .hero {
    min-height: 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-terminal {
    width: min(100%, 780px);
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: 22px;
  }

  .nav-links {
    top: 64px;
  }

  .nav-cta {
    display: none;
  }

  .section {
    padding: 68px 0;
  }

  .section-header,
  .models-header {
    margin-bottom: 34px;
    text-align: left;
  }

  .section-header h2,
  .section-header h1,
  .models-header h2 {
    font-size: 30px;
  }

  .hero {
    min-height: 0;
    padding: 58px 0 52px;
    background-size: 36px 36px;
  }

  .hero-grid {
    gap: 42px;
  }

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

  .hero-sub {
    font-size: 16px;
  }

  .hero-protocols {
    gap: 13px;
    flex-wrap: wrap;
  }

  .hero-protocols span + span::before {
    display: none;
  }

  .hero-terminal {
    box-shadow: 9px 10px 0 #dce0da;
  }

  .route-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .route-connector {
    width: 1px;
    height: 18px;
    margin-left: 24px;
  }

  .route-connector::after {
    top: auto;
    right: -3px;
    bottom: 0;
    transform: rotate(135deg);
  }

  .route-connector i {
    top: 0;
    left: -2px;
    animation: routePulseMobile 2.4s linear infinite;
  }

  @keyframes routePulseMobile {
    from { top: 0; opacity: 0; }
    20%, 80% { opacity: 1; }
    to { top: calc(100% - 5px); opacity: 0; }
  }

  .terminal-body {
    min-height: 0;
  }

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

  .stat-item {
    padding: 22px;
  }

  .stat-item:nth-child(3) {
    border-left: 0;
  }

  .stat-item:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .features-row-1,
  .features-row-2 {
    grid-template-columns: 1fr;
  }

  .feature-card.wide {
    grid-template-columns: 1fr;
  }

  .feature-metrics {
    flex-direction: row;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .metric {
    flex: 1;
    padding: 12px 8px;
  }

  .metric + .metric {
    border-top: 0;
    border-left: 1px solid var(--border);
  }

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

  .model-tabs {
    width: 100%;
    margin-inline: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .model-tab {
    flex: 0 0 auto;
  }

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

  .reward-split {
    align-items: flex-start;
  }

  .reward-amount {
    font-size: 28px;
  }

  .about-section {
    padding-top: 76px;
  }

  .about-section .section-header h2,
  .about-section .section-header h1 {
    font-size: 40px;
  }

  .about-mission-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .about-payment {
    align-items: flex-start;
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-qr-grid {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 18px;
  }

  .nav-inner {
    gap: 8px;
  }

  .nav-logo {
    gap: 7px;
  }

  .nav-logo-mark {
    width: 112px;
    height: auto;
  }

  .nav-right {
    gap: 4px;
  }

  .lang-btn {
    padding: 0 8px;
  }

  .hero-status {
    max-width: 100%;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }

  .hero-status code {
    width: 100%;
    padding: 3px 0 0 16px;
    border-left: 0;
  }

  .hero h1 {
    margin-bottom: 18px;
    font-size: 34px;
    line-height: 1.12;
  }

  .hero h1 span {
    text-decoration-thickness: 4px;
    text-underline-offset: 6px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding: 36px 0 24px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-sub {
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-protocols {
    display: none;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
  }

  .console-request {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-inline: 12px;
  }

  .terminal-header {
    padding-inline: 12px;
  }

  .console-brand > span:last-child,
  .console-live {
    display: none;
  }

  .console-controls {
    gap: 0;
  }

  .api-protocol-switch {
    min-width: 132px;
  }

  .terminal-copy {
    padding-inline: 7px;
    font-size: 10px;
  }

  .terminal-body {
    padding: 14px;
  }

  .route-source,
  .route-gateway {
    padding-block: 10px;
  }

  .route-targets > div:nth-child(n + 2),
  .console-log,
  .console-metrics {
    display: none;
  }

  .console-metrics > div {
    padding: 11px 8px;
  }

  .stat-item {
    padding: 20px 18px;
  }

  .stat-value {
    font-size: 24px;
  }

  .feature-card,
  .feature-card.wide {
    padding: 22px;
  }

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

  .metric-value {
    font-size: 17px;
  }

  .metric-label {
    font-size: 10px;
  }

  .nope-grid,
  .promise-grid,
  .about-values-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .reward-showcase,
  .free-forever,
  .redeem-box,
  .checkin-box,
  .promo-banner,
  .about-payment {
    padding: 20px 18px;
  }

  .reward-split {
    flex-direction: column;
    gap: 20px;
  }

  .reward-divider {
    display: none;
  }

  .reward-side {
    width: 100%;
  }

  .free-forever,
  .redeem-box,
  .checkin-box,
  .promo-banner,
  .about-payment {
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }

  .about-section .section-header h2,
  .about-section .section-header h1 {
    font-size: 34px;
  }

  .about-hero .about-tagline {
    font-size: 16px;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-connector i {
    animation: none;
  }
}
