
/* DDok Proxy — marketing site (static)
   Base system: panel-like dark UI, purple accents.
   Variant-specific overrides appended per theme.
*/

:root{
  --bg: #0b1220;
  --bg2: #080d18;
  --panel: rgba(17, 24, 39, .72);
  --panel2: rgba(17, 24, 39, .92);
  --stroke: rgba(148, 163, 184, .18);
  --stroke2: rgba(148, 163, 184, .26);
  --text: #f3f4f6;
  --muted: rgba(243,244,246,.72);
  --muted2: rgba(243,244,246,.60);
  --primary: #9333ea;  /* panel purple */
  --primary2: #7c3aed;
  --good: #22c55e;
  --warn: #f59e0b;
  --shadow: 0 18px 45px rgba(0,0,0,.35);
  --shadow2: 0 10px 30px rgba(0,0,0,.25);
  --radius: 18px;
  --radius2: 14px;
  --container: 1120px;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  background: var(--bg);
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
a:hover{ opacity: .95; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

.muted{ color: var(--muted); }
.small{ font-size: .95rem; }
.kicker{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding: .28rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(15, 23, 42, .35);
  color: rgba(243,244,246,.86);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding: .20rem .55rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  border: 1px solid var(--stroke);
  background: rgba(15, 23, 42, .35);
  white-space: nowrap;
}
.badge-kind{ border-color: rgba(147,51,234,.35); background: rgba(147,51,234,.14); color: rgba(216,180,254,1); }
.badge-save{ border-color: rgba(34,197,94,.40); background: rgba(34,197,94,.10); color: rgba(74,222,128,1); }
.badge-ghost{ background: rgba(148,163,184,.08); }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  padding: .62rem 1.0rem;
  border-radius: 12px;
  font-weight: 900;
  font-size: .92rem;
  border: 1px solid var(--stroke);
  background: rgba(148,163,184,.10);
  color: var(--text);
  cursor:pointer;
  user-select:none;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}
.btn:hover{ filter: brightness(1.05); transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); filter: brightness(0.98); }
.btn-primary{
  background: linear-gradient(180deg, rgba(147,51,234,1), rgba(124,58,237,1));
  border-color: rgba(147,51,234,.65);
  box-shadow: 0 8px 24px rgba(147,51,234,.25);
}
.btn-secondary{
  background: rgba(148,163,184,.10);
}
.btn-ghost{
  background: transparent;
}
.btn:focus-visible{
  outline: 2px solid rgba(147,51,234,.8);
  outline-offset: 2px;
}

/* Navbar */
.nav{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(11, 18, 32, .65);
  border-bottom: 1px solid rgba(148,163,184,.10);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:.55rem;
  font-weight: 950;
  letter-spacing: -.02em;
}
.brand .logo{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(147,51,234,.35);
  background: radial-gradient(120px 60px at 30% 10%, rgba(147,51,234,.35), rgba(147,51,234,.06));
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
.nav-links{
  display:flex;
  align-items:center;
  gap: 14px;
}
.nav-links a{
  color: rgba(243,244,246,.84);
  font-weight: 800;
  font-size: .92rem;
  padding: .45rem .55rem;
  border-radius: 10px;
}
.nav-links a:hover{ background: rgba(148,163,184,.08); }

.nav-actions{
  display:flex;
  align-items:center;
  gap: 10px;
}
.lang-switch{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding: .55rem .65rem;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(148,163,184,.08);
  font-weight: 900;
  font-size: .86rem;
}
.menu-btn{ display:none; }

/* Hero */
.hero{
  padding: 46px 0 10px 0;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: start;
}
.hero h1{
  margin: 14px 0 0 0;
  font-size: 3.1rem;
  letter-spacing: -.05em;
  line-height: 1.05;
}
.hero p{
  margin: 14px 0 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
}
.hero-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.hero-badges{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding: .38rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(15,23,42,.35);
  color: rgba(243,244,246,.86);
  font-weight: 800;
  font-size: .85rem;
}

.hero-card{
  border-radius: var(--radius);
  border: 1px solid rgba(148,163,184,.18);
  background: linear-gradient(180deg, rgba(15, 23, 42, .35), rgba(15, 23, 42, .78));
  box-shadow: var(--shadow);
  overflow:hidden;
  position: relative;
}
.hero-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(700px 260px at 20% 0%, rgba(147,51,234,.18), transparent 55%);
  pointer-events:none;
}
.hero-card-inner{
  position:relative;
  padding: 18px;
}
.hero-card h3{
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}
.hero-mini{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mini-tile{
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(148,163,184,.06);
  padding: 12px;
}
.mini-title{
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(243,244,246,.68);
}
.mini-value{
  margin-top: 6px;
  font-weight: 950;
  font-size: 1.05rem;
}

/* Sections */
.section{ padding: 56px 0; }
.section-head h2{
  margin:0;
  font-size: 2.1rem;
  letter-spacing: -.04em;
}
.section-head p{
  margin: 10px 0 0 0;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.6;
}

/* Products cards */
.products-grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.product-card{
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.16);
  background: linear-gradient(180deg, rgba(15,23,42,.28), rgba(15,23,42,.72));
  box-shadow: var(--shadow2);
  padding: 16px;
  position: relative;
  overflow:hidden;
}
.product-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(500px 180px at 10% 0%, rgba(147,51,234,.16), transparent 55%);
  pointer-events:none;
}
.product-card .title{
  position:relative;
  font-weight: 950;
  font-size: 1.15rem;
}
.product-card .sub{
  position:relative;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}
.product-card .actions{
  position:relative;
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Pricing */
.pricing .tabs{
  margin-top: 16px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tab{
  padding: .52rem .82rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(148,163,184,.08);
  color: rgba(243,244,246,.86);
  font-weight: 950;
  cursor:pointer;
}
.tab.active{
  border-color: rgba(147,51,234,.55);
  background: rgba(147,51,234,.16);
  color: rgba(216,180,254,1);
}
.tab-panels{ margin-top: 18px; }
.panel{ display:none; }
.panel.active{ display:block; }

.panel-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.panel-head h3{
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: -.02em;
}
.panel-head p{
  margin: 6px 0 0 0;
  color: var(--muted);
  max-width: 72ch;
}

.cards-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Plan card */
.plan-card{
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.16);
  background: linear-gradient(180deg, rgba(15,23,42,.30), rgba(15,23,42,.85));
  box-shadow: var(--shadow2);
  padding: 16px;
  position: relative;
  overflow:hidden;
}
.plan-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 220px at 20% 0%, rgba(147,51,234,.14), transparent 55%);
  pointer-events:none;
}
.plan-head{ position:relative; display:flex; justify-content:space-between; gap: 10px; }
.plan-title{ font-weight: 950; font-size: 1.12rem; letter-spacing: -.02em; }
.plan-sub{ margin-top: 4px; color: var(--muted); font-size: .92rem; }
.plan-badges{ display:flex; align-items:flex-start; gap: 8px; flex-wrap: wrap; justify-content:flex-end; }

.plan-select{ position:relative; margin-top: 12px; }
.label{
  font-size: .72rem;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(243,244,246,.62);
}
.select-row{
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(148,163,184,.06);
  position: relative;
  /* Allow the custom dropdown to overlay content without resizing the card */
  overflow: visible;
}
.select-row select{
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: rgba(243,244,246,.92);
  padding: 10px 40px 10px 12px;
  font-weight: 900;
  font-size: .93rem;
  appearance:none;
  -webkit-appearance:none;
  color-scheme: dark;
  cursor:pointer;
}
.select-row select option{
  background: rgb(11, 18, 32);
  color: rgba(243,244,246,.92);
}
.chev{
  position:absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .75;
  pointer-events:none;
}

/* Custom animated select (keeps the dropdown inside the plan card) */
html.js .select-row select{
  /* Keep in DOM for accessibility + JS syncing, but hide native popup */
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.custom-select{
  position: relative;
  z-index: 2;
}

/* When open, make sure this select overlays other elements inside the card */
.custom-select.open{
  z-index: 6;
}

.cs-trigger{
  width: 100%;
  border: none;
  background: transparent;
  color: rgba(243,244,246,.92);
  padding: 10px 40px 10px 12px;
  font-weight: 900;
  font-size: .93rem;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.cs-trigger:focus-visible{
  outline: 2px solid rgba(147,51,234,.55);
  outline-offset: -2px;
}

.cs-panel{
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  border: 1px solid rgba(148,163,184,.16);
  border-top: none;
  border-radius: 0 0 12px 12px;
  background: rgba(11, 18, 32, .97);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 18px 44px rgba(0,0,0,.38);
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: max-height .28s ease, opacity .18s ease, transform .18s ease;
  will-change: max-height, opacity, transform;
}

.custom-select.open .cs-panel{
  max-height: 260px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cs-option{
  width: 100%;
  border: none;
  background: transparent;
  color: rgba(243,244,246,.92);
  text-align:left;
  padding: 10px 12px;
  font-weight: 800;
  font-size: .93rem;
  cursor: pointer;
}

.cs-option:hover,
.cs-option:focus-visible{
  background: rgba(148,163,184,.10);
  outline: none;
}

.cs-option[aria-selected="true"]{
  background: rgba(59,130,246,.22);
}

.plan-price{
  position:relative;
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.16);
  background:
    radial-gradient(700px 220px at 30% 0%, rgba(59,130,246,.18), transparent 55%),
    linear-gradient(180deg, rgba(15,23,42,.20), rgba(15,23,42,.80));
  padding: 12px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 10px;
}
.price{
  font-size: 2.05rem;
  font-weight: 1000;
  letter-spacing: -.03em;
  line-height: 1;
}
.dollar{ opacity: .85; font-weight: 900; margin-right: 1px; }
.plan-price-side{ text-align:right; }
.side-val{
  margin-top: 6px;
  font-weight: 950;
  font-size: 1.1rem;
}

.plan-features{
  position:relative;
  margin: 12px 0 0 0;
  padding-left: 18px;
  color: rgba(243,244,246,.82);
  line-height: 1.55;
  font-size: .95rem;
}
.plan-features li{ margin: 6px 0; }

.bolt{ filter: drop-shadow(0 3px 10px rgba(147,51,234,.45)); }

/* Features */
.feat-grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feat-card{
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(15,23,42,.45);
  padding: 16px;
}
.feat-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(147,51,234,.28);
  background: rgba(147,51,234,.12);
}
.feat-title{ margin-top: 10px; font-weight: 950; letter-spacing: -.02em; }
.feat-text{ margin-top: 6px; color: var(--muted); line-height: 1.55; }

/* Docs */
.docs-grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.docs-card{
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(15,23,42,.45);
  overflow:hidden;
}
.docs-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid rgba(148,163,184,.12);
}
.docs-card-title{
  font-weight: 950;
  letter-spacing: -.02em;
  font-size: .98rem;
}
.docs-card pre{
  margin:0;
  padding: 14px;
  overflow:auto;
  font-family: var(--mono);
  font-size: .92rem;
  line-height: 1.55;
  color: rgba(243,244,246,.90);
}
.docs-note{
  padding: 14px;
  color: rgba(243,244,246,.86);
  line-height: 1.6;
}
.docs-note p{ margin: 0 0 10px 0; }
.docs-note p:last-child{ margin-bottom: 0; }

/* FAQ */
.faq-list{ margin-top: 18px; display:flex; flex-direction:column; gap: 12px; }
.faq-item{
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(15,23,42,.45);
  overflow:hidden;
}
.faq-item summary{
  cursor:pointer;
  padding: 16px 16px;
  font-weight: 950;
  list-style:none;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-answer{
  padding: 0 16px 16px 16px;
  color: rgba(243,244,246,.86);
  line-height: 1.6;
}
.faq-item[open]{ background: rgba(15,23,42,.62); }

/* Footer */
.footer{
  padding: 30px 0 36px 0;
  border-top: 1px solid rgba(148,163,184,.10);
  background: rgba(11, 18, 32, .55);
}
.footer-grid{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer a{ color: rgba(243,244,246,.82); }
.footer a:hover{ opacity: 1; text-decoration: underline; }
.footer small{ color: rgba(243,244,246,.62); }

/* Toast */
.toast{
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,23,42,.85);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(243,244,246,.92);
  font-weight: 900;
  box-shadow: var(--shadow2);
  opacity: 0;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 50;
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .products-grid{ grid-template-columns: 1fr; }
  .cards-grid{ grid-template-columns: 1fr; }
  .feat-grid{ grid-template-columns: 1fr; }
  .docs-grid{ grid-template-columns: 1fr; }
  .nav-links{ display:none; }
  .menu-btn{ display:inline-flex; }
}
@media (max-width: 520px){
  .hero h1{ font-size: 2.25rem; }
  /* Keep navbar compact on phones */
  .nav-actions .cmdk-btn,
  .nav-actions .lang-switch,
  .nav-actions a[href*="dash.ddok.pro"]{
    display: none !important;
  }
}

/* Mobile menu */
.mobile-menu{
  display:none;
  border-top: 1px solid rgba(148,163,184,.10);
  padding: 10px 0 14px 0;
}
.mobile-menu a{
  display:block;
  padding: 10px 2px;
  color: rgba(243,244,246,.86);
  font-weight: 900;
}
.mobile-menu.open{ display:block; }
@media (min-width: 981px){
  .mobile-menu{ display:none !important; }
}


/* Variant v2 — Light/Dark toggle (SaaS clean) */
body{ font-family: 'Inter', var(--sans); }
html[data-theme="light"]{
  --bg: #f8fafc;
  --bg2: #eef2ff;
  --panel: rgba(255,255,255,.72);
  --panel2: rgba(255,255,255,.92);
  --stroke: rgba(15,23,42,.14);
  --stroke2: rgba(15,23,42,.18);
  --text: #0f172a;
  --muted: rgba(15,23,42,.72);
  --muted2: rgba(15,23,42,.60);
}
html[data-theme="light"] body{
  background: var(--bg);
}
html[data-theme="light"] .nav{
  background: rgba(248,250,252,.78);
  border-bottom: 1px solid rgba(15,23,42,.10);
}
html[data-theme="light"] .kicker,
html[data-theme="light"] .pill,
html[data-theme="light"] .badge,
html[data-theme="light"] .lang-switch,
html[data-theme="light"] .btn-secondary,
html[data-theme="light"] .tab,
html[data-theme="light"] .select-row,
html[data-theme="light"] .plan-price,
html[data-theme="light"] .faq-item,
html[data-theme="light"] .docs-card,
html[data-theme="light"] .feat-card,
html[data-theme="light"] .product-card,
html[data-theme="light"] .plan-card{
  background: rgba(255,255,255,.72);
}
html[data-theme="light"] .select-row select{
  color-scheme: light;
}
html[data-theme="light"] .select-row select option{
  background: #ffffff;
  color: #0f172a;
}

/* Light theme text fixes */
html[data-theme="light"] .kicker,
html[data-theme="light"] .pill,
html[data-theme="light"] .badge,
html[data-theme="light"] .tab,
html[data-theme="light"] .nav-links a,
html[data-theme="light"] .plan-features li,
html[data-theme="light"] .faq-answer,
html[data-theme="light"] .docs-note,
html[data-theme="light"] .footer a,
html[data-theme="light"] .mobile-menu a,
html[data-theme="light"] .toast{
  color: rgba(15,23,42,.86);
}

html[data-theme="light"] .mini-title,
html[data-theme="light"] .label,
html[data-theme="light"] .footer small{
  color: rgba(15,23,42,.60);
}

html[data-theme="light"] .select-row select{
  color: #0f172a;
}

html[data-theme="light"] .nav-links a:hover{
  background: rgba(15,23,42,.06);
}

/* Light theme — buttons should look lighter/softer */
html[data-theme="light"] .btn-primary{
  background: linear-gradient(180deg, rgba(147,51,234,.18), rgba(59,130,246,.12));
  border-color: rgba(147,51,234,.28);
  box-shadow: 0 10px 26px rgba(147,51,234,.10);
  color: rgba(15,23,42,.92);
}
html[data-theme="light"] .btn-ghost{
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.12);
  color: rgba(15,23,42,.92);
}

/* Light theme — dropdown (custom select) must be light with dark text */
html[data-theme="light"] .cs-trigger{
  color: rgba(15,23,42,.92);
}
html[data-theme="light"] .cs-panel{
  background: rgba(255,255,255,.96);
  border-color: rgba(15,23,42,.14);
  box-shadow: 0 18px 44px rgba(15,23,42,.14);
}
html[data-theme="light"] .cs-option{
  color: rgba(15,23,42,.92);
}
html[data-theme="light"] .cs-option:hover,
html[data-theme="light"] .cs-option:focus-visible{
  background: rgba(15,23,42,.06);
}
html[data-theme="light"] .cs-option[aria-selected="true"]{
  background: rgba(147,51,234,.14);
}

/* Light theme — code examples should be light with dark text */
html[data-theme="light"] .docs-card{
  background: #ffffff;
  border-color: rgba(15,23,42,.14);
}
html[data-theme="light"] .docs-card pre,
html[data-theme="light"] .docs-card code{
  color: rgba(15,23,42,.92);
}
html[data-theme="light"] .docs-card pre{
  background: rgba(15,23,42,.04);
}

/* Light theme — footer bar should be light */
html[data-theme="light"] .footer{
  background: rgba(248,250,252,.92);
  border-top-color: rgba(15,23,42,.10);
}



/* --- Modern motion & polish (2026-02) --- */
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }

/* subtle animated background orb (created by JS) */
.bg-orb{
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 420px at 20% 10%, rgba(147,51,234,.26), transparent 60%),
    radial-gradient(900px 420px at 85% 0%, rgba(59,130,246,.16), transparent 55%),
    radial-gradient(900px 520px at 50% 110%, rgba(34,197,94,.12), transparent 60%);
  filter: blur(120px);
  opacity: .14;
  animation: ddok-glow 18s ease-in-out infinite;
}
@keyframes ddok-glow{
  0%,100%{ opacity: .10; transform: translate3d(0,0,0); }
  50%{ opacity: .18; transform: translate3d(0,-10px,0); }
}

/* scroll progress bar (created by JS) */
.scroll-progress{
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(147,51,234,1), rgba(59,130,246,1));
  box-shadow: 0 10px 22px rgba(147,51,234,.18);
  z-index: 9999;
  pointer-events: none;
}

/* button shine */
.btn-primary{ position: relative; overflow: hidden; }
.btn-primary::after{
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.28) 50%, transparent 100%);
  transform: translateX(-120%) skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.btn-primary:hover::after{
  opacity: 1;
  transform: translateX(120%) skewX(-18deg);
  transition: transform .9s ease, opacity .2s ease;
}

/* card lift */
.hero-card, .product-card, .plan-card, .faq-item, .feat-card, .docs-card{
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, filter .22s ease;
}
.hero-card:hover, .product-card:hover, .plan-card:hover, .feat-card:hover, .docs-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(0,0,0,.30);
  border-color: rgba(147,51,234,.32);
}
.plan-card::before, .hero-card::before, .product-card::before, .docs-card::before{ transition: opacity .22s ease; }

/* scroll reveal */
html.js .reveal{
  opacity: 0;
  transform: translateY(12px);
  filter: blur(10px);
  transition: opacity .75s ease, transform .75s ease, filter .75s ease;
}
html.js .reveal.is-visible{
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce){
  .bg-orb{ display:none; }
  html.js .reveal{ opacity:1; transform:none; filter:none; }
  .hero-card, .product-card, .plan-card, .faq-item, .feat-card, .docs-card{ transition:none; }
  .hero-card:hover, .product-card:hover, .plan-card:hover, .feat-card:hover, .docs-card:hover{ transform:none; }
  .btn-primary::after{ display:none; }
}

/* light theme: make hero "Типовые кейсы" card light */
html[data-theme="light"] .hero-card{
  background: rgba(255,255,255,.72) !important;
  border-color: rgba(15,23,42,.14) !important;
}
html[data-theme="light"] .hero-card::before{ opacity: .35; }

/* =========================================================
   Variant v6 — "Ultra" landing polish
   - interactive mesh background
   - single-line section separators (no extra padding ABOVE the line)
   - quickstart + FAQ search + command palette
   ========================================================= */

html[data-variant="v6"]{
  /* pointer-controlled mesh position (set by JS) */
  --mx: 20%;
  --my: 0%;
}

html[data-variant="v6"] body{
  position: relative;
  isolation: isolate;
  background: var(--bg);
}

/* disable old orb (we use body::before) */
html[data-variant="v6"] .bg-orb{ display:none !important; }

/* Skip link */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(147,51,234,.45);
  background: rgba(11,18,32,.85);
  color: rgba(243,244,246,.95);
  z-index: 9999;
}
.skip-link:focus{ left: 10px; }

/* Small buttons */
.btn-sm{
  padding: .50rem .84rem;
  font-size: .86rem;
  border-radius: 12px;
}

/* Inline keycaps */
.kbd, .kbd-inline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: .14rem .42rem;
  border-radius: 9px;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(148,163,184,.10);
  font-family: var(--mono);
  font-size: .80rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}
.kbd-inline{ padding: .12rem .38rem; font-size: .76rem; }

/* Command palette button */
.cmdk-btn{
  gap: .45rem;
  padding: .45rem .62rem;
  border-radius: 12px;
}

/* Hero title: gradient text */
html[data-variant="v6"] .hero h1{
  font-size: clamp(2.45rem, 4.7vw, 3.5rem);
  line-height: 1.02;
  background: linear-gradient(90deg, rgba(243,244,246,1), rgba(216,180,254,1) 40%, rgba(147,197,253,1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"][data-variant="v6"] .hero h1{
  background: linear-gradient(90deg, rgba(15,23,42,1), rgba(147,51,234,1) 45%, rgba(59,130,246,1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Section layout: no extra padding ABOVE divider line */
html[data-variant="v6"] .section{
  position: relative;
  padding: 72px 0;
  scroll-margin-top: 86px;
}
/* Avoid a divider directly under the hero (optional). Remove if you want a line there. */

/* Sticky nav: add depth when scrolling */
html[data-variant="v6"] .nav{
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
html[data-variant="v6"] .nav.scrolled{
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
  border-bottom-color: rgba(148,163,184,.14);
  background: rgba(11, 18, 32, .75);
}
html[data-theme="light"][data-variant="v6"] .nav.scrolled{
  background: rgba(248,250,252,.84);
}

/* Active nav link (scrollspy) */
html[data-variant="v6"] .nav-links a.active{
  border: 1px solid rgba(147,51,234,.32);
  background: rgba(147,51,234,.14);
}

/* Spotlight hover (mouse position set by JS via --mx/--my on element) */
.spotlight{
  position: relative;
  overflow: hidden;
}
.spotlight::after{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  background: radial-gradient(280px 220px at var(--sx, 50%) var(--sy, 45%), rgba(255,255,255,.14), transparent 60%);
  opacity: 0;
  transition: opacity .18s ease;
}
.spotlight:hover::after{ opacity: 1; }
html[data-theme="light"] .spotlight::after{
  background: radial-gradient(280px 220px at var(--sx, 50%) var(--sy, 45%), rgba(15,23,42,.10), transparent 60%);
}

/* Quickstart steps */
.qs-steps{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.qs-step{
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.16);
  background: linear-gradient(180deg, rgba(15,23,42,.28), rgba(15,23,42,.72));
  box-shadow: var(--shadow2);
  padding: 16px;
}
html[data-theme="light"] .qs-step{
  background: #ffffff;
  border-color: rgba(15,23,42,.14);
}
.qs-num{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  font-weight: 1000;
  border: 1px solid rgba(147,51,234,.38);
  background: rgba(147,51,234,.14);
  color: rgba(216,180,254,1);
}
.qs-title{ margin-top: 10px; font-weight: 1000; letter-spacing: -.02em; }
.qs-text{ margin-top: 6px; color: var(--muted); line-height: 1.55; }
.qs-step .btn{ margin-top: 12px; }

/* FAQ toolbar */
.faq-toolbar{
  margin-top: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.faq-search-wrap{
  position: relative;
  flex: 1 1 320px;
  max-width: 520px;
}
.faq-search{
  width: 100%;
  padding: 12px 12px 12px 42px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(148,163,184,.06);
  color: rgba(243,244,246,.92);
  outline: none;
}
.faq-search:focus{
  border-color: rgba(147,51,234,.45);
  box-shadow: 0 0 0 4px rgba(147,51,234,.12);
}
.faq-search-ico{
  position:absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .70;
}
html[data-theme="light"] .faq-search{
  background: rgba(255,255,255,.72);
  color: rgba(15,23,42,.92);
}

.faq-item.is-hidden{ display:none; }
.faq-item summary mark{ background: rgba(147,51,234,.18); color: inherit; padding: 0 .18em; border-radius: 6px; }

/* Back to top */
.back-to-top{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.20);
  background: rgba(15,23,42,.72);
  color: rgba(243,244,246,.92);
  cursor:pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events:none;
  transition: opacity .2s ease, transform .2s ease;
}
.back-to-top.show{
  opacity: 1;
  transform: translateY(0);
  pointer-events:auto;
}
html[data-theme="light"] .back-to-top{ background: rgba(255,255,255,.80); color: rgba(15,23,42,.92); }

/* Floating CTA (mobile) */
.floating-cta{
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 55;
  display:none;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(11,18,32,.58);
  backdrop-filter: blur(10px);
}
html[data-theme="light"] .floating-cta{ background: rgba(248,250,252,.80); }

@media (max-width: 980px){
  .qs-steps{ grid-template-columns: 1fr; }
  .floating-cta{ display:flex; }
  /* Make room for floating CTA */
  html[data-variant="v6"] .footer{ padding-bottom: 88px; }
}

/* Command palette */
.cmdk[hidden]{ display:none; }
.cmdk{
  position: fixed;
  inset: 0;
  z-index: 80;
}
.cmdk-backdrop{
  position:absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}
.cmdk-dialog{
  position: relative;
  max-width: 720px;
  margin: 10vh auto 0 auto;
  width: calc(100% - 26px);
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(15,23,42,.88);
  box-shadow: 0 26px 70px rgba(0,0,0,.45);
  overflow:hidden;
}
html[data-theme="light"] .cmdk-dialog{ background: rgba(255,255,255,.92); }

.cmdk-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid rgba(148,163,184,.14);
}
.cmdk-input{
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: rgba(243,244,246,.94);
  font-weight: 950;
  font-size: 1.02rem;
}
html[data-theme="light"] .cmdk-input{ color: rgba(15,23,42,.92); }

.cmdk-list{
  max-height: 46vh;
  overflow:auto;
  padding: 8px;
}
.cmdk-item{
  width: 100%;
  text-align:left;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(243,244,246,.90);
  cursor:pointer;
  font-weight: 900;
}
html[data-theme="light"] .cmdk-item{ color: rgba(15,23,42,.90); }

.cmdk-item:hover, .cmdk-item:focus-visible{
  background: rgba(148,163,184,.10);
  border-color: rgba(148,163,184,.18);
  outline: none;
}
.cmdk-item .cmdk-sub{
  color: var(--muted);
  font-weight: 700;
  font-size: .92rem;
}
.cmdk-footer{
  padding: 12px 14px;
  border-top: 1px solid rgba(148,163,184,.14);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html[data-variant="v6"] body::before{ animation: none; }
  .spotlight::after{ display:none; }
}

/* cmdk extras */
.cmdk-item.active{
  background: rgba(148,163,184,.08);
  border-color: rgba(147,51,234,.32);
}
html[data-theme="light"] .cmdk-item.active{ background: rgba(15,23,42,.04); }

.cmdk-item .cmdk-meta{
  opacity: .65;
  font-weight: 900;
  font-size: .88rem;
}
