/* YouAPI — landing styles. Тёмная dev-эстетика, один системный шрифт. */
:root {
  --bg: #0a0e14;
  --bg-soft: #0e131c;
  --surface: #121a26;
  --surface-2: #16202f;
  --border: #1f2b3a;
  --border-soft: #172231;
  --text: #e6edf3;
  --muted: #8b98a9;
  --muted-dim: #5f6c7d;
  --accent: #2dd4bf;
  --accent-2: #6366f1;
  --accent-3: #22d3ee;
  --danger: #f87171;
  --ok: #34d399;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-3) 40%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #04121a;
  box-shadow: 0 6px 24px -8px rgba(45, 212, 191, .5);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(99, 102, 241, .55); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; background: rgba(45,212,191,.06); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* ---------- Header ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 20, .72);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: grid; place-items: center; color: #04121a; font-weight: 800; font-size: 16px;
  box-shadow: 0 4px 16px -4px rgba(45,212,191,.5);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.link { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a.link:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 620px;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(45,212,191,.16), transparent 70%),
    radial-gradient(600px 320px at 85% 10%, rgba(99,102,241,.18), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--accent); background: rgba(45,212,191,.08);
  border: 1px solid rgba(45,212,191,.22); margin-bottom: 22px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 { font-size: 54px; font-weight: 800; margin-bottom: 20px; }
.hero .sub { font-size: 19px; color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted-dim); display: flex; align-items: center; gap: 8px; }

/* Terminal mock */
.terminal {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(45,212,191,.04);
  overflow: hidden;
}
.terminal .bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border-soft); }
.terminal .bar .d { width: 12px; height: 12px; border-radius: 50%; }
.terminal .bar .d.r { background: #ff5f57; } .terminal .bar .d.y { background: #febc2e; } .terminal .bar .d.g { background: #28c840; }
.terminal .bar .t { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted-dim); }
.terminal .body { padding: 20px; font-family: var(--mono); font-size: 13.5px; line-height: 1.9; }
.terminal .body .cmd { color: var(--text); }
.terminal .body .cmd .p { color: var(--accent); }
.terminal .body .out { color: var(--muted); }
.terminal .body .ok { color: var(--ok); }
.terminal .body .url { color: var(--accent-3); }
.cursor { display: inline-block; width: 8px; height: 16px; background: var(--accent); vertical-align: middle; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 0%,50% { opacity: 1; } 50.1%,100% { opacity: 0; } }

/* ---------- Trust bar ---------- */
.trust { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--bg-soft); }
.trust-inner { display: flex; justify-content: space-around; gap: 24px; padding: 30px 0; flex-wrap: wrap; text-align: center; }
.stat .n { font-size: 30px; font-weight: 800; }
.stat .l { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Sections ---------- */
section.block { padding: 88px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head .eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.section-head h2 { font-size: 38px; font-weight: 800; margin: 14px 0 16px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 26px; transition: border-color .18s, transform .18s;
}
.feature:hover { border-color: rgba(45,212,191,.35); transform: translateY(-3px); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(45,212,191,.1); border: 1px solid rgba(45,212,191,.2); margin-bottom: 16px; font-size: 22px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 26px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); }
.step .num {
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: #04121a;
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }
.step code { font-family: var(--mono); color: var(--accent-3); background: rgba(34,211,238,.08); padding: 1px 6px; border-radius: 5px; font-size: 13px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 30px;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 20px 60px -30px rgba(45,212,191,.5); position: relative; }
.plan.featured::after {
  content: "Популярный"; position: absolute; top: -12px; right: 22px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2)); color: #04121a;
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.plan .name { font-size: 16px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.plan .price { font-size: 42px; font-weight: 800; margin: 14px 0 4px; }
.plan .price span { font-size: 16px; color: var(--muted); font-weight: 500; }
.plan .desc { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; min-height: 42px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.plan li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text); }
.plan li .c { color: var(--accent); flex: none; margin-top: 2px; }
.plan .cta { margin-top: auto; }

/* CTA */
.cta-band { position: relative; overflow: hidden; }
.cta-card {
  background: linear-gradient(120deg, rgba(45,212,191,.12), rgba(99,102,241,.12));
  border: 1px solid var(--border); border-radius: 22px; padding: 56px 40px; text-align: center;
}
.cta-card h2 { font-size: 36px; font-weight: 800; margin-bottom: 14px; }
.cta-card p { color: var(--muted); font-size: 18px; margin-bottom: 28px; }

/* Footer */
footer.foot { border-top: 1px solid var(--border-soft); padding: 48px 0 40px; background: var(--bg-soft); }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot .brand { margin-bottom: 12px; }
.foot .tag { color: var(--muted); font-size: 14.5px; max-width: 300px; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-dim); margin: 0 0 14px; }
.foot-col a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 10px; transition: color .15s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; color: var(--muted-dim); font-size: 13.5px; flex-wrap: wrap; gap: 10px; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 48px 24px; position: relative; }
.auth-wrap::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 400px at 50% 0%, rgba(99,102,241,.12), transparent 70%); pointer-events: none;
}
.auth-card {
  position: relative; width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 36px; box-shadow: 0 30px 80px -40px rgba(0,0,0,.8);
}
.auth-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-card .lead { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  font-size: 15px; font-family: var(--font); transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,212,191,.12); }
.field input::placeholder { color: var(--muted-dim); }
.auth-alt { text-align: center; margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.auth-alt a { color: var(--accent); font-weight: 600; }
.form-msg { font-size: 14px; padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 18px; display: none; }
.form-msg.error { display: block; color: var(--danger); background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.25); }
.form-msg.ok { display: block; color: var(--ok); background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.25); }
.beta-note { margin-top: 20px; font-size: 12.5px; color: var(--muted-dim); text-align: center; }
.legal { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.legal input { margin-top: 3px; accent-color: var(--accent); }

.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }

/* ---------- Dashboard (demo) ---------- */
.dash { padding: 44px 0 80px; min-height: calc(100vh - 66px); }
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.dash-head h1 { font-size: 28px; font-weight: 800; }
.dash-head .who { color: var(--muted); font-size: 15px; }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 16px; margin-bottom: 14px; }
.endpoint {
  font-family: var(--mono); font-size: 14px; color: var(--accent-3);
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; word-break: break-all;
}
.copy-btn { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 8px; padding: 5px 10px; font-size: 12px; cursor: pointer; flex: none; }
.copy-btn:hover { color: var(--text); border-color: var(--accent); }
.usage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 6px; }
.usage .u { background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 16px; }
.usage .u .n { font-size: 24px; font-weight: 800; }
.usage .u .l { font-size: 12.5px; color: var(--muted); }
.plan-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--accent); background: rgba(45,212,191,.09); border: 1px solid rgba(45,212,191,.22); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 40px; }
  .features, .steps, .pricing { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .section-head h2 { font-size: 30px; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 32px; }
  .hero .sub { font-size: 17px; }
  .cta-card { padding: 36px 22px; }
  .cta-card h2 { font-size: 27px; }
}
