:root {
  --brand-blue: #1c78c4;
  --brand-blue-dark: #145a94;
  --brand-orange: #f7931e;
  --bg: #f5f8fc;
  --card: #ffffff;
  --svg-panel: #eef4fb;
  --text: #12172a;
  --muted: #5b6478;
  --border: #e3e8f2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e17;
    --card: #131826;
    --svg-panel: #182234;
    --text: #eef1f7;
    --muted: #9aa3b8;
    --border: #232a3d;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ---------- Header ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.logo-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-text .hitro { color: var(--brand-orange); }
.logo-text .tech { color: var(--brand-blue); }
.logo-suffix {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  margin-left: 2px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}

@media (max-width: 480px) {
  header { padding: 14px 18px; }
  .logo-text { font-size: 22px; }
}

/* ---------- Hero ---------- */
#landing-page { padding: 40px 20px 60px; }

.hero {
  max-width: 920px;
  margin: 0 auto 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  text-align: left;
}
.hero-text { flex: 1 1 380px; max-width: 460px; }
.hero-text h1 {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.hero-text h1 span { color: var(--brand-blue); }
.hero-text p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
}
.hero-illustration { flex: 0 0 320px; max-width: 100%; }
.hero-illustration svg { width: 100%; height: auto; }

@media (max-width: 720px) {
  .hero { text-align: center; justify-content: center; }
  .hero-illustration { order: -1; flex-basis: 220px; }
}

/* ---------- Form card ---------- */
#landing {
  max-width: 420px;
  margin: 0 auto;
  background: var(--card);
  padding: 30px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(20, 40, 100, 0.06);
}
.field { margin-bottom: 16px; }
#landing label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
#landing input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#landing input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(28, 120, 196, 0.15);
}
#landing input.invalid {
  border-color: #e0524d;
  box-shadow: 0 0 0 3px rgba(224, 82, 77, 0.12);
}
.error-msg {
  display: block;
  min-height: 16px;
  color: #e0524d;
  font-size: 12.5px;
  margin-top: 5px;
}

#joinBtn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.15s;
  margin-top: 4px;
}
#joinBtn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(28,120,196,0.25); }
#joinBtn:active { transform: translateY(0); }
#joinBtn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

#landing p.hint {
  color: var(--muted);
  font-size: 12.5px;
  margin: 14px 0 0;
  text-align: center;
}

/* ---------- Feature badges ---------- */
.badges {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.badge svg { width: 20px; height: 20px; }

footer {
  text-align: center;
  padding: 26px 20px;
  color: var(--muted);
  font-size: 12.5px;
}
footer a { color: var(--brand-blue); text-decoration: none; font-weight: 600; }
