:root {
  --bg: #060b14;
  --bg-elevated: #0c1422;
  --text: #f4f7fb;
  --muted: #8b9bb0;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.14);
  --cyan-glow: rgba(34, 211, 238, 0.35);
  --amber: #f59e0b;
  --green: #34d399;
  --border: rgba(255, 255, 255, 0.08);
  --max: 1080px;
  --font-display: "Instrument Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  position: fixed;
  width: min(70vw, 640px);
  height: min(70vw, 640px);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
}

.glow-1 {
  top: -18%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cyan);
}

.glow-2 {
  bottom: 10%;
  right: -10%;
  background: #0ea5e9;
  opacity: 0.12;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--cyan);
  color: #061018 !important;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-cta:hover {
  filter: brightness(1.08);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 0.2s ease;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before {
  top: -5px;
}

.menu-btn span::after {
  top: 5px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: var(--muted);
  padding: 0.35rem 0;
}

.mobile-nav .nav-cta {
  width: fit-content;
  margin-top: 0.25rem;
}

/* Hero */
.hero {
  min-height: calc(100svh - 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 0 4rem;
  text-align: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #fff 20%, #a5f3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 18ch;
  margin: 0 auto 1rem;
}

.hero-lead {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  max-width: 38rem;
  margin: 0 auto 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--cyan);
  color: #061018;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: var(--cyan-soft);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-label {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-lead {
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

/* Products — interaction containers, not decorative cards */
.products-grid {
  display: grid;
  gap: 1.25rem;
}

.product {
  display: block;
  padding: 1.75rem 1.5rem;
  border-top: 1px solid var(--border);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.product:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(34, 211, 238, 0.35);
}

.product-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.product h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.product p {
  color: var(--muted);
  margin-bottom: 1.25rem;
  max-width: 40rem;
}

.product-features {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.product-features li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text);
  font-size: 0.95rem;
}

.product-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cyan);
  font-weight: 600;
}

.product:hover .product-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product--hub .product-features li::before {
  background: #a78bfa;
}

.product--hub .product-link {
  color: #c4b5fd;
}

.product--pro .product-features li::before {
  background: var(--green);
}

.product--pro .product-link {
  color: #6ee7b7;
}

/* About */
.about {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-copy {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42rem;
  line-height: 1.7;
}

/* Final CTA */
.final-cta {
  text-align: center;
}

.final-cta .section-title {
  max-width: 18ch;
  margin-inline: auto;
}

.final-cta .section-lead {
  margin-inline: auto;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 28rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-brand,
.hero h1,
.hero-lead,
.hero .cta-row {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s ease forwards;
}

.hero h1 {
  animation-delay: 0.12s;
}

.hero-lead {
  animation-delay: 0.22s;
}

.hero .cta-row {
  animation-delay: 0.34s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-brand,
  .hero h1,
  .hero-lead,
  .hero .cta-row {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .mobile-nav,
  .mobile-nav.open {
    display: none;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .product {
    padding: 2rem 1.75rem 2rem 0;
  }

  .product + .product {
    padding-left: 1.75rem;
    border-left: 1px solid var(--border);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
    justify-content: space-between;
  }

  .footer-links {
    justify-content: flex-end;
  }
}

/* ——— Product landing pages ——— */
.page-product .hero {
  min-height: auto;
  padding: 3rem 0 3.5rem;
  text-align: left;
}

.page-product .hero-brand {
  font-size: clamp(2.2rem, 7vw, 3.75rem);
  margin-bottom: 0.75rem;
  text-align: left;
}

.page-product .hero h1 {
  max-width: 18ch;
  margin: 0 0 1rem;
  text-align: left;
}

.page-product .hero-lead {
  margin: 0 0 1.75rem;
  text-align: left;
}

.page-product .cta-row {
  justify-content: flex-start;
}

.page-hub .hero-brand {
  background: linear-gradient(180deg, #fff 15%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.page-hub .section-label,
.page-hub .btn-primary {
  /* hub accent via utility */
}

.page-hub .btn-primary {
  background: #a78bfa;
  color: #12081f;
}

.page-hub .nav-cta {
  background: #a78bfa;
  color: #12081f !important;
}

.page-hub .glow-1 {
  background: #8b5cf6;
}

.page-pro .hero-brand {
  background: linear-gradient(180deg, #fff 15%, #6ee7b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.page-pro .btn-primary {
  background: #34d399;
  color: #052e1c;
}

.page-pro .nav-cta {
  background: #34d399;
  color: #052e1c !important;
}

.page-pro .glow-1 {
  background: #10b981;
}

.page-pro .section-label {
  color: #6ee7b7;
}

.page-hub .section-label {
  color: #c4b5fd;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.page-hub .badge {
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.35);
}

.page-pro .badge {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.35);
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.feature-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

.pricing-grid {
  display: grid;
  gap: 1rem;
}

.price-plan {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.price-plan.is-featured {
  border-color: rgba(34, 211, 238, 0.35);
}

.page-hub .price-plan.is-featured {
  border-color: rgba(167, 139, 250, 0.4);
}

.page-pro .price-plan.is-featured {
  border-color: rgba(52, 211, 153, 0.4);
}

.price-plan h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0.5rem 0;
}

.price-amount span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.price-plan ul {
  list-style: none;
  margin: 1rem 0 1.25rem;
  display: grid;
  gap: 0.4rem;
}

.price-plan li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.price-plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.page-hub .price-plan li::before {
  background: #a78bfa;
}

.page-pro .price-plan li::before {
  background: #34d399;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.store-btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.store-btn small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.crumb a:hover {
  color: var(--text);
}

.web-app-banner {
  margin-top: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.web-app-banner p {
  color: var(--muted);
  max-width: 28rem;
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .price-plan {
    padding: 0;
    border-top: none;
  }

  .price-plan + .price-plan {
    border-left: 1px solid var(--border);
    padding-left: 1.5rem;
  }
}
