/* Landing — index.css (стиль шаблона 1:1) */
.hero-section {
  position: relative;
  isolation: isolate;
}
.hero-section::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(720px, 92vw);
  height: 320px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(167,139,250,0.22) 0%,
    rgba(236,72,153,0.08) 42%,
    transparent 72%);
  filter: blur(28px);
  pointer-events: none;
  z-index: -1;
  animation: hero-glow-breathe 6s ease-in-out infinite;
}
@keyframes hero-glow-breathe {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

.hero-widget-aura {
  position: relative;
  background: rgba(4,4,8,0.98);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.55),
    0 0 0 1px rgba(167,139,250,0.08) inset,
    0 0 48px rgba(167,139,250,0.18),
    0 0 120px rgba(236,72,153,0.08);
  overflow: hidden;
  text-align: left;
}
.hero-widget-aura::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(167,139,250,0.55),
    rgba(236,72,153,0.15),
    rgba(167,139,250,0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
  animation: hero-border-glow 5s ease-in-out infinite;
  z-index: 1;
}
@keyframes hero-border-glow {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

.hero-input-row {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  position: relative;
  text-align: left;
}

.hero-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(167,139,250,0.45);
  z-index: 2;
}

@keyframes typing-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-textarea {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  font-family: inherit;
  caret-color: var(--brand-mid);
  min-height: 42px;
  max-height: 42px;
  height: 42px;
  padding: 10px 0;
  text-align: left;
  position: relative;
  z-index: 1;
}
.hero-textarea::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.hero-textarea-placeholder {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  right: 74px;
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
  pointer-events: none;
  text-align: left !important;
  justify-content: flex-start;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 180ms;
  z-index: 0;
}

.hero-textarea-placeholder.is-hidden {
  opacity: 0;
}

.hero-textarea-placeholder.is-dim {
  opacity: 0.45;
}

#heroTyped {
  display: inline;
  text-align: left;
  white-space: nowrap;
}

.hero-textarea-placeholder .hero-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--brand-mid);
  margin-left: 1px;
  flex-shrink: 0;
  vertical-align: -0.15em;
  animation: typing-cursor 0.85s step-end infinite;
  box-shadow: 0 0 8px rgba(167,139,250,0.55);
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.07);
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}
.hero-stats-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 8px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.hero-stats-item:last-child { border-right: none; }

.tabs-scroll {
  display: flex;
  padding: 4px;
  border-radius: var(--radius-full);
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.tab-btn {
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  transition: 200ms;
  font-family: inherit;
}
.tab-btn.active {
  background: rgba(167,139,250,0.18);
  color: var(--text-primary);
  outline: 1px solid rgba(167,139,250,0.35);
}

.comp-desktop {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.comp-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.comp-row:last-child { border-bottom: none; }
.comp-cell {
  padding: 16px 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comp-cell.libra {
  background: rgba(167,139,250,0.04);
  border-left: 1px solid rgba(255,255,255,0.06);
  color: #c4b5fd;
}
.comp-cell.other {
  border-left: 1px solid rgba(255,255,255,0.06);
  color: var(--text-secondary);
}
.comp-mobile { display: none; }

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: all 200ms;
}
.pricing-card.popular {
  background: rgba(167,139,250,0.07);
  border-color: rgba(167,139,250,0.45);
  box-shadow: 0 0 40px rgba(167,139,250,0.1);
}
.pricing-card .badge-top {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-mid), var(--brand-end));
  white-space: nowrap;
}

.faq-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: rgba(13,13,26,0.84);
}
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
}
.faq-btn:hover { background: rgba(255,255,255,0.02); }
.faq-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  background: rgba(167,139,250,0.12);
  border: 1px solid rgba(167,139,250,0.25);
  color: var(--brand-mid);
}
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* Steps — круги + отдельные коннекторы между ними */
.steps-section {
  position: relative;
  padding: 120px 0;
  border-top: 1px solid var(--border-light);
  overflow: hidden;
}
.steps-section::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 55%;
  width: 80%;
  max-width: 900px;
  height: 200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(167,139,250,0.08), transparent 70%);
  pointer-events: none;
}
.steps-head {
  text-align: center;
  margin-bottom: 64px;
}
.steps-head h2 {
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 800;
  margin-top: 16px;
  letter-spacing: -0.02em;
}
.steps-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 8px 12px;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}
.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
}
.step-num {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 28px;
  background: linear-gradient(145deg, rgba(124,58,237,0.95), rgba(236,72,153,0.75));
  border: 1.5px solid rgba(196,181,253,0.55);
  box-shadow:
    0 0 0 6px rgba(167,139,250,0.08),
    0 10px 28px rgba(124,58,237,0.35);
  animation: step-pulse 3.6s ease-in-out infinite;
}
.step-card:nth-child(1) .step-num { animation-delay: 0s; }
.step-card:nth-child(3) .step-num { animation-delay: 0.45s; }
.step-card:nth-child(5) .step-num { animation-delay: 0.9s; }
@keyframes step-pulse {
  0%, 100% {
    box-shadow: 0 0 0 6px rgba(167,139,250,0.08), 0 10px 28px rgba(124,58,237,0.3);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(167,139,250,0.14), 0 12px 36px rgba(124,58,237,0.45);
  }
}
.step-connector {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 22px; /* центр круга 68px → ~34px, svg mid ~12px */
  width: 72px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(167,139,250,0.45));
}
.step-connector-svg {
  display: block;
  width: 64px;
  height: 24px;
  overflow: visible;
}
.step-connector-svg-v {
  display: none;
  width: 24px;
  height: 48px;
  overflow: visible;
}
.step-connector .conn-line {
  animation: step-dash 1.1s linear infinite;
}
.step-connector .conn-chev {
  transform-box: fill-box;
  transform-origin: center;
  animation: step-chev 1.35s ease-in-out infinite;
}
@keyframes step-dash {
  to { stroke-dashoffset: -24; }
}
@keyframes step-chev {
  0%, 100% { opacity: 0.55; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(3px); }
}
.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 240px;
}

@media (max-width: 768px) {
  .hero-stats-grid { grid-template-columns: 1fr; border-top: none; }
  .hero-stats-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .hero-stats-item:last-child { border-bottom: none; }
  .comp-desktop { display: none; }
  .comp-mobile { display: block !important; }
  .pricing-card { min-height: auto; }

  .steps-track {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 360px;
    justify-items: stretch;
  }
  .step-card {
    align-items: flex-start;
    text-align: left;
    padding: 0 0 0 88px;
    position: relative;
    min-height: 96px;
  }
  .step-num {
    position: absolute;
    left: 0;
    top: 0;
    margin-bottom: 0;
  }
  .step-card p { max-width: none; }
  .step-connector {
    width: 100%;
    height: 44px;
    padding: 0;
    justify-content: flex-start;
    padding-left: 22px; /* центр круга */
    align-items: center;
  }
  .step-connector-svg { display: none; }
  .step-connector-svg-v { display: block; }
  .step-connector .conn-chev {
    animation: step-chev-v 1.35s ease-in-out infinite;
  }
  @keyframes step-chev-v {
    0%, 100% { opacity: 0.55; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(3px); }
  }
}
@media (min-width: 769px) {
  .comp-mobile { display: none; }
}

/* ===== Homepage v2 ===== */
.hero-v2 {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 0 0;
  overflow: hidden;
}
.hero-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  animation: orb-float 10s ease-in-out infinite;
}
.orb-a { width: 420px; height: 420px; left: -80px; top: 10%; background: rgba(124,58,237,.35); }
.orb-b { width: 320px; height: 320px; right: -60px; top: 30%; background: rgba(244,114,182,.22); animation-delay: -3s; }
.orb-c { width: 280px; height: 280px; left: 40%; bottom: 5%; background: rgba(167,139,250,.18); animation-delay: -6s; }
@keyframes orb-float {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.05); }
}
.hero-inner { position: relative; z-index: 1; }
.hero-copy {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 780px; margin: 0 auto; width: 100%;
}
.hero-badge-pulse .badge-dot { animation: pulse-dot 1.8s ease-in-out infinite; }
@keyframes pulse-dot {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(167,139,250,.5); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(167,139,250,0); }
}
.hero-title {
  font-size: clamp(38px, 5.5vw, 70px); font-weight: 800; letter-spacing: -.025em;
  line-height: 1.08; margin: 28px 0 14px;
}
.hero-sub {
  font-size: clamp(20px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.02em;
  line-height: 1.2; margin-bottom: 28px; max-width: 640px;
}
.hero-models-bar {
  padding: 10px 20px 14px; display: flex; align-items: center; gap: 4px;
  border-top: 1px solid rgba(255,255,255,.05); font-size: 12px; color: var(--text-muted);
}
.hero-tool-chips {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  margin: 18px 0 28px; width: 100%; max-width: 700px;
}
.hero-tool-chips span {
  padding: 6px 14px; border-radius: 8px; font-size: 12px;
  border: 1px solid rgba(167,139,250,.15); background: rgba(167,139,250,.05); color: var(--text-secondary);
}
.hero-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 48px; width: 100%; }
.hero-cta { min-width: 200px; padding: 14px 32px; font-size: 16px; text-decoration: none; border-radius: var(--radius-full); display: inline-flex; align-items: center; justify-content: center; }
.hero-stats-item .hsv { font-size: clamp(16px,3.5vw,22px); font-weight: 700; display: block; }
.hero-stats-item .hsl { font-size: clamp(10px,2vw,12px); color: var(--text-secondary); }

.model-marquee {
  margin-top: 48px; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
  background: rgba(8,8,16,.55); overflow: hidden; padding: 14px 0; position: relative; z-index: 1;
}
.model-marquee-track {
  display: flex; gap: 10px; width: max-content;
  animation: marquee 32s linear infinite;
}
.model-chip {
  padding: 8px 16px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid rgba(167,139,250,.2); background: rgba(167,139,250,.08); color: var(--text-secondary);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section-head-center { text-align: center; margin-bottom: 44px; }
.section-head-center h2 {
  font-size: clamp(28px,3vw,44px); font-weight: 800; letter-spacing: -.02em; margin-top: 16px;
}
.section-head-center p {
  color: var(--text-secondary); max-width: 560px; margin: 12px auto 0; line-height: 1.65; font-size: 15px;
}

.models-spotlight { padding: 100px 0; border-top: 1px solid var(--border-light); }
.spotlight-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px;
}
.spotlight-card {
  padding: 22px; border-radius: 18px; border: 1px solid var(--border-light);
  background: linear-gradient(160deg, rgba(167,139,250,.08), rgba(13,13,26,.6));
  transition: transform .2s, border-color .2s;
}
.spotlight-card:hover { transform: translateY(-4px); border-color: rgba(167,139,250,.4); }
.spotlight-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.spotlight-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.features-section { padding: 100px 0; background: var(--bg-secondary); border-top: 1px solid var(--border-light); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 16px; max-width: 1200px; margin: 0 auto;
}
.facet-card .facet-label { font-size: 13px; font-weight: 600; }
.facet-card h3 { font-size: 17px; font-weight: 700; line-height: 1.35; margin: 8px 0; }
.facet-card p { font-size: 14px; line-height: 1.65; color: var(--text-secondary); flex: 1; }
.facet-cta {
  display: inline-flex; margin-top: 16px; font-size: 13px; font-weight: 600; color: #fff;
  padding: 10px 18px; border-radius: 999px;
  background: linear-gradient(135deg,var(--brand-start),var(--brand-mid),var(--brand-end));
  box-shadow: var(--shadow-glow); align-self: flex-start;
}

.pricing-preview { padding: 90px 0 110px; background: var(--bg-secondary); border-top: 1px solid var(--border-light); }
.pricing-home-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 18px; align-items: stretch;
}
.pricing-card .plan-desc { font-size: 12px; color: var(--text-secondary); }
.pricing-card h3 { font-size: 18px; font-weight: 700; margin: 6px 0; }
.pricing-card .plan-tag { font-size: 13px; color: var(--brand-mid); font-style: italic; margin-bottom: 12px; }
.pricing-card .plan-price { margin: auto 0 8px; }
.pricing-card .plan-price span { font-size: 32px; font-weight: 800; }
.pricing-card .plan-price small { font-size: 14px; color: var(--text-secondary); }
.pricing-card .plan-tokens { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.pricing-card .plan-btn {
  display: flex; align-items: center; justify-content: center; padding: 13px; border-radius: 999px;
  font-size: 14px; text-decoration: none; margin-bottom: 20px; font-weight: 600;
}
.pricing-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pricing-card li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pricing-more { text-align: center; margin-top: 28px; }
.pricing-more a { color: var(--brand-mid); font-size: 14px; font-weight: 600; text-decoration: none; }

.faq-section { padding: 100px 0; background: var(--bg-secondary); border-top: 1px solid var(--border-light); }
.faq-wrap { max-width: 780px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }

.cta-section { padding: 100px 0; border-top: 1px solid var(--border-light); }
.cta-box {
  position: relative; overflow: hidden; border-radius: 28px; padding: 72px 40px; text-align: center;
  background: rgba(13,13,26,.97); border: 1px solid rgba(167,139,250,.22);
}
.cta-box::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 70%;
  background: radial-gradient(circle, rgba(167,139,250,.2), transparent 65%); pointer-events: none;
}
.cta-box h2 {
  position: relative; font-size: clamp(28px,4vw,48px); font-weight: 800; letter-spacing: -.02em;
  max-width: 560px; margin: 18px auto;
}
.cta-box p {
  position: relative; font-size: 16px; color: var(--text-secondary); max-width: 420px;
  margin: 0 auto 24px; line-height: 1.7;
}

@media (max-width: 640px) {
  .hero-v2 { padding-top: 80px; }
  .hero-cta { width: 100%; min-width: 0; }
  .cta-box { padding: 48px 20px; }
}

/* ===== Cosmos / AI layer ===== */
.cosmos-layer {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.starfield {
  position: absolute; inset: 0; opacity: .55;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 25% 60%, rgba(196,181,253,.8), transparent),
    radial-gradient(1.5px 1.5px at 40% 15%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 55% 75%, rgba(56,189,248,.7), transparent),
    radial-gradient(1.5px 1.5px at 70% 35%, rgba(255,255,255,.85), transparent),
    radial-gradient(1px 1px at 85% 55%, rgba(244,114,182,.6), transparent),
    radial-gradient(1px 1px at 92% 18%, rgba(255,255,255,.75), transparent),
    radial-gradient(1.5px 1.5px at 15% 85%, rgba(167,139,250,.7), transparent);
  background-size: 100% 100%;
  animation: stars-twinkle 5s ease-in-out infinite;
}
@keyframes stars-twinkle {
  0%,100% { opacity: .4; }
  50% { opacity: .7; }
}
.nebula {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45;
  animation: nebula-drift 14s ease-in-out infinite;
}
.nebula-a {
  width: 520px; height: 520px; left: -120px; top: 5%;
  background: radial-gradient(circle, rgba(124,58,237,.45), transparent 70%);
}
.nebula-b {
  width: 420px; height: 420px; right: -100px; top: 35%;
  background: radial-gradient(circle, rgba(56,189,248,.28), transparent 70%);
  animation-delay: -5s;
}
@keyframes nebula-drift {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px,-16px) scale(1.08); }
}
.neural-grid {
  position: absolute; inset: 0; opacity: .12;
  background-image:
    linear-gradient(rgba(167,139,250,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,139,250,.35) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
}

.cosmic-section { position: relative; isolation: isolate; overflow: hidden; }
.section-stars {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background-image:
    radial-gradient(1px 1px at 12% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 78% 18%, rgba(196,181,253,.9), transparent),
    radial-gradient(1px 1px at 48% 70%, rgba(56,189,248,.8), transparent),
    radial-gradient(1px 1px at 88% 62%, #fff, transparent);
}
.cosmic-section > .container-site { position: relative; z-index: 1; }
.ai-badge {
  box-shadow: 0 0 24px rgba(167,139,250,.18);
}
.ai-orbit {
  position: absolute; width: 520px; height: 520px; left: 50%; top: 50%;
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px solid rgba(167,139,250,.08); pointer-events: none; z-index: 0;
  box-shadow: 0 0 80px rgba(124,58,237,.08) inset;
  animation: orbit-spin 40s linear infinite;
}
.ai-orbit::before {
  content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: #a78bfa; box-shadow: 0 0 16px #a78bfa; top: 0; left: 50%;
  transform: translate(-50%, -50%);
}
@keyframes orbit-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Spotlight v2 */
.spotlight-card.ai-glass {
  position: relative; overflow: hidden;
  background:
    linear-gradient(160deg, rgba(167,139,250,.12), rgba(8,10,24,.75) 45%, rgba(56,189,248,.06));
  border: 1px solid rgba(167,139,250,.22);
  backdrop-filter: blur(10px);
  min-height: 190px;
}
.spotlight-card.ai-glass:hover {
  border-color: rgba(167,139,250,.55);
  box-shadow: 0 16px 48px rgba(124,58,237,.2), 0 0 40px rgba(56,189,248,.08);
}
.spot-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.spot-icon {
  width: 42px; height: 42px; border-radius: 14px;
  background: rgba(167,139,250,.12); border: 1px solid rgba(167,139,250,.28);
  position: relative;
}
.spot-icon::before {
  content: ''; position: absolute; inset: 11px; border-radius: 6px;
  background: linear-gradient(135deg, #a78bfa, #38bdf8);
  opacity: .9;
}
.spotlight-card[data-kind="chat"] .spot-icon::before {
  clip-path: polygon(20% 20%, 80% 20%, 80% 55%, 55% 55%, 40% 75%, 40% 55%, 20% 55%);
}
.spotlight-card[data-kind="pen"] .spot-icon::before {
  border-radius: 3px; transform: rotate(45deg) scale(.7);
}
.spotlight-card[data-kind="image"] .spot-icon::before {
  border-radius: 8px; inset: 10px;
  background: linear-gradient(135deg, #f472b6, #a78bfa);
}
.spotlight-card[data-kind="video"] .spot-icon::before {
  clip-path: polygon(25% 15%, 85% 50%, 25% 85%);
  border-radius: 0; inset: 10px 12px;
}
.spot-idx {
  font-size: 12px; font-weight: 800; letter-spacing: .12em; color: rgba(167,139,250,.65);
}
.spot-scan {
  position: absolute; left: 0; right: 0; height: 40%; top: -40%;
  background: linear-gradient(180deg, transparent, rgba(167,139,250,.12), transparent);
  animation: scan-sweep 4.5s ease-in-out infinite; pointer-events: none;
}
@keyframes scan-sweep {
  0% { top: -40%; opacity: 0; }
  30% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Features v2 */
.features-grid-v2 { gap: 18px; }
.facet-card-v2 {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 24px 22px 22px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(16,16,32,.95), rgba(8,8,18,.98));
  border: 1px solid rgba(167,139,250,.18);
  text-decoration: none; color: inherit;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  min-height: 220px;
}
.facet-card-v2:hover {
  transform: translateY(-6px);
  border-color: rgba(167,139,250,.5);
  box-shadow: 0 20px 50px rgba(124,58,237,.22), 0 0 0 1px rgba(56,189,248,.12);
}
.facet-glow {
  position: absolute; width: 160px; height: 160px; right: -40px; top: -50px;
  border-radius: 50%; filter: blur(40px); opacity: .35; pointer-events: none;
  background: radial-gradient(circle, rgba(167,139,250,.55), transparent 70%);
  transition: opacity .25s;
}
.facet-card-v2:hover .facet-glow { opacity: .65; }
.facet-icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 14px;
  background: linear-gradient(145deg, rgba(167,139,250,.18), rgba(56,189,248,.08));
  border: 1px solid rgba(167,139,250,.28);
  position: relative; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #c4b5fd;
  box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset, 0 8px 20px rgba(0,0,0,.25);
  transition: color .25s ease, border-color .25s ease, transform .25s ease;
}
.facet-icon-svg svg { width: 22px; height: 22px; display: block; }
.facet-icon::after { content: none; display: none; }
.facet-card-v2:hover .facet-icon {
  color: #e9d5ff;
  border-color: rgba(167,139,250,.55);
  transform: translateY(-2px);
}
.facet-card-v2[data-tool="chat"] .facet-icon { color: #a78bfa; }
.facet-card-v2[data-tool="text"] .facet-icon { color: #67e8f9; }
.facet-card-v2[data-tool="seo"] .facet-icon { color: #86efac; }
.facet-card-v2[data-tool="img"] .facet-icon { color: #f9a8d4; }
.facet-card-v2[data-tool="vid"] .facet-icon { color: #fda4af; }
.facet-card-v2[data-tool="data"] .facet-icon { color: #7dd3fc; }
.facet-card-v2[data-tool="idea"] .facet-icon { color: #fcd34d; }
.facet-card-v2[data-tool="code"] .facet-icon { color: #c4b5fd; }
.facet-card-v2 .facet-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.facet-card-v2 h3 { font-size: 18px; font-weight: 800; margin: 6px 0 8px; letter-spacing: -.02em; }
.facet-desc { font-size: 14px; line-height: 1.65; color: var(--text-secondary); flex: 1; margin: 0; }
.facet-card-v2 .facet-cta { margin-top: 18px; }

/* Steps v2 */
.steps-lead {
  color: var(--text-secondary); max-width: 480px; margin: 12px auto 0;
  font-size: 15px; line-height: 1.65;
}
.steps-track-v2 { max-width: 1040px; }
.step-card-v2 { padding-top: 8px; }
.step-orbit {
  position: relative; width: 88px; height: 88px;
  display: grid; place-items: center; margin: 0 auto 24px;
}
.step-card-v2 .step-num {
  width: 72px; height: 72px; margin: 0; font-size: 18px; letter-spacing: .04em;
  background: linear-gradient(145deg, rgba(124,58,237,.98), rgba(56,189,248,.55));
  z-index: 2;
}
.step-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(167,139,250,.35);
  animation: ring-pulse 3s ease-in-out infinite;
}
.step-ring-2 {
  inset: -10px; border-color: rgba(56,189,248,.2);
  animation-delay: .6s; animation-duration: 3.6s;
}
@keyframes ring-pulse {
  0%,100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.08); opacity: 1; }
}
.step-card-v2 h3 {
  font-size: 20px; font-weight: 800; letter-spacing: -.02em;
}
.step-card-v2 p { max-width: 260px; }

/* CTA v2 */
.cta-box-v2 {
  border: 1px solid rgba(167,139,250,.28);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(124,58,237,.22), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(56,189,248,.12), transparent 50%),
    rgba(10,10,22,.97);
  box-shadow: 0 0 80px rgba(124,58,237,.12);
}
.cta-pulse {
  position: absolute; width: 220px; height: 220px; left: 50%; top: -60px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(167,139,250,.35), transparent 70%);
  animation: cta-breathe 4s ease-in-out infinite; pointer-events: none;
}
@keyframes cta-breathe {
  0%,100% { opacity: .5; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

@media (max-width: 768px) {
  .ai-orbit { display: none; }
  .facet-card-v2 { min-height: 0; }
  .step-card-v2 {
    padding-left: 100px;
  }
  .step-card-v2 .step-orbit {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }
  .step-card-v2 .step-num {
    position: relative;
    left: auto;
    top: auto;
  }
}

/* Legal / contacts pages */
.legal-page {
  position: relative;
  padding: 72px 0 110px;
  overflow: hidden;
}
.legal-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(167,139,250,.16), transparent 60%),
    radial-gradient(ellipse 50% 35% at 90% 10%, rgba(56,189,248,.1), transparent 55%);
}
.legal-wrap { position: relative; z-index: 1; max-width: 820px; }
.legal-head { margin-bottom: 36px; }
.legal-head h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 14px 0 12px;
  line-height: 1.15;
}
.legal-lead {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  max-width: 640px;
  margin: 0;
}
.legal-updated {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.legal-article {
  background: linear-gradient(165deg, rgba(16,16,32,.92), rgba(8,8,18,.96));
  border: 1px solid rgba(167,139,250,.16);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 36px);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}
.legal-article h2 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 750;
  margin: 28px 0 10px;
  letter-spacing: -.02em;
}
.legal-article h2:first-child { margin-top: 0; }
.legal-article p { margin: 0 0 12px; }
.legal-article ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
}
.legal-article li { margin: 6px 0; }
.legal-article a { color: #c4b5fd; text-decoration: none; }
.legal-article a:hover { text-decoration: underline; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(16,16,32,.95), rgba(8,8,18,.98));
  border: 1px solid rgba(167,139,250,.18);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  min-height: 180px;
}
a.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167,139,250,.45);
  box-shadow: 0 16px 40px rgba(124,58,237,.18);
}
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(167,139,250,.12);
  border: 1px solid rgba(167,139,250,.25);
  color: #c4b5fd;
  margin-bottom: 4px;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-card strong {
  font-size: 16px;
  color: var(--text-primary);
}
.contact-card > span:not(.contact-icon) {
  color: var(--text-secondary);
  font-size: 14px;
  word-break: break-word;
}
.contact-card em {
  margin-top: auto;
  font-style: normal;
  font-size: 12px;
  color: var(--text-muted);
}
.contact-note {
  border-radius: 20px;
  padding: 22px 24px;
  border: 1px solid rgba(167,139,250,.14);
  background: rgba(12,12,24,.7);
}
.contact-note h2 {
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--text-primary);
}
.contact-note ul {
  margin: 0;
  padding-left: 1.15em;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}
.contact-note li { margin: 6px 0; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .legal-page { padding: 48px 0 80px; }
  .legal-article { border-radius: 16px; }
}
