/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #060606;
  color: #f5f5f5;
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Fira Code', Menlo, Monaco, 'Cascadia Code', 'Courier New', monospace;
  line-height: 1.5;
}

a { color: #f97316; text-decoration: none; }

/* ===== PAGE — single viewport, centered ===== */
.page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  gap: 16px;
}

/* ===== HEADER ===== */
.header {
  text-align: center;
  flex-shrink: 0;
}

.ascii-logo {
  font-size: clamp(0.4rem, 1.4vw, 0.75rem);
  line-height: 1.25;
  color: #f97316;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(249, 115, 22, 0.25);
  white-space: pre;
}

.subtitle {
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  color: #737373;
  font-weight: 400;
}

/* ===== DEMO VIDEO ===== */
.phone-section {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Video has the iPhone frame baked in (9:16, 886×1920 phone on dark bg).
   max-height/max-width 100% keeps it inside the flex section;
   height/width auto lets the browser maintain the aspect ratio. */
.demo-video {
  max-height: 100%;
  max-width: 100%;
  height: auto;
  width: auto;
  display: block;
  border-radius: 8px;
  box-shadow:
    0 0 40px rgba(249, 115, 22, 0.06),
    0 20px 60px rgba(0, 0, 0, 0.6);
}

/* ===== QUICKSTART ===== */
.quickstart {
  flex-shrink: 0;
  text-align: center;
  width: 100%;
  max-width: 580px;
}

.quickstart-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #737373;
  margin-bottom: 8px;
}

.code-block {
  margin: 0 auto 10px;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  padding: 8px 16px;
  text-align: left;
}

.code-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}

.code-line .prompt {
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
}

.code-line code {
  flex: 1;
  color: #d0d0d0;
  font-family: inherit;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow-x: auto;
}

.copy-btn {
  background: transparent;
  border: 1px solid #262626;
  color: #555;
  padding: 3px 6px;
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}
.copy-btn:hover { border-color: #444; color: #999; }
.copy-btn.copied { border-color: #22c55e; color: #22c55e; }

/* ===== CTA ROW ===== */
.cta-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary { background: #f97316; color: #060606; }
.btn-primary:hover {
  background: #fb923c;
  color: #060606;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

.icon { width: 14px; height: 14px; }

.badge {
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #1a1a1a;
  color: #a3a3a3;
  border: 1px solid #262626;
}
.badge-accent { border-color: #f97316; color: #f97316; }

/* ===== MOBILE ===== */
@media (max-width: 767px) {
  .page { padding: 12px 16px; gap: 10px; }
  .ascii-logo { font-size: 0.35rem; }
  .subtitle { font-size: 0.72rem; }
  .badge { display: none; }
}

@media (max-height: 700px) {
  .page { gap: 10px; padding: 12px 24px; }
  .ascii-logo { font-size: clamp(0.3rem, 1vw, 0.55rem); margin-bottom: 4px; }
}
