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

:root {
  --bg:         #060d18;
  --surface:    #0c1a2e;
  --border:     rgba(255,255,255,0.08);
  --text:       #f0f0f2;
  --muted:      rgba(240,240,242,0.5);
  --accent:     #d4940a;
  --accent-dim: rgba(212,148,10,0.14);
}

html {
  font-size: 20px;
}

html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 0 2rem;
  -webkit-font-smoothing: antialiased;
}

/* subtle top glow */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 600px;
  background: radial-gradient(ellipse at 50% -10%, rgba(212,148,10,0.09) 0%, transparent 68%);
  pointer-events: none;
}

.container {
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* hero */
.hero {
  min-height: 100vh;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(212,148,10,0.38);
  padding: 0.3em 1em;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.wordmark {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(5rem, 7vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.tagline {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 3rem;
}

.tagline strong {
  font-weight: 400;
  color: rgba(240,240,242,0.75);
}

#cycling-field {
  display: inline-block;
  text-align: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#cycling-field.fade-out {
  opacity: 0;
  transform: translateY(6px);
}

#cycling-field.pre-enter {
  transition: none !important;
  opacity: 0;
  transform: translateY(-6px);
}

.form-wrap {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 0.875rem;
}

.form-wrap input[type="email"] {
  flex: 1;
  min-width: 0;
  background: rgba(12,26,46,0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.18s;
}

.form-wrap input[type="email"]::placeholder { color: var(--muted); }
.form-wrap input[type="email"]:focus { border-color: var(--accent); }

.form-wrap button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.18s;
}

.form-wrap button:hover { opacity: 0.82; }

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-error-msg {
  font-size: 0.78rem;
  color: rgba(255,100,100,0.85);
  text-align: center;
  margin-top: 0.4rem;
}

/* shared section styles */
.section-label {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-title {
  font-size: clamp(2.4rem, 4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  text-align: center;
}

.section-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  max-width: 740px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-sub em {
  font-style: normal;
  color: rgba(240,240,242,0.7);
}

/* perf section */
.perf {
  margin-top: 6rem;
  padding-top: 8rem;
  padding-bottom: 5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.perf-stat {
  display: inline-block;
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #f5c842 0%, #d4940a 55%, #b87008 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.perf-stat-label {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.gif-placeholder {
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 12px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  color: rgba(240,240,242,0.2);
}

.gif-placeholder svg { opacity: 0.3; }

.gif-placeholder span {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.perf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.perf-col {
  background: rgba(12,26,46,0.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 1.25rem 1.5rem;
}

.perf-col--highlight {
  border-color: rgba(212,148,10,0.45);
  background: rgba(212,148,10,0.06);
}

.perf-col-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.perf-col--highlight .perf-col-label { color: var(--accent); }

.perf-time {
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: rgba(240,240,242,0.35);
}

.perf-col--highlight .perf-time { color: var(--text); }

.perf-col-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.perf-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240,240,242,0.15);
  font-size: 1.25rem;
  padding-top: 2.5rem;
}

/* why section */
.why {
  margin-top: 6rem;
  padding-top: 8rem;
  padding-bottom: 5rem;
  border-top: 1px solid var(--border);
}

.why-heading {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  text-align: center;
}

.why-title {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  text-align: center;
}

.why-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  text-align: center;
}

.why-sub em {
  font-style: normal;
  color: rgba(240,240,242,0.7);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  text-align: left;
  margin: 0 auto;
}

.why-card {
  border-radius: 12px;
  padding: 1.5rem 1.25rem 1.25rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.why-card--bad   { background: rgba(255,70,70,0.05);  border-color: rgba(255,70,70,0.18); }
.why-card--warn  { background: rgba(250,180,40,0.05); border-color: rgba(250,180,40,0.18); }
.why-card--good  { background: rgba(50,210,110,0.05); border-color: rgba(50,210,110,0.18); }

.why-card-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.why-card--bad  .why-card-label { color: rgba(255,100,100,0.7); }
.why-card--warn .why-card-label { color: rgba(250,180,40,0.7); }
.why-card--good .why-card-label { color: rgba(50,210,110,0.7); }

.why-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.why-card-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.why-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.why-bullets li {
  font-size: 0.85rem;
  color: rgba(240,240,242,0.5);
  padding-left: 1em;
  position: relative;
  line-height: 1.4;
}

.why-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(240,240,242,0.25);
}

.why-verdict {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.5em 2em;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  align-self: flex-start;
}

.why-card--bad  .why-verdict { background: rgba(255,70,70,0.12);  color: rgba(255,110,110,0.9); }
.why-card--warn .why-verdict { background: rgba(250,180,40,0.12); color: rgba(250,190,60,0.9); }
.why-card--good .why-verdict { background: rgba(50,210,110,0.12); color: rgba(60,220,120,0.9); }

/* team section */
.team {
  margin-top: 6rem;
  padding-top: 8rem;
  padding-bottom: 5rem;
  border-top: 1px solid var(--border);
}

.team-heading {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: rgba(12,26,46,0.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.25rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.team-tags {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
  width: 100%;
  padding: 0 0.5rem;
}

.team-tags li {
  font-size: 0.85rem;
  color: rgba(240,240,242,0.45);
  line-height: 1.4;
  padding-left: 0.9rem;
  position: relative;
}

.team-tags li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* contact section */
.contact {
  margin-top: 6rem;
  padding-top: 8rem;
  padding-bottom: 5rem;
  border-top: 1px solid var(--border);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-field label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(240,240,242,0.5);
}

.contact-field input,
.contact-field textarea {
  background: rgba(12,26,46,0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.18s;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder { color: var(--muted); }

.contact-field input:focus,
.contact-field textarea:focus { border-color: var(--accent); }

.contact-field textarea { min-height: 120px; }

.contact-btn {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.18s;
}

.contact-btn:hover { opacity: 0.82; }

.contact-error-global:empty { display: none; }

.contact-error-global {
  font-size: 0.82rem;
  color: rgba(255,100,100,0.85);
  background: rgba(255,70,70,0.07);
  border: 1px solid rgba(255,70,70,0.2);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  margin-bottom: 0.75rem;
}

.field-error {
  font-size: 0.75rem;
  color: rgba(255,100,100,0.8);
  margin-top: 0.25rem;
}

.field-error:empty { display: none; }

/* success states */
.early-access-success[hidden],
.contact-success[hidden] { display: none; }

@keyframes successFadeOut {
  0%,  60% { background: rgba(34,197,94,0.18);  border-color: rgba(34,197,94,0.45); }
  100%     { background: rgba(12,26,46,0.35);    border-color: rgba(255,255,255,0.08); }
}

.early-access-success {
  max-width: 500px;
  margin: 0 auto;
  min-height: 90px;
  border: 1px solid rgba(34,197,94,0.45);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #6ee7a0;
  text-align: center;
  animation: successFadeOut 2.5s ease-out forwards;
}

.contact-success {
  max-width: 700px;
  margin: 0 auto;
  min-height: 360px;
  border: 1px solid rgba(34,197,94,0.45);
  border-radius: 10px;
  text-align: center;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: successFadeOut 2.5s ease-out forwards;
}

.contact-success p {
  font-size: 0.95rem;
  color: rgba(240,240,242,0.7);
}

.contact-success strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  color: #6ee7a0;
  margin-bottom: 0.3rem;
}

/* footer */
footer {
  font-size: 0.78rem;
  color: rgba(240,240,242,0.2);
  letter-spacing: 0.04em;
  text-align: center;
  padding: 3rem 0 2rem;
}

/* responsive: tablet */
@media (max-width: 768px) {
  .perf, .why, .team, .contact {
    margin-top: 4rem;
    padding-top: 5rem;
    padding-bottom: 3.5rem;
  }

  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .why-grid { max-width: 100%; }
}

/* responsive: mobile */
@media (max-width: 600px) {
  .perf-grid { grid-template-columns: 1fr; }
  .perf-arrow { display: none; }
}

@media (max-width: 560px) {
  body { padding: 0 1.25rem; }

  .perf, .why, .team, .contact {
    margin-top: 3rem;
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
  }

  .tagline { font-size: 1rem; }

  .section-title { font-size: 1.35rem; }

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

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

  .contact-row { grid-template-columns: 1fr; }

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

  .contact-success { min-height: 200px; }
}
