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

:root {
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.5;
  color: var(--gray-900);
  background: #fff;
  min-height: 100vh;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--gray-900);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.btn-nav {
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  transition: color 0.2s;
}

.btn-nav:hover {
  color: var(--gray-600);
}

/* Main */
main {
  padding-top: 8rem;
  padding-bottom: 4rem;
}

/* Hero */
.hero {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem 8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--gray-100);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 2rem;
  cursor: default;
  transition: background 0.2s;
}

.badge:hover {
  background: var(--gray-200);
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 56rem;
  margin-bottom: 2rem;
}

.hero h1 .muted {
  color: var(--gray-400);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--gray-500);
  max-width: 42rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* Email form */
.email-form {
  width: 100%;
  max-width: 24rem;
  margin-bottom: 3rem;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 9999px;
  background: rgba(243, 244, 246, 0.5);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.input-wrap:focus-within {
  background: white;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.input-wrap input {
  width: 100%;
  height: 3rem;
  padding: 0 3.5rem 0 1rem;
  border: 2px solid transparent;
  border-radius: 9999px;
  background: transparent;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
}

.input-wrap input::placeholder {
  color: var(--gray-400);
}

.input-wrap input:focus {
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.btn-submit {
  position: absolute;
  right: 0.25rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gray-900);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.btn-submit:hover {
  transform: scale(1.05);
}

.btn-submit:active {
  transform: scale(0.95);
}

/* Preview card */
.preview-card {
  width: 100%;
  max-width: 64rem;
  aspect-ratio: 16/9;
  background: linear-gradient(to bottom, var(--gray-50), white);
  border-radius: 1.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(128, 128, 128, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(128, 128, 128, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.preview-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.flow-cards {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.flow-card {
  background: white;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 10rem;
}

.flow-card-active {
  background: var(--gray-900);
  color: white;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
  width: 12rem;
}

.flow-icon {
  width: 3rem;
  height: 3rem;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
}

.flow-card-active .flow-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #4ade80;
}

.flow-card span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
}

.flow-card-active span {
  color: white;
}

.flow-title {
  font-weight: 700 !important;
}

.flow-sub {
  font-size: 0.625rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

.flow-arrow {
  width: 4rem;
  height: 2px;
  background: linear-gradient(to right, var(--gray-200), rgba(0, 0, 0, 0.2));
}

.recording-badge {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-family: monospace;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rec-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ef4444;
}

.blur-circle {
  position: absolute;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.blur-blue {
  background: rgba(59, 130, 246, 0.3);
  left: -5rem;
  bottom: -5rem;
}

.blur-purple {
  background: rgba(168, 85, 247, 0.3);
  right: -5rem;
  top: -5rem;
}

/* Features */
.features {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.feature-row {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  padding: 6rem 0;
}

@media (min-width: 1024px) {
  .feature-row {
    flex-direction: row;
    gap: 6rem;
  }

  .feature-row.reverse {
    flex-direction: row-reverse;
  }
}

.feature-text {
  flex: 1;
  max-width: 28rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: var(--gray-100);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--gray-600);
}

.feature-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.feature-text p {
  font-size: 1.125rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.feature-visual {
  flex: 1;
  width: 100%;
}

/* Insight card */
.insight-card {
  aspect-ratio: 4/3;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.insight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 700;
}

.insight-value {
  color: #ef4444;
  font-family: monospace;
}

.progress-bar {
  height: 0.5rem;
  background: var(--gray-100);
  border-radius: 9999px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-fill {
  height: 100%;
  background: #ef4444;
  border-radius: 9999px;
}

.insight-tip {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Chart visual */
.chart-visual {
  aspect-ratio: 4/3;
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: 1.5rem;
  padding: 3rem 3rem 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  width: 100%;
  max-width: 20rem;
}

.chart-bars .bar {
  flex: 1;
  background: var(--gray-100);
  border-radius: 0.5rem 0.5rem 0 0;
  min-height: 1rem;
  transition: height 0.5s;
}

.chart-bars .bar.active {
  background: var(--gray-900);
}

/* Strain visual */
.strain-visual {
  aspect-ratio: 4/3;
  background: var(--gray-900);
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.strain-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.strain-circle {
  position: relative;
  width: 16rem;
  height: 16rem;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.strain-line {
  position: absolute;
  width: 100%;
  height: 1px;
  background: rgba(239, 68, 68, 0.5);
  transform: rotate(45deg);
}

.strain-line.alt {
  transform: rotate(-45deg);
}

.strain-badge {
  background: #ef4444;
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* Phone visual */
.phone-visual {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f0fdf4, #eff6ff);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-100);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.phone {
  width: 12rem;
  height: 20rem;
  background: var(--gray-900);
  border-radius: 2.5rem;
  padding: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 4px solid var(--gray-800);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--gray-800);
  border-radius: 1.8rem;
  overflow: hidden;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 1rem;
  background: black;
  border-radius: 9999px;
}

.phone-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.phone-check {
  width: 3rem;
  height: 3rem;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.phone-content p {
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
}

/* CTA */
.cta {
  max-width: 48rem;
  margin: 0 auto;
  padding: 8rem 1rem;
  text-align: center;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.25rem;
  color: var(--gray-500);
  margin-bottom: 2.5rem;
}

.cta .email-form {
  margin: 0 auto;
}

/* Footer */
.footer {
  border-top: 1px solid var(--gray-100);
  background: rgba(249, 250, 251, 0.5);
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gray-900);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--gray-500);
}
