/* ===================================
   OUTFRAMER — Landing Page Styles
   =================================== */

:root {
  /* Colors - Warm dark theme */
  --color-bg: #0a0a0b;
  --color-bg-alt: #111113;
  --color-surface: #18181b;
  --color-border: #27272a;
  --color-text: #fafafa;
  --color-text-muted: #a1a1aa;
  --color-text-subtle: #71717a;

  /* Accent - Blue */
  --color-accent: #2563eb;
  --color-accent-hover: #3b82f6;
  --color-accent-glow: rgba(37, 99, 235, 0.15);

  /* Typography */
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Sizing */
  --max-width: 800px;
  --header-height: 64px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px var(--color-accent-glow);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Page container */
.page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background pattern */
.bg-pattern {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
      ellipse 80% 50% at 50% -20%,
      var(--color-accent-glow),
      transparent
    ),
    radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.05), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 1.125rem;
  padding: var(--space-sm) var(--space-md);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.logo-mark {
  font-size: 1.5rem;
  color: var(--color-accent);
}

.logo-text {
  position: relative;
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  padding-top: calc(var(--header-height) + var(--space-4xl));
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.hero-mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.hero-accent {
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-accent-hover)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-accent::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-accent-hover)
  );
  border-radius: 2px;
  animation: underlineGrow 0.8s ease 0.6s forwards;
}

@keyframes underlineGrow {
  to {
    width: 100%;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.hero-subtitle code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-surface);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

/* Waitlist Form */
.waitlist-form {
  position: relative;
  width: 100%;
  max-width: 440px;
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

.form-row {
  display: flex;
  gap: var(--space-sm);
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
}

.form-input,
.form-textarea {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-subtle);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
  animation: inputFocus 0.3s ease;
}

@keyframes inputFocus {
  0% {
    box-shadow: 0 0 0 0 var(--color-accent-glow);
  }
  100% {
    box-shadow: 0 0 0 3px var(--color-accent-glow);
  }
}

.form-button {
  position: relative;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  background: var(--color-accent);
  color: #000;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--transition-fast),
    transform var(--transition-fast);
  white-space: nowrap;
}

.form-button:hover:not(:disabled) {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.form-button:active:not(:disabled) {
  transform: translateY(0);
}

.form-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.form-button.loading .button-text {
  opacity: 0;
}

.form-button.loading .button-loader {
  display: block;
}

.button-loader {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.form-hint {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-subtle);
}

/* Social Proof */
.social-proof {
  margin-top: var(--space-xl);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-proof strong {
  color: var(--color-accent);
  font-weight: 600;
  display: inline-block;
  animation: countPulse 2s ease-in-out infinite;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes countPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt {
  background: var(--color-bg-alt);
  max-width: none;
  margin: 0;
}

.section-alt > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-2xl);
  line-height: 1.3;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

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

/* Problem Section - Redesigned */
.problem-section {
  text-align: center;
}

.problem-eyebrow {
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-2xl);
}

/* Frustration Cards */
.frustration-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto var(--space-2xl);
}

.frustration-card {
  flex: 0 1 280px;
  max-width: 320px;
  background: #fefce8;
  border: none;
  border-radius: 4px;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: left;
  position: relative;
  overflow: visible;
  transition: transform var(--transition-fast);
  opacity: 0;
  animation: tiltFadeIn 0.5s ease forwards;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
  --tilt: 0deg;
}

.frustration-card:nth-child(1) {
  animation-delay: 0.1s;
  --tilt: -2.5deg;
  background: #fefce8; /* Yellow */
}
.frustration-card:nth-child(2) {
  animation-delay: 0.2s;
  --tilt: 1.8deg;
  background: #fce7f3; /* Pink */
}
.frustration-card:nth-child(3) {
  animation-delay: 0.3s;
  --tilt: -1.5deg;
  background: #e0f2fe; /* Light blue */
  flex: 0 1 320px;
}

/* Tape effect at top of sticky note */
.frustration-card::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.frustration-card:hover {
  transform: rotate(var(--tilt)) translateY(-4px) scale(1.02);
}

@keyframes tiltFadeIn {
  from {
    opacity: 0;
    transform: rotate(0deg) translateY(20px);
  }
  to {
    opacity: 1;
    transform: rotate(var(--tilt));
  }
}

.frustration-quote {
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 600;
  color: #1c1917;
  line-height: 1.4;
  position: relative;
  z-index: 1;
  font-family: var(--font-sans);
}

.frustration-context {
  font-size: 0.875rem;
  color: #78716c;
  font-style: normal;
}

/* Problem Agitation */
.problem-agitation {
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.problem-agitation p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.problem-agitation strong {
  color: var(--color-text);
}

/* Before/After Comparison */
.before-after {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-lg);
  max-width: 700px;
  margin: 0 auto;
}

.before-state,
.after-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  border-radius: 16px;
  min-height: 200px;
  opacity: 0;
}

.before-state {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.05) 0%,
    rgba(239, 68, 68, 0.02) 100%
  );
  border: 1px solid rgba(239, 68, 68, 0.15);
  animation: slideInLeft 0.6s ease 0.1s forwards;
}

.after-state {
  background: linear-gradient(
    135deg,
    var(--color-accent-glow) 0%,
    rgba(37, 99, 235, 0.02) 100%
  );
  border: 1px solid rgba(37, 99, 235, 0.2);
  animation: slideInRight 0.6s ease 0.3s forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.state-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-xs) var(--space-md);
  border-radius: 20px;
}

.before-state .state-label {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.after-state .state-label {
  color: var(--color-accent);
  background: var(--color-accent-glow);
}

/* Chaos Visual - Scattered words */
.chaos-visual {
  position: relative;
  width: 100%;
  height: 120px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.chaos-item {
  font-size: 0.75rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-muted);
  animation: chaosFloat 3s ease-in-out infinite;
}

.chaos-1 {
  animation-delay: 0s;
  transform: rotate(-5deg);
}
.chaos-2 {
  animation-delay: 0.2s;
  transform: rotate(3deg);
}
.chaos-3 {
  animation-delay: 0.4s;
  transform: rotate(-2deg);
}
.chaos-4 {
  animation-delay: 0.6s;
  transform: rotate(4deg);
}
.chaos-5 {
  animation-delay: 0.8s;
  transform: rotate(-3deg);
}
.chaos-6 {
  animation-delay: 1s;
  transform: rotate(2deg);
}
.chaos-7 {
  animation-delay: 1.2s;
  transform: rotate(-4deg);
}

@keyframes chaosFloat {
  0%,
  100% {
    transform: translateY(0) rotate(var(--rotate, 0deg));
    opacity: 0.7;
  }
  50% {
    transform: translateY(-4px) rotate(var(--rotate, 0deg));
    opacity: 1;
  }
}

/* Clean Visual */
.clean-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex: 1;
}

.clean-visual .hgi-stroke {
  font-size: 3rem;
  color: var(--color-accent);
  animation: gentlePulse 2s ease-in-out infinite;
}

.clean-visual span {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}

@keyframes gentlePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* VS Divider */
.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-sm);
}

.vs-divider .hgi-stroke {
  font-size: 1.5rem;
  color: var(--color-text-subtle);
}

.section-cta {
  text-align: center;
  margin-top: var(--space-2xl);
  font-size: 1.125rem;
  color: var(--color-text);
}

.section-cta strong {
  color: var(--color-accent);
}

/* How It Works - Visual Workflow */
.how-it-works {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.workflow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl) 0;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.workflow-connector:nth-of-type(2) {
  animation-delay: 0.2s;
}

.workflow-connector:nth-of-type(4) {
  animation-delay: 0.4s;
}

.connector-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, var(--color-accent), transparent);
  opacity: 0.3;
}

.connector-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
  opacity: 0.6;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

.workflow-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-2xl) 0;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.workflow-step:nth-child(1) {
  animation-delay: 0.1s;
}

.workflow-step:nth-child(2) {
  animation-delay: 0.3s;
}

.workflow-step:nth-child(3) {
  animation-delay: 0.5s;
}

.workflow-step:nth-child(even) {
  grid-template-columns: 1fr 1fr;
}

.workflow-step:nth-child(even) .step-visual {
  order: 2;
}

.workflow-step:nth-child(even) .step-content {
  order: 1;
}

.step-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-slow),
    box-shadow var(--transition-slow);
}

.step-image-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--color-accent);
}

.step-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.step-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(37, 99, 235, 0.05) 100%
  );
  pointer-events: none;
}

.step-icon-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon-large {
  font-size: 6rem;
  color: var(--color-accent);
  position: relative;
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

.step-icon-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle,
    var(--color-accent-glow) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

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

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.step-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}

.step-description {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.step-description code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-surface);
  padding: 0.2em 0.5em;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  color: var(--color-accent);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  text-align: center;
  transition: border-color var(--transition-fast),
    transform var(--transition-base), box-shadow var(--transition-base);
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.feature:nth-child(1) {
  animation-delay: 0.1s;
}
.feature:nth-child(2) {
  animation-delay: 0.15s;
}
.feature:nth-child(3) {
  animation-delay: 0.2s;
}
.feature:nth-child(4) {
  animation-delay: 0.25s;
}

.feature:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.feature:hover .hgi-stroke {
  animation: iconPop 0.3s ease;
}

@keyframes iconPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.feature-icon {
  font-size: 2rem;
}

.feature-text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* Bottom CTA */
.section-cta-bottom {
  text-align: center;
  padding-bottom: var(--space-4xl);
}

.section-cta-bottom .waitlist-form {
  margin: 0 auto;
  opacity: 1;
  animation: none;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  color: var(--color-text-subtle);
  font-size: 0.875rem;
  opacity: 0;
  animation: fadeIn 0.5s ease 0.3s forwards;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Thanks Page */
.page-thanks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.thanks-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  max-width: 500px;
  margin: 0 auto;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.thanks-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.5s ease 0.1s forwards;
  opacity: 0;
}

.thanks-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.5s ease 0.2s forwards;
  opacity: 0;
}

/* Survey */
.survey {
  width: 100%;
  animation: fadeInUp 0.5s ease 0.3s forwards;
  opacity: 0;
}

.survey-question {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.survey-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.survey-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.survey-option:hover {
  border-color: var(--color-accent);
  background: var(--color-bg-alt);
}

.survey-option.selected {
  border-color: var(--color-accent);
  background: var(--color-accent-glow);
  color: var(--color-text);
}

.survey-thanks {
  padding: var(--space-lg);
  color: var(--color-accent);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 640px) {
  .form-row {
    flex-direction: column;
  }

  .form-button {
    width: 100%;
  }

  .workflow-step {
    grid-template-columns: 1fr !important;
    gap: var(--space-xl);
  }

  .workflow-step:nth-child(even) .step-visual,
  .workflow-step:nth-child(even) .step-content {
    order: unset;
  }

  .step-icon-wrapper {
    width: 150px;
    height: 150px;
  }

  .step-icon-large {
    font-size: 4rem;
  }

  .hero {
    padding: var(--space-2xl) var(--space-lg);
    padding-top: calc(var(--header-height) + var(--space-2xl));
  }

  .section {
    padding: var(--space-2xl) var(--space-lg);
  }

  /* Problem Section Mobile */
  .frustration-cards {
    gap: var(--space-xl);
  }

  .frustration-card {
    padding: var(--space-lg);
    flex: 0 1 100%;
    max-width: 320px;
  }

  .frustration-card:nth-child(1) {
    --tilt: -1.5deg;
  }
  .frustration-card:nth-child(2) {
    --tilt: 2deg;
  }
  .frustration-card:nth-child(3) {
    --tilt: -1deg;
  }

  .frustration-quote {
    font-size: 1.125rem;
  }

  .before-after {
    flex-direction: column;
    gap: var(--space-md);
  }

  .vs-divider {
    padding: var(--space-sm) 0;
  }

  .vs-divider .hgi-stroke {
    transform: rotate(90deg);
  }

  .before-state,
  .after-state {
    min-height: 150px;
    padding: var(--space-lg);
  }

  .chaos-visual {
    height: 80px;
  }

  .problem-agitation p {
    font-size: 1.125rem;
  }
}

/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.6); /* Black w/ opacity */
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background-color: var(--color-surface);
  margin: auto;
  padding: var(--space-2xl);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  width: 90%;
  max-width: 500px;
  text-align: center;
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.modal-content p {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.close-button {
  color: var(--color-text-muted);
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color var(--transition-fast);
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.close-button:hover,
.close-button:focus {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

.modal .waitlist-form {
  opacity: 1;
  animation: none;
}

.modal .form-message {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.modal .form-message.error {
  color: #ef4444;
}

.modal .form-message.success {
  color: #10b981;
}

/* CTA Button Styles */
.cta-button {
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--transition-fast),
    transform var(--transition-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -200%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 10%,
    rgb(0, 128, 255) 50%,
    transparent 90%
  );
  animation: shimmer 3s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    left: -200%;
  }
  100% {
    left: 100%;
  }
}

.cta-text {
  position: relative;
  z-index: 1;
}

.cta-button:hover:not(:disabled) {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.cta-button:active:not(:disabled) {
  transform: translateY(0);
}

.header-cta {
  font-size: 0.9375rem;
  padding: var(--space-sm) var(--space-lg);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4),
    0 2px 8px rgba(37, 99, 235, 0.3);
}

.header-cta:hover:not(:disabled) {
  box-shadow: 0 6px 28px rgba(59, 130, 246, 0.5),
    0 4px 12px rgba(59, 130, 246, 0.4);
}

.bottom-cta-button {
  margin-bottom: var(--space-md);
}

/* Hugeicons adjustments */
.hgi-stroke {
  font-size: 1.5rem;
  color: var(--color-accent);
  line-height: 1;
  display: inline-block;
}

.logo-mark.hgi-stroke {
  font-size: 1.5rem;
}

.problem-list .hgi-stroke {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature .hgi-stroke {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.thanks-icon.hgi-stroke {
  font-size: 4rem;
  color: #10b981;
  margin-bottom: var(--space-xl);
}

.survey-option .hgi-stroke {
  font-size: 1.25rem;
}
