/* Lynceus landing — dark, product-first */

:root {
  --bg: #0b0e14;
  --bg2: #0e1219;
  --panel: #12161f;
  --line: #1f2632;
  --text: #e8ebf1;
  --muted: #9aa3b5;
  --accent: #4f8cff;
  --accent2: #7db0ff;
  --green: #3fb68b;
  --amber: #e0a458;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-feature-settings: "tnum" 1;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; color: var(--accent2); }

/* ---------- header ---------- */

.head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.head-in { display: flex; align-items: center; gap: 28px; height: 62px; }

.logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: 0.2px;
}
.logo:hover { text-decoration: none; }

.logo-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background:
    radial-gradient(circle 6px at 9px 10px, transparent 4.6px, var(--accent) 4.6px, var(--accent) 6.2px, transparent 6.2px);
  background-color: var(--panel);
  border: 1px solid var(--line);
  position: relative;
}
.logo-mark::after {
  content: ""; position: absolute; right: 3px; bottom: 3px;
  width: 7px; height: 2px; background: var(--accent); border-radius: 2px;
  transform: rotate(45deg);
}

.head-nav { display: flex; gap: 22px; margin-left: 12px; }
.head-nav a { color: var(--muted); font-size: 14.5px; }
.head-nav a:hover { color: var(--text); text-decoration: none; }

.head-cta { margin-left: auto; display: flex; gap: 10px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; border-radius: 9px;
  font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent;
  transition: filter .15s, background .15s, border-color .15s;
  cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }

.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.35), 0 8px 24px -10px rgba(79, 140, 255, 0.55);
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { padding: 13px 26px; font-size: 16px; border-radius: 11px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 92px 0 84px;
  background:
    radial-gradient(900px 420px at 70% -10%, rgba(79, 140, 255, 0.16), transparent 65%),
    radial-gradient(600px 300px at 15% 0%, rgba(63, 182, 139, 0.07), transparent 60%),
    var(--bg);
}

.hero-in { text-align: center; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero-badge, .hero-in h1, .hero-sub, .hero-cta, .hero-note, .terminal {
  animation: rise .6s cubic-bezier(.2, .7, .3, 1) both;
}
.hero-in h1 { animation-delay: .05s; }
.hero-sub { animation-delay: .12s; }
.hero-cta { animation-delay: .18s; }
.hero-note { animation-delay: .24s; }
.terminal { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(79, 140, 255, 0.08);
  color: var(--accent2); font-size: 13px; font-weight: 500;
  margin-bottom: 26px;
}

h1 {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.06; letter-spacing: -0.025em; font-weight: 800;
  margin-bottom: 20px;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--accent); }

.hero-sub {
  max-width: 640px; margin: 0 auto 34px;
  color: var(--muted); font-size: 18.5px; line-height: 1.65;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; margin-bottom: 14px; }

.hero-note { color: var(--muted); font-size: 13.5px; margin-bottom: 52px; }

/* terminal */

.terminal {
  max-width: 720px; margin: 0 auto; text-align: left;
  background: #0a0d12; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transition: transform .2s ease;
}
.terminal:hover { transform: translateY(-2px); }

.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--panel);
}
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a3140; }
.term-bar span:nth-child(1) { background: #e0556a; }
.term-bar span:nth-child(2) { background: #e0a458; }
.term-bar span:nth-child(3) { background: #3fb68b; }
.term-bar b { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 500; }

.terminal pre { padding: 20px 22px; overflow-x: auto; }
.terminal code { font-size: 13.5px; line-height: 1.75; color: #c6cfdd; }
.terminal .c1 { color: #5b6675; }
.terminal .s2 { color: #86d9a8; }

/* ---------- sections ---------- */

.section { padding: 84px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--bg2); }

.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; }

.sec-num {
  font-family: ui-monospace, monospace; font-size: 14px; color: var(--accent);
  border: 1px solid var(--line); border-radius: 7px; padding: 3px 9px;
  background: rgba(79, 140, 255, 0.07);
}

h2 { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -0.015em; font-weight: 750; }

.sec-sub { color: var(--muted); max-width: 620px; margin-bottom: 44px; font-size: 16.5px; }

/* ladder */

.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.rung {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; position: relative; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.rung:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c) 45%, var(--line));
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.75);
}
.rung::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--c), transparent 80%);
}
.rung.r1 { --c: var(--green); }
.rung.r2 { --c: var(--accent); }
.rung.r3 { --c: var(--amber); }
.rung.r4 { --c: #e0556a; }

.rung-tag {
  font-family: ui-monospace, monospace; font-size: 11.5px; letter-spacing: 0.4px;
  color: var(--c); margin-bottom: 10px; text-transform: uppercase;
}

.rung h3 { font-size: 16.5px; margin-bottom: 8px; }
.rung p { color: var(--muted); font-size: 13.8px; line-height: 1.55; }

/* code section */

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 40px; }

.col {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.col h3 {
  font-family: ui-monospace, monospace; font-size: 15px; color: var(--accent2);
  margin-bottom: 10px; font-weight: 600;
}
.col p { color: var(--muted); font-size: 14.5px; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.feat {
  background: rgba(18, 22, 31, 0.5); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
  transition: border-color .18s ease, transform .18s ease;
}
.feat:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-2px); }
.feat h4 { font-size: 15px; margin-bottom: 7px; }
.feat p { color: var(--muted); font-size: 13.8px; line-height: 1.55; }

/* pricing */

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }

.plan {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; display: flex; flex-direction: column; position: relative;
  transition: transform .18s ease, border-color .18s ease;
}
.plan:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.plan-hl { border-color: rgba(79, 140, 255, 0.5); box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.25), 0 20px 50px -30px rgba(79, 140, 255, 0.4); }

.plan-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 600;
  padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}

.plan-name { font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }
.plan-price { font-size: 32px; font-weight: 800; margin: 8px 0 2px; }
.plan-cr { color: var(--accent2); font-size: 13.5px; margin-bottom: 18px; }

.plan ul { list-style: none; margin: 0 0 22px; display: grid; gap: 9px; }
.plan li { color: var(--muted); font-size: 14px; padding-left: 20px; position: relative; }
.plan li::before {
  content: "→"; position: absolute; left: 0; color: var(--green);
}

.plan .btn { margin-top: auto; }

/* final cta */

.cta-final {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(700px 300px at 50% 120%, rgba(79, 140, 255, 0.14), transparent 65%),
    var(--bg);
  text-align: center; padding: 96px 0;
}
.cta-final h2 { margin-bottom: 12px; }
.cta-final p { color: var(--muted); margin-bottom: 30px; }

/* footer */

.foot { border-top: 1px solid var(--line); padding: 34px 0; background: var(--bg2); }
.foot-in { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.foot-tag { color: var(--muted); font-size: 13.5px; }
.foot-nav { margin-left: auto; display: flex; gap: 20px; }
.foot-nav a { color: var(--muted); font-size: 14px; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .ladder { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .head-nav { display: none; }
  .hero { padding: 64px 0 60px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .cols, .ladder, .plans, .feat-grid { grid-template-columns: 1fr; }
  .head-cta .btn-ghost { display: none; }
  .foot-nav { margin-left: 0; }
}
