/* ===== CSS VARIABLES & RESET ===== */
:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --secondary: #7209b7;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --success: #10b981;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

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

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

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo i {
  font-size: 1.8rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
}

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

/* ===== HERO SECTION ===== */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero .highlight {
  color: #ffd700;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  opacity: 0.9;
}

.trust-badges i {
  margin-right: 0.5rem;
  color: #ffd700;
}

/* ===== SECTIONS ===== */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 3rem;
  color: var(--dark);
}

/* ===== FEATURES ===== */
.features {
  background: var(--light);
}

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

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

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

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
}

/* ===== HOW IT WORKS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.step {
  padding: 1.5rem;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step h3 {
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.step p {
  color: var(--gray);
}

/* ===== PRICING ===== */
.pricing {
  background: var(--light);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.pricing-card.featured {
  border: 3px solid var(--primary);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.08);
}

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

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: var(--white);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.price span {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 400;
}

.pricing-card > p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-card ul li {
  padding: 0.5rem 0;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-card ul li i {
  color: var(--success);
}

/* ===== CONTACT ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.contact-info p {
  color: var(--gray);
  margin-bottom: 2rem;
}

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

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.contact-list i {
  color: var(--primary);
  width: 20px;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-status {
  min-height: 1.5rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: #dc2626;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--white);
  font-size: 1.25rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links h4 {
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--white);
  text-decoration: none;
}

.legal-page {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  min-height: 100vh;
}

.legal-hero {
  padding: 8rem 0 2.5rem;
  background: linear-gradient(135deg, #14345f 0%, #1f5f8b 100%);
  color: var(--white);
}

.legal-eyebrow {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.legal-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.legal-intro {
  max-width: 760px;
  font-size: 1.1rem;
  opacity: 0.92;
}

.legal-content {
  padding: 3rem 0 5rem;
}

.legal-layout {
  max-width: 900px;
}

.legal-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}

.legal-card h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--dark);
}

.legal-card p {
  color: var(--gray);
  margin-bottom: 1rem;
}

.legal-card p strong {
  color: var(--dark);
}

.legal-card a {
  color: var(--primary);
  text-decoration: none;
}

.legal-nav a[aria-current="page"] {
  color: var(--primary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #dbeafe;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.docs-hero {
  padding: 8rem 0 4rem;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 24rem),
    linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #0f766e 100%);
  color: var(--white);
}

.docs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.docs-hero-copy h1 {
  font-size: 3.1rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.docs-hero-copy p {
  max-width: 46rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
}

.summary-card,
.docs-side-nav,
.docs-block,
.info-card,
.mistake-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.summary-card {
  padding: 1.5rem;
  color: var(--dark);
}

.summary-card h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.check-list,
.bullet-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.check-list li,
.bullet-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--dark);
}

.check-list i {
  color: var(--success);
  margin-top: 0.2rem;
}

.docs-section {
  background: #eef4ff;
}

.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.docs-side-nav {
  position: sticky;
  top: 6.5rem;
  padding: 1.25rem;
}

.docs-side-nav h3 {
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.docs-side-nav a {
  display: block;
  text-decoration: none;
  color: var(--gray);
  padding: 0.55rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.docs-side-nav a:last-child {
  border-bottom: 0;
}

.docs-side-nav a:hover {
  color: var(--primary);
}

.docs-content {
  display: grid;
  gap: 1.5rem;
}

.docs-block {
  padding: 1.75rem;
}

.docs-block h2 {
  font-size: 1.7rem;
  margin-bottom: 0.85rem;
}

.docs-block h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.75rem;
}

.docs-block p {
  color: var(--gray);
}

.docs-steps {
  padding-left: 1.25rem;
  color: var(--dark);
  display: grid;
  gap: 0.8rem;
}

.info-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.info-card {
  padding: 1rem;
}

.info-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.code-block {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: #0f172a;
  color: #e2e8f0;
  overflow-x: auto;
}

.code-block code {
  color: inherit;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92rem;
  white-space: pre;
}

.note {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--primary);
  background: #eff6ff;
  border-radius: 10px;
  color: #1e3a8a;
}

.note-warning {
  border-left-color: #f59e0b;
  background: #fff7ed;
  color: #9a3412;
}

.mistake-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mistake-item {
  padding: 1.1rem;
}

.mistake-item h3 {
  margin-top: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .docs-hero-grid,
  .docs-layout,
  .mistake-list,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .docs-side-nav {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-5px);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }

  .legal-nav {
    position: static;
    height: auto;
    width: auto;
    box-shadow: none;
    flex-direction: row;
    gap: 1rem;
  }

  .legal-hero h1 {
    font-size: 2.25rem;
  }

  .legal-card {
    padding: 2rem 1.5rem;
  }

  .docs-hero-copy h1 {
    font-size: 2.35rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero {
    padding: 6rem 0 4rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .trust-badges {
    flex-direction: column;
    gap: 0.75rem;
  }

  .docs-hero-copy h1 {
    font-size: 1.95rem;
  }

  .docs-block {
    padding: 1.25rem;
  }
}

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

.feature-card,
.step,
.pricing-card {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; opacity: 1; }
.feature-card:nth-child(2) { animation-delay: 0.2s; opacity: 1; }
.feature-card:nth-child(3) { animation-delay: 0.3s; opacity: 1; }
.feature-card:nth-child(4) { animation-delay: 0.4s; opacity: 1; }
.feature-card:nth-child(5) { animation-delay: 0.5s; opacity: 1; }
.feature-card:nth-child(6) { animation-delay: 0.6s; opacity: 1; }

.step:nth-child(1) { animation-delay: 0.1s; opacity: 1; }
.step:nth-child(2) { animation-delay: 0.2s; opacity: 1; }
.step:nth-child(3) { animation-delay: 0.3s; opacity: 1; }
.step:nth-child(4) { animation-delay: 0.4s; opacity: 1; }
