/* PR Explainer — Design System v2 (Amber) */

/* ── Fonts ────────────────────────────────────────────────── */

@font-face {
  font-family: "Geist Sans";
  src: url("/fonts/GeistSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Sans";
  src: url("/fonts/GeistSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Sans";
  src: url("/fonts/GeistSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Sans";
  src: url("/fonts/GeistSans-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Reset & Base ────────────────────────────────────────── */

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

:root {
  --bg: #0a0a0a;
  --bg-surface: #181818;
  --bg-card: #1a1a1a;
  --border: #262626;
  --text: #fafafa;
  --text-secondary: #a3a3a3;
  --text-muted: #525252;
  --accent: #f97316;
  --accent-hover: #fb923c;
  --accent-gradient: linear-gradient(135deg, #f97316, #fb923c);
  --font-heading: "Geist Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 960px;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

img,
video {
  max-width: 100%;
  display: block;
}

/* ── Layout ──────────────────────────────────────────────── */

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

.section {
  padding: 80px 0;
}

/* ── Typography ──────────────────────────────────────────── */

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

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

.section-label {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.subhead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #0a0a0a;
}

.btn-primary:hover {
  color: #0a0a0a;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Header / Nav ────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo:hover {
  text-decoration: none;
  color: var(--text);
}

.logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 100px 0 80px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at 50% 0%, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  color: var(--text);
  position: relative;
}

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

.hero .subhead {
  margin: 16px auto 0;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin: 12px auto 0;
  max-width: 540px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ── VS Code Mockup (Section 2) ──────────────────────────── */

.mockup-wrapper {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.3),
    0 10px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.mockup-titlebar {
  background: #252526;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #333;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

.mockup-filename {
  color: #808080;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-left: 8px;
}

.mockup-editor {
  background: #1e1e1e;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.9;
}

.mockup-line {
  padding: 0 4px;
  white-space: pre;
  transition: background 0.4s, border-color 0.4s;
  border-left: 3px solid transparent;
  margin-left: -4px;
  padding-left: 12px;
}

.mockup-line.active {
  background: rgba(249, 115, 22, 0.1);
  border-left-color: var(--accent);
}

/* Syntax colors */
.tok-keyword { color: #569cd6; }
.tok-variable { color: #9cdcfe; }
.tok-function { color: #dcdcaa; }
.tok-type { color: #4ec9b0; }
.tok-string { color: #ce9178; }
.tok-comment { color: #6a9955; }
.tok-plain { color: #d4d4d4; }
.tok-property { color: #9cdcfe; }

.mockup-narration {
  background: #181818;
  border-top: 1px solid #333;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mockup-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mockup-play-btn svg {
  width: 12px;
  height: 12px;
  fill: #0a0a0a;
}

.mockup-narration-text {
  flex: 1;
  color: #e5e5e5;
  font-size: 0.8125rem;
  font-style: italic;
  overflow: hidden;
  min-height: 1.4em;
}

.mockup-counter {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Typing cursor */
.typing-cursor::after {
  content: "|";
  animation: blink 0.8s step-end infinite;
  color: var(--accent);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ── How It Works Steps (Section 3) ──────────────────────── */

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
  margin: 40px auto 0;
}

.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* Glass-over sweep effect */
.step-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(249, 115, 22, 0.04) 40%,
    rgba(249, 115, 22, 0.06) 60%,
    transparent 100%
  );
  transition: transform 0.5s ease;
  transform: translateX(-100%);
  pointer-events: none;
}

.step-item:hover::after {
  transform: translateX(100%);
}

.step-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-hover);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-item h3 {
  margin-bottom: 4px;
}

.step-item p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ── Feature Rows (Section 4) ────────────────────────────── */

.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 48px;
}

.feature-row {
  display: flex;
  gap: 48px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* Glass-over sweep effect on feature rows */
.feature-row::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(249, 115, 22, 0.04) 40%,
    rgba(249, 115, 22, 0.06) 60%,
    transparent 100%
  );
  transition: transform 0.5s ease;
  transform: translateX(-100%);
  pointer-events: none;
}

.feature-row:hover::after {
  transform: translateX(100%);
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-text .section-label {
  margin-bottom: 4px;
}

.feature-text h3 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}

.feature-text p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.feature-visual {
  width: 200px;
  height: 140px;
  border-radius: var(--radius);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-visual svg {
  width: 64px;
  height: 64px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
}



/* ── Pricing ─────────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.pricing-card:hover {
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.3);
}

.pricing-card.featured {
  background: rgba(249, 115, 22, 0.04);
  backdrop-filter: blur(8px);
  border-color: rgba(249, 115, 22, 0.12);
  position: relative;
}

.pricing-card.featured::before {
  content: "Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #0a0a0a;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: 100px;
}

.pricing-card h3 {
  font-size: 1.25rem;
}

.price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin: 16px 0 4px;
  letter-spacing: -0.03em;
}

.price-sub {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.pricing-card ul {
  list-style: none;
  flex: 1;
  margin-bottom: 32px;
}

.pricing-card li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.pricing-card li::before {
  content: "\2713";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card > .btn {
  width: 100%;
}

.pricing-card-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* ── Final CTA (Section 7) ───────────────────────────────── */

.final-cta {
  text-align: center;
  padding: 80px 0;
}

.final-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.final-cta p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin: 12px auto 32px;
  max-width: 480px;
}

/* ── Waitlist Form ───────────────────────────────────────── */

.waitlist-form {
  width: 100%;
}

.waitlist-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.waitlist-input-group input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}

.waitlist-input-group input[type="email"]:focus {
  border-color: var(--accent);
}

.waitlist-input-group input[type="email"]::placeholder {
  color: var(--text-muted);
}

.waitlist-input-group .btn {
  white-space: nowrap;
  width: 100%;
}

.waitlist-msg {
  font-size: 0.875rem;
  margin-top: 8px;
  text-align: center;
}

.waitlist-msg.success {
  color: #4ade80;
}

.waitlist-msg.error {
  color: #f87171;
}

/* ── Legal Pages ─────────────────────────────────────────── */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal .last-updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal p,
.legal li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

/* ── Auth Callback ───────────────────────────────────────── */

.auth-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* ── Video Demo ─────────────────────────────────────────── */

.video-wrapper {
  margin-top: 32px;
}

.video-wrapper video {
  display: block;
  margin: 0 auto;
}

.video-placeholder {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 12px;
}

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

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

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

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

/* ── Scroll Animations ───────────────────────────────────── */

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Reduced Motion ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .fade-in-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .typing-cursor::after {
    animation: none;
  }
  .step-item::after,
  .feature-row::after {
    transition: none;
  }
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 1024px) {
  :root {
    --max-width: 720px;
  }

  .feature-row {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 64px 0 56px;
  }

  h1 {
    font-size: 1.375rem;
  }

  .hero-description {
    font-size: 0.875rem;
  }

  .nav-links {
    gap: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  /* Staggered rows stack */
  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
  }

  .feature-visual {
    width: 100%;
    height: 120px;
    order: -1;
  }


  /* Mockup scale */
  .mockup-editor {
    font-size: 0.6875rem;
    padding: 12px;
  }

  .mockup-narration-text {
    font-size: 0.75rem;
  }

  .mockup-line {
    white-space: pre-wrap;
    word-break: break-all;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .waitlist-input-group {
    flex-direction: column;
  }
}
