/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 0; text-align: center; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 50% at 50% 0%, rgba(38, 220, 236, 0.16), transparent 70%), radial-gradient(40% 40% at 85% 10%, rgba(12, 115, 254, 0.1), transparent 70%); animation: breathe 9s ease-in-out infinite; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px); background-size: 72px 72px; opacity: 0.035; -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%); pointer-events: none; }
.hero-inner { display: flex; align-items: center; flex-direction: column; }
.hero-inner > * { animation: rise 700ms var(--ease-out) both; }
.hero-inner > :nth-child(2) { animation-delay: 60ms; }
.hero-inner > :nth-child(3) { animation-delay: 120ms; }
.hero-inner > :nth-child(4) { animation-delay: 180ms; }
.hero-inner > :nth-child(5) { animation-delay: 230ms; }
.version-pill { display: inline-flex; min-height: 36px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; align-items: center; gap: 10px; color: var(--text-2); background: rgba(255, 255, 255, 0.03); font-size: 13px; font-weight: 500; text-decoration: none; transition: border-color 160ms ease, color 160ms ease; }
.version-pill:hover { border-color: rgba(38, 220, 236, 0.4); color: var(--text-1); }
.version-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px rgba(61, 220, 151, 0.7); }
.hero h1 { max-width: 14ch; margin-top: 28px; }
.hero .lead { max-width: 640px; margin-top: 24px; }
.hero-actions { display: flex; margin-top: 36px; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 24px; }
.hero-meta { margin: 18px 0 0; }
.hero-stage { position: relative; width: min(1280px, calc(100vw - 48px)); margin-top: clamp(48px, 6vw, 72px); perspective: 1800px; }
.hero-stage::before { content: ""; position: absolute; inset: 6% 6% auto; z-index: -1; height: 80%; border-radius: 50%; background: radial-gradient(closest-side, rgba(38, 220, 236, 0.22), rgba(12, 115, 254, 0.1) 60%, transparent); filter: blur(40px); }
.hero-frame { padding: 8px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(255, 255, 255, 0.03); box-shadow: 0 -20px 120px -30px var(--brand-glow); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 400ms var(--ease-out); -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.hero-frame picture { overflow: hidden; border-radius: 10px; background: var(--bg-2); }
.hero-frame img { width: 100%; height: auto; }

/* Trust strip */
.trust-strip { border-bottom: 1px solid var(--line); background: var(--bg-0); }
.trust-items { display: flex; min-height: 84px; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 32px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.trust-items i { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }

/* Models */
.logo-row { display: flex; margin: 0; padding: 0; align-items: center; justify-content: center; flex-wrap: wrap; list-style: none; gap: 12px; }
.logo-chip { display: inline-flex; min-height: 48px; padding: 0 20px 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; align-items: center; gap: 10px; color: var(--text-1); background: var(--bg-2); font-size: 15px; font-weight: 600; }
.logo-chip img { width: 22px; height: 22px; object-fit: contain; }
.logo-chip .logo-invert, .model-card-logo .logo-invert { filter: invert(1); }
.logo-chip.is-soon { border-style: dashed; color: var(--text-3); background: transparent; opacity: 0.6; }
.logo-chip small { padding: 2px 8px; border-radius: 999px; color: var(--text-3); background: rgba(255, 255, 255, 0.06); font-size: 11px; font-weight: 500; }
.model-cards { display: grid; width: min(100%, 1120px); margin: 44px auto 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.model-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); box-shadow: var(--shadow-card); transition: border-color 200ms ease; }
.model-card:hover { border-color: var(--line-strong); }
.model-card header { display: flex; align-items: center; gap: 14px; }
.model-card-logo { display: grid; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-md); place-items: center; background: var(--bg-1); }
.model-card-logo img { width: 24px; height: 24px; object-fit: contain; }
.model-card h3 { margin: 0; color: var(--text-1); font-size: 20px; font-weight: 600; }
.model-card code { display: inline-block; margin-top: 2px; color: var(--brand-1); font-size: 13px; }
.model-card dl { display: grid; margin: 26px 0 0; gap: 14px; }
.model-card dt { color: var(--text-3); font-size: 12px; }
.model-card dd { margin: 2px 0 0; color: var(--text-2); font-size: 15px; }
.model-card footer { display: flex; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Entry tabs */
.entry-tabs { display: flex; margin-bottom: 36px; justify-content: center; }
.entry-panel { display: grid; align-items: center; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); }
.entry-panel[hidden] { display: none; }
.entry-copy h3 { margin: 0; color: var(--text-1); font-size: clamp(26px, 2.6vw, 34px); font-weight: 650; line-height: 1.2; letter-spacing: -0.01em; }
.entry-copy p { margin: 16px 0 0; color: var(--text-2); }
.entry-copy p code { padding: 2px 7px; border-radius: 6px; color: var(--text-1); background: var(--bg-3); font-size: 0.88em; }
.entry-actions { display: flex; margin-top: 28px; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.entry-shot { margin: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; padding: 6px; background: rgba(255, 255, 255, 0.03); }
.entry-shot picture { overflow: hidden; border-radius: 9px; }
.entry-shot img { width: 100%; height: auto; }

.tui-terminal, .code-tool { min-width: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: #05070a; box-shadow: var(--shadow-card); }
.tui-terminal-bar, .code-toolbar { display: flex; min-height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); align-items: center; justify-content: space-between; gap: 12px; color: var(--text-3); background: var(--bg-1); font-family: var(--font-mono); font-size: 12px; }
.tui-window-dots { display: inline-flex; gap: 6px; }
.tui-window-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.tui-terminal-body { padding: 22px 22px 24px; color: var(--text-2); font-family: var(--font-mono); font-size: 13px; line-height: 1.7; }
.tui-line { display: flex; margin-top: 8px; align-items: center; gap: 10px; opacity: 0; animation: rise 500ms var(--ease-out) forwards; }
.tui-line:nth-child(1) { margin-top: 0; animation-delay: 100ms; }
.tui-line:nth-child(2) { animation-delay: 700ms; }
.tui-line:nth-child(3) { animation-delay: 1200ms; }
.tui-line:nth-child(4) { animation-delay: 1700ms; }
.tui-line:nth-child(5) { animation-delay: 2300ms; }
.tui-prompt { color: var(--brand-1); }
.tui-line .cmd { color: var(--text-1); }
.tui-line .ok { color: var(--ok); }
.tui-line em { margin-left: auto; color: var(--text-3); font-style: normal; }
.tui-done { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.025); }
.tui-done strong { color: var(--text-1); font-weight: 500; }
.tui-done small { display: block; color: var(--text-3); font-size: 12px; }

.code-toolbar button { padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text-2); background: transparent; font: 500 12px var(--font-sans); cursor: pointer; transition: color 160ms ease, border-color 160ms ease; }
.code-toolbar button:hover { border-color: rgba(255, 255, 255, 0.28); color: var(--text-1); }
.code-tool pre { margin: 0; padding: 22px; overflow-x: auto; color: var(--text-2); font-family: var(--font-mono); font-size: 13px; line-height: 1.8; }
.code-tool code { font-family: inherit; }
.tok-cmd { color: var(--brand-1); font-weight: 600; }
.tok-str { color: #9fe3b8; font-style: normal; }
.code-status { display: flex; padding: 12px 22px; border-top: 1px solid var(--line); align-items: center; gap: 10px; color: var(--text-3); font-family: var(--font-mono); font-size: 12px; }
.code-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* Pricing preview */
.preview-grid { display: grid; margin-top: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.preview-card { display: flex; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); flex-direction: column; background: var(--bg-2); box-shadow: var(--shadow-card); }
.preview-card.is-recommended { background: linear-gradient(180deg, rgba(38, 220, 236, 0.06), transparent 60%), var(--bg-2); box-shadow: var(--shadow-glow); }
.preview-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preview-card h3 { margin: 0; color: var(--text-1); font-size: 18px; font-weight: 600; }
.preview-price { display: flex; margin-top: 22px; align-items: baseline; gap: 4px; color: var(--text-1); }
.preview-price span { font-size: 22px; font-weight: 500; }
.preview-price strong { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.preview-price small { margin-left: 4px; color: var(--text-3); font-size: 14px; }
.preview-card p { margin: 12px 0 28px; color: var(--text-2); font-size: 15px; }
.preview-card .button { margin-top: auto; }
.preview-more { display: flex; margin-top: 28px; justify-content: center; }

@media (max-width: 1024px) {
  .entry-panel { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .model-cards, .preview-grid { grid-template-columns: 1fr; }
  .hero-stage { width: calc(100vw - 20px); }
  .hero h1 { max-width: none; }
  .trust-items i { display: none; }
  .trust-items { padding: 20px 0; gap: 10px 24px; }
}
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .button { width: 100%; }
  .hero-frame { padding: 5px; border-radius: 12px; }
  .hero-frame picture { border-radius: 8px; }
  .segmented { width: 100%; }
  .segmented [role="tab"] { flex: 1; padding: 0 8px; }
  .model-card, .preview-card { padding: 26px; }
  .tui-terminal-body, .code-tool pre { padding: 16px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tui-line { opacity: 1; }
  .hero-inner > * { animation: none; }
}