/* ═══════════════════════════════════════════════
   XautomateX — Shared Styles
   ═══════════════════════════════════════════════ */

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

:root {
  --primary: #8B5CF6;
  --primary-hover: #A78BFA;
  --primary-dim: rgba(139, 92, 246, 0.15);
  --primary-glow: rgba(139, 92, 246, 0.4);
  --bg: #0A0A0A;
  --bg-alt: #111111;
  --surface: #1A1A1A;
  --surface-hover: #222222;
  --border: #2A2A2A;
  --border-light: #333333;
  --text: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-dim: #71717A;
  --green: #22C55E;
  --amber: #F59E0B;
  --red: #EF4444;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-w: 1200px;
  --section-py: clamp(64px, 10vw, 120px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

section { padding: var(--section-py) 0; }
.bg-alt { background: var(--bg-alt); }

/* ─── NAV ─────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; background: var(--primary); color: #fff !important;
  font-size: 0.875rem; font-weight: 600; border-radius: 8px;
  border: none; cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--primary-hover); transform: translateY(-1px); }
.mobile-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; }
.mobile-toggle svg { width: 24px; height: 24px; }

/* ─── TYPOGRAPHY ──────────────────────────── */
.section-label {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  color: var(--primary); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
  max-width: 700px; margin-bottom: 20px;
}
.section-desc {
  font-size: 1.0625rem; color: var(--text-secondary);
  max-width: 600px; line-height: 1.7; margin-bottom: 48px;
}

/* ─── BUTTONS ─────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; background: var(--primary); color: #fff;
  font-size: 1rem; font-weight: 600; font-family: var(--font-body);
  border-radius: 10px; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--primary-hover); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; background: transparent; color: var(--text-secondary);
  font-size: 1rem; font-weight: 500; font-family: var(--font-body);
  border-radius: 10px; border: 1px solid var(--border-light); cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.btn-secondary:hover { color: var(--text); border-color: var(--text-dim); }

/* ─── SERVICE PAGE HERO ───────────────────── */
.page-hero {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 140px 24px 80px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(139,92,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .section-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem); max-width: 800px; margin: 0 auto 20px;
}
.page-hero .section-desc { max-width: 620px; margin: 0 auto 36px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 20px; border: 1px solid var(--border-light); border-radius: 100px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  color: var(--primary); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-light); }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ─── CARDS ───────────────────────────────── */
.card {
  padding: 32px 28px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  transition: border-color 0.3s, transform 0.2s;
}
.card:hover { border-color: var(--primary); transform: translateY(-4px); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-dim); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--primary);
}
.card h3 {
  font-family: var(--font-display); font-size: 1.25rem;
  font-weight: 600; margin-bottom: 12px; letter-spacing: -0.01em;
}
.card p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.65; }

/* ─── GRIDS ───────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* ─── FEATURE LIST ────────────────────────── */
.feature-list { list-style: none; }
.feature-list li {
  display: flex; gap: 12px; padding: 12px 0;
  font-size: 1rem; color: var(--text-secondary); line-height: 1.6;
}
.feature-list .check { color: var(--green); flex-shrink: 0; margin-top: 2px; font-weight: 700; }

/* ─── STAT CARDS ──────────────────────────── */
.stat-card {
  padding: 28px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.3s;
}
.stat-card:hover { border-color: var(--primary); }
.stat-value {
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 700; color: var(--primary); margin-bottom: 8px;
}
.stat-desc { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.5; }

/* ─── METRICS TABLE ───────────────────────── */
.metrics-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
}
.metrics-table th {
  padding: 16px 24px; text-align: left;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.metrics-table td {
  padding: 16px 24px; font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
}
.metrics-table tr:last-child td { border-bottom: none; }
.metrics-table .before { color: var(--text-dim); }
.metrics-table .after { color: var(--green); font-weight: 600; }
.metrics-table .metric-name { color: var(--text); font-weight: 500; }

/* ─── PRICING CARDS ───────────────────────── */
.pricing-card {
  padding: 36px 32px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; transition: border-color 0.3s;
}
.pricing-card.featured { border-color: var(--primary); position: relative; }
.pricing-card.featured::before {
  content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; background: var(--primary); color: #fff;
  font-size: 0.75rem; font-weight: 600; border-radius: 100px; white-space: nowrap;
}
.pricing-card:hover { border-color: var(--primary); }
.pricing-name {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  color: var(--primary); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px;
}
.pricing-price { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; margin-bottom: 4px; }
.pricing-period { font-size: 0.875rem; color: var(--text-dim); margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 0; font-size: 0.9375rem; color: var(--text-secondary);
}
.pricing-features li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0; margin-top: 8px;
}
.pricing-btn {
  display: block; width: 100%; padding: 14px; text-align: center;
  font-size: 0.9375rem; font-weight: 600; font-family: var(--font-body);
  border-radius: 10px; border: none; cursor: pointer; transition: all 0.2s;
}
.pricing-btn.primary { background: var(--primary); color: #fff; }
.pricing-btn.primary:hover { background: var(--primary-hover); }
.pricing-btn.outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-light); }
.pricing-btn.outline:hover { color: var(--text); border-color: var(--text-dim); }
.pricing-note { text-align: center; margin-top: 24px; font-size: 0.875rem; color: var(--text-dim); }

/* ─── TAGS ────────────────────────────────── */
.tag {
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500;
  padding: 4px 10px; border-radius: 6px; background: var(--primary-dim);
  color: var(--primary); letter-spacing: 0.03em; text-transform: uppercase;
  display: inline-block;
}

/* ─── PROCESS STEPS ───────────────────────── */
.step-number {
  font-family: var(--font-display); font-size: 4rem; font-weight: 700;
  line-height: 1; margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(139,92,246,0.25) 0%, rgba(139,92,246,0.05) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ─── CTA SECTION ─────────────────────────── */
.cta-section { text-align: center; position: relative; overflow: hidden; }
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(139,92,246,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section .section-title { margin: 0 auto 16px; max-width: 600px; }
.cta-section .section-desc { margin: 0 auto 40px; }

/* ─── FOOTER ──────────────────────────────── */
.footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-brand { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.footer-brand span { color: var(--primary); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 0.875rem; color: var(--text-dim); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.8125rem; color: var(--text-dim); }

/* ─── ANIMATIONS ──────────────────────────── */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(10,10,10,0.97); backdrop-filter: blur(20px);
    padding: 24px; gap: 20px; border-bottom: 1px solid var(--border);
  }
  .grid-2, .grid-3, .grid-4, .grid-2-wide { grid-template-columns: 1fr; }
  .grid-2-wide { gap: 40px; }
}
