/* ===== CSS VARIABLES ===== */
:root {
  --color-primary: #1a56db;
  --color-primary-dark: #1442b0;
  --color-primary-light: #e8effc;
  --color-secondary: #0f172a;
  --color-accent: #f59e0b;
  --color-accent-dark: #d97706;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-text-lighter: #94a3b8;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #0f172a;
  --color-border: #e2e8f0;
  --color-success: #16a34a;
  --color-error: #dc2626;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-secondary);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

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

.section-dark {
  background: var(--color-bg-dark);
  color: #e2e8f0;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.125rem;
  margin-top: 16px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(26, 86, 219, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.4);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-secondary);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  color: var(--color-secondary);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

.btn-white {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background: #f1f5f9;
  color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.125rem;
}

.micro-text {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: 12px;
}

.section-dark .micro-text {
  color: var(--color-text-lighter);
}

/* ===== STICKY HEADER ===== */
.sticky-header {
  position: fixed;
  top: -200px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: top 0.3s ease;
  padding: 12px 0;
}

.sticky-header.visible {
  top: 0;
}

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

.sticky-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sticky-logo {
  height: 126px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(15%) sepia(30%) saturate(1500%) hue-rotate(200deg) brightness(95%);
}

.sticky-header-text {
  font-weight: 600;
  color: var(--color-secondary);
  font-size: 0.9375rem;
}

.sticky-header-text span {
  color: var(--color-primary);
}

.sticky-header .btn {
  padding: 10px 24px;
  font-size: 0.9375rem;
}

/* ===== HERO ===== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #f8fafc 0%, #e8effc 50%, #f0f4ff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(26, 86, 219, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}

.hero-logo {
  height: 240px;
  width: auto;
  margin: 0 auto 28px;
  display: block;
  filter: brightness(0) saturate(100%) invert(15%) sepia(30%) saturate(1500%) hue-rotate(200deg) brightness(95%);
}

.hero-pre {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(26, 86, 219, 0.08);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-sub strong {
  color: var(--color-secondary);
  font-weight: 700;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(26, 86, 219, 0.1);
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  display: block;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ===== PROBLEM SECTION ===== */
.problem-content {
  max-width: 720px;
  margin: 0 auto;
}

.problem-content p {
  font-size: 1.0625rem;
  color: var(--color-text);
  line-height: 1.8;
}

.problem-content p:first-of-type {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.cost-callout {
  background: #fef3c7;
  border-left: 4px solid var(--color-accent);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-weight: 500;
}

/* ===== PILLARS / OFFER ===== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.pillar-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.pillar-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 4px 24px rgba(26, 86, 219, 0.12);
}

.pillar-card.featured::after {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 16px;
  border-radius: 50px;
}

.pillar-icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.pillar-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-card h3 {
  margin-bottom: 16px;
}

.pillar-card p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ===== COMPARISON TABLE ===== */
.comparison-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 40px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
}

.comparison-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.comparison-table thead th {
  background: var(--color-bg-dark);
  color: #ffffff;
  font-weight: 600;
  padding: 16px 20px;
  text-align: center;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}

.comparison-table thead th:first-child {
  text-align: left;
  border-radius: 15px 0 0 0;
}

.comparison-table thead th:last-child {
  background: var(--color-primary);
  border-radius: 0 15px 0 0;
}

.comparison-table tbody td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-light);
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--color-text);
}

.comparison-table tbody td:last-child {
  background: rgba(26, 86, 219, 0.04);
  color: var(--color-primary);
  font-weight: 700;
}

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

.comparison-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 15px;
}

.comparison-table tbody tr:last-child td:last-child {
  border-radius: 0 0 15px 0;
}

.comparison-note {
  max-width: 720px;
  margin: 32px auto 0;
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ===== STEPS / HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 48px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary), var(--color-primary-light));
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.3);
}

.step-card h3 {
  margin-bottom: 12px;
}

.step-card p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ===== FEATURES / WHAT'S INCLUDED ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease;
}

.feature-item:hover {
  border-color: var(--color-primary);
}

.feature-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.feature-check svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-success);
  stroke-width: 3;
  fill: none;
}

.feature-item span {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.5;
}

/* ===== WHO THIS IS FOR ===== */
.who-content {
  max-width: 720px;
  margin: 0 auto;
}

.who-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text);
}

.persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.persona-tag {
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== FREE HOSTING EXPLANATION ===== */
.hosting-content {
  max-width: 720px;
  margin: 0 auto;
}

.hosting-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text);
}

.hosting-fine-print {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.cloudflare-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 20px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.cloudflare-badge svg {
  width: 20px;
  height: 20px;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--color-primary);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-secondary);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text-light);
  stroke-width: 2;
  fill: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

/* ===== FINAL CTA ===== */
.final-cta {
  text-align: center;
  padding: 80px 0;
}

.final-cta h2 {
  margin-bottom: 20px;
}

.final-cta p {
  font-size: 1.125rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.final-cta .price-highlight {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent);
}

.final-cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.final-cta .secondary-cta {
  color: var(--color-text-lighter);
  font-size: 0.9375rem;
}

.final-cta .secondary-cta a {
  color: #ffffff;
  text-decoration: underline;
}

/* ===== FORM STYLES ===== */
.form-card {
  background: var(--color-bg);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  max-width: 560px;
  margin: 0 auto;
}

.form-card h3 {
  text-align: center;
  margin-bottom: 8px;
}

.form-card .form-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 24px;
  font-size: 0.9375rem;
}

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

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group .required {
  color: var(--color-error);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

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

.form-message {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  animation: fadeIn 0.3s ease;
}

.form-message-success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-message-error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== MOBILE STICKY FOOTER ===== */
.mobile-sticky-footer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--color-primary);
  padding: 12px 16px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

.mobile-sticky-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-sticky-text {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
}

.mobile-sticky-footer .btn {
  padding: 10px 20px;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-target {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-target.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-lighter);
  padding: 48px 0 24px;
  font-size: 0.875rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo {
  height: 160px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--color-text-lighter);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: var(--color-text-lighter);
  font-size: 0.8125rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    gap: 40px;
  }

  .steps-grid::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-stats {
    gap: 24px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 28px 24px;
  }

  .comparison-table {
    font-size: 0.8125rem;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 10px 12px;
  }

  .sticky-header-text {
    font-size: 0.8125rem;
  }

  .sticky-header .btn {
    padding: 8px 16px;
    font-size: 0.8125rem;
  }

  .mobile-sticky-footer {
    display: block;
  }

  body {
    padding-bottom: 64px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .persona-tags {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
    width: 100%;
  }
}
