/* ============ MixaCode Landing — styles ============ */

:root {
  --bg: #0b0e14;
  --bg-alt: #10141d;
  --bg-card: #141926;
  --border: #232b3b;
  --text: #e6e9f0;
  --text-dim: #8b93a7;
  --accent: #22d3ee;
  --accent-2: #a78bfa;
  --green: #34d399;
  --red: #f87171;
  --yellow: #fbbf24;
  --mono: "JetBrains Mono", "Fira Code", Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo__mark { color: var(--accent); }
.logo__accent { color: var(--accent-2); }

.nav__links { display: flex; gap: 28px; }

.nav__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08111a;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.25);
}

.btn--primary:hover { box-shadow: 0 12px 32px rgba(167, 139, 250, 0.35); }

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

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

.btn--small { padding: 8px 18px; font-size: 0.85rem; }
.btn--big { padding: 16px 36px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 20% 10%, rgba(34, 211, 238, 0.08), transparent 60%),
    radial-gradient(600px 300px at 80% 20%, rgba(167, 139, 250, 0.10), transparent 60%);
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: rgba(20, 25, 38, 0.6);
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
}

.gradient {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  max-width: 620px;
  margin: 20px auto 32px;
  color: var(--text-dim);
  font-size: 1.1rem;
}

.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Terminal ---------- */
.terminal {
  max-width: 720px;
  margin: 56px auto 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #161c28;
  border-bottom: 1px solid var(--border);
}

.terminal__dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal__dot--red { background: var(--red); }
.terminal__dot--yellow { background: var(--yellow); }
.terminal__dot--green { background: var(--green); }

.terminal__title {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.terminal__body {
  padding: 20px 24px;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 2;
  overflow: hidden;
}

.terminal__body p { white-space: nowrap; overflow: hidden; }

.t-prompt { color: var(--green); font-weight: 700; }
.t-agent { color: var(--accent); font-weight: 700; }
.t-cmd { color: var(--accent-2); }
.t-dim { color: var(--text-dim); }

.t-cursor::after {
  content: "▊";
  color: var(--green);
  animation: blink 1s steps(1) infinite;
}

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

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  text-align: center;
}

.section__subtitle {
  text-align: center;
  color: var(--text-dim);
  margin: 12px auto 48px;
  max-width: 560px;
}

/* ---------- Features grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover { border-color: var(--accent); transform: translateY(-4px); }

.card__icon { font-size: 1.8rem; margin-bottom: 14px; }

.card h3 { font-size: 1.15rem; margin-bottom: 8px; }

.card p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.step {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}

.step__num {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(167, 139, 250, 0.15));
  border: 1px solid var(--border);
  color: var(--accent);
}

.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Tools ---------- */
.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.tool {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.tool__key {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ---------- CTA ---------- */
.cta { padding: 96px 0; }

.cta__inner {
  text-align: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(167, 139, 250, 0.12));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 64px 24px;
}

.cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.cta p { color: var(--text-dim); margin-bottom: 28px; }

.cta__note { font-size: 0.85rem; margin-top: 20px; margin-bottom: 0; }

/* ---------- Waitlist form ---------- */
.waitlist {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist__input {
  flex: 1 1 240px;
  height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(11, 14, 20, 0.6);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  appearance: none;
  caret-color: var(--accent);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.waitlist__input::placeholder { color: var(--text-dim); opacity: 0.8; }

.waitlist__input:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(11, 14, 20, 0.8);
}

.waitlist__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

/* Chrome/Safari: убираем белый фон автозаполнения */
.waitlist__input:-webkit-autofill,
.waitlist__input:-webkit-autofill:hover,
.waitlist__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-card) inset;
  transition: background-color 9999s ease-in-out 0s;
}

.waitlist__status {
  margin-top: 16px;
  font-size: 0.95rem;
  min-height: 1.4em;
}

.waitlist__status.is-ok { color: var(--green); }
.waitlist__status.is-err { color: var(--red); }

.waitlist__btn { flex-shrink: 0; }
.waitlist__btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy { color: var(--text-dim); font-size: 0.85rem; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .terminal__body { font-size: 0.75rem; padding: 16px; }
  .waitlist__btn { flex: 1 1 100%; }
}
