/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Fixpanic Design System - Deep Tech Theme */
  --bg-primary: #0f172a;          /* Deep Slate - matches HSL 222 47% 11% */
  --bg-secondary: #101622;        /* Slightly lighter */
  --bg-card: #161E2E;             /* Card dark */
  --bg-card-active: #1A1B26;      /* Active card bg */
  --bg-surface: #231630;          /* Surface dark */
  --text-primary: #f8fafc;        /* Almost white */
  --text-secondary: #E0E0E0;      /* High contrast secondary */
  --text-muted: #94a3b8;          /* Slate 400 */
  --text-dim: #64748b;            /* Slate 500 */
  --primary: #a78bfa;             /* Soft Electric Purple */
  --primary-dark: #7c3aed;        /* Purple 600 */
  --blue: #3b82f6;                /* Blue 500 */
  --blue-dark: #2563eb;           /* Blue 600 */
  --green: #22c55e;               /* Green for status indicators */
  --border: #232f48;              /* Border dark */
  --border-hover: #374151;        /* Border hover */
  --radius: 0.75rem;              /* 12px */
  --radius-lg: 1rem;              /* 16px */
  --radius-xl: 1.25rem;           /* 20px */

  /* Gradients */
  --gradient-primary: linear-gradient(to right, #9333ea, #2563eb);
  --gradient-primary-hover: linear-gradient(to right, #a855f7, #3b82f6);
  --gradient-text: linear-gradient(to right, #a78bfa, #60a5fa);
  --glow-purple: 0 0 20px rgba(147, 51, 234, 0.5);
  --glow-purple-strong: 0 0 30px rgba(147, 51, 234, 0.8);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "cv01", "cv02";
}

/* Custom scrollbar - matches fixpanic-website */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0B0F16; }
::-webkit-scrollbar-thumb { background: #232f48; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #374151; }

::selection {
  background: rgba(167, 139, 250, 0.2);
  color: var(--primary);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Header - matches fixpanic nav
   ============================================================ */
.header {
  padding: 0;
  border-bottom: 1px solid rgba(35, 47, 72, 0.5);
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  color: var(--primary);
  font-size: 24px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.header-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--text-primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: var(--gradient-primary);
  color: white !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: var(--glow-purple);
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--gradient-primary-hover);
  box-shadow: var(--glow-purple-strong);
}

/* ============================================================
   Hero - matches fixpanic hero section
   ============================================================ */
.hero {
  padding: 140px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Purple glow background effect */
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 500px;
  background: rgba(167, 139, 250, 0.15);
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-title .gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-meta {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   Buttons - matches fixpanic gradient style
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--glow-purple);
}

.btn-primary:hover {
  background: var(--gradient-primary-hover);
  box-shadow: var(--glow-purple-strong);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--bg-card);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
  border-radius: 10px;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

/* ============================================================
   Sections
   ============================================================ */
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.section-title .gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: var(--gradient-primary);
  color: white;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   Tools Grid - matches fixpanic FeaturesGrid cards
   ============================================================ */
.tools {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern overlay like fixpanic */
.tools::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(128, 128, 128, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(128, 128, 128, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Floating glow orbs */
.tools::after {
  content: '';
  position: absolute;
  top: 25%;
  right: 25%;
  width: 384px;
  height: 384px;
  background: rgba(147, 51, 234, 0.06);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.tools > .container {
  position: relative;
  z-index: 1;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.tool-card {
  position: relative;
  background: linear-gradient(to bottom right, rgba(88, 28, 135, 0.08), rgba(88, 28, 135, 0.02));
  border: 1px solid rgba(88, 28, 135, 0.2);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.tool-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(147, 51, 234, 0.4);
}

/* Glow effect on hover */
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(to bottom right, rgba(147, 51, 234, 0.1), rgba(37, 99, 235, 0.1));
  filter: blur(24px);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: -1;
}

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

.tool-card--active {
  background: linear-gradient(to bottom right, rgba(147, 51, 234, 0.12), rgba(37, 99, 235, 0.08));
  border-color: rgba(147, 51, 234, 0.4);
  box-shadow: 0 0 40px rgba(147, 51, 234, 0.15);
}

.tool-card--active:hover {
  box-shadow: 0 0 60px rgba(147, 51, 234, 0.25);
  border-color: rgba(167, 139, 250, 0.5);
}

.tool-card--soon {
  opacity: 0.5;
  background: linear-gradient(to bottom right, rgba(35, 47, 72, 0.3), rgba(35, 47, 72, 0.1));
  border-color: rgba(35, 47, 72, 0.5);
}

.tool-card--soon:hover {
  transform: none;
  border-color: rgba(35, 47, 72, 0.7);
}

.tool-card--soon::before {
  display: none;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gradient-primary);
  color: #fff;
  margin-bottom: 20px;
}

.tool-badge--soon {
  background: rgba(100, 116, 139, 0.3);
  color: var(--text-muted);
}

.tool-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: rgba(147, 51, 234, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.tool-card:hover .tool-icon-wrapper {
  transform: scale(1.1);
}

.tool-icon {
  font-size: 28px;
  line-height: 1;
}

.tool-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.tool-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.tool-card--soon .tool-desc {
  margin-bottom: 0;
}

/* Bullet tags on cards */
.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tool-tag {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(147, 51, 234, 0.1);
  color: var(--primary);
}

/* ============================================================
   How It Works - matches fixpanic HowItWorks component
   ============================================================ */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.how-it-works::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.1;
  mask-image: radial-gradient(circle, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle, black 30%, transparent 80%);
  pointer-events: none;
}

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

.step {
  text-align: center;
  padding: 32px 24px;
  background: rgba(35, 22, 48, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s;
}

.step:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: var(--glow-purple);
}

.step-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   Trust - matches fixpanic card/panel style
   ============================================================ */
.trust {
  padding: 100px 0;
  border-top: 1px solid rgba(35, 47, 72, 0.5);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: rgba(22, 30, 46, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(35, 47, 72, 0.5);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.trust-item:hover {
  border-color: rgba(167, 139, 250, 0.3);
}

.trust-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.trust-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   CTA Section - matches fixpanic FinalCTA
   ============================================================ */
.cta-section {
  padding: 80px 0;
}

.cta-panel {
  background: rgba(26, 27, 38, 0.8);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-panel h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.cta-panel p {
  font-size: 16px;
  color: rgba(224, 224, 224, 0.7);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid rgba(167, 139, 250, 0.1);
}

.cta-detail {
  text-align: center;
}

.cta-detail strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cta-detail span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   Footer - matches fixpanic footer
   ============================================================ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg-primary);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer p {
  font-size: 14px;
  color: var(--text-dim);
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--text-primary);
}

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

.footer-links a {
  font-size: 14px;
  color: var(--text-dim);
}

.footer-links a:hover {
  color: var(--text-primary);
}

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

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

.animate-fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Scan line effect like fixpanic */
.scan-line {
  width: 100%;
  height: 2px;
  background: rgba(19, 91, 236, 0.3);
  position: absolute;
  top: 0;
  left: 0;
  animation: scan 4s linear infinite;
  z-index: 10;
  pointer-events: none;
}

@keyframes scan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    padding: 120px 0 72px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 16px 0;
  }

  .header-nav {
    display: none;
  }

  .cta-details {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    width: 100%;
    text-align: center;
  }

  .cta-panel {
    padding: 32px 24px;
  }
}
