/* ==================== CSS VARIABLES ==================== */
:root {
  --primary: #0b57d0;
  --primary-dark: #084a9e;
  --secondary: #f3f3f3;
  --text: #202124;
  --text-light: #5f6368;
  --border: #dadce0;
  --error: #d33b27;
  --success: #0d7d0d;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: #fff;
}

/* ==================== HEADER / NAV ==================== */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 120px;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mods-logo {
  position: absolute;
  left: 2rem;
}

.mods-logo .logo-image {
  margin: 10px 0;
}

.brand-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-image {
  display: block;
  height: 100px;
  width: 100px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

nav a {
  margin-left: 2rem;
  text-decoration: none;
  color: var(--text);
}

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

nav {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

/* Hamburger menu button - hidden on desktop */
.nav-toggle {
  display: none;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: background 0.2s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text);
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* Hamburger animation when menu is open */
.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Responsive nav - tablet and mobile */
@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
  }

  header {
    height: 80px;
    padding: 0 1rem;
  }

  .mods-logo {
    left: 1rem;
  }

  .mods-logo .logo-image {
    height: 60px;
    width: 60px;
  }

  .logo-image {
    height: 60px;
    width: 60px;
  }

  .brand-center {
    position: static;
    transform: none;
    flex: 1;
    text-align: center;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  nav {
    position: fixed;
    top: 80px;
    right: 0;
    width: 100%;
    max-width: 300px;
    height: calc(100vh - 80px);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  nav.open {
    transform: translateX(0);
  }

  nav a {
    margin: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: block;
  }

  nav a:hover {
    background: var(--secondary);
  }

  .currency-nav-item {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .currency-nav-item label {
    font-size: 0.875rem;
    color: var(--text-light);
  }

  .currency-select-nav {
    width: 100%;
  }

  /* Overlay when menu is open */
  body.nav-open::before {
    content: '';
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
  }
}

/* Mobile - smaller adjustments */
@media (max-width: 480px) {
  header {
    height: 60px;
    padding: 0 0.75rem;
  }

  .mods-logo {
    left: 0.75rem;
  }

  .mods-logo .logo-image {
    height: 40px;
    width: 40px;
  }

  .logo-image {
    height: 40px;
    width: 40px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .nav-toggle {
    right: 0.75rem;
  }

  nav {
    top: 60px;
    height: calc(100vh - 60px);
    max-width: 100%;
  }

  body.nav-open::before {
    top: 60px;
  }
}

/* ==================== BUTTONS ==================== */
.btn {
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn-primary {
  background: var(--primary);
  color: white;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 600;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #E8F0FF;
}

/* ==================== CONTAINER ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* ==================== HERO SECTION ==================== */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #F0F4FF 100%);
  padding: 5rem 2rem;
  text-align: center;
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-visual {
  margin-top: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-visual img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Hero responsive */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 1.5rem;
  }

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

  .hero p {
    font-size: 1rem;
  }
}

/* ==================== TRUST BAR / TESTIMONIALS ==================== */
.trust-bar {
  background: #F0F4FF;
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.trust-bar > p {
  color: var(--text-light);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  text-align: left;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-quote::before {
  content: '\201C';
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 0;
  margin-right: 0.25rem;
}

.testimonial-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Trust bar responsive */
@media (max-width: 900px) {
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .testimonials {
    grid-template-columns: 1fr;
  }

  .trust-bar {
    padding: 2rem 1.5rem;
  }
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
  background: #ffffff;
  padding: 5rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-header p {
  color: var(--text-light);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

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

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

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.step p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

.step-arrow {
  position: absolute;
  top: 30px;
  right: -1rem;
  color: var(--border);
  font-size: 2rem;
}

.step:last-child .step-arrow {
  display: none;
}

/* How It Works responsive */
@media (max-width: 768px) {
  .how-it-works {
    padding: 3rem 1.5rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .step-arrow {
    display: none;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }
}

/* ==================== FEATURES SECTION ==================== */
.features {
  background: #F0F4FF;
  padding: 5rem 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  background: #E8F0FF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-card-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.feature-card-emoji {
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 1rem;
}

/* Features responsive */
@media (max-width: 768px) {
  .features {
    padding: 3rem 1.5rem;
  }

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

/* ==================== USE CASES SECTION ==================== */
.use-cases {
  background: white;
  padding: 5rem 2rem;
}

.use-cases-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.use-case {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
}

.use-case:hover {
  background: #E8F0FF;
  border-color: var(--primary);
  color: var(--primary);
}

.use-cases-description {
  max-width: 800px;
  margin: 2.5rem auto 0;
  text-align: center;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
}

/* Use Cases responsive */
@media (max-width: 768px) {
  .use-cases {
    padding: 3rem 1.5rem;
  }

  .use-cases-grid {
    gap: 1rem;
  }

  .use-case {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* ==================== PRICING SECTION ==================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  grid-template-rows: 44px auto;
  column-gap: 2rem;
  row-gap: 1rem;
  padding: 2rem 0;
  align-items: stretch;
  align-content: start;
}

.pricing-toggle-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  align-self: start;
}

.toggle-left { grid-column: 1; grid-row: 1; }
.toggle-center { grid-column: 2; grid-row: 1; }
.toggle-right { grid-column: 3; grid-row: 1; }
.card-free { grid-column: 1; grid-row: 2; }
.card-center { grid-column: 2; grid-row: 2; }
.card-right { grid-column: 3; grid-row: 2; }

.price-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.15), 0 4px 8px -2px rgba(0, 0, 0, 0.1);
}

.price-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 12px 24px rgba(11, 87, 208, 0.18);
}

.price-card.featured:hover {
  box-shadow: 0 20px 32px rgba(11, 87, 208, 0.25);
}

.price-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.price-card .price {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 1rem;
}

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

.price-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.price-card-footnote {
  margin-top: 1rem;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.4;
}

.price-card-footnote p {
  margin: 0.25rem 0;
}

.price-note {
  color: #0d7d0d;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Annual Savings Badge */
.savings-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  display: none;
}

.savings-badge.visible {
  display: block;
}

/* Currency Selector (Nav) */
.currency-nav-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  color: var(--text);
  margin-left: 1.5rem;
}

.currency-nav-item label {
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.currency-select-nav {
  padding: 0.2rem 0.3rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  min-width: auto;
}

.currency-select-nav:focus {
  outline: none;
  border-color: var(--primary);
}

.currency-select-nav option {
  background: var(--bg);
  color: var(--text);
}

/* Billing Toggle */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  height: 44px;
  line-height: 1;
  margin-bottom: 0;
}

.billing-label {
  color: var(--text);
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
  margin-bottom: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5f5;
  transition: 0.2s;
  border-radius: 999px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

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

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

/* Pricing responsive */
@media (max-width: 1080px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }

  .toggle-left { order: 1; }
  .card-free { order: 2; }
  .toggle-center { order: 3; }
  .card-center { order: 4; }
  .toggle-right { order: 5; }
  .card-right { order: 6; }
}

/* ==================== INLINE FAQ SECTION ==================== */
.faq-inline {
  background: #F0F4FF;
  padding: 5rem 2rem;
}

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

.faq-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.faq-question:hover {
  background: #f8f9fa;
}

.faq-arrow {
  transition: transform 0.2s;
  color: var(--text-light);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-light);
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.view-all-link {
  text-align: center;
  margin-top: 2rem;
}

.view-all-link a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.view-all-link a:hover {
  text-decoration: underline;
}

/* FAQ responsive */
@media (max-width: 768px) {
  .faq-inline {
    padding: 3rem 1.5rem;
  }

  .faq-question {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 1.25rem 1rem;
  }
}

/* ==================== FINAL CTA SECTION ==================== */
.final-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 5rem 2rem;
  text-align: center;
  color: white;
}

.final-cta h2 {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.final-cta p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

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

.final-cta .btn-primary:hover {
  background: #f8f9fa;
}

/* Final CTA responsive */
@media (max-width: 768px) {
  .final-cta {
    padding: 3rem 1.5rem;
  }

  .final-cta h2 {
    font-size: 1.75rem;
  }
}

/* ==================== FOOTER ==================== */
footer {
  background: #1A1A1A;
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-col h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: #6B7280;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #6B7280;
  font-size: 0.875rem;
}

.footer-bottom .footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-bottom p {
  margin-bottom: 0.25rem;
}

/* Footer responsive */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
