/* =============================================
   ComplyAI Early-Access Landing Page
   Dark theme with amber/gold accents
   ============================================= */

:root {
  --bg: #0f0f12;
  --surface: #18181c;
  --surface-2: #222228;
  --text: #faf8f5;
  --text-muted: #9a9a9e;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --accent-border: rgba(245, 158, 11, 0.3);
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'General Sans', 'Plus Jakarta Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; }

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

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

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(250, 248, 245, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-logo span {
  color: var(--accent);
}

.nav-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
}

/* ---- Hero ---- */
.hero {
  padding: 6rem 0 5rem;
  position: relative;
}

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

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.hero-headline {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.2s;
}

.hero-headline em {
  font-style: normal;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.35s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.5s;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #0f0f12;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
  background: #fbbf24;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(250, 248, 245, 0.12);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
  border-color: rgba(250, 248, 245, 0.3);
  color: var(--text);
}

/* ---- Social Proof Bar ---- */
.social-proof {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(250, 248, 245, 0.06);
  border-bottom: 1px solid rgba(250, 248, 245, 0.06);
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.6s;
}

.social-proof-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .social-proof-inner {
    justify-content: space-between;
  }
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.proof-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.proof-dot.active { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.5); }
.proof-dot.live { background: var(--accent); box-shadow: 0 0 6px rgba(245, 158, 11, 0.5); }

/* ---- Features ---- */
.features {
  padding: 6rem 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid rgba(250, 248, 245, 0.07);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
  font-size: 1.2rem;
  transition: background 0.2s ease;
}

.feature-card:hover .feature-icon {
  background: rgba(245, 158, 11, 0.2);
}

.feature-title {
  margin-bottom: 0.6rem;
  color: var(--text);
}

.feature-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---- Product Description ---- */
.product-desc {
  padding: 5rem 0;
  border-top: 1px solid rgba(250, 248, 245, 0.06);
}

.product-desc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .product-desc-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.product-desc-text {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.product-desc-text strong {
  color: var(--text);
  font-weight: 600;
}

.product-desc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid rgba(250, 248, 245, 0.1);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.product-desc-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.product-visual {
  background: var(--surface);
  border: 1px solid rgba(250, 248, 245, 0.07);
  border-radius: 16px;
  padding: 2.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
}

.product-visual-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(250, 248, 245, 0.06);
}

.product-visual-dots {
  display: flex;
  gap: 0.4rem;
}

.product-visual-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.product-visual-dot:nth-child(1) { background: #ef4444; }
.product-visual-dot:nth-child(2) { background: #f59e0b; }
.product-visual-dot:nth-child(3) { background: #22c55e; }

.product-visual-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.product-visual-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(250, 248, 245, 0.04);
  color: var(--text-muted);
}

.product-visual-item:last-child { border-bottom: none; }

.product-visual-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
}

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

.status-dot.ok { background: #22c55e; }
.status-dot.warn { background: var(--accent); }
.status-dot.fail { background: #ef4444; }

/* ---- Early Access Form ---- */
.early-access-section {
  padding: 6rem 0 7rem;
  border-top: 1px solid rgba(250, 248, 245, 0.06);
}

.early-access-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.early-access-form {
  margin-top: 2.5rem;
}

.form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.form-input {
  flex: 1;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid rgba(250, 248, 245, 0.12);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-input:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.btn-submit {
  background: var(--accent);
  color: #0f0f12;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
  background: #fbbf24;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-message {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* ---- Footer ---- */
.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(250, 248, 245, 0.06);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-muted);
}

.footer-brand span {
  color: var(--accent);
}

.footer-contact {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Hero Visual ---- */
.hero-visual {
  display: none;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

@media (min-width: 768px) {
  .hero-visual {
    display: block;
  }
}

.hero-card-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-card {
  background: var(--surface);
  border: 1px solid rgba(250, 248, 245, 0.08);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-card--accent {
  background: var(--surface-2);
  border-color: var(--accent-border);
}

.hero-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero-card-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.hero-card-row:last-child { margin-bottom: 0; }

.hero-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-card-dot.ok { background: #22c55e; box-shadow: 0 0 5px rgba(34, 197, 94, 0.5); }
.hero-card-dot.warn { background: var(--accent); }

.hero-card-score {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.hero-card-score span {
  font-size: 1.5rem;
  color: var(--accent);
}

.hero-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-card-alert-text {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
  border-left: 2px solid var(--accent-border);
  padding-left: 0.75rem;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

/* ---- Hero Caption ---- */
.hero-caption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- Problem Section ---- */
.problem {
  padding: 5rem 0;
  border-top: 1px solid rgba(250, 248, 245, 0.06);
  border-bottom: 1px solid rgba(250, 248, 245, 0.06);
}

.problem-headline {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 2.5rem;
  color: var(--text);
}

.problem-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.problem-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.6em;
}

.problem-closing {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

/* ---- Social Proof Section ---- */
.social-proof-section {
  padding: 5rem 0;
  border-top: 1px solid rgba(250, 248, 245, 0.06);
  border-bottom: 1px solid rgba(250, 248, 245, 0.06);
}

.testimonial {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1.4;
  color: var(--text);
  font-style: italic;
  max-width: 680px;
  margin: 0 auto 2rem;
  text-align: center;
}

.testimonial cite {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.trust-signal {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ---- Waitlist Section ---- */
.waitlist-section {
  padding: 6rem 0 7rem;
  border-top: 1px solid rgba(250, 248, 245, 0.06);
}

.waitlist-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-headline {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2rem;
  color: var(--text);
}

.waitlist-form {
  margin-top: 0;
}

.waitlist-form .form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.waitlist-form .form-input {
  flex: 1;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid rgba(250, 248, 245, 0.12);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-form .form-input::placeholder { color: var(--text-muted); }

.waitlist-form .form-input:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* ---- Footer Updates ---- */
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

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

.footer-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover { color: var(--text); }

.footer-sep {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .hero { padding: 4rem 0 3.5rem; }
  .features { padding: 4rem 0; }
  .product-desc { padding: 3.5rem 0; }
  .early-access-section { padding: 4rem 0 5rem; }
  .social-proof-inner { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .nav-badge { display: none; }
  .form-row { flex-direction: column; }
  .form-input, .btn-submit { width: 100%; }
  .waitlist-form .form-row { flex-direction: column; }
  .waitlist-form .form-input,
  .waitlist-form .btn-submit { width: 100%; }
}