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

:root {
  /* Colors */
  --navy: #1A3A5C;
  --flow: #2E90D4;
  --surface: #F4F7FB;
  
  --navy-900: #0D1F33;
  --navy-700: #1A3A5C;
  --navy-500: #2A5580;
  --navy-200: #B8D0E8;
  --navy-50: #EEF4FA;
  
  --flow-700: #1B6FA8;
  --flow-500: #2E90D4;
  --flow-300: #7DC3EA;
  --flow-100: #DAEEF9;
  --flow-50: #EFF8FD;
  
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --border: #E5E7EB;
  
  /* Gradients */
  --brand-gradient: linear-gradient(135deg, var(--navy) 0%, var(--flow) 100%);
  
  /* Typography */
  --font-family: 'Inter', sans-serif;
  
  /* Spacing & Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background-color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: var(--flow);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--flow-700);
}

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

/* Typography Classes */
.display { font-size: 36px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1, .h1 { font-size: 30px; font-weight: 700; line-height: 1.2; }
h2, .h2 { font-size: 24px; font-weight: 600; line-height: 1.3; }
h3, .h3 { font-size: 20px; font-weight: 600; line-height: 1.4; }
p { font-size: 16px; font-weight: 400; color: var(--text-secondary); margin-bottom: 1rem; }
.text-sm { font-size: 14px; }
.text-white { color: #ffffff; }

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

.section {
  padding: 5rem 0;
}

.section.alt-bg {
  background-color: var(--navy-50);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--flow);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--flow-700);
  color: #fff;
}

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

.btn-outline-white {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--flow);
}

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

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
}
.nav-links a:hover {
  color: var(--flow);
}

/* Hero Section */
.hero {
  background: var(--brand-gradient);
  padding: 180px 0 100px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero .display {
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero .subtitle {
  font-size: 18px;
  color: var(--navy-50);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero .cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 4rem;
}

.hero-image-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background: #fff;
  padding: 8px;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-image-wrapper img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 4rem;
}

.feature-card {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: var(--flow-100);
  color: var(--flow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-card h3 {
  margin-bottom: 12px;
  color: var(--navy);
}

.feature-card p {
  margin-bottom: 0;
}

/* Target Section */
.target-split {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  align-items: center;
}

.target-content {
  flex: 1;
}

.target-content h2 {
  margin-bottom: 24px;
  color: var(--navy);
}

.target-list {
  list-style: none;
}

.target-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.target-list .icon-check {
  color: #16A34A; /* Green for success */
  flex-shrink: 0;
  margin-top: 2px;
}

.target-image {
  flex: 1;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.target-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Footer */
.footer {
  background-color: var(--navy-900);
  color: var(--text-secondary);
  padding: 60px 0 30px;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer .logo {
  color: #fff;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-links a {
  color: var(--navy-200);
}
.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  width: 100%;
  text-align: center;
  font-size: 14px;
}

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

/* Responsive */
@media (max-width: 768px) {
  .target-split {
    flex-direction: column;
  }
  .hero {
    padding: 140px 0 80px;
  }
  .display { font-size: 32px; }
  .nav-links { display: none; } /* Simplified mobile for now */
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--navy-900);
  color: #fff;
  padding: 24px 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cookie-text p {
  margin-bottom: 0;
  font-size: 14px;
  color: var(--navy-200);
}

.cookie-text a {
  color: #fff;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

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

.pricing-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}

.pricing-card.popular {
  border: 2px solid var(--flow);
  box-shadow: var(--shadow);
}

.pricing-card.popular::before {
  content: 'Più Scelto';
  position: absolute;
  top: 16px;
  right: -32px;
  background: var(--flow);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 40px;
  transform: rotate(45deg);
}

.pricing-header {
  margin-bottom: 24px;
}

.pricing-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  margin: 32px 0;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-secondary);
}

.pricing-features .lucide {
  color: #16A34A;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card .btn {
  width: 100%;
}

/* Pricing Toggle Switch */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 16px;
}

.toggle-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.toggle-label.active {
  color: var(--navy);
  font-weight: 700;
}

.badge {
  background: #16A34A;
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 4px;
  font-weight: 600;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

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

input:focus + .slider {
  box-shadow: 0 0 1px var(--flow);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

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