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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.1s; }
.reveal-delay-3 { transition-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  .animate-in, .reveal { animation: none; transition: none; }
  .reveal, .reveal.revealed { opacity: 1; transform: none; }
}

/* ===== Variables ===== */
:root {
  --color-primary: #0d9488;
  --color-primary-dark: #0f766e;
  --color-primary-light: #5eead4;
  --color-accent: #f59e0b;
  --color-accent-soft: #fef3c7;
  --color-bg: #fafaf9;
  --color-bg-warm: #fefdfb;
  --color-surface: #ffffff;
  --color-text: #1c1917;
  --color-text-muted: #57534e;
  --color-border: #e7e5e4;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

/* ===== Reset & Base ===== */
*, *::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.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease;
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.85;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  border-radius: var(--radius-sm);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(13, 148, 136, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
    var(--color-bg-warm);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 100px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.1s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.35s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.5s forwards;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-intro {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 48px;
}

/* ===== Pain ===== */
.section-pain {
  background: var(--color-surface);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pain-card {
  padding: 28px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
}

.pain-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 148, 136, 0.2);
}

.pain-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 16px;
}

.pain-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.pain-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* ===== Solution ===== */
.solution-content {
  max-width: 800px;
  margin: 0 auto;
}

.solution-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.flow-card {
  padding: 20px 24px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  font-weight: 600;
  text-align: center;
  min-width: 140px;
}

.flow-card small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.flow-1 { border-color: var(--color-primary); background: rgba(13, 148, 136, 0.06); }
.flow-2 { border-color: var(--color-primary); background: rgba(13, 148, 136, 0.1); }
.flow-3 { border-color: var(--color-primary); background: rgba(13, 148, 136, 0.06); }

.flow-arrow {
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.solution-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.point:hover {
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: var(--shadow-sm);
}

.point-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
}

.point strong {
  display: block;
  margin-bottom: 4px;
}

.point p, .point div {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* ===== Vision ===== */
.section-vision {
  background: linear-gradient(180deg, var(--color-bg-warm) 0%, var(--color-surface) 100%);
}

.vision-lead {
  font-size: 1.25rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.vision-lead em {
  color: var(--color-primary);
  font-style: normal;
  font-weight: 600;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.vision-card {
  padding: 32px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vision-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.vision-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
}

.vision-card p {
  color: var(--color-text-muted);
}

/* ===== Why ===== */
.section-why {
  background: var(--color-surface);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.why-card {
  padding: 28px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.why-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.why-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* ===== Data Security & Consent ===== */
.section-security {
  background: var(--color-surface);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.security-card {
  padding: 28px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
}

.security-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 148, 136, 0.2);
}

.security-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 16px;
}

.security-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.security-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* ===== Objections / FAQ ===== */
.section-objections {
  background: var(--color-bg);
}

.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.faq-item p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* ===== CTA ===== */
.section-cta {
  padding: 100px 0;
}

.cta-box {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 40px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.3s ease;
}

.cta-box:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.cta-box > p {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cta-form input,
.cta-form textarea {
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cta-form input:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.cta-form textarea {
  resize: vertical;
  min-height: 80px;
}

.cta-form button {
  margin-top: 8px;
}

.cta-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 16px;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0;
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.8);
}

.footer-content {
  text-align: center;
}

.logo-footer .logo-mark {
  background: rgba(255, 255, 255, 0.2);
}

.logo-footer {
  color: white;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.footer-domains {
  font-size: 0.8125rem;
  opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .solution-visual {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

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

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