/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/montserrat-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/montserrat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/montserrat-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Base ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --bg-dark: #0a0a0c;
  --bg-dark-soft: #131318;
  --text: #0a0a0c;
  --text-soft: #4a4a55;
  --text-inv: #ffffff;
  --text-inv-soft: #a0a0ad;
  --border: #e7e7ec;
  --border-dark: #25252d;
  --accent: #6f5cff;
  --accent-2: #00d6a3;
  --grad: linear-gradient(135deg, #6f5cff 0%, #00d6a3 100%);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 24px 48px rgba(0,0,0,.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

::selection { background: rgba(111,92,255,.22); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  background: url("BasedIcon.png") center / contain no-repeat;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 500;
  font-size: 14px;
}
.nav-links a {
  color: var(--text-soft);
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--text);
  color: var(--text-inv) !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  transition: opacity .15s, transform .15s;
}
.nav-cta:hover { opacity: .88; transform: translateY(-1px); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: border-color .15s, background .15s;
}
.lang-toggle:hover { border-color: #cdcdd6; }
.lang-opt {
  padding: 2px 6px;
  border-radius: 999px;
  transition: color .15s, background .15s;
}
.lang-opt.active {
  color: var(--text);
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.lang-sep { opacity: .35; padding: 0 1px; }

@media (max-width: 860px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s, box-shadow .2s, opacity .15s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--text);
  color: var(--text-inv);
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(0,0,0,.26); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  font-weight: 500;
}
.btn-ghost:hover { opacity: .65; }
.btn-lg { padding: 18px 30px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 110px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.hero-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  animation: float 16s ease-in-out infinite;
}
.hero-bg .orb-1 {
  width: 520px; height: 520px;
  top: -180px; right: -160px;
  background: radial-gradient(circle, rgba(111,92,255,.55), transparent 65%);
}
.hero-bg .orb-2 {
  width: 480px; height: 480px;
  bottom: -220px; left: -160px;
  background: radial-gradient(circle, rgba(0,214,163,.45), transparent 65%);
  animation-delay: -6s;
}
.hero-bg .orb-3 {
  width: 320px; height: 320px;
  top: 30%; left: 35%;
  background: radial-gradient(circle, rgba(111,92,255,.20), transparent 65%);
  animation-delay: -10s;
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -28px, 0); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text { max-width: 640px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(0,214,163,.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 0 36px;
  font-weight: 400;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-meta {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-meta-item strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-meta-item span {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
}

/* Hero mockup phone */
.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}
.phone {
  width: 300px;
  height: 600px;
  background: #0a0a0c;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 50px 100px rgba(20,15,60,.30), 0 0 0 4px #1f1f25, inset 0 0 0 1px rgba(255,255,255,.04);
  transform: rotate(5deg);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: #050507;
  border-radius: 16px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #131318 0%, #0a0a0c 100%);
  border-radius: 36px;
  padding: 56px 16px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-bubble {
  max-width: 82%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.45;
  color: #fff;
  animation: bubbleIn .5s cubic-bezier(.2,.7,.2,1) backwards;
}
.chat-bubble:nth-child(1) { animation-delay: .2s; }
.chat-bubble:nth-child(2) { animation-delay: .6s; }
.chat-bubble:nth-child(3) { animation-delay: 1.2s; }
.chat-bubble:nth-child(4) { animation-delay: 1.6s; }
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-bubble.user {
  align-self: flex-end;
  background: var(--accent);
  border-bottom-right-radius: 4px;
}
.chat-bubble.ai {
  align-self: flex-start;
  background: #1e1e25;
  border-bottom-left-radius: 4px;
}
.chat-meta {
  font-size: 10px;
  color: #6f6f7d;
  margin-top: 6px;
  font-weight: 500;
}
.chat-bubble.typing {
  display: flex;
  gap: 4px;
  padding: 16px;
}
.chat-bubble.typing span {
  width: 6px; height: 6px;
  background: #6f6f7d;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}
.chat-bubble.typing span:nth-child(2) { animation-delay: .2s; }
.chat-bubble.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-mockup { display: none; }
}

/* ---------- Pillars ---------- */
.pillars {
  padding: 40px 0 80px;
  background: var(--bg);
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) {
  .pillar-grid { grid-template-columns: 1fr; }
}
.pillar {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #d4d4dc;
}
.pillar-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--text);
  color: var(--text-inv);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.pillar-icon svg { width: 24px; height: 24px; }
.pillar h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.pillar p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}
.section.dark {
  background: var(--bg-dark);
  color: #ffffff;
}
.section.dark .eyebrow { color: var(--accent-2); }
.section.dark p { color: #a0a0ad; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.section h2, .cta h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 18px;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-head p {
  font-size: 17px;
  color: var(--text-soft);
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col.reverse .col-text { order: 2; }
.two-col.reverse .col-visual { order: 1; }
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse .col-text,
  .two-col.reverse .col-visual { order: unset; }
}

.col-text p {
  font-size: 17px;
  margin: 0 0 22px;
}
.check-list {
  list-style: none;
  padding: 0; margin: 0;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-weight: 500;
  font-size: 15px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-2);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Privacy card */
.privacy-card {
  background: var(--bg-dark-soft);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.privacy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-dark);
  font-size: 15px;
}
.privacy-row:last-of-type { border-bottom: none; }
.privacy-row span { color: var(--text-inv-soft); }
.privacy-row strong { font-size: 22px; font-weight: 700; }
.zero { color: var(--accent-2); }
.privacy-foot {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 14px;
}

/* Offline card */
.offline-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 50px 28px;
  text-align: center;
}
.signal-bars {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 4px;
  height: 36px;
  margin-bottom: 16px;
}
.signal-bars span {
  width: 8px;
  background: #cfcfd8;
  border-radius: 2px;
  position: relative;
}
.signal-bars span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent, transparent 4px, rgba(255,255,255,.55) 4px, rgba(255,255,255,.55) 6px);
  border-radius: 2px;
}
.signal-bars span:nth-child(1) { height: 30%; }
.signal-bars span:nth-child(2) { height: 50%; }
.signal-bars span:nth-child(3) { height: 70%; }
.signal-bars span:nth-child(4) { height: 100%; }
.offline-status {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 28px;
  font-weight: 500;
}
.offline-state {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--text-inv);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(0,214,163,.6);
  animation: pulseDot 1.6s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(0,214,163,.6); }
  70% { box-shadow: 0 0 0 12px rgba(0,214,163,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,214,163,0); }
}

/* ---------- Smart (Image Analysis + Web Search) ---------- */
.smart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 880px) {
  .smart-grid { grid-template-columns: 1fr; }
}
.smart-card {
  background: var(--bg-dark-soft);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.smart-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(111,92,255,.12), transparent 50%);
  pointer-events: none;
}
.smart-card:nth-child(2)::before {
  background: radial-gradient(circle at 100% 0%, rgba(0,214,163,.12), transparent 50%);
}
.smart-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 24px 48px rgba(0,0,0,.4);
}
.smart-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 28px rgba(111,92,255,.4);
}
.smart-icon svg { width: 28px; height: 28px; }
.smart-card:nth-child(2) .smart-icon {
  background: linear-gradient(135deg, #00d6a3 0%, #6f5cff 100%);
  box-shadow: 0 10px 28px rgba(0,214,163,.4);
}
.smart-card h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text-inv);
}
.smart-card p {
  margin: 0 0 20px;
  color: var(--text-inv-soft);
  font-size: 15px;
  line-height: 1.6;
}
.mini-list {
  list-style: none;
  padding: 0; margin: 0;
}
.mini-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-inv-soft);
  margin-bottom: 8px;
}
.mini-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* ---------- Models cards ---------- */
.model-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .model-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .model-cards { grid-template-columns: 1fr; } }
.model-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.model-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d4d4dc;
}
.model-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.model-card-head strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.model-badge {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--text);
  color: var(--text-inv);
  letter-spacing: 0.04em;
}
.model-card-meta {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 14px;
  font-weight: 500;
}
.model-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}
.footnote {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-soft);
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
}
.feature:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}
.feature h4 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--text-inv);
}
.feature ul {
  list-style: none;
  padding: 0; margin: 0;
}
.feature li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-inv-soft);
  font-size: 14px;
}
.feature li:last-child { border-bottom: none; }
kbd {
  display: inline-block;
  padding: 2px 7px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border-dark);
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-inv);
  margin-right: 2px;
}

/* ---------- Files ---------- */
.files-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .files-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .files-grid { grid-template-columns: 1fr; } }
.file-cat {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .2s, border-color .2s;
}
.file-cat:hover {
  transform: translateY(-2px);
  border-color: #d4d4dc;
}
.file-cat-head {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--text);
}
.file-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.file-tags span {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 12px;
  padding: 5px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-soft);
  font-weight: 500;
}

/* ---------- FAQ ---------- */
.faq-container { max-width: 820px; margin: 0 auto; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background .2s, border-color .2s;
}
.faq-item[open] {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-inv);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 12px; height: 12px;
  border-right: 2px solid var(--text-inv-soft);
  border-bottom: 2px solid var(--text-inv-soft);
  transform: rotate(45deg);
  transition: transform .2s;
  flex-shrink: 0;
  margin-top: -4px;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.faq-item p {
  margin: 0;
  padding: 0 26px 22px;
  color: var(--text-inv-soft);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- Legal pages ---------- */
.legal-wrapper {
  max-width: 760px;
  margin: 0 auto;
}
.legal-wrapper h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 40px;
}
.legal-wrapper h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
}
.legal-wrapper p {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}
.legal-wrapper ul {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}
.legal-wrapper a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-wrapper a:hover { opacity: .85; }
.legal-wrapper strong { color: var(--text); font-weight: 600; }
.legal-back {
  display: inline-block;
  margin-top: 48px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft) !important;
  text-decoration: none !important;
}
.legal-back:hover { color: var(--text) !important; }

/* ---------- CTA ---------- */
.cta {
  padding: 120px 0;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(111,92,255,.14), transparent 50%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  text-align: center;
}
.cta p {
  font-size: 18px;
  color: var(--text-soft);
  margin: 0 0 36px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.footer-brand .muted { color: var(--text-soft); margin-left: 8px; font-weight: 400; }
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-soft);
}
.footer-links a:hover { color: var(--text); }

/* ---------- Dark mode (system preference) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0c;
    --bg-soft: #131318;
    --bg-dark: #050507;
    --bg-dark-soft: #131318;
    --text: #ffffff;
    --text-soft: #a0a0ad;
    --border: #25252d;
    --border-dark: #25252d;
    --shadow-md: 0 8px 24px rgba(0,0,0,.4);
    --shadow-lg: 0 24px 48px rgba(0,0,0,.5);
  }
  .nav { background: rgba(10,10,12,.78); }
  .nav-cta { background: #fff; color: #0a0a0c !important; }
  .btn-primary { background: #fff; color: #0a0a0c; }
  .pillar-icon { background: #fff; color: #0a0a0c; }
  .offline-card { background: var(--bg-soft); border-color: var(--border); }
  .signal-bars span { background: #3a3a45; }
  .offline-state { background: #fff; color: #0a0a0c; }
  .section.dark { background: #050507; }
  .lang-toggle { background: var(--bg-soft); border-color: var(--border); }
  .lang-toggle:hover { border-color: #3a3a45; }
  .lang-opt.active { background: var(--bg); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.4); }
  .hero-badge { background: rgba(255,255,255,.04); border-color: var(--border); }
  .file-cat { background: var(--bg-soft); }
  .file-tags span { background: rgba(255,255,255,.04); border-color: var(--border); color: var(--text-soft); }
  .model-card { background: var(--bg-soft); }
  .model-badge { background: #fff; color: #0a0a0c; }
}
