/*
Theme Name: Startup Sprint Theme
Theme URI: https://example.com
Author: OpenAI
Description: A startup landing page theme for rapidly launching waitlists from pasted HTML. Includes token-based signup forms, demo UI embeds, page view tracking, and lead admin reporting.
Version: 1.0.0
Text Domain: startup-sprint
*/

:root {
  --ss-bg: #090c14;
  --ss-bg-2: #0f1526;
  --ss-panel: rgba(16, 23, 40, 0.82);
  --ss-panel-2: rgba(255,255,255,0.04);
  --ss-line: rgba(255,255,255,0.1);
  --ss-text: #f4f7ff;
  --ss-muted: #a7b1ca;
  --ss-accent: #6d7cff;
  --ss-accent-2: #6ce0ff;
  --ss-success: #14c67a;
  --ss-danger: #ff7373;
  --ss-radius: 22px;
  --ss-shadow: 0 24px 80px rgba(0,0,0,.28);
  --ss-max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ss-text);
  background:
    radial-gradient(circle at 15% 0%, rgba(109,124,255,.15), transparent 26%),
    radial-gradient(circle at 85% 8%, rgba(108,224,255,.10), transparent 22%),
    linear-gradient(180deg, var(--ss-bg) 0%, var(--ss-bg-2) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.ss-shell {
  min-height: 100vh;
  position: relative;
  overflow: clip;
}

.ss-shell::before,
.ss-shell::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(90px);
  opacity: .35;
  pointer-events: none;
}

.ss-shell::before { left: -120px; top: 120px; background: rgba(109,124,255,.28); }
.ss-shell::after { right: -120px; top: 420px; background: rgba(108,224,255,.18); }

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

.ss-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(9,12,20,.62);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.ss-topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ss-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
}

.ss-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
}

.ss-brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ss-accent), var(--ss-accent-2));
  color: white;
  box-shadow: var(--ss-shadow);
  font-weight: 800;
}

.ss-nav-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ss-muted);
  font-size: 14px;
}

.ss-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}

.ss-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ss-success);
  box-shadow: 0 0 0 6px rgba(20,198,122,.12);
}

.ss-main {
  padding: 56px 0 96px;
}

.ss-card {
  background: var(--ss-panel);
  border: 1px solid var(--ss-line);
  border-radius: var(--ss-radius);
  box-shadow: var(--ss-shadow);
}

.ss-editor-content {
  overflow: hidden;
}

.ss-editor-content > *:first-child { margin-top: 0; }
.ss-editor-content > *:last-child { margin-bottom: 0; }

.ss-editor-content h1,
.ss-editor-content h2,
.ss-editor-content h3,
.ss-editor-content h4 {
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 0 0 18px;
}

.ss-editor-content h1 { font-size: clamp(42px, 7vw, 84px); }
.ss-editor-content h2 { font-size: clamp(30px, 5vw, 56px); }
.ss-editor-content h3 { font-size: clamp(24px, 4vw, 34px); }

.ss-editor-content p,
.ss-editor-content li {
  color: var(--ss-muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
}

.ss-editor-content section,
.ss-editor-content .section,
.ss-editor-content .hero,
.ss-editor-content .wrap {
  position: relative;
}

.ss-editor-content .ss-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 30px;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.08);
}

.ss-editor-content .ss-hero-copy {
  max-width: 680px;
}

.ss-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(109,124,255,.12);
  border: 1px solid rgba(109,124,255,.28);
  color: #d8ddff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.ss-lead {
  max-width: 720px;
  margin-bottom: 24px;
}

.ss-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-top: 34px;
}

.ss-feature {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}

.ss-feature strong {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
}

.ss-signup-wrap,
.ss-demo-wrap,
.ss-counter-wrap {
  margin: 26px 0;
}

.ss-signup {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(109,124,255,.11), rgba(255,255,255,.03));
  border: 1px solid rgba(109,124,255,.18);
}

.ss-signup-title {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--ss-text);
}

.ss-signup-subtitle {
  margin: 0 0 18px;
  color: var(--ss-muted);
  font-size: 15px;
}

.ss-form-row {
  display: flex;
  gap: 12px;
}

.ss-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(7, 10, 18, .86);
  color: white;
  outline: none;
}

.ss-input::placeholder { color: #7f8aad; }
.ss-input:focus {
  border-color: rgba(108,224,255,.4);
  box-shadow: 0 0 0 4px rgba(108,224,255,.08);
}

.ss-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 22px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ss-accent), var(--ss-accent-2));
  color: white;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(28, 44, 109, .35);
}

.ss-button:hover { transform: translateY(-1px); }

.ss-form-note,
.ss-form-message {
  margin-top: 12px;
  font-size: 14px;
}
.ss-form-note { color: var(--ss-muted); }
.ss-form-message.is-success { color: #8ff0bf; }
.ss-form-message.is-error { color: #ffb0b0; }

.ss-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--ss-muted);
  font-size: 14px;
}

.ss-counter strong { color: white; }

.ss-demo {
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--ss-shadow);
}

.ss-demo-window {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: #0c1221;
}

.ss-demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.ss-demo-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.24);
}
.ss-demo-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
  padding: 18px;
}
.ss-demo-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.ss-demo-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
}
.ss-demo-card p,
.ss-demo-card li {
  margin: 0;
  color: var(--ss-muted);
  font-size: 14px;
}
.ss-demo-taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.ss-demo-tag {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(109,124,255,.10);
  border: 1px solid rgba(109,124,255,.2);
  color: #d8ddff;
  font-size: 13px;
}
.ss-demo-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ss-demo-score {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(var(--ss-accent-2) 0 84%, rgba(255,255,255,.08) 84% 100%);
}
.ss-demo-score span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #0c1221;
  color: white;
  font-weight: 800;
}

.ss-footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--ss-muted);
  font-size: 14px;
}

.ss-admin-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0;
}
.ss-admin-stat {
  padding: 18px;
  background: white;
  border: 1px solid #e7ebf3;
  border-radius: 16px;
}
.ss-admin-stat .label { color: #5b6478; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.ss-admin-stat .value { margin-top: 6px; color: #111827; font-size: 32px; font-weight: 800; }
.ss-admin-table-wrap {
  background: white;
  border: 1px solid #e7ebf3;
  border-radius: 16px;
  overflow: hidden;
}
.ss-admin-table {
  width: 100%;
  border-collapse: collapse;
}
.ss-admin-table th,
.ss-admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f8;
  text-align: left;
}
.ss-admin-table th { background: #f8fafc; }

@media (max-width: 900px) {
  .ss-editor-content .ss-hero,
  .ss-demo-panel,
  .ss-feature-grid,
  .ss-admin-grid {
    grid-template-columns: 1fr;
  }

  .ss-form-row {
    flex-direction: column;
  }

  .ss-nav-meta { display: none; }
}

@media (max-width: 600px) {
  .ss-main { padding-top: 28px; }
  .ss-topbar-inner { min-height: 64px; }
  .ss-editor-content .ss-hero { padding: 18px; }
}
