:root {
  --bg: #06070b;
  --bg-deep: #0a1019;
  --surface: rgba(14, 18, 29, 0.72);
  --surface-strong: rgba(15, 22, 36, 0.9);
  --surface-glass: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f5f1ea;
  --muted: #b6b0a8;
  --gold: #ffb86c;
  --cyan: #6ae5ff;
  --rose: #ff7b93;
  --violet: #987cff;
  --mint: #63f1c7;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  --radius: 24px;
  --ease: 240ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
  font-family: "Manrope", "Inter", sans-serif;
  background:
    linear-gradient(180deg, rgba(4, 6, 10, 0.86), rgba(6, 8, 12, 0.92)),
    url("/assets/brand-hero-4k.jpg") center center / cover fixed no-repeat;
}

body[data-page="mailguard"] {
  background:
    linear-gradient(180deg, rgba(4, 6, 10, 0.78), rgba(6, 8, 12, 0.92)),
    url("/assets/mailguard-hero-4k.jpg") center center / cover fixed no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 184, 108, 0.12), transparent 18%),
    radial-gradient(circle at 84% 14%, rgba(106, 229, 255, 0.12), transparent 22%),
    radial-gradient(circle at 62% 86%, rgba(255, 123, 147, 0.08), transparent 20%);
  animation: ambientPulse 18s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 184, 108, 0.16), transparent 14%),
    radial-gradient(circle at 70% 50%, rgba(106, 229, 255, 0.16), transparent 16%),
    radial-gradient(circle at 40% 80%, rgba(152, 124, 255, 0.14), transparent 16%);
  filter: blur(36px);
  opacity: 0.36;
  animation: auroraDrift 26s linear infinite;
}

.bg-motes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-motes span {
  position: absolute;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  animation: moteFloat linear infinite;
}

@keyframes ambientPulse {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.74; transform: scale(1.03); }
}

@keyframes auroraDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-2%, 1.5%, 0) scale(1.08); }
  100% { transform: translate3d(2%, -1.5%, 0) scale(1); }
}

@keyframes moteFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(0.7);
    opacity: 0;
  }
  8% {
    opacity: 0.55;
  }
  100% {
    transform: translate3d(18px, -120vh, 0) scale(1.15);
    opacity: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1260px, 92vw);
  margin-inline: auto;
}

.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 10, 14, 0.52);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar {
  width: min(1320px, 95vw);
  margin-inline: auto;
  padding: 14px 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 30px rgba(255, 184, 108, 0.14);
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 600;
  transition: all var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.topbar-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-btn {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
  padding: 12px 17px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), background var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
}

.btn.primary {
  border-color: rgba(255, 214, 172, 0.38);
  background: linear-gradient(135deg, rgba(255, 184, 108, 0.9), rgba(255, 123, 147, 0.88), rgba(152, 124, 255, 0.88));
  color: #fffaf4;
  box-shadow: 0 18px 36px rgba(255, 123, 147, 0.22);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  padding: 94px 0 34px;
}

.hero-home {
  padding-top: 108px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 22px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: #ffcf99;
  font-family: "Syne", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
strong,
.timeline-tag,
.core-badge {
  font-family: "Syne", "Space Grotesk", sans-serif;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.subtext,
.section-sub,
.card p,
.product-card p,
.download-note,
.footer-copy,
.support-note,
.signal-card p,
.panel-stack-card span,
.mailguard-preview p,
.preview-card p,
.cta-band p,
.timeline-item p {
  color: var(--muted);
  line-height: 1.74;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #f2dfc8;
  font-size: 0.82rem;
}

.hero-stage,
.feature-panel,
.mailguard-preview,
.stats-shell,
.product-card,
.card,
.download-card,
.cta-band,
.support-note {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(17, 21, 30, 0.82), rgba(9, 12, 19, 0.88));
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-stage {
  min-height: 540px;
  background:
    linear-gradient(180deg, rgba(16, 20, 31, 0.78), rgba(7, 10, 16, 0.86)),
    url("/assets/brand-hero-4k.jpg") center center / cover no-repeat;
}

.halo {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
}

.halo-a {
  width: 260px;
  height: 260px;
  left: 8%;
  top: 8%;
  background: rgba(255, 184, 108, 0.18);
}

.halo-b {
  width: 220px;
  height: 220px;
  right: 12%;
  bottom: 12%;
  background: rgba(106, 229, 255, 0.16);
}

.signal-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.signal-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.ring-1 { width: 230px; height: 230px; box-shadow: 0 0 0 40px rgba(255, 184, 108, 0.08); }
.ring-2 { width: 320px; height: 320px; border-color: rgba(106, 229, 255, 0.18); }
.ring-3 { width: 420px; height: 420px; border-color: rgba(255, 123, 147, 0.12); }

.core-badge {
  position: relative;
  z-index: 2;
  padding: 18px 22px;
  border-radius: 20px;
  letter-spacing: 0.22em;
  background: rgba(11, 15, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.signal-card {
  position: absolute;
  width: 242px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 18, 28, 0.78);
  backdrop-filter: blur(12px);
}

.signal-card span,
.panel-stack-card span {
  display: block;
  color: #f2d2ad;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.signal-card strong,
.panel-stack-card strong {
  display: block;
  margin-top: 9px;
  font-size: 1.06rem;
}

.signal-card p {
  margin: 10px 0 0;
  font-size: 0.93rem;
}

.signal-card-a { left: 22px; top: 24px; }
.signal-card-b { right: 22px; bottom: 24px; }

section {
  padding: 70px 0;
}

.split-head {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: end;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.grid,
.product-grid,
.stats-row,
.download-grid {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

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

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

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

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

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

.product-card,
.card,
.download-card {
  padding: 22px;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  transform-style: preserve-3d;
}

.product-card:hover,
.card:hover,
.download-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.product-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  right: -30px;
  top: -50px;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.26;
}

.product-glow-blue { background: rgba(106, 229, 255, 0.52); }
.product-glow-cyan { background: rgba(255, 184, 108, 0.52); }

.kicker {
  color: #ffd1a0;
  font-family: "Syne", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.product-card h3,
.card h3,
.download-card h3 {
  margin: 12px 0 10px;
  font-size: 1.24rem;
}

.mini-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  color: #d9d2c7;
  font-size: 0.95rem;
}

.mini-list li {
  position: relative;
  padding-left: 18px;
}

.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--rose));
  box-shadow: 0 0 12px rgba(255, 184, 108, 0.26);
}

.stats-shell {
  padding: 16px;
}

.stats-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 20px 14px;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.stat-number {
  color: #fff6ee;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800;
  font-family: "Syne", sans-serif;
}

.stat-label {
  margin-top: 6px;
  color: #d7c8b8;
  font-size: 0.93rem;
}

.cta-band {
  padding: 24px;
  display: grid;
  grid-template-columns: 1.1fr auto;
  gap: 18px;
  align-items: center;
}

.cta-band strong {
  display: block;
  font-size: 1.36rem;
}

.feature-panel {
  padding: 22px;
}

.panel-stack {
  display: grid;
  gap: 14px;
}

.panel-stack-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.timeline {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.timeline-item strong {
  font-size: 1.03rem;
}

.step-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff9f3;
  background: linear-gradient(135deg, rgba(255, 184, 108, 0.84), rgba(255, 123, 147, 0.84));
  box-shadow: 0 0 20px rgba(255, 123, 147, 0.18);
}

.timeline-tag {
  color: #f7d7b7;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

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

.download-card .version {
  margin-top: 8px;
  color: #ffd1a0;
  font-family: "Syne", sans-serif;
  font-size: 0.92rem;
}

.download-card .meta {
  margin: 6px 0 0;
  color: var(--muted);
}

.download-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.mailguard-preview {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(16, 19, 27, 0.82), rgba(7, 10, 15, 0.9)),
    url("/assets/mailguard-hero-4k.jpg") center center / cover no-repeat;
}

.preview-window {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 15, 23, 0.84);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

.preview-topbar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.preview-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.preview-body {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.preview-chip {
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 184, 108, 0.12);
  border: 1px solid rgba(255, 184, 108, 0.22);
  color: #ffe0bc;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.preview-card-accent {
  border-color: rgba(106, 229, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.support-note {
  margin-top: 18px;
  padding: 18px;
}

.support-note strong {
  color: #ffd1a0;
}

.page-footer {
  margin-top: 40px;
  padding: 36px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 18px;
}

.footer-grid h4 {
  margin: 0 0 10px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-grid li,
.footer-grid a,
.footer-copy {
  color: #bfb6ab;
  font-size: 0.93rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 640ms ease, transform 640ms ease;
}

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

.page-wipe {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 184, 108, 0), rgba(255, 123, 147, 0.1) 50%, rgba(152, 124, 255, 0));
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  transition: opacity 220ms ease;
}

.page-wipe.active {
  opacity: 1;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
  animation: ripple 680ms ease-out forwards;
}

@keyframes ripple {
  from {
    width: 0;
    height: 0;
    opacity: 0.55;
  }
  to {
    width: 460px;
    height: 460px;
    opacity: 0;
  }
}

.mobile-only {
  display: none;
}

@media (max-width: 1120px) {
  .hero-grid,
  .split-head,
  .cta-band,
  .product-grid,
  .download-grid-wide,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .grid,
  .grid-3-large,
  .download-grid,
  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .menu-btn,
  .mobile-only {
    display: inline-flex;
  }

  .desktop-only {
    display: none;
  }

  .topbar {
    grid-template-columns: auto auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding-top: 66px;
  }

  .hero-stage {
    min-height: 420px;
  }

  .signal-card {
    width: auto;
    max-width: 240px;
  }

  .grid,
  .grid-2,
  .grid-3-large,
  .grid-4,
  .product-grid,
  .download-grid,
  .download-grid-wide,
  .stats-row,
  .footer-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .bg-motes {
    display: none;
  }
}
