:root {
  /* Ultra-Clean Light Mode Palette */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-color: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --success: #10b981;
  --danger: #ef4444;
  --border-color: #e2e8f0;
  --glass-bg: rgba(255, 255, 255, 0.85);

  --font-main: "Inter", sans-serif;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 0.75rem; /* 12px */
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base for rem */
}

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

/* Typography Responsive */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}
h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-bottom: 0.75rem;
}
p {
  color: var(--text-secondary);
  font-size: 1rem;
}

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

ul {
  list-style: none;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 80rem; /* 1280px */
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 6rem 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 8rem 0;
  }
}

.bg-secondary {
  background-color: var(--bg-secondary);
}

.text-center {
  text-align: center;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-4 {
  margin-top: 2rem;
}
.mt-auto {
  margin-top: auto;
}
.w-100 {
  width: 100%;
}
.max-w-800 {
  max-width: 50rem;
  margin: 0 auto;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Zero-Touch Banner */
.zero-touch-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.05) 0%,
    rgba(37, 99, 235, 0.1) 100%
  );
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 3rem;
  width: 100%;
}

.zero-touch-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.zero-touch-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.zero-touch-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .zero-touch-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
}

/* Top Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--accent-color);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s ease;
}

/* Header */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1/1;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#lang-toggle {
  padding: 0.5rem 1rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 56.25rem; /* 900px */
}

.hero-title {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 37.5rem; /* 600px */
  height: 37.5rem;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.05) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  z-index: 1;
  pointer-events: none;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  gap: 3rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
  gap: 2rem;
}

.align-center {
  align-items: center;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 43.75rem; /* 700px */
  margin: 0 auto 4rem auto;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.card-danger {
  border-top: 3px solid var(--danger);
}
.card-success {
  border-top: 3px solid var(--success);
}

/* Feature Lists */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

.card-danger .feature-list li::before {
  content: "✕";
  color: var(--danger);
}
.card-success .feature-list li::before {
  content: "✓";
  color: var(--success);
}

/* Feature Cards */
.feature-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  border-color: var(--accent-glow);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

/* Steps */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
  position: relative;
}

.step {
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.metric-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--accent-color);
}

.metric-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Pricing Toggle */
.currency-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.switch {
  position: relative;
  display: inline-block;
  width: 3.75rem; /* 60px */
  height: 2.125rem; /* 34px */
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.625rem; /* 26px */
  width: 1.625rem;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: 0.4s;
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:checked + .slider:before {
  transform: translateX(1.625rem);
}

.slider.round {
  border-radius: 2.125rem;
}

.slider.round:before {
  border-radius: 50%;
}

/* Pricing Cards Premium Upgrade */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch;
}

.pricing-card {
  flex: 1 1 18.75rem; /* ~300px base width */
  max-width: 25rem; /* ~400px limit per card */
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
  border: 2px solid var(--accent-color);
  background: #ffffff;
  transform: scale(1.05);
  z-index: 10;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow:
    0 25px 30px -5px rgba(0, 0, 0, 0.15),
    0 10px 12px -6px rgba(0, 0, 0, 0.1);
}

.popular-badge {
  position: absolute;
  top: -0.875rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: #fff;
  padding: 0.35rem 1.25rem;
  border-radius: 1.25rem;
  font-size: 0.85rem;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
  white-space: nowrap;
}

.pricing-tag {
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.price {
  margin: 1.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  color: var(--text-primary);
  flex-wrap: wrap;
}

.currency-symbol {
  font-size: 1.5rem;
  font-weight: 600;
}
.amount {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}
.period {
  color: var(--text-secondary);
}
.custom-price {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.plan-features {
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.plan-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.plan-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
}

.plan-features li.disabled {
  text-decoration: line-through;
  opacity: 0.5;
}

.plan-features li.disabled::before {
  content: "✕";
  color: var(--text-secondary);
}

/* Integrations Logos & Mockups */
.integration-logo {
  max-width: 15rem; /* ~240px */
  height: auto;
  object-fit: contain;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mockup-container {
  width: 100%;
  max-width: 62.5rem; /* 1000px */
  margin: 3rem auto 0 auto;
  position: relative;
}

.mockup-img {
  width: 100%;
  height: auto;
  border-radius: 1rem; /* 16px */
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  display: block;
}

/* FAQ */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 50rem; /* 800px */
  margin: 0 auto;
}

/* ---------------------------------
   Custom Classes for Expanded Text
   --------------------------------- */

.large-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 500;
}

.text-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  text-align: justify;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .text-content p {
    text-align: left;
  }
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-800 {
  max-width: 50rem; /* ~800px */
}

.mb-4 {
  margin-bottom: 2.5rem;
}

.tech-highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.tech-highlight-box:hover {
  transform: translateY(-5px);
}

.tech-highlight-box h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary-color);
}

.metric-comparison {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.metric-old,
.metric-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-old .time {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: line-through;
  opacity: 0.7;
}

.metric-new .time {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--success-color);
}

.metric-old .label,
.metric-new .label {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-arrow {
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.8;
}

.drop-shadow-premium {
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: var(--transition);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 1rem;
  padding-top: 1rem;
}

/* FAQ Smooth Animation */
details.faq-item[open] summary ~ * {
  animation: sweep 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes sweep {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer Clean */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 6rem 0 2rem 0;
}

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

.footer-brand p {
  margin: 1.5rem 0;
  max-width: 18.75rem; /* 300px */
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.footer-contact p {
  margin-bottom: 0.5rem;
}

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

/* Legal Pages */
.legal-container {
  max-width: 50rem;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  list-style: disc;
  color: var(--text-secondary);
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

/* Animations Refinement (Intersection Observer) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.animate-up {
  animation: fadeUp 1s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  transform: translateY(40px);
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Global Responsive Adjustments */
@media (max-width: 1024px) {
  .pricing-card.popular {
    transform: none;
  }
  .pricing-card.popular:hover {
    transform: translateY(-10px);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .header-actions .btn-primary {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
