/* ============================================================
   Tanstaafl.info portal — dark quantum theme (no framework, no build)
   ============================================================ */

:root {
  --bg: #0b1020;
  --bg-alt: #0e1530;
  --card: #131b3a;
  --card-border: #24305c;
  --text: #e8ecf8;
  --muted: #9aa5c4;
  --accent: #3ee6c5;
  --accent-2: #7aa2ff;
  --danger: #ff7a90;
  --radius: 14px;
  --container: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 680px; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  padding-top: 14px; padding-bottom: 14px;
}
.logo {
  font-weight: 800; font-size: 1.25rem; letter-spacing: .02em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo-accent { color: var(--accent); }

.site-nav { display: flex; gap: 18px; margin-left: 8px; }
.site-nav a { color: var(--muted); font-size: .95rem; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.locale-switch { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; }
.locale-sep { color: var(--muted); }
.locale-link { color: var(--muted); }
.locale-link.is-active { color: var(--accent); font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2bb8ff);
  color: #06121f;
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(62, 230, 197, .25); }
.btn-ghost { border-color: var(--card-border); color: var(--text); background: transparent; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-wide { width: 100%; }
.btn-link {
  background: none; border: none; color: var(--muted);
  font-size: .9rem; cursor: pointer; padding: 0;
}
.btn-link:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero {
  padding: 110px 0 90px;
  background:
    radial-gradient(700px 340px at 75% 0%, rgba(62, 230, 197, .12), transparent 65%),
    radial-gradient(600px 300px at 15% 10%, rgba(122, 162, 255, .12), transparent 60%),
    linear-gradient(rgba(122, 162, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 162, 255, .05) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  border-bottom: 1px solid var(--card-border);
}
.eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--card-border); color: var(--accent);
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; max-width: 20ch; }
.hero-subtitle { max-width: 62ch; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.section-lead { color: var(--muted); max-width: 70ch; margin-bottom: 2em; }
.subheading { margin-top: 1.4em; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 18px; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.cards-5 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 22px;
}
.card p:last-child { margin-bottom: 0; }
.card-kicker { color: var(--accent); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(62, 230, 197, .12); color: var(--accent);
  font-size: .75rem; white-space: nowrap;
}
.badge-duration { background: rgba(122, 162, 255, .14); color: var(--accent-2); }

/* ---------- differentiation ---------- */
.diff-list { counter-reset: diff; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.diff-list li {
  counter-increment: diff;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 16px 18px 16px 54px; position: relative;
}
.diff-list li::before {
  content: counter(diff, decimal-leading-zero);
  position: absolute; left: 18px; top: 16px;
  color: var(--accent); font-weight: 800; font-size: .9rem;
}

/* ---------- roadmap timeline ---------- */
.timeline { position: relative; margin-top: 10px; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--accent), var(--accent-2));
  opacity: .5;
}
.timeline-item { position: relative; padding: 0 0 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute; left: -26px; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg);
  border: 3px solid var(--accent);
}
.timeline-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.timeline-head h3 { margin: 0; }
.timeline-body p { max-width: 76ch; }
.timeline-result { color: var(--muted); }
.timeline-result strong { color: var(--accent); }

/* ---------- team ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.tag {
  padding: 8px 14px; border-radius: 999px; font-size: .9rem;
  background: var(--card); border: 1px solid var(--card-border);
}

/* ---------- investors ---------- */
.investors-note { color: var(--muted); margin: 26px 0 18px; font-style: italic; }

/* ---------- forms ---------- */
.lead-form, .auth-form { margin-top: 8px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: .9rem; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea {
  background: var(--bg-alt); color: var(--text);
  border: 1px solid var(--card-border); border-radius: 10px;
  padding: 11px 14px; font-size: 1rem; font-family: inherit;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
.contact-hint { color: var(--muted); font-size: .9rem; margin-top: 22px; }

/* ---------- auth pages ---------- */
.auth-title { font-size: 1.7rem; }
.auth-switch { color: var(--muted); margin-top: 18px; }

/* ---------- dashboard ---------- */
.flow-steps, .status-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* ---------- flash ---------- */
.flash {
  margin-top: 16px; padding: 12px 18px; border-radius: 10px; font-size: .95rem;
}
.flash-notice { background: rgba(62, 230, 197, .12); border: 1px solid rgba(62, 230, 197, .4); }
.flash-alert { background: rgba(255, 122, 144, .1); border: 1px solid rgba(255, 122, 144, .4); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 36px 0 44px; color: var(--muted); font-size: .9rem;
}
.footer-note { max-width: 90ch; }
.footer-sep { margin: 0 8px; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .site-nav { display: none; }
  .hero { padding: 70px 0 60px; }
  .section { padding: 56px 0; }
  .form-row-2 { grid-template-columns: 1fr; }
}
