/* Base theme */
:root {
  --bg: #0b0d12;
  --bg-alt: #0e1117;
  --text: #e5e7eb;
  --muted: #a5adbb;
  --primary: #7c9cff;
  --primary-600: #678bff;
  --primary-700: #5477ff;
  --card: #121621;
  --stroke: #22283a;
  --accent: #22d3ee;
  --success: #34d399;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  padding: 0;
  margin: 0;
  color: var(--text);
  background: radial-gradient(1200px 800px at 70% -10%, rgba(124,156,255,0.08), transparent 60%),
              radial-gradient(800px 600px at -10% 10%, rgba(34,211,238,0.06), transparent 60%),
              var(--bg);
  font: 16px/1.6 "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

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

h1, h2, h3, h4 {
  margin: 0 0 10px;
  line-height: 1.25;
}

.lead {
  color: var(--muted);
  font-size: 1.125rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.1) blur(10px);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
  background: rgba(11,13,18,0.6);
  border-bottom: 1px solid var(--stroke);
}
/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-700), var(--accent));
  box-shadow: 0 0 10px rgba(124,156,255,0.5);
  transform-origin: left;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  position: relative;
}
.header__inner .brand {
  flex-shrink: 0;
}
.header__inner .nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.header__inner .header-cta {
  flex-shrink: 0;
}
.header__inner .nav-toggle {
  flex-shrink: 0;
}
.header__inner .nav ul { margin: 0; padding: 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.brand__logo {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0b0d12;
  border-radius: 50%;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(124,156,255,0.35);
}
.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav a:hover {
  background: rgba(124,156,255,0.08);
  color: var(--text);
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  color: var(--text);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.2s;
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav.collapsed ul { display: none; }
  .nav.collapsed.open ul {
    display: flex;
    position: absolute;
    right: 20px;
    top: 64px;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: rgba(11,13,18,0.95);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
}

/* Hero */
.hero {
  padding: 0 0 28px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff, #c7d2fe, #22d3ee, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: headline-sheen 6s linear infinite;
}
@keyframes headline-sheen {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.hero__actions {
  display: flex;
  gap: 12px;
  margin: 18px 0 8px;
}
.hero__highlights {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}
.hero__highlights li {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 6px 10px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.hero__media {
  position: relative;
  height: 320px;
}
.glass {
  position: absolute;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  background: linear-gradient(135deg, rgba(124,156,255,0.18), rgba(34,211,238,0.12));
  border: 1px solid rgba(124,156,255,0.25);
  box-shadow: 0 20px 60px rgba(124,156,255,0.12);
  animation: float 10s ease-in-out infinite;
}
.glass--a { top: 10%; left: 8%; width: 62%; height: 52%; --rot: -6deg; transform: rotate(-6deg); }
.glass--b { top: 28%; right: 4%; width: 44%; height: 46%; --rot: 8deg; transform: rotate(8deg); }
.glass--c { bottom: 4%; left: 22%; width: 48%; height: 34%; --rot: -2deg; transform: rotate(-2deg); }
@keyframes float {
  0% { transform: translateY(0) rotate(var(--rot)); }
  50% { transform: translateY(-8px) rotate(calc(var(--rot) + 1deg)); }
  100% { transform: translateY(0) rotate(var(--rot)); }
}

/* Sections */
.section {
  padding: 48px 0;
}
.section--alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}
.section--cta {
  padding: 60px 0 72px;
}
.section__title {
  font-size: 28px;
  margin-bottom: 18px;
  position: relative;
}
.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms cubic-bezier(.2,.65,.3,1);
}
.section__title.reveal--visible::after {
  transform: scaleX(1);
}
.section__subtitle {
  color: var(--muted);
  margin: 18px 0 14px;
  font-weight: 600;
}

/* Grid & Cards */
.grid {
  display: grid;
  gap: 16px;
}
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.008));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  will-change: transform;
  transform: translateZ(0);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.card h3, .card h4 { margin-bottom: 6px; }
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,156,255,0.5);
  box-shadow: 0 18px 40px rgba(124,156,255,0.18);
}
.list {
  margin: 10px 0 18px;
  padding-left: 18px;
  color: var(--muted);
}
.chip h4 { margin: 0; }
.chip p { margin: 6px 0 0; color: var(--muted); }

/* Pricing Tiers */
.tier header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.tier .price {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.price-range-sep {
  color: var(--accent);
  font-weight: 700;
  margin: 0 4px;
  opacity: 1;
}
.price-sep {
  display: inline-block;
  min-width: 1.5em;
  text-align: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2em;
}
.tier--highlight {
  border-color: rgba(124,156,255,0.5);
  background: linear-gradient(180deg, rgba(124,156,255,0.08), rgba(255,255,255,0.02));
  box-shadow: 0 0 0 0 rgba(124,156,255,0.25);
  animation: pulse-glow 2.8s ease-in-out infinite;
}
@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(124,156,255,0.22); }
  50% { box-shadow: 0 0 0 10px rgba(124,156,255,0.0); }
  100% { box-shadow: 0 0 0 0 rgba(124,156,255,0.0); }
}
.note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Case */
.case__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; }
  .case__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; height: 220px; }
}

/* Timeline */
.timeline {
  display: grid;
  gap: 14px;
}
.timeline__item {
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.008));
}
.timeline__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.badge {
  display: inline-block;
  padding: 6px 10px;
  font-size: 0.85rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  color: var(--muted);
}

/* Testimonial */
.testimonial {
  margin: 0;
  padding: 18px;
  border-left: 3px solid var(--primary);
  background: linear-gradient(180deg, rgba(124,156,255,0.06), rgba(255,255,255,0.02));
  border-radius: 0 var(--radius) var(--radius) 0;
}
.testimonial footer {
  color: var(--muted);
  margin-top: 6px;
}

/* CTA & Form */
.cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 860px) {
  .cta { grid-template-columns: 1fr; }
}
.cta__content {
  padding: 18px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.008));
}
.contact__list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.form {
  padding: 18px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.008));
}
.form__row {
  margin-bottom: 12px;
}
.form label {
  display: block;
  color: var(--text);
  font-weight: 500;
}
input, select, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  color: var(--text);
  background: #0d1117;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,156,255,0.15);
}
.form__note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 8px 0 0;
}
.form__status {
  margin: 8px 0 0;
  min-height: 1.2em;
  color: var(--muted);
}
.form__loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #0b0d12;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.is-error { border-color: var(--danger) !important; }
.status--ok { color: var(--success); }
.status--err { color: var(--danger); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: 0.15s ease-in-out;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}
.button:hover {
  transform: translateY(-1px);
}
.button--primary {
  background: linear-gradient(135deg, var(--primary-700), var(--primary));
  border-color: rgba(124,156,255,0.5);
  color: #0b0d12;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(124,156,255,0.25);
}
.button--cta {
  background: linear-gradient(135deg, var(--accent), var(--primary)) !important;
  border-color: rgba(124,156,255,0.55) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 32px rgba(34,211,238,0.28), 0 8px 24px rgba(124,156,255,0.22);
}
.button--cta:hover {
  box-shadow: 0 16px 40px rgba(34,211,238,0.35), 0 10px 28px rgba(124,156,255,0.28);
}
.button--secondary {
  border-color: rgba(124,156,255,0.5);
  color: var(--primary);
}
.button--ghost {
  background: transparent;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 18px 0 28px;
  background: rgba(0,0,0,0.2);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 12px;
}
.site-footer nav a:hover { color: var(--text); }

/* Utilities */
.hidden { display: none !important; }
.hp { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Back to top */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(124,156,255,0.5);
  background: linear-gradient(135deg, var(--primary-700), var(--primary));
  color: #0b0d12;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(124,156,255,0.25);
  cursor: pointer;
  z-index: 70;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, box-shadow 150ms ease;
  pointer-events: none;
}
.to-top:hover { box-shadow: 0 16px 36px rgba(124,156,255,0.35); }
.to-top--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 600ms cubic-bezier(.2,.65,.3,1), transform 600ms cubic-bezier(.2,.65,.3,1);
  will-change: opacity, transform;
  transform: translateZ(0) translateY(24px) scale(0.96);
}
.reveal--visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}
/* Directional variants */
[data-reveal="up"] { transform: translateY(24px) scale(0.96); }
[data-reveal="left"] { transform: translateX(-24px) scale(0.96); }
[data-reveal="right"] { transform: translateX(24px) scale(0.96); }
[data-reveal="zoom"] { transform: scale(0.9); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .glass { animation: none; }
  .card, [data-reveal] {
    transition: none;
  }
}


/* Header CTA */
.button--sm { padding: 8px 12px; border-radius: 10px; }

/* Sticky CTA mobile */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.5));
  display: none;
  z-index: 65;
}
.sticky-cta .button {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: block;
}
@media (max-width: 640px) {
  .sticky-cta { display: block; }
}

/* Steps */
.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* Logos strip */
.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.logo-chip {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
}
.faq__item {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.008));
  overflow: hidden;
}
.faq__q {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.faq__a {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  transition: max-height 300ms ease, padding 300ms ease;
  color: var(--muted);
}
.faq__item.is-open .faq__a {
  padding: 0 16px 14px;
  max-height: 200px;
}

/* Before/After slider */
.ba-slider {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #0d1117;
  --split: 55%;
}
.ba-slider__before,
.ba-slider__after {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--text);
  pointer-events: none;
  user-select: none;
}
.ba-slider__before {
  background: linear-gradient(135deg, #1f2937, #111827);
}
.ba-slider__after {
  background: linear-gradient(135deg, rgba(124,156,255,0.25), rgba(34,211,238,0.2));
  border-right: 2px solid rgba(255,255,255,0.6);
  width: var(--split);
}
.ba-slider input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-appearance: none;
  background: transparent;
  outline: none;
  cursor: ew-resize;
}
.ba-slider input[type="range"]::-webkit-slider-runnable-track { background: transparent; height: 100%; }
.ba-slider input[type="range"]::-moz-range-track { background: transparent; height: 100%; }
.ba-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.ba-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header__inner { height: 56px; }
  .scroll-progress { height: 2px; }
  .nav.collapsed.open ul {
    left: 16px;
    right: 16px;
    top: 56px;
  }
  .hero { padding: 0 0 18px; }
  .hero h1 { font-size: 24px; }
  .lead { font-size: 0.98rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .button { width: 100%; }
  .hero__media { height: 200px; }
  .section { padding: 36px 0; }
  .section__title { font-size: 22px; margin-bottom: 14px; }
  .grid { gap: 12px; }
  .card { padding: 14px; }
  .cta { grid-template-columns: 1fr; }
  .form button.button { width: 100%; }
  input, select, textarea { font-size: 16px; }
  .site-footer .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer nav a {
    display: inline-block;
    margin-right: 10px;
    margin-top: 6px;
  }
  .to-top {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }
}


