@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300..700&display=swap');

/* ==================== CSS VARIABLES ==================== */
:root {
  --brand-blue: #5B4CF5;
  --brand-blue-dark: #4A3CD4;
  --brand-green: #4ADE80;
  --brand-orange: #F97316;
  --brand-red: #EF4444;
  --brand-amber: #F59E0B;

  --color-text: #1E293B;
  --color-text-muted: rgba(30, 41, 59, 0.65);
  --color-background: #F8FAFC;
  --color-card: #FFFFFF;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(91, 76, 245, 0.06);
  --shadow-md: 0 4px 20px rgba(91, 76, 245, 0.1);
  --shadow-lg: 0 8px 40px rgba(91, 76, 245, 0.12);
  --shadow-xl: 0 12px 60px rgba(91, 76, 245, 0.16);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.text-highlight {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header p {
  max-width: 600px;
  margin: var(--space-sm) auto 0;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: white;
}

.btn-primary:hover {
  background-color: var(--brand-blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--brand-blue);
  border: 2px solid rgba(91, 76, 245, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(91, 76, 245, 0.05);
  border-color: var(--brand-blue);
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.125rem;
}

.btn-white {
  background-color: white;
  color: var(--brand-blue);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ==================== CARDS ==================== */
.card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
  border: 1px solid rgba(91, 76, 245, 0.06);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.card-icon iconify-icon {
  font-size: 1.75rem;
}

/* ==================== NAVIGATION ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(91, 76, 245, 0.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

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

.navbar-logo img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
}

.navbar-logo span {
  font-size: 1.35rem;
  font-weight: 700;
}

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

.navbar-links a {
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.navbar-links a:hover {
  color: var(--brand-blue);
}

.navbar-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
}

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

  .navbar-mobile-toggle {
    display: block;
  }
}

/* ==================== HERO SECTION ==================== */
.hero {
  padding-top: 9rem;
  padding-bottom: var(--space-3xl);
  background: linear-gradient(135deg,
      rgba(91, 76, 245, 0.04) 0%,
      transparent 50%,
      rgba(74, 222, 128, 0.04) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-content h1 {
  margin-bottom: var(--space-md);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.app-badge {
  height: 48px;
  width: auto;
  transition: transform var(--transition-fast);
}

.app-badge:hover {
  transform: translateY(-2px);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-demo {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-lg);
  width: 100%;
  max-width: 400px;
}

.hero-demo-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.hero-demo-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.demo-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
}

.demo-item.red {
  background: rgba(239, 68, 68, 0.08);
  border-left: 3px solid var(--brand-red);
}

.demo-item.amber {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--brand-amber);
}

.demo-item.green {
  background: rgba(74, 222, 128, 0.08);
  border-left: 3px solid var(--brand-green);
}

.demo-item-label {
  flex: 1;
}

.demo-item-days {
  font-size: 0.8rem;
  opacity: 0.6;
}

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

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

  .hero-image {
    order: -1;
  }

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

/* ==================== FEATURES SECTION ==================== */
.features {
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card h3 {
  margin-bottom: var(--space-xs);
}

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

/* ==================== HOW IT WORKS SECTION ==================== */
.how-it-works {
  background: var(--color-background);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  counter-reset: step;
}

.step-card {
  text-align: center;
  counter-increment: step;
}

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background: var(--brand-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto var(--space-md);
}

.step-card h3 {
  margin-bottom: var(--space-xs);
}

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

/* ==================== TRAFFIC LIGHT SECTION ==================== */
.traffic-light-section {
  background: white;
}

.traffic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.traffic-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.traffic-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
}

.traffic-card.red {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.traffic-card.amber {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.traffic-card.green {
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.15);
}

.traffic-dot {
  width: 1rem;
  height: 1rem;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.traffic-card.red .traffic-dot {
  background: var(--brand-red);
}

.traffic-card.amber .traffic-dot {
  background: var(--brand-amber);
}

.traffic-card.green .traffic-dot {
  background: var(--brand-green);
}

.traffic-card h4 {
  margin-bottom: 0.125rem;
}

.traffic-card p {
  font-size: 0.95rem;
  margin: 0;
}

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

/* ==================== CTA SECTION ==================== */
.final-cta {
  padding: var(--space-3xl) 0;
}

.final-cta-card {
  background: var(--brand-blue);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  color: white;
}

.final-cta h2 {
  margin-bottom: var(--space-md);
}

.final-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  max-width: 550px;
  margin: 0 auto var(--space-lg);
}

.final-cta .btn-white {
  margin-bottom: var(--space-sm);
}

.final-cta-note {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ==================== FOOTER ==================== */
.footer {
  background: #1E293B;
  color: #E2E8F0;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.footer-logo img {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
}

.footer-logo span {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.6;
  color: #E2E8F0;
}

.footer-column h4 {
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-column a {
  font-size: 0.9rem;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.footer-column a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copyright {
  font-size: 0.875rem;
  opacity: 0.4;
}

@media (max-width: 968px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

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

/* ==================== LEGAL PAGES ==================== */
.legal-hero {
  padding-top: 8rem;
  padding-bottom: var(--space-xl);
  background: linear-gradient(135deg, rgba(91, 76, 245, 0.04) 0%, transparent 100%);
}

.legal-hero .container {
  text-align: center;
  max-width: 800px;
}

.legal-hero h1 {
  margin-bottom: var(--space-sm);
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
  justify-content: center;
}

.breadcrumb a {
  color: var(--brand-blue);
}

.breadcrumb span {
  opacity: 0.5;
}

.legal-content {
  padding: var(--space-2xl) 0;
  background: white;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legal-container h2 {
  font-size: 1.5rem;
  margin: var(--space-xl) 0 var(--space-md);
  color: var(--color-text);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(30, 41, 59, 0.08);
}

.legal-container h2:first-of-type {
  border-top: none;
  margin-top: 0;
}

.legal-container h3 {
  font-size: 1.125rem;
  margin: var(--space-md) 0 var(--space-sm);
}

.legal-container p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.legal-container ul,
.legal-container ol {
  margin-bottom: var(--space-md);
  padding-left: 1.5rem;
}

.legal-container li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  list-style: disc;
}

.legal-container ol li {
  list-style: decimal;
}

.legal-container a {
  color: var(--brand-blue);
  text-decoration: underline;
}

.highlight-box {
  background: rgba(91, 76, 245, 0.04);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
  border-left: 4px solid var(--brand-blue);
}

.highlight-box p {
  margin: 0;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cookie-table th,
.cookie-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(30, 41, 59, 0.08);
}

.cookie-table th {
  background: var(--color-background);
  font-weight: 600;
  font-size: 0.9rem;
}

.cookie-table td {
  font-size: 0.9rem;
}

.cookie-table tr:last-child td {
  border-bottom: none;
}

.cookie-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.cookie-badge.essential {
  background: rgba(74, 222, 128, 0.15);
  color: #16A34A;
}

.cookie-badge.functional {
  background: rgba(91, 76, 245, 0.12);
  color: var(--brand-blue);
}

.cookie-badge.analytics {
  background: rgba(30, 41, 59, 0.1);
  color: var(--color-text);
}
