/* ===================================
   Cosmoxis Landing Page Styles
   Design System: Dark slate (#1F2937) primary with blue (#3670ED) accents
   =================================== */

/* CSS Custom Properties */
:root {
  /* Primary - Dark slate (#1F2937) */
  --color-primary: #1f2937;
  --color-primary-hover: #111827;
  --color-primary-light: #374151;
  --color-primary-dark: #111827;
  --color-primary-foreground: #ffffff;

  /* Accent - Blue (#3670ED) */
  --color-accent: #3670ed;
  --color-accent-hover: #2563eb;
  --color-accent-light: #60a5fa;
  --color-accent-dark: #1d4ed8;
  --color-accent-foreground: #ffffff;

  /* Secondary - Muted gray tones */
  --color-secondary: #6b7280;
  --color-secondary-foreground: #4b5563;

  /* Success/Error/Warning */
  --color-success: #059669;
  --color-success-light: #d1fae5;
  --color-error: #dc2626;
  --color-error-light: #fee2e2;
  --color-warning: #d97706;
  --color-warning-light: #fef3c7;

  /* Background - Clean white/gray palette */
  --color-background: #ffffff;
  --color-background-secondary: #f9fafb;
  --color-foreground: #1f2937;

  /* Muted colors */
  --color-muted: #f3f4f6;
  --color-muted-foreground: #6b7280;

  /* Card - White with subtle borders */
  --color-card: #ffffff;
  --color-card-foreground: #1f2937;
  --color-card-hover: #f9fafb;

  /* Borders */
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;

  /* Font family */
  --font-sans:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.625rem;
  --radius-2xl: 0.75rem;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.03);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.04), 0 1px 2px -1px rgb(0 0 0 / 0.04);
  --shadow-md: 0 2px 4px 0 rgb(0 0 0 / 0.04), 0 2px 3px -2px rgb(0 0 0 / 0.04);
  --shadow-lg:
    0 4px 6px -1px rgb(0 0 0 / 0.04), 0 2px 4px -2px rgb(0 0 0 / 0.04);
  --shadow-xl:
    0 10px 15px -3px rgb(0 0 0 / 0.04), 0 4px 6px -4px rgb(0 0 0 / 0.04);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-foreground);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border-light);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-foreground);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-secondary);
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-foreground);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-foreground);
  transition: all var(--transition-fast);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 99;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-secondary);
  padding: 0.5rem 0;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  border-color: var(--color-primary);
}

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

.btn-ghost {
  background: transparent;
  color: var(--color-foreground);
}

.btn-ghost:hover {
  background: var(--color-muted);
}

.btn-outline {
  background: transparent;
  color: var(--color-foreground);
  border-color: var(--color-border);
}

.btn-outline:hover {
  background: var(--color-muted);
  border-color: var(--color-border);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-gradient-1 {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(
    circle,
    rgba(54, 112, 237, 0.08) 0%,
    transparent 70%
  );
}

.hero-gradient-2 {
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(
    circle,
    rgba(31, 41, 55, 0.05) 0%,
    transparent 70%
  );
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

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

.hero-description {
  font-size: 1.125rem;
  color: var(--color-secondary);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-foreground);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
  width: 100%;
  max-width: 400px;
}

.receipt-preview {
  position: relative;
  background: var(--color-background-secondary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow: hidden;
}

.receipt-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.receipt-icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.receipt-title {
  font-weight: 600;
  color: var(--color-foreground);
}

.receipt-data {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.data-label {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.data-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
}

.data-highlight {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  border-radius: var(--radius-md);
}

/* Scan Animation */
.scan-animation {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-accent),
    transparent
  );
  animation: scan 2s ease-in-out infinite;
}

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

/* ===================================
   Features Section
   =================================== */
.features {
  padding: 6rem 0;
  background: var(--color-background-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--color-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-light);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-muted);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-description {
  font-size: 0.9375rem;
  color: var(--color-secondary);
  line-height: 1.6;
}

/* ===================================
   How It Works Section
   =================================== */
.how-it-works {
  padding: 6rem 0;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.step-content {
  max-width: 240px;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step-description {
  font-size: 0.9375rem;
  color: var(--color-secondary);
  line-height: 1.6;
}

.step-connector {
  width: 80px;
  height: 2px;
  background: var(--color-border);
  margin-top: 28px;
}

/* ===================================
   Pricing Section
   =================================== */
.pricing {
  padding: 6rem 0;
  background: var(--color-background-secondary);
}

.pricing-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  border: none;
  color: var(--color-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.toggle-btn.active {
  color: var(--color-foreground);
}

.toggle-btn:first-child::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: var(--color-border);
}

.save-badge {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  background: var(--color-success-light);
  color: var(--color-success);
  border-radius: var(--radius-md);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.75rem;
  background: var(--color-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-md);
}

.pricing-header {
  margin-bottom: 1.5rem;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
}

.interval {
  font-size: 1rem;
  color: var(--color-secondary);
}

.plan-description {
  font-size: 0.875rem;
  color: var(--color-secondary);
}

.plan-features {
  list-style: none;
  flex: 1;
  margin-bottom: 1.5rem;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  font-size: 0.875rem;
  color: var(--color-foreground);
}

.plan-features svg {
  flex-shrink: 0;
  color: var(--color-success);
}

/* ===================================
   FAQ Section
   =================================== */
.faq {
  padding: 6rem 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  padding: 1.5rem;
  background: var(--color-background-secondary);
  border-radius: var(--radius-xl);
}

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.faq-answer {
  font-size: 0.9375rem;
  color: var(--color-secondary);
  line-height: 1.6;
}

/* ===================================
   CTA Section
   =================================== */
.cta {
  padding: 6rem 0;
  background: var(--color-primary);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.cta .btn-primary {
  background: white;
  color: var(--color-primary);
  border-color: white;
}

.cta .btn-primary:hover {
  background: var(--color-muted);
  border-color: var(--color-muted);
}

/* ===================================
   Privacy Policy Page
   =================================== */
.privacy-policy {
  padding: 120px 0 80px;
  min-height: calc(100vh - 400px);
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--slate-900, #0f172a);
  margin-bottom: 0.5rem;
}

.policy-date {
  color: var(--slate-600, #475569);
  margin-bottom: 2rem;
}

.policy-section {
  margin-bottom: 2rem;
}

.policy-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--slate-900, #0f172a);
  margin-bottom: 1rem;
}

.policy-section h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--slate-900, #0f172a);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.policy-section p {
  color: var(--slate-700, #334155);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.policy-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--slate-700, #334155);
  margin-bottom: 1rem;
}

.policy-section ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.policy-back {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200, #e2e8f0);
}

/* ===================================
   Footer
   =================================== */
.footer {
  padding: 4rem 0 2rem;
  background: var(--color-background-secondary);
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--color-secondary);
  margin-top: 1rem;
  max-width: 280px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-column a {
  display: block;
  font-size: 0.875rem;
  color: var(--color-secondary);
  padding: 0.375rem 0;
}

.footer-column a:hover {
  color: var(--color-foreground);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-card {
    max-width: 360px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-card.popular {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 8rem 0 4rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 2rem;
  }

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

  .steps {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .step {
    flex: none;
    max-width: 100%;
  }

  .step-connector {
    width: 2px;
    height: 40px;
    margin: 0;
  }

  .step-content {
    max-width: 100%;
    padding: 0 1rem;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

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

.animate-fade-in {
  animation: fadeIn var(--transition-slow) ease-out;
}

/* Scroll-triggered animations */
.feature-card,
.step,
.pricing-card,
.faq-item {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.feature-card.visible,
.step.visible,
.pricing-card.visible,
.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
}
