:root {
  --bg:          #0d0d0d;
  --surface:     #141414;
  --border:      #1e1e1e;
  --text:        #e8e4dc;
  --muted:       #6b6660;
  --accent:      #f5a623;
  --accent-dim:  rgba(245, 166, 35, 0.12);
  --font-display:'Fraunces', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
  --radius:      4px;
  --max-w:       1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(13,13,13,0.88);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.logo { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.logo-dot { color: var(--accent); }
.nav-cta {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent); padding: 0.45em 1.1em;
  border-radius: var(--radius); transition: background 0.18s, color 0.18s;
}
.nav-cta:hover { background: var(--accent); color: #0d0d0d; }

/* HERO */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  border-bottom: 1px solid var(--border); overflow: hidden;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto; padding: 6rem 2rem 5rem;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 90% 80% at 65% 40%, black 20%, transparent 75%);
  opacity: 0.45;
}
.hero-eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-dim); border: 1px solid rgba(245,166,35,0.25);
  padding: 0.35em 0.9em; border-radius: 2px; margin-bottom: 2.5rem;
  animation: fadeUp 0.6s ease both 0.1s;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 700; line-height: 1.0; letter-spacing: -0.03em;
  color: #fff; margin-bottom: 2rem; max-width: 14ch;
  animation: fadeUp 0.6s ease both 0.2s;
}
.hero-headline em { font-style: italic; font-weight: 300; color: var(--accent); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted);
  max-width: 48ch; line-height: 1.7; margin-bottom: 2.75rem;
  animation: fadeUp 0.6s ease both 0.3s;
}
.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--accent); color: #0d0d0d;
  font-weight: 700; font-size: 0.9375rem;
  padding: 0.85em 2em; border-radius: var(--radius);
  transition: opacity 0.18s, transform 0.18s;
  animation: fadeUp 0.6s ease both 0.4s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

/* VALUE PROPS */
.props { border-bottom: 1px solid var(--border); }
.props-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 6rem 2rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem 3rem;
}
.prop { display: flex; flex-direction: column; gap: 1rem; }
.prop-number { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); }
.prop-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: #fff; }
.prop-body { font-size: 0.9375rem; color: var(--muted); line-height: 1.75; }

/* PROOF STRIP */
.proof-strip { border-bottom: 1px solid var(--border); background: var(--surface); }
.proof-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 1.25rem 2rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.proof-item { font-size: 0.8125rem; color: var(--muted); }
.proof-sep { color: var(--border); font-size: 1.25rem; }

/* WIDGET DEMO */
.widget-demo {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.widget-demo-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 5rem 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 2.5rem;
}
.widget-demo-label {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center;
  text-align: center;
}
.widget-demo-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #0d0d0d; background: var(--accent);
  padding: 0.3em 0.85em; border-radius: 2px;
}
.widget-demo-desc {
  font-size: 0.9375rem; color: var(--muted);
}

/* The widget stage centers the floating widget */
.widget-stage {
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
  width: 100%;
}

/* The actual floating widget pill */
.widget-float {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(245,166,35,0.30);
  border-radius: 100px;
  padding: 0.65em 1.4em 0.65em 1em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,166,35,0.08);
  backdrop-filter: blur(8px);
  max-width: 460px;
  width: fit-content;
  position: relative;
}
.widget-icon {
  font-size: 0.95rem; line-height: 1; flex-shrink: 0;
}
.widget-message {
  font-size: 0.9375rem; font-weight: 500; color: var(--text);
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  /* Fade transition managed via JS class */
  transition: opacity 0.38s ease;
}
.widget-message.fade-out { opacity: 0; }
.widget-message.fade-in  { opacity: 1; }

/* "See how" affordance */
.widget-see-how {
  background: none; border: 1px solid var(--border);
  color: var(--muted); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.5em 1.25em; border-radius: var(--radius);
  cursor: pointer; display: inline-flex; align-items: center; gap: 0.5em;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.widget-see-how:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.widget-toggle-arrow {
  display: inline-block; transition: transform 0.22s ease;
  font-style: normal;
}
.widget-see-how[aria-expanded="true"] .widget-toggle-arrow { transform: rotate(180deg); }

/* Snippet reveal panel */
.widget-snippet-panel {
  width: 100%; max-width: 600px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  animation: expandDown 0.22s ease both;
}
@keyframes expandDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.widget-snippet-header {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding: 0.85rem 1.25rem 0.65rem;
  border-bottom: 1px solid var(--border);
}
.widget-snippet-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
.widget-snippet-hint {
  font-size: 0.78rem; color: var(--muted);
}
.widget-snippet-hint code {
  font-family: 'Courier New', monospace; font-size: 0.78rem;
  background: var(--surface); padding: 0.1em 0.35em; border-radius: 2px;
  color: var(--text);
}
.widget-snippet-code-wrap {
  position: relative; display: flex; align-items: stretch;
}
.widget-snippet-code {
  flex: 1;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8125rem; line-height: 1.55;
  color: #a8e6cf;
  padding: 1.1rem 1.25rem;
  background: transparent;
  white-space: pre; overflow-x: auto;
  margin: 0;
}
.widget-copy-btn {
  flex-shrink: 0;
  background: var(--surface); border: none; border-left: 1px solid var(--border);
  color: var(--muted); font-size: 0.78rem; font-weight: 600;
  padding: 0 1.25rem; cursor: pointer;
  transition: color 0.18s, background 0.18s;
}
.widget-copy-btn:hover { color: var(--text); background: var(--border); }
.widget-copy-btn.copied { color: #4ade80; }
.widget-snippet-footer {
  padding: 0.65rem 1.25rem 0.9rem;
  font-size: 0.78rem; color: var(--muted); line-height: 1.6;
  border-top: 1px solid var(--border);
}

/* WAITLIST */
.waitlist { border-bottom: 1px solid var(--border); }
.waitlist-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 7rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.waitlist-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  color: #fff; margin-bottom: 1rem;
}
.waitlist-sub { font-size: 1rem; color: var(--muted); line-height: 1.7; max-width: 44ch; }
/* SIGNUP COUNT BADGE */
.signup-count-badge {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-size: 0.8125rem; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  padding: 0.4em 0.9em; border-radius: 100px;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.5s ease both;
}
.signup-count-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  /* Subtle pulse to signal live data */
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.waitlist-form { display: flex; flex-direction: column; gap: 0.75rem; }
.field-row { display: flex; gap: 0.75rem; }
.field-input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 0.9375rem; padding: 0.8em 1.1em;
  border-radius: var(--radius); outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field-input::placeholder { color: var(--muted); }
.field-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.btn-submit {
  background: var(--accent); color: #0d0d0d; font-weight: 700;
  font-size: 0.875rem; padding: 0.8em 1.75em; border: none;
  border-radius: var(--radius); cursor: pointer; white-space: nowrap;
  transition: opacity 0.18s;
}
.btn-submit:hover { opacity: 0.88; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-status { font-size: 0.85rem; min-height: 1.2em; }
.form-status.success { color: #4ade80; }
.form-status.error   { color: #f87171; }

/* FOOTER */
.footer { padding: 2rem 0; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-logo { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--muted); }
.footer-copy { font-size: 0.8125rem; color: var(--muted); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .props-inner { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 1.5rem; }
  .waitlist-inner { grid-template-columns: 1fr; padding: 4rem 1.5rem; gap: 2.5rem; }
  .field-row { flex-direction: column; }
  .btn-submit { width: 100%; }
  .hero-inner { padding: 4rem 1.5rem 3rem; }
  .proof-sep { display: none; }
  .widget-demo-inner { padding: 3.5rem 1.5rem; gap: 2rem; }
  .widget-float { max-width: 100%; white-space: normal; }
  .widget-message { white-space: normal; }
  .widget-snippet-code-wrap { flex-direction: column; }
  .widget-copy-btn { border-left: none; border-top: 1px solid var(--border); padding: 0.75rem 1.25rem; }
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
