/* ============================================================
   Seedance — тёмная кинематографичная тема
   ============================================================ */
:root {
  --bg: #0a0a0f;
  --bg-2: #101015;
  --bg-3: #16161d;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f5f7;
  --text-soft: #b9bcc7;
  --text-dim: #7c7f8d;
  --cyan: #06b6d4;
  --violet: #7c3aed;
  --grad: linear-gradient(120deg, #06b6d4 0%, #7c3aed 100%);
  --grad-soft: linear-gradient(120deg, rgba(6, 182, 212, 0.16), rgba(124, 58, 237, 0.16));
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-glow: 0 0 0 1px rgba(124, 58, 237, 0.35), 0 18px 60px -20px rgba(6, 182, 212, 0.5);
  --maxw: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vw 60vw at 12% -8%, rgba(6, 182, 212, 0.14), transparent 60%),
    radial-gradient(55vw 55vw at 92% 4%, rgba(124, 58, 237, 0.16), transparent 60%),
    radial-gradient(50vw 40vw at 50% 110%, rgba(124, 58, 237, 0.08), transparent 60%);
  pointer-events: none;
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  transition: transform .25s ease, box-shadow .3s ease, background .3s ease, border-color .25s ease;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad);
  box-shadow: 0 10px 30px -12px rgba(6, 182, 212, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); border-color: var(--cyan); }
.btn-lg { padding: 17px 38px; font-size: 18px; }
.btn-block { width: 100%; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.logo {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.8);
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav > .btn-primary { display: none; }
.nav-link {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface); }

.dropdown { position: relative; }
.dropdown-toggle {
  background: none; border: none; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.dropdown-toggle svg { width: 14px; height: 14px; transition: transform .25s; }
.dropdown.open .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s, transform .22s, visibility .22s;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 15px;
  color: var(--text-soft);
  transition: background .2s, color .2s;
}
.dropdown-menu a:hover { background: var(--grad-soft); color: var(--text); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none;
  background: none; border: 1px solid var(--border-strong);
  border-radius: 10px; width: 44px; height: 44px;
  cursor: pointer; color: var(--text);
  align-items: center; justify-content: center;
}
.burger svg { width: 22px; height: 22px; }

/* ============================================================
   Sections
   ============================================================ */
section { padding: 96px 0; }
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 7px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 20px;
}
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.1; font-weight: 700; }
h1 { font-size: clamp(38px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4.5vw, 46px); }
h3 { font-size: 21px; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-soft); font-size: 18px; margin-top: 18px; }
.lead { color: var(--text-soft); font-size: 19px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 80px 0 72px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 22px; }
.hero .lead { max-width: 560px; margin-bottom: 32px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.pill {
  font-size: 13px; font-weight: 500; color: var(--text-soft);
  padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}

/* Chat block */
.chat-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8);
}
.chat-box textarea {
  width: 100%;
  resize: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.55;
  padding: 18px;
  min-height: 120px;
  outline: none;
}
.chat-box textarea::placeholder { color: var(--text-dim); }
.chat-actions {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px 8px;
  gap: 12px;
}
.chat-hint { font-size: 13px; color: var(--text-dim); }

/* Hero preview media */
.hero-media { position: relative; }
.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px -30px rgba(6,182,212,.4);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,10,15,.55));
}
.media-caption {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #fff;
}
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff4b4b; box-shadow: 0 0 10px #ff4b4b; animation: blink 1.4s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }
.hero-float {
  position: absolute; right: -14px; bottom: -22px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 14px 18px; display: flex; gap: 14px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
}
.hero-float .num { font-size: 22px; font-weight: 700; }
.hero-float .lbl { font-size: 12px; color: var(--text-dim); }

/* ============================================================
   Cards / grids
   ============================================================ */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
  background: var(--surface-2);
}
.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; color: var(--cyan); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 15.5px; }

/* Specs */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.spec {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  transition: border-color .3s, background .3s;
}
.spec:hover { border-color: var(--cyan); background: var(--surface-2); }
.spec .spec-ic { color: var(--cyan); margin-bottom: 14px; }
.spec .spec-ic svg { width: 24px; height: 24px; }
.spec .spec-label { font-size: 13px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.spec .spec-value { font-size: 18px; font-weight: 600; }

.format-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 15px; font-weight: 600;
  padding: 9px 16px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border-strong);
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .step-num {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px; margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 15px; }

/* Use cases */
.usecase {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.usecase:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.usecase img { width: 100%; height: 220px; object-fit: cover; }
.usecase .uc-body { padding: 20px 22px 24px; }
.usecase .uc-tag { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); font-weight: 600; }
.usecase h3 { font-size: 19px; margin: 8px 0 6px; }
.usecase p { color: var(--text-soft); font-size: 15px; }
.usecase.text-only { padding: 24px 22px; }
.usecase.text-only:hover { transform: translateY(-6px); }

/* ============================================================
   Pricing
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
}
.price-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.price-card.popular {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--grad) border-box;
  box-shadow: var(--shadow-glow);
}
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px;
}
.price-card .price { font-size: 42px; font-weight: 700; margin: 6px 0; }
.price-card .price span { font-size: 17px; color: var(--text-dim); font-weight: 500; }
.price-card .tokens { color: var(--cyan); font-weight: 600; margin-bottom: 22px; font-size: 17px; }
.price-card ul { list-style: none; margin-bottom: 28px; display: grid; gap: 12px; }
.price-card li { display: flex; gap: 10px; color: var(--text-soft); font-size: 15px; align-items: flex-start; }
.price-card li svg { width: 19px; height: 19px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.price-card .btn { margin-top: auto; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); font-weight: 600; }
td { color: var(--text-soft); }
tbody tr:last-child td { border-bottom: none; }
td:first-child, th:first-child { color: var(--text); font-weight: 600; }

/* ============================================================
   FAQ / accordion
   ============================================================ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .25s;
}
.faq-item.open { border-color: var(--border-strong); }
.faq-q {
  width: 100%;
  background: none; border: none; cursor: pointer;
  font-family: inherit; color: var(--text);
  font-size: 17px; font-weight: 600;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left;
}
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .3s; color: var(--cyan); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--text-soft); font-size: 16px; }

/* ============================================================
   Prose / SEO text blocks
   ============================================================ */
.prose { max-width: 820px; color: var(--text-soft); font-size: 17px; }
.prose p { margin-bottom: 18px; }
.prose h2 { color: var(--text); margin: 40px 0 18px; }
.prose h3 { color: var(--text); margin: 28px 0 12px; }
.prose ul { margin: 0 0 18px 20px; display: grid; gap: 8px; }
.prose strong { color: var(--text); }

/* ============================================================
   Breadcrumbs
   ============================================================ */
.breadcrumbs { padding: 26px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--text-dim); }
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--text-dim); }

/* Page hero (inner pages) */
.page-hero { padding: 40px 0 20px; }
.page-hero h1 { margin-bottom: 18px; }
.page-hero .lead { max-width: 720px; }

/* CTA band */
.cta-band {
  text-align: center;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--text-soft); font-size: 18px; margin-bottom: 30px; }

/* Contact form */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; color: var(--text-soft); margin-bottom: 8px; }
.form-row input, .form-row textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 13px 16px; color: var(--text); font-family: inherit; font-size: 16px;
  outline: none; transition: border-color .2s;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--cyan); }
.form-row textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 14px; color: var(--text-dim); margin-top: 14px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 34px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { color: var(--text-soft); font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--text-dim); font-size: 15px; max-width: 320px; }
.footer-affil {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text) !important; font-weight: 600;
}
.footer-affil .tag { background: var(--grad); color:#fff; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.footer-bottom .copy { font-size: 14px; color: var(--text-dim); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer-legal a { color: var(--text-dim); }
.footer-legal a:hover { color: var(--text-soft); }
.disclaimer {
  margin-top: 26px;
  font-size: 13px; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 20px; line-height: 1.6;
}

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: inline-flex; }
  .header-cta { gap: 0; }
  .nav.mobile-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 14px 24px 22px; gap: 4px;
  }
  .nav.mobile-open .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent; padding: 4px 0 4px 12px;
    display: none;
  }
  .nav.mobile-open .dropdown.open .dropdown-menu { display: block; }
  .nav.mobile-open .btn-primary { display: inline-flex; margin-top: 12px; }
}
@media (max-width: 640px) {
  section { padding: 68px 0; }
  .grid-2, .grid-3, .grid-4, .pricing-grid, .grid-2 { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .container { padding: 0 18px; }
  body { font-size: 16px; }
  .hero-float { right: 8px; }
}
