/*
TemplateMo 621 Luminary
https://templatemo.com/tm-621-luminary
*/

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

:root {
  --base-deep: #0F1115;
  --base-mid: #161A20;
  --base-soft: #1C2128;
  --slate-warm: #adb7cb;
  --slate-light: #9CA3AF;
  --graphite: #2A2E35;
  --graphite-soft: #3D424A;
  --ivory: #E5E7EB;
  --ivory-muted: #C9CDD4;
  --silver: #B0B8C4;
  --panel-bg: rgba(22, 26, 32, 0.55);
  --panel-border: rgba(156, 163, 175, 0.08);
  --silk-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--base-deep);
  color: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-family: Andale Mono, monospace, sans-serif;
}

/* ── Grain ── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  mix-blend-mode: overlay;
}

/* ── BG ── */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #070F43;
}

/* ── Nav ── */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  transition: background 0.8s var(--silk-ease), padding 0.8s var(--silk-ease);
}

.top-nav.scrolled {
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 40px;
}

.nav-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
}

.nav-brand span {
  font-weight: 300;
  color: var(--slate-warm);
  margin-left: 4px;
}

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

.body-link {
  color: #ffffff;
}

.nav-links a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-warm);
  text-decoration: none;
  position: relative;
  padding: 14px 0 6px;
  transition: color 0.8s var(--silk-ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--silver);
  border-bottom: 1px solid var(--silver);
  transform: translateX(-50%) rotate(45deg) translateY(-8px);
  opacity: 0;
  transition: transform 0.8s var(--silk-ease), opacity 0.6s var(--silk-ease);
  pointer-events: none;
}

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

.nav-links a:hover::after {
  opacity: 0.7;
  transform: translateX(-50%) rotate(45deg) translateY(0);
}

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

.nav-links a.active::after {
  opacity: 0.4;
  transform: translateX(-50%) rotate(45deg) translateY(0);
}

.nav-cta {
  padding: 10px 28px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--silver), var(--slate-light));
  color: var(--base-deep);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.8s var(--silk-ease), box-shadow 0.8s var(--silk-ease);
}

.nav-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 30px rgba(176, 184, 196, 0.15);
}

/* ── Hamburger ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  padding: 0;
}

.toggle-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ivory);
  position: absolute;
  left: 0;
  transition: transform 0.6s var(--silk-ease), top 0.6s var(--silk-ease);
}

.toggle-bar:nth-child(1) {
  top: 6px;
}

.toggle-bar:nth-child(2) {
  top: 16px;
}

.nav-toggle.active .toggle-bar:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}

.nav-toggle.active .toggle-bar:nth-child(2) {
  top: 11px;
  transform: rotate(-45deg);
}

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 550;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--silk-ease), visibility 0.6s var(--silk-ease);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-inner {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 21, 0.94);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 40px 60px;
  overflow-y: auto;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
}

.mobile-menu-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ivory);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(156, 163, 175, 0.06);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.6s var(--silk-ease);
}

.mobile-menu.open .mobile-menu-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--silk-ease), transform 0.5s var(--silk-ease), color 0.6s var(--silk-ease);
}

.mobile-menu.open .mobile-menu-link:nth-child(1) {
  transition-delay: 0.06s;
}

.mobile-menu.open .mobile-menu-link:nth-child(2) {
  transition-delay: 0.12s;
}

.mobile-menu.open .mobile-menu-link:nth-child(3) {
  transition-delay: 0.18s;
}

.mobile-menu.open .mobile-menu-link:nth-child(4) {
  transition-delay: 0.24s;
}

.mobile-menu.open .mobile-menu-link:nth-child(5) {
  transition-delay: 0.30s;
}

.mobile-menu.open .mobile-menu-link:nth-child(6) {
  transition-delay: 0.36s;
}

.mobile-menu.open .mobile-menu-link:nth-child(7) {
  transition-delay: 0.42s;
}

.mobile-menu-link::before {
  content: attr(data-index);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--slate-warm);
  opacity: 0.4;
  min-width: 24px;
  font-variant-numeric: tabular-nums;
}

.mobile-menu-footer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 equal-width columns */
  grid-template-rows: auto auto;
  /* 2 rows with automatic height */
  gap: 16px;
  /* Space between grid items (adjust as needed) */
  align-items: center;
  /* Vertical alignment */

  padding-top: 24px;
  border-top: 1px solid rgba(156, 163, 175, 0.06);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.open .mobile-menu-footer {
  opacity: 1;
  transition: opacity 0.5s var(--silk-ease) 0.45s;
}

.mobile-menu-footer a {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-warm);
  opacity: 0.4;
  text-decoration: none;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .top-nav {
  background: rgba(15, 17, 21, 0.95);
  backdrop-filter: blur(20px);
}

/* ── Side Panels ── */
.side-panel {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 0;
}

.side-panel.left {
  left: 20px;
}

.side-panel.right {
  right: 20px;
}

.side-track {
  width: 1px;
  height: 160px;
  background: rgba(156, 163, 175, 0.06);
  position: relative;
  border-radius: 1px;
}

.side-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--silver), rgba(176, 184, 196, 0.15));
  border-radius: 1px;
  transition: height 1.2s var(--silk-ease);
}

/* ── Container ── */
.main {
  position: relative;
  z-index: 10;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Shared ── */
.section {
  padding: 120px 0;
  position: relative;
}

.section-tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--slate-warm);
  opacity: 0.6;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--ivory);
  margin-bottom: 20px;
}

.section-title strong {
  font-weight: 600;
}

.section-body {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--slate-light);
}

.section-center {
  text-align: center;
}

.section-center .section-body {
  margin: 0 auto;
}

.btn-secondary {
  display: inline-block;
  padding: 16px 44px;
  border-radius: 100px;
  background: transparent;
  color: var(--ivory-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--panel-border);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.8s var(--silk-ease), border-color 0.8s var(--silk-ease), background 0.8s var(--silk-ease);
}

.btn-secondary:hover {
  transform: scale(1.02);
  border-color: rgba(156, 163, 175, 0.2);
  background: rgba(156, 163, 175, 0.04);
}

/* ── Reveal ── */
.reveal {
  opacity: 1;
  transform: translateY(36px);
  transition: opacity 1.2s var(--silk-ease), transform 1.2s var(--silk-ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 {
  transition-delay: 0.1s;
}

.reveal-d2 {
  transition-delay: 0.2s;
}

.reveal-d4 {
  transition-delay: 0.4s;
}

/* ══════════════════════════════════
   LOGO TICKER
   ══════════════════════════════════ */
.logo-ticker {
  padding: 10px 0;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.logo-ticker-label {
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--slate-warm);
  opacity: 0.5;
  margin-bottom: 3px;
}

/* ══════════════════════════════════
   FEATURE SHOWCASE
   ══════════════════════════════════ */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 32px 0;
}

.feature.reverse {
  direction: rtl;
}

.feature.reverse>* {
  direction: ltr;
}

.feature-visual {
  position: relative;
  height: 320px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ══════════════════════════════════
   PRICING
   ══════════════════════════════════ */

.pricing-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 36px;
  padding: 44px 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.8s var(--silk-ease), box-shadow 0.8s var(--silk-ease);
  margin-bottom: 3%;
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(210, 215, 220, 0.02) 0%, transparent 40%);
  pointer-events: none;
  transition: opacity 0.8s var(--silk-ease);
  opacity: 0;
}

.pricing-card.featured {
  border-color: rgba(176, 184, 196, 0.15);
  box-shadow: 0 0 60px rgba(176, 184, 196, 0.04);
  padding-top: 60px;
}

.pricing-card.featured::before {
  opacity: 1;
}

.pricing-card.featured .pricing-badge {
  display: inline-block;
}

.pricing-tier {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate-warm);
  margin-bottom: 24px;
}

.pricing-desc {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--slate-light);
  margin-bottom: 28px;
  flex: 1;
  text-align: start;
}

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

.pricing-features li {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--slate-light);
  padding: 8px 0;
  border-bottom: 1px solid rgba(156, 163, 175, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: start;
}

.pricing-features li span {
  display: inline;
}

.pricing-features li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--silver);
  opacity: 0.5;
  flex-shrink: 0;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
  width: 100%;
  text-align: center;
  padding: 14px;
}

/* ══════════════════════════════════
   FOOTER CTA
   ══════════════════════════════════ */
.footer-cta {
  padding: 120px 0 80px;
  text-align: center;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(156, 163, 175, 0.06);
}

.footer-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate-light);
  opacity: 0.5;
  text-align: start;
}

.footer-links {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  color: var(--slate-light);
  text-align: end;
}

@media (max-width: 768px) {
  .footer-brand {
    text-align: center;
  }
  .footer-links {
    text-align: center;
  }
}

.footer-links a {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  opacity: 0.5;
  text-decoration: none;
  transition: opacity 0.6s var(--silk-ease);
}

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

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 1024px) {
  .main {
    padding: 0 32px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .side-panel {
    display: none;
  }

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

  .feature.reverse {
    direction: ltr;
  }

  .feature-visual {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .main {
    padding: 0 20px;
  }

  .top-nav {
    padding: 18px 20px;
  }

  .top-nav.scrolled {
    padding: 14px 20px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .section {
    padding: 20px 0;
  }

  .feature-visual {
    height: 240px;
    border-radius: 24px;
  }

  .pricing-card {
    padding: 32px 24px;
    border-radius: 28px;
  }

  .pricing-card.featured {
    padding-top: 52px;
  }

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

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .mobile-menu-inner {
    padding: 90px 20px 40px;
  }
}

@media (max-width: 420px) {

  .section-title {
    font-size: 1.7rem;
  }

  .mobile-menu-link {
    font-size: 1.4rem;
  }
}

@media (max-height: 540px) and (orientation: landscape) {

  .section {
    padding: 60px 0;
  }

  .mobile-menu-inner {
    padding: 64px 32px 24px;
    justify-content: flex-start;
  }

  .mobile-menu-link {
    font-size: 1.2rem;
    padding: 8px 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  .pricing-card:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.15);
  }

  .pricing-card:hover::before {
    opacity: 1;
  }
}

@media (hover: none) {

  .pricing-card:hover  {
    transform: none;
  }
}

/* Focus */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-links a:focus-visible,
.nav-toggle:focus-visible,
.mobile-menu-link:focus-visible,
.faq-question:focus-visible,
.toggle-switch:focus-visible,
.faq-toggle-all:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 3px;
}