@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --primary: #9146CF;
  --primary-hover: #7A39B0;
  --primary-light: #F5EEFC;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --bg-body: #ffffff;
  --bg-light: #f8fafc;
  --border-color: #e2e8f0;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-soft: 0 4px 24px rgba(0,0,0,0.06);
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  list-style: none;
}

/* Typography */
h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
}

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

.text-large {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

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

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.max-w-md { max-width: 42rem; margin-inline: auto; }
.max-w-lg { max-width: 56rem; margin-inline: auto; }

.section {
  padding: 6rem 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-8 { margin-bottom: 2rem; }

/* Buttons & Badges */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.button-primary {
  background-color: var(--primary);
  color: white;
}

.button-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.button-secondary {
  background-color: white;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
  background-color: var(--bg-light);
}

.button-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-gray {
  background-color: var(--bg-light);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: var(--primary);
  color: white;
  border-radius: 6px;
  font-size: 0.875rem;
}

.site-nav {
  display: none;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
    gap: 2rem;
  }
  .site-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
  }
  .site-nav a:hover {
    color: var(--text-dark);
  }
}

/* Hero Section */
.hero-section {
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p.text-large {
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-trust p {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}

/* Hero Visual Mockup */
.hero-visual {
  position: relative;
  width: 100%;
}

.hero-demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .hero-demo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.message-demo-card,
.floating-mockup {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.message-demo-card {
  min-height: 100%;
}

.demo-card-label {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.mockup-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
}

.mockup-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.green { background-color: #10b981; }

.mockup-card p {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9375rem;
  white-space: pre-line;
  min-height: 3.75rem;
}

.mockup-card.after-card {
  background: white;
  border: 1.5px solid var(--primary);
  box-shadow: var(--shadow-soft);
}

.mockup-arrow {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.demo-buffer {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 3.75rem;
}

.demo-buffer span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--primary);
  opacity: 0.35;
  animation: demoBufferPulse 1s infinite ease-in-out;
}

.demo-buffer span:nth-child(2) {
  animation-delay: 0.16s;
}

.demo-buffer span:nth-child(3) {
  animation-delay: 0.32s;
}

.mockup-context {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-color);
}

.context-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.context-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.typing-caret::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 0.15rem;
  background: currentColor;
  vertical-align: -0.1em;
  animation: caretBlink 0.9s steps(1) infinite;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

/* Feature Cards */
.feature-card-v1 {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.feature-card-v1:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.icon-wrap.primary-bg {
  background-color: var(--primary-light);
  color: var(--primary);
}

.icon-wrap svg {
  width: 24px;
  height: 24px;
}

.feature-card-v1 h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Step Cards */
.step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .step-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.step-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary-light);
  position: absolute;
  top: -1rem;
  left: -1rem;
  line-height: 1;
}

.step-card h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

.step-card p {
  position: relative;
  z-index: 10;
}

/* Split Layouts */
.split-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .split-row {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.check-list li {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  position: relative;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.25rem;
}

.check-list strong {
  display: block;
  font-size: 1.125rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

/* Waitlist Section */
.waitlist-container {
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  position: relative;
}

.form-placeholder {
  text-align: center;
  padding: 3rem;
  background: var(--bg-light);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
}

.tally-embed-wrap {
  min-height: 200px;
}

.status-banner {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 500;
}

.status-banner:not(.status-banner-error) {
  background-color: #d1fae5;
  color: #065f46;
}

.status-banner-error {
  background-color: #fee2e2;
  color: #991b1b;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .faq-grid {
    grid-template-columns: 1fr 2fr;
  }
}

.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--text-muted);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 1.5rem 1.5rem;
}

/* Final CTA */
.final-cta {
  padding: 8rem 0;
  background-color: var(--primary-light);
}

.final-cta h2 {
  font-size: 3rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

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

/* Responsive adjustments */
@media (max-width: 767px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .section { padding: 4rem 0; }
  .hero-section { padding: 4rem 0 2rem; }
}

@keyframes demoBufferPulse {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.35;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes caretBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
