/* Streamwise static landing — mirrors Next/Tailwind layout */

:root {
  --bg-deep: #07040c;
  --bg-mid: #12081c;
  --accent-start: #8b5cf6;
  --accent-end: #ec4899;
  --muted: #9ca3af;
  --font-sans: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: #f9fafb;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  background: var(--bg-deep);
  background-image: linear-gradient(
    to bottom,
    var(--bg-mid) 0%,
    var(--bg-deep) 45%,
    #000 100%
  );
}

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

/* Fixed hero glow */
.hero-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
  background-image: radial-gradient(
    ellipse 80% 50% at 50% -20%,
    rgba(139, 92, 246, 0.35),
    transparent
  );
}

.content {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  min-width: 0;
  /* Use almost full width on large screens — avoids huge empty side bands */
  max-width: min(100%, 112rem); /* 1792px — was 72rem / 1152px */
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
}

@media (min-width: 640px) {
  .content {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }
}

@media (min-width: 1024px) {
  .content {
    width: 85%;
    max-width: min(112rem, 100%);
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
}

.z-10 {
  position: relative;
  z-index: 10;
}

/* Header */
.site-header .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .site-header .content {
    padding-top: 2rem;
    padding-bottom: 1rem;
  }
}

.logo-link {
  display: inline-flex;
  border-radius: 0.5rem;
  background: transparent;
  outline: none;
}

.logo-link:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.8);
  outline-offset: 2px;
}

.brand {
  flex-shrink: 0;
  background: transparent;
  object-fit: contain;
  object-position: left;
}

.brand--md {
  height: 4.25rem;
  width: auto;
}

@media (min-width: 640px) {
  .brand--md {
    height: 5rem;
  }
}

@media (min-width: 768px) {
  .brand--md {
    height: 6rem;
  }
}

.brand--sm {
  height: 2.75rem;
  width: auto;
}

@media (min-width: 640px) {
  .brand--sm {
    height: 3rem;
  }
}

.social-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.social-row a {
  color: #a1a1aa;
  border-radius: 0.5rem;
  padding: 0.5rem;
  transition: color 0.15s ease;
}

.social-row a:hover {
  color: #fff;
}

.social-row a:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.9);
  outline-offset: 2px;
}

.social-row svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Hero grid */
.hero-section .content {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
  padding-top: 1rem;
  padding-bottom: 4rem;
}

@media (min-width: 640px) {
  .hero-section .content {
    gap: 3rem;
    padding-top: 1.5rem;
    padding-bottom: 5rem;
  }
}

@media (min-width: 1024px) {
  .hero-section .content {
    grid-template-columns: 1fr 1fr;
    column-gap: 5rem;
    row-gap: 3rem;
    padding-top: 1rem;
  }
}

@media (min-width: 1280px) {
  .hero-section .content {
    column-gap: 6.5rem;
    row-gap: 3.5rem;
  }
}

@media (min-width: 1536px) {
  .hero-section .content {
    column-gap: 8rem;
  }
}

.hero-copy {
  min-width: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.1);
  font-size: 0.75rem;
  font-weight: 500;
  color: #ddd6fe;
}

@media (min-width: 640px) {
  .pill {
    margin-bottom: 1rem;
  }
}

.pill-dot {
  width: 0.375rem;
  height: 0.375rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: #f472b6;
  box-shadow: 0 0 12px #f472b6;
}

.hero-title {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #fff;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
    line-height: 1.1;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.25rem;
  }
}

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(
    120deg,
    #c4b5fd 0%,
    #f472b6 45%,
    #a78bfa 100%
  );
}

.hero-relatable {
  margin-top: 1rem;
  max-width: 32rem;
  padding: 1rem 1.125rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 640px) {
  .hero-relatable {
    margin-top: 1.25rem;
    padding: 1.125rem 1.25rem;
  }
}

.hero-relatable__line {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #a1a1aa;
}

.hero-relatable__fix {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #d4d4d8;
}

.hero-relatable__fix strong {
  color: #fff;
  font-weight: 600;
}

.hero-lede {
  margin: 0.875rem 0 0;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.625;
  color: #a1a1aa;
}

@media (min-width: 640px) {
  .hero-lede {
    margin-top: 1rem;
    font-size: 1.125rem;
  }
}

.waitlist-proof {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 0.875rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #a1a1aa;
}

.waitlist-proof__count {
  font-weight: 600;
  color: #c4b5fd;
}

.waitlist-proof__avatars {
  display: flex;
  flex-shrink: 0;
}

.waitlist-proof__avatars span {
  width: 1.5rem;
  height: 1.5rem;
  margin-left: -0.375rem;
  border-radius: 9999px;
  border: 2px solid var(--bg-deep);
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.waitlist-proof__avatars span:first-child {
  margin-left: 0;
  background: linear-gradient(135deg, #a78bfa, #c084fc);
}

.waitlist-proof__avatars span:nth-child(2) {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.waitlist-proof__avatars span:nth-child(3) {
  background: linear-gradient(135deg, #d946ef, #ec4899);
}

.waitlist-proof--compact {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
}

@media (min-width: 640px) {
  .waitlist-proof--compact {
    font-size: 0.875rem;
  }
}

.hero-form-wrap {
  margin-top: 1.5rem;
  width: 100%;
  min-width: 0;
}

@media (min-width: 640px) {
  .hero-form-wrap {
    margin-top: 2rem;
  }
}

.form-hint {
  margin: 0.625rem 0 0;
  font-size: 0.75rem;
  line-height: 1.625;
  color: #71717a;
}

@media (min-width: 640px) {
  .form-hint {
    margin-top: 0.75rem;
  }
}

/* Waitlist form */
.waitlist-form {
  position: relative;
  width: 100%;
  max-width: 36rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.waitlist-pill {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

@media (min-width: 640px) {
  .waitlist-pill {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 9, 11, 0.55);
    padding: 0.25rem;
    padding-left: 1rem;
    box-shadow:
      0 10px 15px -3px rgba(0, 0, 0, 0.2),
      0 4px 6px -4px rgba(0, 0, 0, 0.2),
      inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  }
}

.waitlist-pill input[type="email"] {
  width: 100%;
  min-height: 3rem;
  font-size: 15px;
  color: #fff;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.waitlist-pill input[type="email"]::placeholder {
  color: #71717a;
}

.waitlist-pill input[type="email"] {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.875rem 1rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.waitlist-pill input[type="email"]:focus {
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.25);
}

@media (min-width: 640px) {
  .waitlist-pill input[type="email"] {
    min-height: 0;
    flex: 1;
    border: 0;
    background: transparent;
    padding: 0.625rem 0.75rem;
    box-shadow: none;
    border-radius: 0;
  }

  .waitlist-pill input[type="email"]:focus {
    box-shadow: none;
  }
}

.btn-gradient {
  min-height: 3rem;
  width: 100%;
  flex-shrink: 0;
  border: 0;
  border-radius: 1rem;
  padding: 0 1.25rem;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: #fff;
  cursor: pointer;
  background-image: linear-gradient(
    90deg,
    var(--accent-start),
    var(--accent-end)
  );
  box-shadow: 0 10px 15px -3px rgba(112, 26, 117, 0.2);
  transition:
    opacity 0.15s,
    transform 0.1s;
}

.btn-gradient:hover {
  opacity: 0.97;
}

.btn-gradient:active {
  transform: scale(0.99);
}

.btn-gradient:focus-visible {
  outline: 2px solid rgba(232, 121, 249, 0.8);
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .btn-gradient {
    min-height: 0;
    width: auto;
    border-radius: 9999px;
    padding: 0.625rem 2rem;
    font-size: 0.875rem;
    letter-spacing: normal;
  }

  .btn-gradient:focus-visible {
    outline-offset: 2px;
    outline-offset-color: var(--bg-deep);
  }
}

.waitlist-error {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: rgba(248, 113, 113, 0.95);
}

.waitlist-success {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: rgba(52, 211, 153, 0.95);
}

@media (min-width: 640px) {
  .waitlist-success {
    margin-top: 0.875rem;
  }
}

/* Phones */
.hero-visual {
  display: flex;
  width: 100%;
  min-width: 0;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-visual {
    justify-content: flex-end;
    padding-right: 0.5rem;
  }
}

.hero-phones {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: min(100%, 420px);
}

@media (min-width: 640px) {
  .hero-phones {
    max-width: 480px;
  }
}

@media (min-width: 1024px) {
  .hero-phones {
    margin-left: 0;
    margin-right: 0;
    max-width: 520px;
  }
}

.hero-phones__bloom {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 0;
  height: min(420px, 82vw);
  width: min(480px, 96vw);
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  background: linear-gradient(
    to top right,
    rgba(147, 51, 234, 0.35),
    rgba(236, 72, 153, 0.22),
    rgba(79, 70, 229, 0.28)
  );
  filter: blur(48px);
}

.hero-phones__watermark {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-phones__watermark-inner {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  display: flex;
  height: min(17.5rem, 58vw);
  width: min(100%, 22.5rem);
  max-width: calc(100% - 1rem);
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
}

@media (min-width: 640px) {
  .hero-phones__watermark-inner {
    margin-left: 1rem;
    margin-right: 1rem;
    height: 20rem;
    width: 26rem;
  }
}

@media (min-width: 768px) {
  .hero-phones__watermark-inner {
    height: 22rem;
    width: 28rem;
  }
}

@media (min-width: 1024px) {
  .hero-phones__watermark-inner {
    height: 26rem;
    width: 32rem;
  }
}

@media (min-width: 1280px) {
  .hero-phones__watermark-inner {
    height: 28rem;
    width: 36rem;
  }
}

.hero-phones__watermark img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.08;
}

@media (min-width: 640px) {
  .hero-phones__watermark img {
    opacity: 0.11;
  }
}

.hero-phones__devices {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem 0.25rem 0.75rem;
  perspective: 1400px;
}

@media (min-width: 640px) {
  .hero-phones__devices {
    padding: 3.5rem 0 1.25rem;
  }
}

.phone-col {
  position: relative;
}

.phone-col--back {
  z-index: 11;
  width: 46%;
  max-width: 210px;
  min-width: 132px;
  transform-origin: bottom right;
  transform: translate(-2px, 12px) rotate(-5deg);
}

@media (min-width: 640px) {
  .phone-col--back {
    width: 42%;
    max-width: 218px;
    transform: translate(-8px, 32px) rotate(-9deg);
  }
}

@media (min-width: 768px) {
  .phone-col--back {
    max-width: 232px;
    transform: translate(-8px, 32px) rotate(-10deg);
  }
}

@media (min-width: 1024px) {
  .phone-col--back {
    max-width: 268px;
  }
}

@media (min-width: 1280px) {
  .phone-col--back {
    max-width: 290px;
  }
}

.phone-col--front {
  z-index: 12;
  margin-left: -19%;
  width: 52%;
  max-width: 232px;
  min-width: 148px;
  transform-origin: bottom;
  transform: translateY(2px) rotate(4deg);
}

@media (min-width: 640px) {
  .phone-col--front {
    margin-left: -22%;
    max-width: 248px;
    transform: translateY(0) rotate(6deg);
  }
}

@media (min-width: 768px) {
  .phone-col--front {
    max-width: 264px;
  }
}

@media (min-width: 1024px) {
  .phone-col--front {
    max-width: 300px;
  }
}

@media (min-width: 1280px) {
  .phone-col--front {
    max-width: 320px;
  }
}

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

.animate-float {
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

.animate-float--delayed {
  animation-delay: 0.35s;
}

.phone-shell {
  position: relative;
  width: 100%;
}

.phone-glass {
  position: relative;
  border-radius: 2rem;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 0 40px -8px rgba(139, 92, 246, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.15);
}

@media (min-width: 640px) {
  .phone-glass {
    border-radius: 2.75rem;
    padding: 10px;
  }
}

.phone-inner {
  position: relative;
  overflow: hidden;
  border-radius: 1.85rem;
  background: #09090b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .phone-inner {
    border-radius: 2.25rem;
  }
}

.phone-notch-wrap {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding-top: 0.375rem;
}

@media (min-width: 640px) {
  .phone-notch-wrap {
    padding-top: 0.5rem;
  }
}

.phone-notch {
  height: 0.875rem;
  width: 4.5rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .phone-notch {
    height: 1.25rem;
    width: 6rem;
  }
}

.phone-inner img {
  display: block;
  height: auto;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

/* Features */
.features-section .content {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .features-section .content {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.features-title {
  margin: 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

@media (min-width: 640px) {
  .features-title {
    font-size: 1.875rem;
  }
}

.features-sub {
  margin: 0.5rem auto 0;
  max-width: 36rem;
  text-align: center;
  color: #a1a1aa;
}

.feature-grid {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .feature-grid {
    margin-top: 3rem;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 0 40px -8px rgba(139, 92, 246, 0.4);
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  padding: 0.625rem;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.15);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.25);
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}

.feature-card p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #a1a1aa;
}

/* CTA band */
.cta-section .content {
  padding-bottom: 4rem;
}

@media (min-width: 640px) {
  .cta-section .content {
    padding-bottom: 6rem;
  }
}

.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

@media (min-width: 640px) {
  .cta-card {
    border-radius: 1.5rem;
    padding: 2rem;
  }
}

@media (min-width: 768px) {
  .cta-card {
    padding: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
  }
}

.cta-card::before {
  content: "";
  pointer-events: none;
  position: absolute;
  right: -5rem;
  top: -5rem;
  height: 16rem;
  width: 16rem;
  border-radius: 9999px;
  background: rgba(192, 38, 211, 0.2);
  filter: blur(48px);
}

.cta-copy {
  position: relative;
  max-width: 36rem;
}

.cta-copy h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

@media (min-width: 640px) {
  .cta-copy h2 {
    font-size: 1.875rem;
  }
}

.cta-copy p {
  margin: 0.5rem 0 0;
  color: #a1a1aa;
}

.cta-form-wrap {
  position: relative;
  margin-top: 2rem;
  width: 100%;
  max-width: 28rem;
}

@media (min-width: 1024px) {
  .cta-form-wrap {
    margin-top: 0;
    flex-shrink: 0;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .site-footer .content {
    flex-direction: row;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.875rem;
  color: #71717a;
}
