:root {
  color-scheme: dark;
  --bg: #030303;
  --bg-alt: #0a0a0a;
  --card: rgba(18, 18, 18, 0.65);
  --card-solid: #111;
  --card-border: rgba(255, 255, 255, 0.06);
  --text: #f6f6f6;
  --text-muted: rgba(235, 235, 235, 0.7);
  --accent: #5c6cff;
  --accent-2: #2bd4ff;
  --accent-3: #a855f7;
  --accent-4: #22c55e;
  --font-base: "Poppins", "Segoe UI", sans-serif;
  --font-heading: "Space Grotesk", "Poppins", sans-serif;
  --shadow-soft: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-strong: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-base);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  /* Mobile optimizations */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Prevent horizontal scroll on mobile */
  width: 100%;
  max-width: 100vw;
}

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

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.1' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  z-index: 1;
  opacity: 0.4;
  mix-blend-mode: screen;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(3, 3, 3, 0.8);
  z-index: 9;
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  position: relative;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav a:hover,
.nav a:focus {
  color: var(--text);
}

.nav a:hover::after,
.nav a:focus::after {
  width: 100%;
  left: 0;
}

.nav__cta {
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 35px -15px rgba(92, 108, 255, 0.8);
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px rgba(43, 212, 255, 0.85);
}

.hero {
  padding: 4rem 2rem 2rem;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  display: flex;
  align-items: center;
  /* Mobile optimizations */
  padding-left: max(2rem, env(safe-area-inset-left));
  padding-right: max(2rem, env(safe-area-inset-right));
  padding-top: max(4rem, env(safe-area-inset-top));
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

.hero__glow {
  position: absolute;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(92, 108, 255, 0.45), rgba(3, 3, 3, 0));
  filter: blur(60px);
  opacity: 0.7;
  animation: pulse 14s ease-in-out infinite;
  z-index: 0;
}

.hero__glow--left {
  top: -20%;
  left: -15%;
}

.hero__glow--right {
  bottom: -25%;
  right: -20%;
  animation-delay: 4s;
  background: radial-gradient(circle, rgba(43, 212, 255, 0.4), rgba(3, 3, 3, 0));
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  position: relative;
  z-index: 2;
  width: 100%;
  /* Mobile optimizations */
  padding: 0 1rem;
}

.hero__content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.hero__content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.hero__eyebrow,
.section-heading__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.4rem;
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.waitlist-form input {
  flex: 1 1 240px;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease;
  /* Mobile optimizations */
  min-height: 44px; /* iOS touch target minimum */
  -webkit-appearance: none;
  appearance: none;
  border-radius: 999px;
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--accent-2);
  background: rgba(255, 255, 255, 0.08);
}

.waitlist-form button {
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 18px 35px -20px rgba(92, 108, 255, 0.8);
  /* Mobile optimizations */
  min-height: 44px; /* iOS touch target minimum */
  min-width: 44px;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.waitlist-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 40px -20px rgba(43, 212, 255, 0.85);
}

.waitlist-success {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  color: var(--accent-2);
  font-weight: 500;
}

.waitlist-success.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.hero__meta span {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
}

.hero__meta small {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
}

.floating-card {
  width: min(360px, 100%);
  background: var(--card);
  border-radius: 24px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  backdrop-filter: blur(22px);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  transform-style: preserve-3d;
  animation: float 6.5s ease-in-out infinite;
}

.floating-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-4);
  box-shadow: 0 0 12px var(--accent-4);
}

.floating-card__body {
  display: grid;
  gap: 1.8rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.timeline__title {
  color: var(--text-muted);
}

.timeline__tag {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.timeline__tag--active {
  background: rgba(92, 108, 255, 0.18);
  color: var(--accent);
}

.timeline__tag--muted {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.floating-chart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.floating-chart__ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 6px solid rgba(92, 108, 255, 0.3);
  border-top-color: var(--accent-2);
  animation: spin 8s linear infinite;
}

.floating-chart__value {
  display: block;
  font-size: 2.2rem;
  font-weight: 600;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.6;
  animation: float 12s ease-in-out infinite;
}

.orb--one {
  width: 180px;
  height: 180px;
  background: rgba(92, 108, 255, 0.5);
  top: 8%;
  right: 18%;
  animation-delay: 2s;
}

.orb--two {
  width: 140px;
  height: 140px;
  background: rgba(43, 212, 255, 0.45);
  bottom: 12%;
  left: 16%;
  animation-delay: 4s;
}

.orb--three {
  width: 110px;
  height: 110px;
  background: rgba(168, 85, 247, 0.4);
  bottom: 30%;
  right: 6%;
  animation-delay: 6s;
}

.metrics {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 2rem 2rem 4rem;
}

.metrics__item {
  background: var(--card);
  border-radius: 16px;
  padding: 1.6rem;
  text-align: center;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

.metrics__item span {
  display: block;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.metrics__item small {
  color: var(--text-muted);
}

.features {
  padding: 4rem 2rem 6rem;
  background: linear-gradient(180deg, rgba(9, 9, 9, 0) 0%, rgba(11, 11, 11, 0.8) 100%);
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-card ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.feature-card li {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  gap: 0.6rem;
}

.feature-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 0.4rem;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  flex-shrink: 0;
}

.insights {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}

.insights__content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.insights__highlights {
  display: grid;
  gap: 1.5rem;
}

.insights__highlights span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.insights-card {
  background: var(--card);
  border-radius: 24px;
  border: 1px solid var(--card-border);
  padding: 2rem;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.insights-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.insights-card__status {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(92, 108, 255, 0.18);
  color: var(--accent);
}

.insights-card__body {
  margin-top: 1.8rem;
  display: grid;
  gap: 2rem;
}

.chart {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
}

.chart svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.chart__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 12;
}

.chart__progress {
  fill: none;
  stroke: url(#grad);
  stroke-linecap: round;
  stroke-width: 12;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 80;
}

.chart__value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 600;
}

.chart-legend {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: var(--text-muted);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.4rem;
}

.dot--blue {
  background: var(--accent);
}

.dot--purple {
  background: var(--accent-3);
}

.dot--teal {
  background: var(--accent-2);
}

.chart-bars {
  display: grid;
  gap: 1.4rem;
}

.chart-bars__item span {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.bar span {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: inherit;
}

.logos {
  text-align: center;
  padding: 3rem 2rem 4rem;
  color: var(--text-muted);
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  font-family: var(--font-heading);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  opacity: 0.7;
}

.cta {
  padding: 5rem 2rem 6rem;
  position: relative;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(92, 108, 255, 0.32), rgba(3, 3, 3, 0));
  opacity: 0.8;
}

.cta__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  background: var(--card);
  padding: 3rem;
  border-radius: 30px;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-strong);
}

.waitlist-form--inline {
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.waitlist-form--inline input {
  background: transparent;
  border: none;
}

.waitlist-form--inline button {
  min-width: 160px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 2rem 2rem;
  background: #050505;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.site-footer__inner p {
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.5;
}

.site-footer__links {
  display: flex;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer__legal {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

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

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, -10px, 0);
  }
  50% {
    transform: translate3d(0, 12px, 0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Tablet and small desktop */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero__visual {
    order: -1;
  }
}

/* Mobile landscape and portrait */
@media (max-width: 768px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1rem;
  }

  .nav__cta {
    order: 2;
  }

  .hero {
    padding: 1rem;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero__inner {
    gap: 2rem;
    padding: 0;
  }

  .hero__content h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    line-height: 1.2;
  }

  .hero__content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero__meta {
    gap: 1rem;
    justify-content: center;
  }

  .hero__meta span {
    font-size: 1.1rem;
  }

  .waitlist-form {
    flex-direction: column;
    gap: 0.8rem;
  }

  .waitlist-form input,
  .waitlist-form button {
    width: 100%;
    min-height: 48px; /* Larger touch targets on mobile */
  }

  .floating-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .hero {
    padding: 0.5rem;
  }

  .hero__content h1 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  .hero__content p {
    font-size: 0.9rem;
  }

  .hero__meta {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  .site-header__inner {
    padding: 0.8rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav {
    font-size: 0.9rem;
  }
}

/* iOS Safari specific optimizations */
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: -webkit-fill-available;
  }
  
  .waitlist-form input {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .waitlist-form button {
    -webkit-appearance: none;
    appearance: none;
  }
}

/* Android Chrome optimizations */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .hero {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
  }
}

@media (max-width: 540px) {
  .waitlist-form--inline {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
  }

  .waitlist-form--inline button {
    width: 100%;
  }
}

