:root {
  --color-canvas: #0c0a1a;
  --color-canvas-soft: #161230;
  --color-surface: #f7f6fb;
  --color-surface-strong: #ffffff;
  --color-surface-tinted: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 240, 252, 0.92));
  --color-text: #1a1535;
  --color-text-soft: #6b6490;
  --color-text-inverse: #f8f7ff;
  --color-text-muted: rgba(248, 247, 255, 0.80);
  --color-border: rgba(26, 21, 53, 0.12);
  --color-border-strong: rgba(139, 92, 246, 0.28);
  --color-border-inverse: rgba(255, 255, 255, 0.14);
  --color-accent: #8b5cf6;
  --color-accent-strong: #7c3aed;
  --color-accent-soft: rgba(139, 92, 246, 0.14);
  --color-secondary: #06b6d4;
  --color-green: #34d399;
  --color-amber: #f59e0b;
  --color-red: #ef7b7b;
  --shadow-soft: 0 18px 40px rgba(12, 10, 26, 0.08);
  --shadow-card: 0 22px 56px rgba(12, 10, 26, 0.14);
  --shadow-glass: 0 26px 80px rgba(12, 10, 26, 0.36);
  --glow-accent: 0 0 0 1px rgba(139, 92, 246, 0.18), 0 24px 80px rgba(139, 92, 246, 0.16);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur-med: 320ms;
  --dur-slow: 720ms;
  --section-space: clamp(4.75rem, 7vw, 7.5rem);
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.14), transparent 28%),
    linear-gradient(180deg, #0c0a1a 0%, #161230 100%);
  color: var(--color-text);
  min-height: 100vh;
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

a,
button {
  transition:
    color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    background-color var(--dur-fast) ease,
    opacity var(--dur-fast) ease,
    transform var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-med) var(--ease-standard);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.page-shell {
  position: relative;
  overflow-x: clip;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 70;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-secondary) 100%);
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  border-bottom: 1px solid var(--color-border-inverse);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(12, 10, 26, 0.84);
}

.site-nav__inner,
.section-shell {
  width: min(calc(100% - 2rem), var(--container-max));
  margin: 0 auto;
}

.site-nav__inner {
  min-height: 5.25rem;
}

.site-nav a,
.site-nav button {
  color: rgba(248, 247, 255, 0.78);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[data-active="true"] {
  color: #c4b5fd;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.95rem 1.35rem;
  border-radius: var(--radius-pill);
  color: #f8f7ff;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 40px rgba(139, 92, 246, 0.28);
}

.nav-cta:hover,
.nav-cta:focus-visible,
.primary-btn:hover,
.primary-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 20px 50px rgba(139, 92, 246, 0.34);
}

.nav-toggle {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.mobile-menu {
  display: none;
  padding: 0 1rem 1.25rem;
  background: rgba(12, 10, 26, 0.96);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

/* ── Hero ── */
.hero-section {
  position: relative;
  padding: clamp(8.5rem, 12vw, 11rem) 0 clamp(4.5rem, 6vw, 6rem);
  color: var(--color-text-inverse);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 25%, rgba(139, 92, 246, 0.18), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(6, 182, 212, 0.16), transparent 24%),
    radial-gradient(circle at 65% 62%, rgba(139, 92, 246, 0.08), transparent 26%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-copy {
  max-width: 39rem;
}

.hero-title {
  margin: 0 0 1.5rem;
  font-size: clamp(3rem, 6vw, 5.35rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero-title .accent-text,
.gradient-text {
  color: transparent;
  background: linear-gradient(135deg, #c4b5fd 0%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  margin: 0;
  max-width: 35rem;
  color: var(--color-text-muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.72;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem;
  margin-bottom: 1.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(214, 208, 251, 0.9);
  font-weight: 700;
}

.eyebrow__dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: #a78bfa;
  box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.42);
  animation: pulse-dot 2.4s ease infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.34); }
  70% { box-shadow: 0 0 0 12px rgba(167, 139, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
}

/* ── Buttons ── */
.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin-top: 2rem;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.75rem;
  padding: 0.95rem 1.5rem;
  border-radius: 1.15rem;
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.primary-btn::after,
.nav-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.22) 50%, transparent 78%);
  transform: translateX(-140%);
  transition: transform var(--dur-slow) var(--ease-emphasized);
}

.primary-btn:hover::after,
.primary-btn:focus-visible::after,
.nav-cta:hover::after,
.nav-cta:focus-visible::after {
  transform: translateX(140%);
}

.primary-btn {
  color: #f8f7ff;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 18px 40px rgba(139, 92, 246, 0.28);
}

.secondary-btn,
.ghost-btn {
  color: var(--color-text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
}

.secondary-btn:hover,
.secondary-btn:focus-visible,
.ghost-btn:hover,
.ghost-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(167, 139, 250, 0.3);
  background: rgba(255, 255, 255, 0.075);
}

.section--white .secondary-btn,
.section--light .secondary-btn {
  color: var(--color-text);
  border-color: rgba(26, 21, 53, 0.18);
  background: rgba(26, 21, 53, 0.04);
}
.section--white .secondary-btn:hover,
.section--white .secondary-btn:focus-visible,
.section--light .secondary-btn:hover,
.section--light .secondary-btn:focus-visible {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.08);
}

.button-meta {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(237, 233, 255, 0.68);
}

/* ── Sections ── */
.section {
  position: relative;
  padding: var(--section-space) 0;
}

.section--light {
  background: linear-gradient(180deg, #f7f6fb, #ffffff);
}

.section--white {
  background: #ffffff;
}

.section--dark {
  color: var(--color-text-inverse);
  background:
    radial-gradient(circle at 18% 24%, rgba(139, 92, 246, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(12, 10, 26, 1), rgba(22, 18, 48, 1));
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 2.8rem;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  color: var(--color-accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.section-title--inverse {
  color: #ffffff;
}

.section-copy {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-soft);
}

.section-copy--inverse {
  color: rgba(236, 233, 253, 0.88);
}

/* ── Cards ── */
.glass-panel,
.dark-panel {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(12, 10, 26, 0.56);
  box-shadow: var(--shadow-glass);
}

.glass-panel::before,
.dark-panel::before,
.surface-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 26%);
}

.surface-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-tinted);
  border: 1px solid rgba(107, 100, 144, 0.14);
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--dur-med) var(--ease-standard),
    box-shadow var(--dur-med) var(--ease-standard),
    border-color var(--dur-med) ease;
}

.surface-card:hover,
.surface-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.28);
  box-shadow: var(--shadow-card);
}

.surface-card__content {
  position: relative;
  z-index: 1;
  padding: 1.55rem;
}

.surface-card__icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: rgba(139, 92, 246, 0.14);
  color: var(--color-accent-strong);
}

.surface-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-strong);
}

.surface-card__title {
  margin: 0;
  color: var(--color-text);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
}

.surface-card__copy {
  margin: 0.85rem 0 0;
  color: var(--color-text-soft);
  line-height: 1.7;
}

.surface-card__glow {
  position: absolute;
  inset: auto -1.5rem -2.5rem auto;
  width: 9rem;
  height: 9rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 68%);
  opacity: 0.4;
  pointer-events: none;
}

/* ── Feature Bullets ── */
.feature-bullet {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
}

.feature-bullet__icon {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 18px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--color-accent-strong);
  flex-shrink: 0;
}

.feature-bullet__copy strong {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 800;
  color: inherit;
}

.feature-bullet__copy span {
  display: block;
  line-height: 1.65;
  color: inherit;
  opacity: 0.78;
}

/* ── CTA Panel ── */
.cta-panel {
  padding: clamp(2.4rem, 6vw, 4rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0c0a1a 0%, #1e1545 50%, #2d1f6b 100%);
  color: #ffffff;
}

.cta-panel .section-copy {
  max-width: 39rem;
}

/* ── App Window Mock ── */
.app-window {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(22, 18, 48, 0.8);
  box-shadow: var(--shadow-glass);
}

.app-window__toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-window__dots {
  display: flex;
  gap: 0.4rem;
}

.app-window__dots span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
}

.app-window__title {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.app-window__body {
  padding: 1.25rem;
}

.search-bar-mock {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.3);
  margin-bottom: 1rem;
}

.search-bar-mock svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.search-bar-mock span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.result-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  transition: background var(--dur-fast) ease;
}

.result-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

.result-row .file-icon {
  color: var(--color-accent);
  flex-shrink: 0;
}

.result-row .file-name {
  color: #ffffff;
  font-weight: 600;
}

.result-row .file-path {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  margin-left: auto;
}

.result-row .match-highlight {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.15);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

/* ── Hero Screenshots ── */
.hero-screenshots {
  position: relative;
}

.screenshot-stack {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.screenshot {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.screenshot--back {
  position: relative;
  z-index: 1;
  transform: rotate(-2deg) translateX(-4%);
}

.screenshot--front {
  position: absolute;
  top: 8%;
  left: 12%;
  z-index: 2;
  width: 92%;
  transform: rotate(1.5deg);
  box-shadow: 0 32px 80px rgba(12, 10, 26, 0.5);
}

@media (max-width: 1100px) {
  .screenshot-stack {
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .screenshot-stack {
    max-width: 100%;
  }

  .screenshot--back {
    transform: rotate(-1deg) translateX(-2%);
  }

  .screenshot--front {
    top: 6%;
    left: 8%;
    width: 94%;
    transform: rotate(1deg);
  }
}

/* ── FAQ ── */
.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

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

.faq-item p {
  margin: 0.85rem 0 0;
  color: rgba(236, 233, 253, 0.78);
  line-height: 1.7;
}

/* ── Footer ── */
.footer {
  background: rgba(12, 10, 26, 0.98);
  color: rgba(239, 237, 252, 0.78);
}

.footer a {
  color: rgba(239, 237, 252, 0.78);
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  color: #c4b5fd;
}

/* ── Animations ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 560ms var(--ease-emphasized),
    transform 560ms var(--ease-emphasized),
    filter 560ms var(--ease-emphasized);
}

[data-stagger] {
  opacity: 0;
  transform: translateY(12px);
}

[data-reveal].is-revealed [data-stagger] {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 460ms var(--ease-emphasized),
    transform 460ms var(--ease-emphasized);
}

[data-depth] {
  transform: translate3d(0, var(--depth-y, 0px), 0);
  will-change: transform;
}

.page-shell.menu-open {
  overflow: hidden;
}

.skip-link {
  color: #ffffff;
  background: #1e1545;
}

/* ── Hero Trust Line ── */
.hero-trust-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(245, 243, 255, 0.55);
}

.hero-trust-line svg {
  color: rgba(139, 92, 246, 0.6);
  flex-shrink: 0;
}

.hero-trust-sep {
  color: rgba(245, 243, 255, 0.25);
}

/* ── Feature Grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .ransack-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .site-nav__inner,
  .section-shell {
    width: min(calc(100% - 1.5rem), var(--container-max));
  }

  .hero-section {
    padding-top: 7.4rem;
  }

  .hero-title {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

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

  .steps-grid {
    grid-template-columns: 1fr !important;
  }

  .ransack-grid {
    grid-template-columns: 1fr !important;
  }

  .comparison-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .primary-btn,
  .hero-actions .secondary-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal],
  [data-stagger] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  [data-depth] {
    transform: none !important;
  }
}
