/* Atominic Technologies — Design System */
/* Neutral-first, minimal, cal.com/dub.co inspired */
/* Built on top of Tailwind CSS (CDN) */

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  --transition-speed: 0.2s;
  --gradient: linear-gradient(135deg, #312e81, #581c87);
  --gradient-light: linear-gradient(135deg, rgba(79,70,229,0.06), rgba(147,51,234,0.06));
  --gradient-light-border: linear-gradient(135deg, rgba(79,70,229,0.2), rgba(147,51,234,0.2));
}

.dark {
  --gradient: linear-gradient(135deg, #4f46e5, #7c3aed);
  --gradient-light: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(124,58,237,0.08));
  --gradient-light-border: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(124,58,237,0.25));
}

/* ============================================
   Base Styles
   ============================================ */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ============================================
   Dark Mode
   ============================================ */
.dark {
  color-scheme: dark;
}

/* ============================================
   Primary Button — Solid black/white
   ============================================ */
.btn-primary {
  background: linear-gradient(135deg, #312e81, #581c87);
  color: #fff;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3730a3, #6b21a8);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

.dark .btn-primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.dark .btn-primary:hover {
  background: linear-gradient(135deg, #5b52ef, #8b5cf6);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.btn-primary-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* ============================================
   Secondary / Outline Button
   ============================================ */
.btn-secondary {
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.875rem;
  background: transparent;
  border: 1px solid #6366f1;
  color: #4f46e5;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(147, 51, 234, 0.06));
  border-color: #4f46e5;
}

.dark .btn-secondary {
  border-color: #818cf8;
  color: #a5b4fc;
}

.dark .btn-secondary:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(167, 139, 250, 0.1));
  border-color: #a5b4fc;
}

.btn-secondary-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* ============================================
   CTA Section Buttons
   ============================================ */
.btn-cta-primary {
  background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
  color: #312e81;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

.btn-cta-primary:hover {
  background: linear-gradient(135deg, #c7d2fe, #e9d5ff);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.btn-cta-outline {
  border: 2px solid rgba(165, 180, 252, 0.5);
  color: #e0e7ff;
  background: transparent;
}

.btn-cta-outline:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(124, 58, 237, 0.15));
  border-color: rgba(165, 180, 252, 0.8);
  transform: translateY(-1px);
}

/* ============================================
   Text Link Button
   ============================================ */
.btn-link {
  color: #525252;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color var(--transition-speed) ease;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.btn-link:hover {
  color: #4f46e5;
}

.dark .btn-link {
  color: #a3a3a3;
}

.dark .btn-link:hover {
  color: #a78bfa;
}

/* ============================================
   Card Styles — Soft border, subtle hover
   ============================================ */
.card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-left: 3px solid transparent;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all var(--transition-speed) ease;
}

.card:hover {
  border-color: #d4d4d4;
  border-left-color: #404040;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dark .card {
  background: #171717;
  border-color: #262626;
  border-left-color: transparent;
}

.dark .card:hover {
  border-color: #404040;
  border-left-color: #737373;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Ghost Card (Coming Soon / Placeholder)
   ============================================ */
.card-ghost {
  background: transparent;
  border: 1px dashed #e5e5e5;
}

.card-ghost:hover {
  box-shadow: none;
  border-color: #d4d4d4;
}

.dark .card-ghost {
  border-color: #262626;
}

.dark .card-ghost:hover {
  border-color: #404040;
}

/* ============================================
   Header / Navbar
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all var(--transition-speed) ease;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dark .site-header {
  background: rgba(10, 10, 10, 0.8);
}

.site-header.scrolled {
  border-bottom: 1px solid #e5e5e5;
}

.dark .site-header.scrolled {
  border-bottom: 1px solid #262626;
}

/* ============================================
   Dropdown Menu — Clean, no icons
   ============================================ */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 180px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease;
  z-index: 60;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dark .dropdown-menu {
  background: #171717;
  border-color: #262626;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  color: #404040;
  text-decoration: none;
  transition: background 0.15s;
  font-size: 0.875rem;
  font-weight: 450;
}

.dropdown-item:hover {
  background: #f5f5f5;
}

.dark .dropdown-item {
  color: #d4d4d4;
}

.dark .dropdown-item:hover {
  background: #262626;
}

/* ============================================
   Mobile Nav
   ============================================ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 100;
  padding: 5rem 2rem 2rem;
  flex-direction: column;
  gap: 0.25rem;
}

.dark .mobile-nav {
  background: rgba(10, 10, 10, 0.98);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: #404040;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.15s;
}

.dark .mobile-nav a {
  color: #d4d4d4;
}

.mobile-nav a:hover {
  background: #f5f5f5;
}

.dark .mobile-nav a:hover {
  background: #171717;
}

/* ============================================
   Section Alternating Backgrounds
   ============================================ */
.section-alt {
  background: linear-gradient(180deg, #fafafa 0%, #ede9fe 100%);
}

.dark .section-alt {
  background: linear-gradient(180deg, #0a0a0a 0%, #110e24 100%);
}

.section-white {
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
}

.dark .section-white {
  background: linear-gradient(180deg, #0a0a0a 0%, #0e0d1a 100%);
}

/* ============================================
   CTA Section — Dark bg, no gradient
   ============================================ */
.cta-section {
  background: linear-gradient(180deg, #171717 0%, #1e1b4b 100%);
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

.dark .cta-section {
  background: linear-gradient(180deg, #0a0a0a 0%, #110f2e 100%);
  border-bottom: 1px solid #262626;
}

/* ============================================
   Pills / Tags — Neutral
   ============================================ */
.pill {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: #f5f5f5;
  color: #525252;
  border: 1px solid #e5e5e5;
}

.dark .pill {
  background: #262626;
  color: #a3a3a3;
  border-color: #404040;
}

/* ============================================
   Badge — Live status
   ============================================ */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.badge-live::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #16a34a;
  animation: pulse-dot 2s ease-in-out infinite;
}

.dark .badge-live {
  background: rgba(22, 163, 74, 0.1);
  color: #4ade80;
  border-color: rgba(22, 163, 74, 0.3);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================
   Chip / Tagline Badge
   ============================================ */
.chip {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: #f5f5f5;
  color: #404040;
  border: 1px solid #e5e5e5;
}

.dark .chip {
  background: #1a1a1a;
  color: #a3a3a3;
  border-color: #303030;
}

/* ============================================
   Timeline / Process Steps
   ============================================ */
.timeline-step {
  position: relative;
  padding-left: 3rem;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: 0.9375rem;
  top: 2.5rem;
  bottom: -1.5rem;
  width: 1px;
  background: #e5e5e5;
}

.dark .timeline-step::before {
  background: #262626;
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.dark .timeline-dot {
  background: var(--gradient);
  color: #fff;
}

/* ============================================
   Pricing Card
   ============================================ */
.pricing-card {
  border: 1px solid #e5e5e5;
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  position: relative;
  transition: all var(--transition-speed) ease;
  background: #fff;
}

.dark .pricing-card {
  background: #171717;
  border-color: #262626;
}

.pricing-card.featured {
  border: 2px solid #171717;
}

.dark .pricing-card.featured {
  border-color: #d4d4d4;
}

.pricing-card.featured::before {
  content: 'Popular';
  position: absolute;
  top: -0.625rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  padding: 0.125rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.dark .pricing-card.featured::before {
  background: var(--gradient);
  color: #fff;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-item {
  border-bottom: 1px solid #e5e5e5;
}

.dark .faq-item {
  border-color: #262626;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: inherit;
  text-align: left;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  border-top: 1px solid #e5e5e5;
}

.dark .site-footer {
  border-top-color: #262626;
}

/* ============================================
   Logo
   ============================================ */
.logo-mark {
  height: 1.75rem;
  width: auto;
  transition: opacity 0.2s ease;
}

.logo-mark:hover {
  opacity: 0.8;
}

/* ============================================
   Theme Toggle
   ============================================ */
.theme-toggle {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #737373;
  transition: all 0.15s;
}

.theme-toggle:hover {
  background: #f5f5f5;
  color: #404040;
}

.dark .theme-toggle:hover {
  background: #262626;
  color: #d4d4d4;
}

/* ============================================
   Scroll Progress Bar
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gradient);
  z-index: 999;
  transition: width 0.1s;
}

.dark .scroll-progress {
  background: var(--gradient);
}

/* ============================================
   Contact Form
   ============================================ */
.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #d4d4d4;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #171717;
  font-size: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: #171717;
  box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.08);
}

.dark .form-input {
  background: #0a0a0a;
  border-color: #404040;
  color: #e5e5e5;
}

.dark .form-input:focus {
  border-color: #d4d4d4;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   Comparison Table
   ============================================ */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
  font-size: 0.875rem;
}

.dark .comparison-table th,
.dark .comparison-table td {
  border-bottom-color: #262626;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
}

.comparison-table thead th {
  font-weight: 600;
  background: #fafafa;
}

.dark .comparison-table thead th {
  background: #0a0a0a;
}

/* ============================================
   Icon Box — Neutral dark
   ============================================ */
.icon-box {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: #fff;
  flex-shrink: 0;
}

.dark .icon-box {
  background: var(--gradient);
  color: #fff;
}

.icon-box-lg {
  width: 3rem;
  height: 3rem;
  border-radius: 0.625rem;
}

/* ============================================
   Feature Block — Neutral bg
   ============================================ */
.feature-block {
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: #fafafa;
  border: 1px solid #f5f5f5;
  transition: border-color var(--transition-speed) ease;
}

.feature-block:hover {
  border-color: #e5e5e5;
}

.dark .feature-block {
  background: #0a0a0a;
  border-color: #171717;
}

.dark .feature-block:hover {
  border-color: #262626;
}

/* ============================================
   Gradient Text — Keyword highlights
   ============================================ */
.gradient-text {
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark .gradient-text {
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-section .gradient-text {
  background: linear-gradient(135deg, #a5b4fc, #d8b4fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Hero Section — Subtle grid background
   ============================================ */
.hero-section {
  background-image:
    linear-gradient(to bottom, #f9f9f9 0%, #ffffff 100%);
  background-size: 100% 100%;
  position: relative;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 85%);
  z-index: 0;
}

.dark .hero-section {
  background-image:
    linear-gradient(to bottom, #0a0a0a 0%, #0a0a0a 100%);
}

.dark .hero-section::after {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.07) 0%, transparent 70%);
}

.dark .hero-section::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .pricing-card.featured {
    transform: none;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    background: transparent;
    opacity: 1;
    visibility: visible;
  }
}

/* ============================================
   Legal Content — Better spacing for policies
   ============================================ */
.legal-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
}

.dark .legal-content h2 {
  border-top-color: #262626;
}

.legal-content h2:first-child {
  border-top: none;
  padding-top: 0;
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 1.5rem;
}

.legal-content li {
  line-height: 1.8;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .site-header,
  .site-footer,
  .theme-toggle,
  .scroll-progress {
    display: none !important;
  }

  body {
    color: #000 !important;
    background: #fff !important;
  }
}
