:root {
  --bg: #050506;
  --bg-soft: #0a0a0b;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #fafafa;
  --muted: #a3a3a3;
  --soft: #d4d4d4;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --amber-400: #fbbf24;
  --sky-400: #38bdf8;
  --rose-400: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-sm: 0.75rem;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Faint grid, matching the dashboard's dark base rather than a blue-tinted one. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

/* Ambient aurora blobs - same emerald/amber/sky palette and drift animation as
   the dashboard's AmbientBackground, so the marketing site and the app feel
   like one product. Real elements (not a pseudo-element gradient) so each can
   drift independently; injected once, fixed to the viewport, behind everything. */
.ambient-blob {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(64px);
}

.ambient-blob-a {
  top: -8rem;
  left: -6rem;
  width: 26rem;
  height: 26rem;
  background: rgba(16, 185, 129, 0.22);
  animation: blob-drift-a 22s ease-in-out infinite;
}

.ambient-blob-b {
  top: 10rem;
  right: -4rem;
  width: 26rem;
  height: 26rem;
  background: rgba(251, 191, 36, 0.12);
  animation: blob-drift-b 26s ease-in-out infinite;
}

.ambient-blob-c {
  bottom: -4rem;
  left: 33%;
  width: 26rem;
  height: 26rem;
  background: rgba(56, 189, 248, 0.12);
  animation: blob-drift-c 30s ease-in-out infinite;
}

@keyframes blob-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3vw, 4vh) scale(1.08); }
  66% { transform: translate(-2vw, 2vh) scale(0.96); }
}
@keyframes blob-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-4vw, -2vh) scale(0.94); }
  66% { transform: translate(2vw, 3vh) scale(1.06); }
}
@keyframes blob-drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3vw, -3vh) scale(1.1); }
}

@media (max-width: 900px) {
  .ambient-blob-c {
    display: none;
  }
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  padding: 0.6rem 0.8rem;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  left: 50%;
  top: 1rem;
  z-index: 10;
  width: min(calc(100% - 2rem), 1120px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.brand,
.nav-links,
.site-footer nav,
.hero-actions,
.hero-status {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  text-decoration: none;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-left: 0.35rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: contain;
}

.nav-links {
  gap: 0.2rem;
}

.nav-links a {
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  background: var(--surface-strong);
  color: var(--text);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: #052e1f;
  background: var(--emerald-400);
  transition: transform 180ms ease, filter 180ms ease;
}

.header-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 8rem max(1.25rem, calc((100vw - 1120px) / 2)) 5.5rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.5), transparent);
}

.hero-mark {
  position: absolute;
  right: max(-7rem, calc((100vw - 1120px) / 2 - 6rem));
  top: 50%;
  width: min(68vw, 780px);
  height: auto;
  transform: translateY(-48%);
  opacity: 0.14;
  filter: drop-shadow(0 0 90px rgba(52, 211, 153, 0.3));
  user-select: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(5, 5, 6, 0.05), rgba(5, 5, 6, 0.94) 65%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 140px);
}

.hero-content {
  position: relative;
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.2);
  background: rgba(52, 211, 153, 0.08);
  color: var(--emerald-400);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
}

h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(3.4rem, 10vw, 6.8rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--emerald-300), var(--emerald-400) 60%, var(--emerald-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 2.25rem;
  color: var(--soft);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.65;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 1.6rem;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 180ms ease, filter 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #052e1f;
  background: var(--emerald-400);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.32);
}

.button-primary:hover {
  filter: brightness(1.08);
}

.button-secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.button-secondary:hover {
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.hero-status {
  position: absolute;
  left: max(1.25rem, calc((100vw - 1120px) / 2));
  bottom: 1.6rem;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--emerald-400);
  box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.14);
}

.section {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), 1120px);
  margin: 0 auto;
  padding: 5.5rem 0;
}

.section-intro {
  padding-top: 3rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.section-heading.compact {
  display: block;
  max-width: 720px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

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

.category-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  transition: transform 220ms var(--ease), border-color 220ms ease, background 220ms ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.35);
  background: var(--surface-strong);
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--emerald-400);
  font-size: 1.1rem;
}

.category-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.category-card p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 820px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--emerald-400);
  font-size: 1.1rem;
  font-weight: 400;
  transition: transform 220ms ease, background 220ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--surface-strong);
}

.faq-item p {
  margin: 0 1.35rem 1.25rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
  max-width: 640px;
}

.link-section {
  padding-bottom: 6.5rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.quick-link {
  position: relative;
  min-height: 150px;
  padding: 1.1rem;
  text-decoration: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.quick-link::after {
  content: "Open →";
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  color: var(--emerald-400);
  font-size: 0.82rem;
  font-weight: 600;
}

.quick-link:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.4);
  background: var(--surface-strong);
}

.quick-link span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.quick-link strong {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), 1120px);
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  gap: 1.25rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-mark {
    right: -38vw;
    width: 115vw;
    opacity: 0.1;
  }

  .section-heading,
  .category-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .category-card,
  .quick-link {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: calc(100% - 1rem);
    top: 0.5rem;
  }

  .brand span {
    display: none;
  }

  .header-action {
    padding-inline: 0.75rem;
  }

  .hero {
    min-height: 90vh;
    padding-top: 7rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .button {
    width: 100%;
  }

  .faq-item summary {
    font-size: 0.94rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Ambient blobs are purely decorative background, not motion the user reads
   or interacts with - kept animating even under reduced-motion, matching the
   dashboard's AmbientBackground. */
@media (prefers-reduced-motion: reduce) {
  *:not(.ambient-blob-a):not(.ambient-blob-b):not(.ambient-blob-c),
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
