/* ========== NAV ========== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out);
}

nav.scrolled {
  background: rgba(8, 13, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(6, 214, 160, 0.08);
}

[data-theme="light"] nav.scrolled {
  background: rgba(248, 250, 252, 0.92);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--pure);
}

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

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.nav-logo-text span {
  color: var(--accent);
}

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

.nav-links a {
  color: var(--slate-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
  color: var(--pure);
}

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

.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: var(--ink) !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 14px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(6, 214, 160, 0.3);
}

[data-theme="light"] .nav-cta {
  color: #fff !important;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  width: 24px;
  height: 2px;
  background: var(--bone);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-close {
  display: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========== Theme Toggle ========== */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: scale(1.05);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: transform 0.4s var(--ease-spring), opacity 0.3s;
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

/* ========== Footer ========== */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 40px;
}

[data-theme="light"] footer {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--pure);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--slate);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--slate);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ink-light);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-light);
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s;
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

[data-theme="light"] .footer-social a {
  border-color: rgba(0, 0, 0, 0.06);
  background: #fff;
}

/* ========== Floating CTA ========== */
.floating-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: var(--ink);
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(6, 214, 160, 0.3);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.floating-cta a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(6, 214, 160, 0.4);
}

[data-theme="light"] .floating-cta a {
  color: #fff;
}

/* ========== Trust Banner ========== */
.trust-banner {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  text-align: center;
  padding: 24px 16px;
}

.trust-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.trust-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--bone);
}

/* ========== Pricing Cards ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--ink-light);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px 32px;
  position: relative;
  transition: all 0.4s var(--ease-out);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 214, 160, 0.12);
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(6, 214, 160, 0.1);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: var(--ink);
  padding: 6px 20px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

[data-theme="light"] .pricing-badge {
  color: #fff;
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--pure);
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--slate-light);
}

.pricing-detail {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--bone);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid rgba(6, 214, 160, 0.2);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' fill='none'%3E%3Cpath stroke='%2306d6a0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 4l3 3 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

[data-theme="light"] .pricing-card {
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(5, 150, 105, 0.1);
}

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

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item summary {
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--pure);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.3s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item .faq-answer {
  padding: 0 0 24px;
  font-size: 15px;
  color: var(--slate-light);
  line-height: 1.7;
}

/* ========== Testimonial Cards ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--ink-light);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s var(--ease-out);
}

.testimonial-card:hover {
  border-color: rgba(6, 214, 160, 0.12);
  transform: translateY(-4px);
}

.testimonial-text {
  font-size: 15px;
  color: var(--bone);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-text::before {
  content: '\201C';
  font-size: 32px;
  color: var(--accent);
  line-height: 0;
  vertical-align: -12px;
  margin-right: 4px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-glow);
  border: 1px solid rgba(6, 214, 160, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.testimonial-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--pure);
}

.testimonial-role {
  font-size: 13px;
  color: var(--slate);
}

[data-theme="light"] .testimonial-card {
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

/* ========== Smooth theme transitions ========== */
body,
nav,
nav.scrolled,
.pricing-card,
.testimonial-card,
.faq-item,
footer,
.footer-social a,
.theme-toggle {
  transition: var(--theme-transition);
}

/* ========== Mobile Responsive ========== */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #080d1a;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 9999;
  }

  .nav-links.active a {
    font-size: 22px;
    color: var(--bone);
  }

  .nav-links.active .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--bone);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
  }

  .nav-links.active .nav-close:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  [data-theme="light"] .nav-links.active {
    background: #f8fafc;
  }

  [data-theme="light"] .nav-links.active a {
    color: #1e293b;
  }

  [data-theme="light"] .nav-links.active a:hover {
    color: var(--accent);
  }

  [data-theme="light"] .nav-links.active .nav-cta {
    background: linear-gradient(135deg, var(--accent), #047857);
    color: #fff;
  }

  [data-theme="light"] .nav-links.active .nav-close {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e293b;
  }

  [data-theme="light"] .nav-links.active .nav-close:hover {
    background: rgba(0, 0, 0, 0.1);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .floating-cta {
    bottom: 20px;
    right: 20px;
  }

  .floating-cta a {
    padding: 12px 20px;
    font-size: 13px;
  }
}