:root {
  --bg: #0a0a0f;
  --bg-soft: #12121a;
  --surface: #12121a;
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-strong: #f1f5f9;
  --primary: #6366f1;
  --primary-strong: #818cf8;
  --accent: #a855f7;
  --accent2: #a855f7;
  --accent3: #06b6d4;
  --outline: rgba(99, 102, 241, 0.18);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --success: #34d399;
  --danger: #f87171;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'Inter', monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.62;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  font-weight: 800;
}

h1 {
  font-size: clamp(2.1rem, 4.8vw, 4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.1vw, 2.5rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
}

p,
ul {
  margin: 0;
}

/* ---------- Gradient orbs ---------- */
.gradient-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -10%;
  left: -5%;
  animation-duration: 22s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: 40%;
  right: -10%;
  animation-duration: 18s;
  animation-delay: -5s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: var(--accent3);
  bottom: -5%;
  left: 30%;
  animation-duration: 24s;
  animation-delay: -10s;
}

/* ---------- Film grain overlay ---------- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ---------- Particles container ---------- */
.particles-container {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: sparkle linear infinite;
}

/* ---------- Content wrapper (above orbs/grain) ---------- */
.site-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

main {
  display: grid;
  gap: 2.8rem;
  padding-bottom: 3.4rem;
}

.container {
  width: min(1120px, calc(100% - 2.2rem));
  margin-inline: auto;
}

.narrow {
  width: min(860px, 100%);
}

.section {
  padding-block: 2.7rem;
}

.page-hero {
  padding-top: 3.6rem;
}

.page-hero .container.grid > * {
  background: var(--glass);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-glass {
  position: relative;
  background: var(--glass);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(1.2rem, 4vw, 2.2rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.06), transparent 38%);
}

.hero-subtitle,
.page-hero .hero-subtitle {
  color: var(--text-muted);
  max-width: 70ch;
  margin-top: 1rem;
}

.section-heading {
  max-width: 70ch;
  margin-bottom: 1.55rem;
}

.section-heading p {
  color: var(--text-muted);
  margin-top: 0.8rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent3);
  margin-bottom: 0.85rem;
}

/* ---------- Gradient text ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--accent3));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease infinite;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Cards (glass morphism) ---------- */
.card {
  background: var(--glass);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  animation: fadeUp 0.65s ease both;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 24px 50px rgba(99, 102, 241, 0.15);
}

.card p {
  color: var(--text-muted);
  margin-top: 0.65rem;
}

.card ul {
  margin-top: 0.62rem;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.card li + li {
  margin-top: 0.42rem;
}

.highlight-card {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* ---------- Buttons ---------- */
.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  padding: 0.72rem 1.28rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-115%);
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: transform 0.32s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5), 0 0 40px rgba(168, 85, 247, 0.2);
}

.button:hover::after {
  transform: translateX(120%);
}

.button-small {
  padding: 0.54rem 1rem;
  font-size: 0.9rem;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--text);
  box-shadow: none;
}

.button-ghost:hover {
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.28rem;
}

/* ---------- KPI ---------- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.kpi {
  background: var(--glass);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: var(--radius-sm);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.kpi p {
  color: var(--text-muted);
}

.kpi strong {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.7);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-family: var(--font-heading);
  font-weight: 800;
}

.brand-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
  animation: pulse 3s ease-in-out infinite;
}

.desktop-nav {
  margin-left: auto;
  display: flex;
  gap: 1rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-strong);
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.mobile-menu {
  display: none;
}

.mobile-menu summary {
  list-style: none;
  font-family: var(--font-heading);
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-panel {
  margin-top: 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(18, 18, 26, 0.95);
  padding: 0.9rem;
  min-width: 220px;
  display: grid;
  gap: 0.7rem;
  box-shadow: var(--shadow);
  position: absolute;
  right: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-link {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: var(--text-strong);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2.8rem 1.5rem;
  background: rgba(10, 10, 15, 0.9);
  color: var(--text);
  margin-top: 2rem;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 1.2rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-strong);
}

.footer-copy {
  margin-top: 0.55rem;
  color: var(--text-muted);
}

.footer-title {
  color: var(--text-strong);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-link {
  display: block;
  color: var(--text-muted);
  margin-top: 0.45rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-strong);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.9rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* ---------- Badges ---------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.08);
  color: var(--text);
  font-size: 0.82rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  padding-block: 2.2rem;
}

.cta-banner-inner {
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.06);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cta-banner p {
  margin-top: 0.5rem;
  color: var(--text-muted);
}

/* ---------- Forms ---------- */
.lead-form-wrap {
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: var(--glass);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lead-form-wrap h3 {
  margin-bottom: 0.8rem;
}

.lead-form {
  display: grid;
  gap: 0.75rem;
}

.lead-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.25);
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: var(--text-muted);
}

.lead-form textarea {
  resize: vertical;
}

.lead-form .checkbox-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.lead-form .checkbox-row input {
  width: auto;
  margin-top: 0.2rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 1px;
  width: 1px;
  pointer-events: none;
}

.status-ok {
  color: var(--success);
  font-weight: 600;
}

.status-error {
  color: var(--danger);
  font-weight: 600;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 35;
  width: min(560px, calc(100% - 2rem));
  background: rgba(18, 18, 26, 0.95);
  color: var(--text);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 14px;
  padding: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cookie-banner.hidden {
  display: none;
}

/* ---------- Callout ---------- */
.callout {
  border: 1px dashed rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: rgba(99, 102, 241, 0.06);
}

/* ---------- Animations ---------- */
@keyframes orbFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -40px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 30px) scale(0.95);
  }
  75% {
    transform: translate(40px, 20px) scale(1.02);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes sparkle {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
  }
  50% {
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.7), 0 0 48px rgba(168, 85, 247, 0.3);
  }
}

/* Legacy animation name kept for compatibility */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambientFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(26px) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }
}

@media (max-width: 760px) {
  .grid-2,
  .grid-3,
  .kpi-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-inner {
    min-height: 70px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero .container.grid > * {
    padding: 1.2rem;
  }
}
