/* ================================================
   DRAIA — Shared Styles v3
   draia.ai
   ================================================ */

:root {
  --black: #0A0A0A;
  --violet: #A78BFA;
  --white: #F5F5F5;
  --deep-violet: #1E1B2E;
  --steel: #8892A0;
  --lavender: #E8E0F0;
  --card-bg: #111;
  --card-border: rgba(255,255,255,0.06);
  --violet-border: rgba(167,139,250,0.15);
  --violet-border-strong: rgba(167,139,250,0.3);
  --violet-divider: rgba(167,139,250,0.1);
  --signal-green: #00E676;
  --signal-red: #FF3D57;
  --signal-gold: #FFD740;
  --green-dim: rgba(0,230,118,0.15);
  --red-dim: rgba(255,61,87,0.15);
  --gold-dim: rgba(255,215,64,0.15);
  --violet-dim: rgba(167,139,250,0.15);
  --font-headline: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--white); background: var(--black); overflow-x: hidden; }
::selection { background: var(--violet); color: var(--black); }
a { color: inherit; text-decoration: none; }

/* ================================================
   ANIMATIONS
   ================================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lineGrow {
  from { height: 0; }
  to { height: 40px; }
}

@keyframes gradientPulse {
  0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.35; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(167,139,250,0.0); }
  50% { box-shadow: 0 0 40px rgba(167,139,250,0.15); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes fillBar {
  from { width: 0; }
  to { width: var(--fill-width); }
}

@keyframes phonePulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Progressive enhancement — content visible by default */
body.js-ready .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-ready .reveal.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

body.js-ready .reveal-delay-1 { transition-delay: 0.1s; }
body.js-ready .reveal-delay-2 { transition-delay: 0.2s; }
body.js-ready .reveal-delay-3 { transition-delay: 0.3s; }
body.js-ready .reveal-delay-4 { transition-delay: 0.4s; }
body.js-ready .reveal-delay-5 { transition-delay: 0.5s; }
body.js-ready .reveal-delay-6 { transition-delay: 0.6s; }

body.js-ready .reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-ready .reveal-left.visible {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

body.js-ready .reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-ready .reveal-right.visible {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

body.js-ready .reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-ready .reveal-scale.visible {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* ================================================
   NAV
   ================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
  padding: 16px 48px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--violet-divider);
}

.nav.nav-solid {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--violet-divider);
}

.nav-logo {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--white);
}

.nav-logo .ai { color: var(--violet); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--steel);
  transition: color 0.3s ease;
}

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

.nav-cta {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 13px;
  color: var(--black);
  background: var(--violet);
  padding: 10px 24px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta:hover {
  background: var(--lavender);
  transform: translateY(-1px);
}

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(167,139,250,0.3), 0 0 4px rgba(167,139,250,0.2); }
  50% { box-shadow: 0 0 24px rgba(167,139,250,0.5), 0 0 8px rgba(167,139,250,0.3); }
}

.nav-cta-glow {
  animation: ctaGlow 3s ease-in-out infinite;
}

.nav-cta-glow:hover {
  animation: none;
  box-shadow: 0 0 30px rgba(167,139,250,0.6), 0 0 12px rgba(167,139,250,0.4);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ================================================
   MOBILE MENU
   ================================================ */

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 32px;
}

.mobile-menu-link {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 24px;
  color: var(--steel);
  transition: color 0.3s ease;
}

.mobile-menu-link:hover { color: var(--white); }

.mobile-menu-cta {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
  background: var(--violet);
  padding: 16px 40px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 8px;
}

.mobile-menu-cta:hover { background: var(--lavender); }

/* ================================================
   SECTION LABEL
   ================================================ */

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label-line {
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--violet);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.section-label.visible .section-label-line {
  width: 24px;
}

/* ================================================
   IPHONE MOCKUP
   ================================================ */

.phone-mockup {
  position: relative;
  width: 280px;
  height: 570px;
  background: #1a1a1a;
  border-radius: 44px;
  border: 3px solid #333;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05), inset 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
  flex-shrink: 0;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

.phone-screen {
  position: absolute;
  top: 12px; left: 12px; right: 12px; bottom: 12px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--deep-violet) 0%, var(--black) 100%);
}

.phone-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Animated placeholder when no video */
.phone-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.phone-placeholder::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(167,139,250,0.08) 0%, transparent 50%, rgba(167,139,250,0.05) 100%);
  animation: phonePulse 4s ease-in-out infinite;
}

.phone-placeholder-ui {
  position: relative;
  z-index: 1;
  padding: 24px 16px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-ui-bar {
  height: 8px;
  background: rgba(167,139,250,0.15);
  border-radius: 4px;
}

.phone-ui-bar.w60 { width: 60%; }
.phone-ui-bar.w80 { width: 80%; }
.phone-ui-bar.w40 { width: 40%; }
.phone-ui-bar.w90 { width: 90%; }

.phone-ui-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}

.phone-ui-metric-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 28px;
  color: var(--violet);
}

.phone-ui-metric-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel);
}

.phone-ui-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding-top: 16px;
}

.phone-ui-chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--violet), rgba(167,139,250,0.3));
  border-radius: 4px 4px 0 0;
  transition: height 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-ui-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal-green);
  animation: dotPulse 2s ease-in-out infinite;
}

/* ================================================
   PHONE INTERACTIVE FEED
   ================================================ */

.phone-feed {
  position: absolute;
  top: 40px; left: 0; right: 0; bottom: 56px;
  overflow: hidden;
}

.phone-card {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.phone-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.phone-card.exit-up {
  opacity: 0;
  transform: translateY(-40px);
}

.phone-card-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--violet);
  border: 1px solid var(--violet-border-strong);
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.phone-card-big {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: var(--white);
  margin-bottom: 8px;
}

.phone-card-unit {
  font-size: 28px;
  color: var(--violet);
}

.phone-card-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--white);
  margin-bottom: 4px;
  text-align: center;
}

.phone-card-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--steel);
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-align: center;
}

.phone-card-bar-wrap {
  width: 80%;
  height: 4px;
  background: rgba(167,139,250,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.phone-card-bar {
  height: 100%;
  width: 0;
  background: var(--bar-color, var(--violet));
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.phone-card.active .phone-card-bar {
  width: var(--bar-w, 50%);
}

.phone-nav {
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 5;
}

.phone-dots {
  display: flex;
  gap: 6px;
}

.phone-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(167,139,250,0.2);
  transition: all 0.3s ease;
}

.phone-dot.active {
  background: var(--violet);
  box-shadow: 0 0 8px rgba(167,139,250,0.4);
  width: 16px;
  border-radius: 3px;
}

.phone-next-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--violet);
  background: rgba(167,139,250,0.1);
  border: 1px solid var(--violet-border-strong);
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-next-btn:hover {
  background: rgba(167,139,250,0.2);
  transform: translateY(-1px);
}

.phone-next-arrow {
  display: inline-block;
  animation: float 2s ease-in-out infinite;
  font-size: 12px;
}

.phone-status-bar {
  position: absolute;
  top: 20px; left: 16px; right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
}

/* ================================================
   LEAD CAPTURE FORM
   ================================================ */

.lead-form {
  max-width: 520px;
  margin: 0 auto;
}

.lead-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.lead-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lead-form-field.full {
  grid-column: 1 / -1;
}

.lead-form-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel);
}

.lead-form-input {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  background: rgba(30,27,46,0.5);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lead-form-input::placeholder {
  color: rgba(136,146,160,0.5);
}

.lead-form-input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(167,139,250,0.1);
}

.lead-form-submit {
  width: 100%;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 15px;
  color: var(--black);
  background: var(--violet);
  border: none;
  padding: 16px 40px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.lead-form-submit:hover {
  background: var(--lavender);
  transform: translateY(-2px);
}

.lead-form-submit::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.lead-form-submit:hover::after {
  left: 100%;
}

.lead-form-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--steel);
  text-align: center;
  margin-top: 16px;
}

/* Form success state */
.lead-form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.lead-form-success.active {
  display: block;
}

.lead-form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 2px solid var(--signal-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.lead-form-success-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 12px;
}

.lead-form-success-sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--steel);
  line-height: 1.6;
}

/* ================================================
   BEFORE/AFTER COMPARISON
   ================================================ */

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.comparison-side {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.comparison-side:hover {
  transform: translateY(-4px);
}

.comparison-side.before {
  border-color: rgba(255,61,87,0.2);
}

.comparison-side.before:hover {
  box-shadow: 0 20px 60px rgba(255,61,87,0.1);
}

.comparison-side.after {
  border-color: rgba(0,230,118,0.2);
  background: rgba(30,27,46,0.5);
}

.comparison-side.after:hover {
  box-shadow: 0 20px 60px rgba(0,230,118,0.1);
}

.comparison-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 24px;
}

.comparison-tag.red {
  color: var(--signal-red);
  background: var(--red-dim);
}

.comparison-tag.green {
  color: var(--signal-green);
  background: var(--green-dim);
}

.comparison-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--violet-divider);
}

.comparison-metric:last-child {
  border-bottom: none;
}

.comparison-metric-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--steel);
}

.comparison-metric-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
}

.comparison-metric-value.red { color: var(--signal-red); }
.comparison-metric-value.green { color: var(--signal-green); }
.comparison-metric-value.gold { color: var(--signal-gold); }

/* ================================================
   PIPELINE FUNNEL (mini dashboard)
   ================================================ */

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pipeline-stage {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.pipeline-stage:hover {
  border-color: var(--violet-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(167,139,250,0.08);
}

.pipeline-stage::after {
  content: '\2192';
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--violet);
  font-size: 16px;
  z-index: 2;
}

.pipeline-stage:last-child::after { display: none; }

.pipeline-stage-name {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}

.pipeline-stage-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 28px;
  color: var(--violet);
}

.pipeline-stage-sub {
  font-size: 11px;
  color: var(--steel);
  margin-top: 4px;
}

/* Fill bar inside pipeline */
.pipeline-fill {
  height: 4px;
  background: rgba(167,139,250,0.1);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}

.pipeline-fill-bar {
  height: 100%;
  background: var(--violet);
  border-radius: 2px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pipeline-stage.visible .pipeline-fill-bar {
  width: var(--fill-width);
}

/* ================================================
   COMPARISON CAROUSEL
   ================================================ */

.comparison-carousel {
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

.comparison-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.comparison-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.comparison-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.comparison-dots {
  display: flex;
  gap: 8px;
}

.comp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(167,139,250,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.comp-dot.active {
  background: var(--violet);
  box-shadow: 0 0 10px rgba(167,139,250,0.4);
  width: 20px;
  border-radius: 4px;
}

.comparison-labels {
  display: flex;
  gap: 8px;
}

.comp-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--steel);
  cursor: pointer;
  transition: all 0.3s ease;
}

.comp-label:hover {
  border-color: var(--violet-border);
  color: var(--white);
}

.comp-label.active {
  background: var(--violet);
  color: var(--black);
  border-color: var(--violet);
  font-weight: 700;
}

@media (max-width: 768px) {
  .comparison-labels { flex-wrap: wrap; justify-content: center; }
}

/* ================================================
   INTERACTIVE AUDIT CHART
   ================================================ */

.audit-chart-wrap {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(30,27,46,0.6) 0%, rgba(10,10,10,0.8) 100%);
  border: 1px solid var(--violet-border-strong);
  border-radius: 20px;
  padding: 48px 40px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 40px rgba(167,139,250,0.06);
}

.audit-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.audit-chart-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--white);
}

.audit-chart-toggles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.audit-chart-toggle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--steel);
  cursor: pointer;
  transition: all 0.3s ease;
}

.audit-chart-toggle:hover {
  border-color: var(--toggle-color, var(--violet));
  color: var(--white);
}

.audit-chart-toggle.active {
  background: var(--toggle-color, var(--violet));
  color: var(--black);
  border-color: var(--toggle-color, var(--violet));
  font-weight: 700;
}

.audit-chart-body {
  display: grid;
  grid-template-columns: 48px 1fr 180px;
  gap: 16px;
  align-items: stretch;
}

.audit-chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--steel);
  text-align: right;
  padding: 4px 0;
}

.audit-chart-area {
  position: relative;
}

.audit-chart-svg {
  width: 100%;
  height: 320px;
  display: block;
}

#chartLine, #chartFill {
  transition: d 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.audit-chart-dot {
  r: 5;
  fill: var(--black);
  stroke-width: 3;
  transition: cx 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              cy 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              stroke 0.3s ease;
  cursor: pointer;
}

.audit-chart-dot:hover {
  r: 7;
}

.audit-chart-x {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--steel);
  margin-top: 12px;
  padding: 0 4px;
}

.audit-chart-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  border-left: 1px solid var(--violet-divider);
}

.audit-chart-stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 48px;
  color: var(--violet);
  line-height: 1;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.audit-chart-stat-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--steel);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .audit-chart-body {
    grid-template-columns: 1fr;
  }
  .audit-chart-y {
    display: none;
  }
  .audit-chart-stat {
    border-left: none;
    border-top: 1px solid var(--violet-divider);
    padding-top: 20px;
    margin-top: 12px;
  }
  .audit-chart-toggles {
    justify-content: center;
  }
  .audit-chart-svg {
    height: 200px;
  }
  .audit-chart-stat-value {
    font-size: 36px;
  }
  .audit-chart-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .comparison-side {
    padding: 24px 20px;
  }
  .comparison-metric-value {
    font-size: 15px;
  }
  .comparison-metric-label {
    font-size: 13px;
  }
}

/* ================================================
   SCROLLING METRICS MARQUEE
   ================================================ */

.metrics-marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 20px 0;
  border-top: 1px solid var(--violet-divider);
  border-bottom: 1px solid var(--violet-divider);
  background: rgba(30,27,46,0.3);
}

.metrics-marquee-track {
  display: inline-flex;
  animation: scrollMarquee 30s linear infinite;
}

.metrics-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 48px;
}

.metrics-marquee-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  color: var(--violet);
}

.metrics-marquee-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel);
}

/* ================================================
   GLOW CARDS (enhanced hover)
   ================================================ */

.glow-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 36px 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glow-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glow-card:hover {
  border-color: var(--violet-border);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(167,139,250,0.08);
}

.glow-card:hover::before {
  opacity: 1;
}

/* ================================================
   DOT GRID PATTERN
   ================================================ */

.dot-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(167,139,250,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ================================================
   SERVICE CARDS (What is Draia)
   ================================================ */

.service-card {
  position: relative;
  padding: 40px 32px !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(167,139,250,0.08);
  border: 1px solid var(--violet-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-icon {
  background: rgba(167,139,250,0.15);
  border-color: var(--violet);
  box-shadow: 0 0 20px rgba(167,139,250,0.2);
  transform: scale(1.1);
}

.service-card:hover {
  transform: translateY(-8px) !important;
  border-color: var(--violet) !important;
  box-shadow: 0 24px 60px rgba(167,139,250,0.12), 0 0 0 1px rgba(167,139,250,0.2) !important;
  background: rgba(30,27,46,0.6) !important;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 12px 12px 0 0;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card .build-item-title {
  font-size: 19px;
  margin-bottom: 12px;
}

/* ================================================
   PHOTO DIVIDER
   ================================================ */

.photo-divider {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.photo-divider-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg,
    rgba(10,10,10,0.85) 0%,
    rgba(10,10,10,0.5) 50%,
    rgba(10,10,10,0.85) 100%);
}

.photo-divider-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 48px;
}

.photo-divider-text {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(24px, 3.5vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--white);
}

.photo-divider-text .accent {
  color: var(--violet);
}

@media (max-width: 768px) {
  .photo-divider {
    height: 300px;
    background-attachment: scroll;
  }
  .photo-divider-content {
    padding: 0 24px;
  }
}

/* ================================================
   AMBIENT MOTION
   ================================================ */

@keyframes borderGlow {
  0%, 100% { border-color: var(--card-border); }
  50% { border-color: var(--violet-border); }
}

@keyframes orb1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.04; }
  33% { transform: translate(30px, -20px) scale(1.1); opacity: 0.07; }
  66% { transform: translate(-15px, 15px) scale(0.95); opacity: 0.05; }
}

@keyframes orb2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.03; }
  50% { transform: translate(-25px, 25px) scale(1.15); opacity: 0.06; }
}

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

/* Floating orbs — add to sections for ambient motion */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167,139,250,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.ambient-orb-1 {
  width: 400px; height: 400px;
  top: 20%; left: -5%;
  animation: orb1 12s ease-in-out infinite;
}

.ambient-orb-2 {
  width: 300px; height: 300px;
  bottom: 10%; right: -5%;
  animation: orb2 15s ease-in-out infinite;
}

.ambient-orb-3 {
  width: 200px; height: 200px;
  top: 50%; left: 40%;
  animation: orb1 18s ease-in-out infinite reverse;
}

/* Breathing glow cards — subtle ambient border pulse */
.glow-card-breathe {
  animation: borderGlow 6s ease-in-out infinite;
}

/* Shimmer grid overlay for deep-violet sections */
.shimmer-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg,
    rgba(167,139,250,0.0) 0%,
    rgba(167,139,250,0.04) 25%,
    rgba(167,139,250,0.0) 50%,
    rgba(167,139,250,0.03) 75%,
    rgba(167,139,250,0.0) 100%);
  background-size: 400% 400%;
  animation: gridShimmer 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* ================================================
   PAGE HEADER (subpages)
   ================================================ */

.page-header {
  padding: 160px 48px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.page-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 24px;
}

.page-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.page-intro {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: var(--steel);
  max-width: 640px;
}

.page-updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
}

/* ================================================
   LEGAL (terms + privacy)
   ================================================ */

.legal a { color: var(--violet); }
.legal a:hover { text-decoration: underline; }

.legal {
  padding: 0 48px 120px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--violet-divider);
}

.legal-section:first-child { border-top: none; padding-top: 24px; }

.legal h2 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
}

.legal p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  color: var(--steel);
  margin-bottom: 16px;
}

.legal p:last-child { margin-bottom: 0; }

.legal strong { color: var(--white); font-weight: 500; }

.legal ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.legal li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  color: var(--steel);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.legal li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
}

/* ================================================
   FOOTER
   ================================================ */

.footer {
  background: var(--black);
  padding: 56px 48px;
  border-top: 1px solid var(--violet-divider);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-logo {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--white);
}

.footer-logo .ai { color: var(--violet); }

.footer-links { display: flex; gap: 32px; }

.footer-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--steel);
  transition: color 0.3s ease;
}

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

.footer-right {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 1024px) {
  .comparison { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipeline-stage::after { display: none; }
  .audit-chart-wrap { padding: 32px 20px; }
  .audit-chart-title { font-size: 22px; }
}

@media (max-width: 768px) {
  .nav { padding: 18px 24px; }
  .nav.scrolled { padding: 14px 24px; }
  .nav.nav-solid { padding: 18px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .page-header { padding: 140px 24px 60px; }
  .page-header--narrow { padding: 140px 24px 48px; }
  .legal { padding: 0 24px 80px; }
  .footer { padding: 48px 24px; }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
  }
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 40px;
    justify-items: center;
  }
  .footer-right div { text-align: center !important; }
  .lead-form-grid { grid-template-columns: 1fr; }
  .hero-phone .phone-mockup { width: 220px; height: 450px; border-radius: 36px; }
  .hero-phone .phone-screen { top: 8px; left: 8px; right: 8px; bottom: 8px; border-radius: 28px; }
  .hero-phone .phone-notch { width: 100px; height: 24px; }
  .pipeline { grid-template-columns: 1fr; }
  .metrics-marquee-item { padding: 0 24px; }
}
