/* ========================================
   style.css — Modern SaaS Dark Mode
   ======================================== */

/* ========== Container ========== */
.header__container,
.hero__container,
.features__container,
.cta__container,
.footer__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ========== Ads ========== */
.footer-ad,
.top-ad {
  width: 100%;
  max-width: 728px;
  margin: 40px auto;
  text-align: center;
}

.footer-ad {
  margin-bottom: 20px;
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-base);
}

.header__container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.header__logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.header__nav {
  display: flex;
  gap: 40px;
}

.header__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

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

.header__link:hover {
  color: var(--text-primary);
}

.header__link:hover::after {
  width: 100%;
}

.header__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  cursor: pointer;
}

.header__menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
}

.header__menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.header__menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.header__menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== Mobile Menu ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.mobile-menu__link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.mobile-menu__link:hover {
  color: var(--accent);
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: var(--header-height);
}

.hero__container {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: -250px;
}

.hero__title {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero__title-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
}

.hero__title-line--accent {
  background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(30px);
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
}

/* ========== Buttons ========== */
.btn {
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all var(--transition-base);
  cursor: pointer;
  display: inline-block;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #FFFFFF;
  border: none;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 107, 107, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-secondary);
}

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

/* ========== Hero Visual ========== */
.hero__visual {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 400px;
  display: flex;
  gap: 4px;
  z-index: 1;
}

.color-bar {
  flex: 1;
  height: 100%;
  transform-origin: bottom;
}

.hero__inner {
  position: relative;
  width: min(100%, var(--container-max));
  margin: 0 auto;
  padding: 0 40px;
}

.hero__ad,
.page-ad {
  width: 100%;
  max-width: 340px;
}

.hero__ad {
  position: absolute;
  top: -50px;
  right: -100px;
}

.page-ad {
  margin: 32px auto;
}

.page-ad-top {
  margin-top: 32px;
}

.page-ad-bottom {
  margin-bottom: 48px;
}

@media (max-width: 1200px) {
  .hero__inner {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 24px;
  }
/* 
  .hero__ad,
  .page-ad {
    position: static;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  } */
     .hero__visual {
    display: none;
  }

  .hero__ad,
  .page-ad {
    width: 100%;
    max-width: 100%;
    margin: 24px auto;
    position: static;
  }
}

@media (max-width: 768px) {
  .hero__visual {
    display: none;
  }

  .hero__ad,
  .page-ad {
    width: 100%;
    max-width: 100%;
    margin: 24px auto;
    position: static;
  }
}

.color-bar--1 { background: linear-gradient(180deg, #667eea 0%, #764ba2 100%); }
.color-bar--2 { background: linear-gradient(180deg, #f093fb 0%, #f5576c 100%); }
.color-bar--3 { background: linear-gradient(180deg, #4facfe 0%, #00f2fe 100%); }
.color-bar--4 { background: linear-gradient(180deg, #43e97b 0%, #38f9d7 100%); }
.color-bar--5 { background: linear-gradient(180deg, #fa709a 0%, #fee140 100%); }

/* ========== Animation Sections ========== */
.animation-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg-primary);
}

.animation-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Floating Orbs Section */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  will-change: transform;
  mix-blend-mode: screen;
}

.orb--1 {
  width: 60vw;
  height: 60vw;
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  top: -20%;
  left: -15%;
}

.orb--2 {
  width: 50vw;
  height: 50vw;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  top: 30%;
  right: -20%;
}

.orb--3 {
  width: 40vw;
  height: 40vw;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  bottom: -10%;
  left: 20%;
}

.orb--4 {
  width: 35vw;
  height: 35vw;
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  top: 50%;
  left: 40%;
}

.orb--5 {
  width: 30vw;
  height: 30vw;
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  bottom: 20%;
  right: 30%;
}

.orb--6 {
  width: 25vw;
  height: 25vw;
  background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
  top: 10%;
  right: 40%;
}

/* Wave Effect Section */
.wave {
  position: absolute;
  width: 200%;
  height: 200%;
  border-radius: 40%;
  opacity: 0.3;
  will-change: transform;
}

.wave--1 {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  top: -50%;
  left: -50%;
}

.wave--2 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  top: -40%;
  left: -40%;
}

.wave--3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  top: -30%;
  left: -30%;
}

.wave--4 {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  top: -20%;
  left: -20%;
}

/* ========== Showcase ========== */
.showcase {
  padding: 100px 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 30%);
}
.showcase__title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}
.showcase__subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.showcase__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.showcase__tile {
  height: 220px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  transform: translateY(30px) scale(0.98);
  opacity: 0;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.showcase__tile:hover {
  transform: translateY(0) scale(1.02);
  box-shadow: 0 20px 48px rgba(0,0,0,0.55);
}

.showcase__visual {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.showcase__svg {
  width: 100%;
  max-width: 1000px;
  height: 420px;
  overflow: visible;
}
.showcase__title {
  font-size: 2.75rem;
}

/* Enhanced showcase visuals */
.showcase__svg #blob {
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.45));
  transform-origin: 50% 50%;
}
.showcase__svg .orb {
  mix-blend-mode: screen;
  filter: blur(12px);
}
.showcase__spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}
/* end enhanced showcase styles */

/* ========== Features ========== */
.features {
  padding: var(--section-spacing) 0;
  text-align: center;
}

.features__title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.features__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 64px;
}

.features__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 400px;
  margin: 0 auto;
}

.feature-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all var(--transition-base);
}

.feature-link:hover {
  background: var(--bg-secondary);
  border-color: var(--accent);
  transform: translateX(8px);
}

.feature-link__arrow {
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform var(--transition-fast);
}

.feature-link:hover .feature-link__arrow {
  transform: translateX(8px);
}

.feature-link__text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ========== CTA ========== */
.cta {
  padding: 120px 0;
  background: var(--bg-primary);
}

.cta__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.cta__content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta__title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta__subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #FFFFFF;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cta__btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.cta__btn:hover::before {
  opacity: 1;
}

.btn-text,
.btn-icon {
  position: relative;
  z-index: 2;
}

.btn-icon {
  transition: transform 0.3s ease;
}

.cta__btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ========== Footer ========== */
.footer {
  padding: 80px 0 40px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 48px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.footer__tagline {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.footer__links {
  display: flex;
  gap: 32px;
  justify-content: center;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--text-primary);
}

.footer__legal {
  display: flex;
  justify-content: flex-end;
}

/* Legal Hover Menu (Hamburger Style) */
.legal-menu {
  position: relative;
}

.legal-menu__trigger {
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.legal-menu__trigger span {
  width: 16px;
  height: 1.5px;
  background: var(--text-secondary);
  transition: all 0.2s;
}

.legal-menu:hover .legal-menu__trigger {
  background: var(--bg-tertiary);
  border-color: var(--text-secondary);
}

.legal-menu:hover .legal-menu__trigger span {
  background: var(--text-primary);
}

.legal-menu__dropdown {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.legal-menu:hover .legal-menu__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.legal-menu__link {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.legal-menu__link:hover {
  background: var(--bg-tertiary);
  color: var(--accent);
}

.footer__copyright {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 4rem;
  }

  .cta__title {
    font-size: 2.5rem;
  }

  .footer-ad,
  .top-ad {
    max-width: 100%;
    margin: 32px 20px;
  }
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .header__menu-toggle {
    display: flex;
  }

  .hero__title {
    font-size: 3rem;
    letter-spacing: 0.5px;
  }

  /* .hero__actions {
    flex-direction: column;
  } */

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .footer-ad,
  .top-ad {
    display: none !important;
  }

  .footer__content {
    flex-direction: column;
    gap: 32px;
  }

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

  .header__container,
  .hero__container,
  .features__container,
  .cta__container,
  .footer__container {
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.25rem;
  }

  .features__title,
  .cta__title {
    font-size: 2rem;
  }

  .hero__visual {
    height: 200px;
  }
}
