/* V3D — ИИ API портал
   Палитра: глубокий фиолетовый + неоновый акцент
   Тренды 2026: bento-карточки, glassmorphism, мягкие orb-градиенты,
   typography-driven hero, тонкая сетка, аккуратная анимация.
*/

:root {
  --bg: #0b0418;
  --bg-2: #14082b;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ECE6FF;
  --muted: #A99CD0;
  --primary: #8B5CF6;        /* violet-500 */
  --primary-2: #A78BFA;      /* violet-400 */
  --accent: #22D3EE;         /* cyan-400 */
  --pink: #F472B6;
  --shadow: 0 10px 40px rgba(91, 33, 182, 0.35);
  --radius: 18px;
  --radius-lg: 26px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(1200px 800px at 80% -10%, #2a0d5c 0%, transparent 60%),
              radial-gradient(900px 700px at -10% 20%, #3b0f6e 0%, transparent 55%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

/* фоновые орбы */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  animation: float 18s ease-in-out infinite;
}
.orb-1 { width: 520px; height: 520px; background: #7c3aed; top: -120px; left: -120px; }
.orb-2 { width: 460px; height: 460px; background: #ec4899; top: 40%; right: -160px; animation-delay: -6s; }
.orb-3 { width: 600px; height: 600px; background: #22d3ee; bottom: -240px; left: 30%; opacity: .25; animation-delay: -12s; }

@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(40px,-30px) scale(1.05); }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

/* Навигация */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 28px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
}
.logo-mark {
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 60%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* Портал-бар */
.portals-bar {
  position: relative;
  z-index: 9;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 10px;
}
.portals-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.portals-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .2px;
}
.portal-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .2s, border-color .2s, transform .15s;
}
.portal-chip:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.portal-chip svg { flex-shrink: 0; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(236, 72, 153, 0.5); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--surface-2); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* Hero */
main { position: relative; z-index: 5; max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.hero {
  text-align: center;
  padding: 80px 0 100px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 0 rgba(34,211,238,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,211,238,.7); }
  70% { box-shadow: 0 0 0 10px rgba(34,211,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.05;
  letter-spacing: -2px;
  font-weight: 700;
  margin: 0 0 22px;
}
.grad {
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 40%, #8b5cf6 70%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 680px;
  margin: 0 auto 36px;
  font-size: 19px;
  color: var(--muted);
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-stats b {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  background: linear-gradient(135deg, #fff, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats span { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Секции */
.section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4.5vw, 48px);
  margin: 0 0 14px;
  letter-spacing: -1px;
}
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* Модели */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.model-card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
  overflow: hidden;
}
.model-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 100% 0%, rgba(139,92,246,0.18), transparent 60%);
  pointer-events: none;
}
.model-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.model-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.model-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.5px;
}
.tag {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.tag-flagship { background: rgba(244,114,182,.15); color: #f9a8d4; border: 1px solid rgba(244,114,182,.3); }
.tag-balanced { background: rgba(139,92,246,.15); color: #c4b5fd; border: 1px solid rgba(139,92,246,.3); }
.tag-fast     { background: rgba(34,211,238,.15); color: #67e8f9; border: 1px solid rgba(34,211,238,.3); }

.model-card p { color: var(--muted); margin: 0 0 22px; font-size: 15px; }

.versions {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.versions li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  font-size: 14px;
}
.ver {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
}
.ver-meta { color: var(--muted); font-size: 12px; }
.ver-meta.new {
  color: #67e8f9;
  font-weight: 600;
}

/* Фичи */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .2s, border-color .2s, background .2s;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(236,72,153,0.2));
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature h4 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.3px;
}
.feature p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* CTA блок */
.cta-section { padding: 60px 0 100px; }
.cta-card {
  text-align: center;
  padding: 70px 30px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(236,72,153,0.25), transparent 60%),
    linear-gradient(180deg, rgba(139,92,246,0.18), rgba(139,92,246,0.05));
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.cta-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  margin: 0 0 14px;
  letter-spacing: -1px;
}
.cta-card p { color: var(--muted); margin: 0 0 30px; font-size: 17px; }

/* Footer */
.footer {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 50px 28px 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  margin: 0 0 14px;
  color: var(--text);
  letter-spacing: .3px;
}
.footer a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color .2s;
}
.footer a:hover { color: var(--text); }
.muted { color: var(--muted); font-size: 13px; margin-top: 6px; }
.copyright {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* Адаптив */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero { padding: 50px 0 70px; }
  .hero-stats { gap: 28px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
