/* ============================================================
   Automaly.AI — Stylesheet
   ============================================================ */

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  --bg-primary:      #0a0a0f;
  --bg-secondary:    #0f0f1a;
  --bg-card:         rgba(255, 255, 255, 0.04);
  --bg-card-hover:   rgba(255, 255, 255, 0.07);
  --border-color:    rgba(255, 255, 255, 0.08);
  --border-accent:   rgba(124, 58, 237, 0.4);

  --purple:          #7c3aed;
  --purple-light:    #a78bfa;
  --blue:            #2563eb;
  --blue-light:      #60a5fa;
  --accent-glow:     rgba(124, 58, 237, 0.25);

  --text-primary:    #f1f5f9;
  --text-secondary:  #94a3b8;
  --text-muted:      #64748b;

  --gradient:        linear-gradient(135deg, #7c3aed, #2563eb);
  --gradient-subtle: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(37,99,235,0.15));
  --gradient-text:   linear-gradient(135deg, #a78bfa, #60a5fa);

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.15);

  --font:        'Inter', system-ui, -apple-system, sans-serif;

  --nav-h:       72px;
  --section-gap: clamp(80px, 10vw, 140px);
  --container:   1240px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) var(--bg-secondary);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--gradient); border-radius: 3px; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; }
input, textarea, select { font-family: var(--font); }

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; letter-spacing: -1px; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; line-height: 1.3; }
p  { font-size: clamp(0.95rem, 2vw, 1.05rem); color: var(--text-secondary); }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--purple-light);
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple-light);
  animation: pulse 2s ease-in-out infinite;
}

.section-header { text-align: center; margin-bottom: clamp(40px,6vw,72px); }
.section-header p { max-width: 560px; margin: 16px auto 0; font-size: 1.05rem; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

section { padding-block: var(--section-gap); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.btn:hover::after { background: rgba(255,255,255,0.08); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124,58,237,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.55);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--purple-light);
  border: 1.5px solid var(--purple);
}
.btn-outline:hover {
  background: rgba(124,58,237,0.12);
  transform: translateY(-2px);
}

/* ── Glass Card ─────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), 0 0 40px rgba(124,58,237,0.12);
}

/* ── Keyframes ──────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-18px) rotate(1deg); }
  66%       { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(22px) rotate(-2deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Scroll Animations ──────────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.from-left  { transform: translateX(-28px); }
.animate-on-scroll.from-right { transform: translateX(28px); }
.animate-on-scroll.scale-in   { transform: scale(0.92); }

.animate-on-scroll.animated {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── Canvas Background ──────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* ── Orbs ───────────────────────────────────────────────────── */
.orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.orb-1 {
  width: clamp(300px, 50vw, 600px);
  height: clamp(300px, 50vw, 600px);
  background: radial-gradient(circle, rgba(124,58,237,0.35) 0%, transparent 70%);
  top: -15%; left: -10%;
  animation: float 8s ease-in-out infinite;
}
.orb-2 {
  width: clamp(250px, 40vw, 500px);
  height: clamp(250px, 40vw, 500px);
  background: radial-gradient(circle, rgba(37,99,235,0.3) 0%, transparent 70%);
  top: 10%; right: -8%;
  animation: floatB 10s ease-in-out infinite;
}
.orb-3 {
  width: clamp(200px, 30vw, 380px);
  height: clamp(200px, 30vw, 380px);
  background: radial-gradient(circle, rgba(167,139,250,0.2) 0%, transparent 70%);
  bottom: 5%; left: 30%;
  animation: float 12s ease-in-out infinite 2s;
}

/* ── Navigation ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#navbar.scrolled {
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.nav-cta { margin-left: 16px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.hamburger:hover { background: rgba(255,255,255,0.06); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10,10,15,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  animation: fadeInUp 0.25s ease;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.mobile-nav .btn { margin-top: 8px; justify-content: center; }

/* ── Hero ───────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding-block: 60px 40px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple-light);
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease both;
}
.hero-badge svg { width: 14px; height: 14px; }

.hero-title {
  animation: fadeInUp 0.6s ease 0.1s both;
  margin-bottom: 12px;
}
.hero-typing-wrapper {
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease 0.2s both;
}
.typing-text {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: var(--purple-light);
}
.typing-cursor {
  display: inline-block;
  width: 2px; height: 1.2em;
  background: var(--purple-light);
  margin-left: 3px;
  border-radius: 1px;
  animation: blink 0.9s step-end infinite;
  vertical-align: middle;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.75;
  animation: fadeInUp 0.6s ease 0.3s both;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  animation: fadeInUp 0.6s ease 0.4s both;
  margin-bottom: 60px;
}

/* Stats bar */
.stats-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-color);
  padding-top: 48px;
  margin-top: 0;
  animation: fadeInUp 0.6s ease 0.5s both;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  background: var(--bg-card);
  padding: 28px 20px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: background 0.3s;
}
.stat-item:hover { background: var(--bg-card-hover); }
.stat-num {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ── Services ───────────────────────────────────────────────── */
#services { position: relative; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  padding: 32px 28px;
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 6px 24px rgba(124,58,237,0.35);
  position: relative;
  overflow: hidden;
}
.service-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
}
.service-icon svg { width: 26px; height: 26px; color: #fff; }
.service-card h3 { margin-bottom: 10px; }
.service-card p  { font-size: 0.93rem; line-height: 1.65; }

/* ── Service Card clickable overlay ─────────────────────────── */
.service-card {
  position: relative;
}
.service-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.service-card .service-icon,
.service-card h3,
.service-card p,
.service-card-cta {
  position: relative;
  z-index: 2;
}
.service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-light);
  transition: gap 0.2s, color 0.2s;
}
.service-card:hover .service-card-cta {
  gap: 9px;
  color: var(--blue-light);
}

/* ── How It Works ───────────────────────────────────────────── */
#how-it-works { position: relative; }
.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.steps-wrapper::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66% + 28px);
  right: calc(16.66% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
.step {
  text-align: center;
  padding: 28px 32px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 4px 28px rgba(124,58,237,0.45);
  position: relative;
}
.step-num::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.2;
  filter: blur(6px);
  z-index: -1;
}
.step h3 { margin-bottom: 10px; }

/* ── Benefits ───────────────────────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.benefits-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}
.benefit-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateX(6px);
}
.benefit-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.benefit-check svg { width: 12px; height: 12px; color: #fff; }
.benefit-text { font-size: 0.95rem; color: var(--text-primary); font-weight: 500; }

/* Illustration */
.benefits-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vis-circle {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid;
  animation: spin linear infinite;
}
.vis-c1 {
  width: 300px; height: 300px;
  border-color: rgba(124,58,237,0.3);
  animation-duration: 20s;
}
.vis-c2 {
  width: 220px; height: 220px;
  border-color: rgba(37,99,235,0.4);
  animation-duration: 14s;
  animation-direction: reverse;
}
.vis-c3 {
  width: 140px; height: 140px;
  border-color: rgba(167,139,250,0.4);
  animation-duration: 9s;
}
.vis-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gradient);
}
.vis-c1 .vis-dot { top: -5px; left: 50%; transform: translateX(-50%); }
.vis-c2 .vis-dot { bottom: -5px; left: 50%; transform: translateX(-50%); }
.vis-c3 .vis-dot { top: -5px; left: 50%; transform: translateX(-50%); }
.vis-center {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(124,58,237,0.5);
  z-index: 2;
}
.vis-center svg { width: 36px; height: 36px; color: #fff; }

/* ── Industries ─────────────────────────────────────────────── */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.industry-card {
  padding: 28px 24px;
  text-align: center;
}
.industry-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-subtle);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.industry-icon svg { width: 24px; height: 24px; }
.industry-card h3 { font-size: 1rem; margin-bottom: 8px; }
.industry-card p  { font-size: 0.85rem; }

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials-slider {
  position: relative;
  overflow: hidden;
}
.testimonials-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-slide {
  flex: 0 0 100%;
  padding: 4px;
}
.testimonial-card {
  padding: 36px 40px;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px; left: 28px;
  font-size: 6rem;
  line-height: 1;
  color: rgba(124,58,237,0.2);
  font-family: Georgia, serif;
}
.testimonial-body {
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.95rem; }
.author-title { font-size: 0.83rem; color: var(--text-muted); }
.star-row { display: flex; gap: 3px; margin-bottom: 4px; }
.star-row svg { width: 14px; height: 14px; color: #f59e0b; }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}
.slider-btn:hover {
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.slider-btn svg { width: 18px; height: 18px; }
.slider-dots { display: flex; gap: 8px; }
.dot {
  width: 8px; height: 8px;
  border-radius: 100px;
  background: var(--border-color);
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  background: var(--gradient);
  width: 24px;
  box-shadow: 0 0 10px rgba(124,58,237,0.5);
}

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  padding: 36px 32px;
  position: relative;
  text-align: center;
}
.pricing-card.popular {
  background: rgba(124,58,237,0.08);
  border-color: var(--purple) !important;
  box-shadow: 0 0 50px rgba(124,58,237,0.18);
}
.pricing-card.popular:hover {
  box-shadow: 0 12px 48px rgba(124,58,237,0.3);
}
.popular-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.price-plan { font-size: 0.85rem; font-weight: 600; color: var(--purple-light); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.price-amount { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--text-primary); line-height: 1; }
.price-amount span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); display: block; margin-top: 4px; }
.price-divider { height: 1px; background: var(--border-color); margin: 24px 0; }
.price-features { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.price-features li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--text-secondary); }
.price-features li svg { flex-shrink: 0; width: 16px; height: 16px; color: var(--purple-light); }
.price-cta { width: 100%; justify-content: center; }

/* ── Contact ─────────────────────────────────────────────────── */
#contact { position: relative; overflow: hidden; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { margin-bottom: 32px; font-size: 1.05rem; }

.contact-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-feature-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-feature-icon svg { width: 20px; height: 20px; color: #fff; }
.contact-feature-text strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.contact-feature-text span { font-size: 0.87rem; color: var(--text-muted); }

/* Form */
.contact-form-wrap { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.25s;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: rgba(124,58,237,0.06);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.form-group input.error,
.form-group textarea.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }
.form-group textarea { resize: vertical; min-height: 120px; }

.field-error { font-size: 0.8rem; color: #f87171; display: none; }
.field-error.visible { display: block; }

.captcha-group { display: flex; align-items: center; gap: 12px; }
.captcha-group input { max-width: 100px; }
.captcha-question { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; }

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: rgba(255,255,255,0.03);
  transition: all 0.2s;
}
.checkbox-group:hover { border-color: var(--border-accent); }
.checkbox-group input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--purple);
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-group span { font-size: 0.9rem; color: var(--text-secondary); }

.form-submit-btn { width: 100%; justify-content: center; padding: 16px 28px; font-size: 1rem; }

/* Success / Error messages */
.form-success,
.form-error-msg {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 10px;
}
.form-success.visible,
.form-error-msg.visible { display: flex; }
.form-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #34d399; }
.form-error-msg { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #f87171; }

/* Calendly embed */
.calendly-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-block: 32px;
}
.calendly-divider::before,
.calendly-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}
.calendly-divider span { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }
.calendly-embed-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.02);
  min-height: 650px;
}
.calendly-embed-container iframe { border: none; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 72px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-color);
}
.footer-brand p { font-size: 0.9rem; margin-top: 12px; max-width: 280px; line-height: 1.7; }
.footer-logo { font-size: 1.4rem; font-weight: 800; }

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--purple-light); }

.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-link {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.25s;
}
.social-link:hover {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}
.social-link svg { width: 17px; height: 17px; }

.footer-bottom {
  padding-block: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.85rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--purple-light); }

/* ── Loading spinner ────────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .steps-wrapper { grid-template-columns: 1fr; gap: 24px; }
  .steps-wrapper::before { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta  { display: none; }
  .hamburger { display: flex; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefits-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-card { padding: 24px 20px; }
  .testimonial-card::before { display: none; }
}
