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

:root {
  --navy: #0b1e4a;
  --navy-light: #1a2f5a;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --cyan-light: #67e8f9;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--white);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.btn-small {
  padding: 10px 24px;
  font-size: 0.875rem;
}

.btn-large {
  padding: 18px 48px;
  font-size: 1.125rem;
}

.btn-hero {
  padding: 18px 48px;
  font-size: 1.125rem;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

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

.logo-wrap {
  flex-shrink: 0;
}

.logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: none;
}

.nav-list {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-cta-header {
  display: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.hamburger:hover {
  background: var(--gray-100);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.nav.open {
  display: block;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 20px 24px 32px;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

.nav.open .nav-list {
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.nav.open .nav-link {
  font-size: 1.1rem;
}

/* ===== HERO ===== */
.hero {
  padding: 60px 0 72px;
  background: linear-gradient(160deg, var(--gray-50) 0%, var(--white) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 540px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-actions {
  margin-bottom: 16px;
}

.hero-secondary {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.trust-badges li {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-badges li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
}

.hero-visual {
  display: none;
}

/* ===== SECTIONS ===== */
.section {
  padding: 72px 0;
}

.section-light {
  background: var(--gray-50);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

/* ===== STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
}

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

.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gray-200);
  position: absolute;
  top: 12px;
  right: 20px;
  line-height: 1;
  pointer-events: none;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy);
}

.step-desc {
  color: var(--gray-600);
  margin-bottom: 16px;
}

.step-img-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}

.step-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.step-img-placeholder {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 40px;
  text-align: center;
  border: 2px dashed var(--gray-300);
}

.step-icon {
  font-size: 3rem;
}

/* ===== VISUAL GUIDE ===== */
.visual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.visual-fig {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.visual-fig:hover {
  box-shadow: var(--shadow-md);
}

.visual-img-wrap {
  padding: 16px;
  background: var(--gray-50);
}

.visual-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}

.visual-fig figcaption {
  padding: 16px 20px;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--white);
  text-align: center;
}

/* ===== CHECKLIST ===== */
.checklist-wrap {
  text-align: center;
}

.checklist {
  display: inline-block;
  text-align: left;
  margin: 0 auto 32px;
  padding: 0;
}

.checklist li {
  font-size: 1.05rem;
  padding: 8px 0;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 10px;
}

.checklist li::before {
  content: '✓';
  color: var(--cyan);
  font-weight: 700;
  font-size: 1.2rem;
}

.checklist-cta {
  margin-top: 8px;
}

/* ===== BENEFITS ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.benefit-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.benefit-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.benefit-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.benefit-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ===== FINAL CTA ===== */
.cta-final {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.cta-final-inner {
  max-width: 640px;
}

.cta-final-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-final-text {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 32px;
}

.cta-final .btn-primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-final .btn-primary:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy);
  transition: var(--transition);
  border-radius: 0;
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gray-600);
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-question[aria-expanded="true"]::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--gray-600);
}

.faq-question[aria-expanded="true"]+.faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 0.95rem;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 32px;
}

.footer-links a {
  font-size: 0.875rem;
  opacity: 0.7;
  transition: var(--transition);
}

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

.footer-disclaimer {
  font-size: 0.75rem;
  opacity: 0.5;
  max-width: 800px;
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.75rem;
  opacity: 0.4;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid .step-card:last-child {
    grid-column: span 2;
  }

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

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

@media (min-width: 768px) {
  .nav {
    display: block;
  }

  .hamburger {
    display: none;
  }

  .btn-cta-header {
    display: inline-block;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
  }

  .hero-visual {
    display: block;
    min-height: 200px;
    background: radial-gradient(circle at 70% 30%, var(--cyan-light), transparent 70%);
    border-radius: var(--radius);
    position: relative;
  }

  .hero-card-deco {
    position: absolute;
    inset: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.08));
    border-radius: var(--radius);
    border: 2px dashed var(--gray-300);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-grid .step-card:last-child {
    grid-column: span 1;
  }

  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
    align-items: flex-start;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-disclaimer {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 80px 0 100px;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .section {
    padding: 96px 0;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ===== FADE IN UTILITY ===== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}