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

:root {
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-subtle: #f9fafb;
  --max-width: 960px;
}

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 40px;
}

h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

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

/* Hero */
.hero {
  padding-top: 100px;
  padding-bottom: 80px;
  text-align: center;
}

.hero h1 {
  color: var(--accent);
  margin-bottom: 16px;
}

.value-prop {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 500;
}

.subheading {
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto 48px;
}

.demo-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.spec-context {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
  text-align: left;
}

.spec-block {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px;
}

.spec-block h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.spec-block ul {
  list-style: none;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.7;
}

.spec-block li {
  position: relative;
  padding-left: 16px;
}

.spec-block li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.video-container {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 10;
  cursor: pointer;
}

.video-container video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.video-overlay.hidden {
  display: none;
}

.play-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.play-button:hover svg path {
  fill: rgba(255, 255, 255, 0.8);
}

.play-button:focus {
  outline: none;
}

/* How It Works */
.how-it-works {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  list-style: none;
  display: grid;
  gap: 32px;
}

.steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content h3 {
  color: var(--text);
}

/* Why SpecSage */
.benefits {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
}

.benefits h3 {
  color: var(--text);
}

/* Example */
.example {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.example-input h3,
.example-output h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

pre {
  background: var(--text);
  color: #f3f4f6;
  padding: 24px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.7;
}

.example-output pre {
  background: #1e293b;
}

/* Use Cases */
.cases {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.cases h3 {
  color: var(--text);
}

/* CTA */
.cta {
  text-align: center;
  padding: 100px 0;
}

.cta h2 {
  margin-bottom: 16px;
}

.cta p {
  margin-bottom: 32px;
  font-size: 1.125rem;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto;
}

.waitlist-form input {
  flex: 1;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.waitlist-form button {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

.waitlist-form button:hover {
  background: var(--accent-dark);
}

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

.form-success {
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 500;
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  font-size: 0.875rem;
}

/* Utilities */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 32px;
  }

  .value-prop {
    font-size: 1.25rem;
  }

  .spec-context {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .benefits {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .example-grid {
    grid-template-columns: 1fr;
  }

  .cases {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-form button {
    width: 100%;
  }
}
