:root {
  color-scheme: dark;
  --bg: #090b14;
  --surface: rgba(16, 22, 42, 0.72);
  --border: rgba(160, 182, 255, 0.18);
  --text: #f5f7ff;
  --muted: #a4b0cf;
  --accent: #7c5cff;
  --accent-2: #42d6c8;
  --shadow-lg: 0 30px 80px rgba(2, 6, 23, 0.56);
  --shadow-md: 0 18px 48px rgba(2, 6, 23, 0.4);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --space-3: 1rem;
  --space-5: 2rem;
  --space-7: 4.5rem;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-width: 320px;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(124, 92, 255, 0.22), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(66, 214, 200, 0.16), transparent 22%),
    linear-gradient(180deg, #080a12 0%, #0a1020 38%, #090b14 100%);
  color: var(--text);
  line-height: 1.55;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background: radial-gradient(circle at center, transparent 40%, rgba(3, 7, 18, 0.72) 100%);
}

body::after {
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 110px 110px;
}

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(95, 234, 212, 0.9);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: #ffffff;
  color: #050816;
  font-weight: 700;
}

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

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

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

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 10, 18, 0.66);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 78px;
  padding: 0.85rem 0;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(66, 214, 200, 0.9), rgba(124, 92, 255, 0.95));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 30px rgba(124, 92, 255, 0.45);
}

.brand-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.brand-text strong,
h1,
h2,
h3,
.eyebrow,
.story-step {
  font-family: "Space Grotesk", sans-serif;
}

.brand-text strong {
  font-size: 1.05rem;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.3;
  max-width: 14rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

.site-nav a {
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  width: 2.9rem;
  height: 2.9rem;
  align-items: center;
  justify-content: center;
  gap: 0.26rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-login {
  border: 1px solid rgba(127, 179, 255, 0.24);
  background: rgba(127, 179, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 2rem 0 4rem;
}

#particleCanvas,
.hero-noise {
  position: absolute;
  inset: 0;
}

#particleCanvas {
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-noise {
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(66, 214, 200, 0.18) 0, transparent 20%),
    radial-gradient(circle at 82% 18%, rgba(127, 179, 255, 0.24) 0, transparent 22%),
    radial-gradient(circle at 50% 72%, rgba(124, 92, 255, 0.18) 0, transparent 26%),
    linear-gradient(118deg, rgba(73, 196, 255, 0.08) 0%, rgba(73, 196, 255, 0) 26%),
    linear-gradient(244deg, rgba(95, 234, 212, 0.08) 0%, rgba(95, 234, 212, 0) 24%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.eyebrow,
.story-step {
  margin: 0 0 0.8rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 10vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-text,
.section-heading p,
.story-copy p,
.final-cta-panel p,
.testimonial-card p {
  color: var(--muted);
  font-size: 1rem;
}

.hero-text {
  max-width: 34rem;
  margin: 1.1rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #e8eeff;
  font-size: 0.94rem;
}

.hero-proof span {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: radial-gradient(circle, #8ef7ef 10%, #55c7b9 100%);
  box-shadow: 0 0 18px rgba(95, 234, 212, 0.42);
}

.cta-primary,
.cta-secondary,
.cookie-actions button,
#toTop button {
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
}

.cta-primary,
.cta-secondary {
  padding: 0.95rem 1.35rem;
  font-weight: 700;
}

.cta-primary {
  color: #050816;
  background: linear-gradient(135deg, #8ef7ef 0%, #8e7dff 100%);
  box-shadow: 0 10px 40px rgba(126, 94, 255, 0.35);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.cta-primary:hover,
.cta-secondary:hover,
.feature-card:hover,
#toTop button:hover,
.cookie-actions button:hover {
  transform: translateY(-2px);
}

.cta-primary:hover,
.cta-primary:focus-visible {
  box-shadow: 0 18px 50px rgba(126, 94, 255, 0.44);
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
  border-color: rgba(95, 234, 212, 0.45);
  box-shadow: 0 12px 36px rgba(95, 234, 212, 0.16);
}

.hero-metrics {
  display: grid;
  gap: 0.8rem;
  margin: 1.7rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-metrics li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #d3dcf6;
}

.hero-metrics span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: radial-gradient(circle, #8ef7ef 20%, #8e7dff 100%);
  box-shadow: 0 0 20px rgba(95, 234, 212, 0.5);
}

.hero-image {
  position: relative;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
}

.hero-image::before,
.final-cta-panel::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.28), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(74svh, 38rem);
  object-fit: contain;
  border-radius: calc(var(--radius-xl) - 0.5rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card h3,
.story-copy h2,
.section-heading h2,
.final-cta-panel h2 {
  display: block;
  margin-bottom: 0.3rem;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--muted);
  font-size: 0.9rem;
}

.story-section,
.authority-section,
.live-moment,
.social-proof,
.final-cta {
  position: relative;
  padding: var(--space-7) 0;
}

.story-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.story-copy h2,
.section-heading h2,
.final-cta-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.story-copy p {
  margin: 1rem 0 0;
  max-width: 34rem;
}

.story-points {
  margin: 1.2rem 0 0;
  padding-left: 1.15rem;
  color: #d8e0f4;
}

.story-points li + li {
  margin-top: 0.7rem;
}

.story-visual {
  display: grid;
  justify-items: center;
}

.desktop-only {
  display: none;
}

.mobile-only {
  display: flex;
}

.story-image {
  width: min(100%, 23rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: calc(var(--radius-xl) + 0.5rem);
  box-shadow: var(--shadow-lg);
}

.story-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(70svh, 34rem);
  object-fit: contain;
  border-radius: calc(var(--radius-xl) - 0.5rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.problem-panel {
  width: min(100%, 27rem);
  padding: 1.4rem;
  border-radius: var(--radius-xl);
}

.problem-kicker,
.micro-note {
  margin: 0 0 0.8rem;
  color: var(--accent-2);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.problem-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.problem-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.problem-list span {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dde4fb;
}

.phone-mockup {
  width: min(100%, 23rem);
  padding: 1rem;
  border-radius: calc(var(--radius-xl) + 0.5rem);
}

.phone-frame {
  position: relative;
  padding: 0.85rem;
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.9), rgba(13, 18, 34, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.phone-notch {
  width: 5rem;
  height: 0.55rem;
  margin: 0 auto 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.screen-content {
  min-height: 26rem;
  border-radius: 1.5rem;
  padding: 1rem;
  background:
    radial-gradient(circle at top, rgba(127, 179, 255, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(18, 25, 48, 0.95), rgba(7, 10, 22, 0.94));
}

.screen-header {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.screen-header span,
.queue-row span,
.insight-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.mini-search,
.track-chip,
.queue-row,
.queue-actions span,
.chart-card,
.insight-row {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.mini-search {
  padding: 0.8rem 0.95rem;
  color: #8190b4;
}

.track-chip {
  margin-top: 0.8rem;
  padding: 0.9rem 1rem;
}

.track-chip.active {
  background: linear-gradient(135deg, rgba(95, 234, 212, 0.18), rgba(124, 92, 255, 0.2));
  border-color: rgba(95, 234, 212, 0.32);
}

.screen-footer {
  margin-top: 1.15rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: #8ef7ef;
}

.screen-footer svg,
.chart-card svg {
  display: block;
  width: 100%;
  height: auto;
}

.queue-row,
.insight-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  margin-top: 0.8rem;
}

.queue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.queue-actions span {
  padding: 0.7rem 0.9rem;
}

.chart-card {
  margin-top: 0.7rem;
  padding: 0.9rem;
}

.feature-cloud {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.authority-panel {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-radius: var(--radius-xl);
}

.authority-metrics {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.authority-metrics article {
  padding: 1.1rem 1.15rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.authority-metrics strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
}

.authority-metrics span {
  color: var(--muted);
}

.feature-card,
.testimonial-card,
.final-cta-panel {
  position: relative;
  border-radius: var(--radius-lg);
}

.feature-card {
  padding: 1.25rem;
}

.feature-card p,
.testimonial-card strong,
.footer-bar p,
.cookie-copy p {
  color: var(--muted);
}

.feature-card:hover {
  box-shadow: 0 24px 54px rgba(124, 92, 255, 0.22);
  border-color: rgba(95, 234, 212, 0.32);
}

.testimonial-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-card {
  padding: 1.3rem;
}

.testimonial-card p {
  margin-top: 0;
}

.final-cta {
  padding-bottom: 5.5rem;
}

.final-cta-panel {
  overflow: hidden;
  padding: clamp(1.6rem, 4vw, 3rem);
  background:
    radial-gradient(circle at top left, rgba(95, 234, 212, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(124, 92, 255, 0.26), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
}

.micro-note {
  margin-top: 1rem;
}

.site-footer {
  padding: 0 0 2.5rem;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.footer-links a {
  color: #dbe4ff;
}

.cookie-toast {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.cookie-toast[hidden] {
  display: none;
}

.cookie-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  max-width: 54rem;
  margin: 0 auto;
  padding: 1rem 1.1rem;
  border-radius: 1.4rem;
}

.cookie-copy strong {
  display: block;
  margin-bottom: 0.25rem;
}

.cookie-copy p {
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-actions button {
  padding: 0.8rem 1.05rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.cookie-actions .accept {
  color: #050816;
  background: linear-gradient(135deg, #8ef7ef 0%, #8e7dff 100%);
  border-color: transparent;
}

#toTop {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 85;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

#toTop.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#toTop button {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  color: var(--text);
  background: rgba(12, 17, 32, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-md);
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@media (min-width: 700px) {
  .desktop-only {
    display: grid !important;
  }

  .mobile-only {
    display: none !important;
  }

  .hero-grid,
  .story-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  }

  .story-section.alt .story-grid {
    grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  }

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

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

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

@media (min-width: 1040px) {
  .hero {
    padding-top: 3rem;
  }

  .hero-image img {
    max-height: min(80svh, 42rem);
  }

  .story-image img {
    max-height: min(76svh, 38rem);
  }

  .story-section {
    padding: 6rem 0;
  }

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

  .story-section.alt .story-copy {
    order: 2;
  }

  .story-section.alt .story-visual {
    order: 1;
  }
}

@media (max-width: 699px) {
  .mobile-only {
    display: flex;
    width: min(100%, calc(100vw - 2.5rem));
    margin: 0.9rem auto 1.25rem;
  }

  .mobile-only.story-image {
    padding: 0.7rem;
  }

  .mobile-only.story-image img {
    width: 100%;
    max-width: 100%;
    max-height: none;
  }

  .header-bar {
    min-height: 70px;
    padding: 0.7rem 0;
  }

  .brand {
    gap: 0.7rem;
    max-width: calc(100% - 3.7rem);
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .brand-text strong {
    font-size: 0.98rem;
  }

  .brand-text span {
    font-size: 0.64rem;
    max-width: 8.8rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    left: auto;
    width: min(14rem, calc(100vw - 2rem));
    padding: 0.65rem;
    gap: 0.3rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 15, 29, 0.94);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-0.4rem);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    width: 100%;
    padding: 0.78rem 0.85rem;
    font-size: 0.95rem;
    text-align: left;
  }

  .scroll-hint {
    bottom: 1rem;
    width: max-content;
    max-width: calc(100% - 2rem);
    text-align: center;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions button {
    flex: 1 1 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .site-nav {
    transition: none !important;
  }

  #particleCanvas {
    opacity: 0.35;
  }
}
