/* Lineo — dark, minimal product site. */
:root {
  --bg: #08090a;
  --bg-elev: #0f1011;
  --card: #141516;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f7f8f8;
  --muted: #8a8f98;
  --faint: #62666d;
  --accent: #7d7aff;
  --accent-2: #5856d6;
  --radius: 14px;
  --gutter: 24px;
  /* theme-dependent details */
  --nav-bg: rgba(8, 9, 10, 0.72);
  --btn-bg: #f7f8f8; --btn-fg: #0b0c0d; --btn-hover: #ffffff;
  --ghost-bg: rgba(255, 255, 255, 0.04); --ghost-hover: rgba(255, 255, 255, 0.08);
  --title-from: #ffffff; --title-to: rgba(255, 255, 255, 0.55);
  --code-fg: #c9c7ff; --code-bg: rgba(125, 122, 255, 0.1); --code-border: rgba(125, 122, 255, 0.25);
  --kbd-top: #1c1d1f; --kbd-bottom: #131415; --kbd-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 2px 0 rgba(0, 0, 0, 0.6);
  --icon-top: rgba(255, 255, 255, 0.08); --icon-bottom: rgba(255, 255, 255, 0.02);
  --chip-bg: rgba(255, 255, 255, 0.03);
  --glow: rgba(125, 122, 255, 0.35); --cta-glow: rgba(125, 122, 255, 0.18);
  --shot-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 40px 120px -20px rgba(88, 86, 214, 0.35), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  --frame-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  --featured-border: rgba(125, 122, 255, 0.5); --featured-top: rgba(125, 122, 255, 0.10);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #fbfbfc;
  --bg-elev: #ffffff;
  --card: #f4f5f7;
  --border: rgba(15, 17, 20, 0.08);
  --border-strong: rgba(15, 17, 20, 0.13);
  --text: #0d0e10;
  --muted: #5c616a;
  --faint: #868b94;
  --accent: #5856d6;
  --nav-bg: rgba(251, 251, 252, 0.78);
  --btn-bg: #0d0e10; --btn-fg: #ffffff; --btn-hover: #26282c;
  --ghost-bg: rgba(15, 17, 20, 0.03); --ghost-hover: rgba(15, 17, 20, 0.07);
  --title-from: #0d0e10; --title-to: rgba(13, 14, 16, 0.6);
  --code-fg: #4644b8; --code-bg: rgba(88, 86, 214, 0.07); --code-border: rgba(88, 86, 214, 0.22);
  --kbd-top: #ffffff; --kbd-bottom: #f1f2f4; --kbd-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 2px 0 rgba(15, 17, 20, 0.12);
  --icon-top: #ffffff; --icon-bottom: #f1f2f5;
  --chip-bg: #ffffff;
  --glow: rgba(88, 86, 214, 0.22); --cta-glow: rgba(88, 86, 214, 0.12);
  --shot-shadow: 0 0 0 1px rgba(15, 17, 20, 0.06), 0 40px 120px -30px rgba(88, 86, 214, 0.28), 0 30px 60px -30px rgba(15, 17, 20, 0.25);
  --frame-shadow: 0 30px 80px -40px rgba(15, 17, 20, 0.3);
  --featured-border: rgba(88, 86, 214, 0.45); --featured-top: rgba(88, 86, 214, 0.07);
  color-scheme: light;
}

/* One screenshot per theme. */
.theme-light { display: none !important; }
:root[data-theme="light"] .theme-light { display: block !important; }
:root[data-theme="light"] .theme-dark { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand img { border-radius: 6px; }
.nav-links { display: flex; gap: 28px; margin-right: auto; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px;
  font-size: 15px; font-weight: 500;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-light { background: var(--btn-bg); color: var(--btn-fg); }
.btn-light:hover { background: var(--btn-hover); }
.btn-ghost { background: var(--ghost-bg); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--ghost-hover); }

.theme-toggle {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--ghost-bg); color: var(--muted); cursor: pointer;
}
.theme-toggle { margin-right: -16px; }
.theme-toggle:hover { color: var(--text); background: var(--ghost-hover); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-sun { display: none; }
:root[data-theme="light"] .i-sun { display: block; }
:root[data-theme="light"] .i-moon { display: none; }
.btn-small { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 40px; text-align: center; position: relative; }

h1, h2 { letter-spacing: -0.035em; line-height: 1.05; margin: 0; font-weight: 600; }
h1 {
  margin-top: 0;
  font-size: clamp(40px, 7.2vw, 80px);
  background: linear-gradient(180deg, var(--title-from) 30%, var(--title-to));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 640px; margin: 24px auto 0; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.fineprint { margin-top: 16px; font-size: 13px; color: var(--faint); }

.hero-shot { position: relative; margin-top: 72px; padding: 0; }
.hero-shot img {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shot-shadow);
}
.glow {
  position: absolute; inset: -12% 8% auto; height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, var(--glow), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
/* Fade the bottom of the hero screenshot into the page. */
.hero-shot::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 30%;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

/* ---------- Sections ---------- */
.section { padding: 120px 0; border-top: 1px solid var(--border); position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--accent); }
h2 { font-size: clamp(32px, 4.6vw, 52px); }
.sub { margin: 20px 0 0; font-size: 18px; color: var(--muted); max-width: 620px; }

.frame {
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  padding: 8px;
  box-shadow: var(--frame-shadow);
}
.frame img, .frame video { border-radius: 10px; width: 100%; }
/* The recording includes the window's outline and the desktop at the corners: trim them. */
.frame video { clip-path: inset(3px round 14px); }

/* Features grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--bg); padding: 32px; }
.card h3 { margin: 18px 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 10px; font-size: 18px;
  background: linear-gradient(180deg, var(--icon-top), var(--icon-bottom));
  border: 1px solid var(--border-strong);
  color: var(--text);
}

/* Split layouts */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.split-reverse { grid-template-columns: 1.15fr 0.85fr; }

.keys { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.keys li { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; }
.keys span { margin-left: 10px; }
kbd {
  min-width: 30px; height: 30px; padding: 0 8px;
  display: inline-grid; place-items: center;
  font-family: "Inter", sans-serif; font-size: 13px; font-weight: 500; color: var(--text);
  border-radius: 7px; border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, var(--kbd-top), var(--kbd-bottom));
  box-shadow: var(--kbd-shadow);
}

/* GitHub flow */
.flow {
  display: grid; gap: 14px; max-width: 640px;
  padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--bg-elev);
}
.flow-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.flow code {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 14px;
  color: var(--code-fg); background: var(--code-bg);
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--code-border);
  overflow-wrap: anywhere;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--border-strong); color: var(--text); background: var(--chip-bg);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.chip-yellow::before { background: #f5b800; }
.chip-green::before { background: #28b84c; }
.chip-indigo::before { background: var(--accent); }
.arrow { color: var(--faint); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan {
  display: flex; flex-direction: column;
  padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--bg-elev);
}
.plan h3 { margin: 0; font-size: 17px; font-weight: 600; }
.price { margin: 18px 0 4px; font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.price span { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan-sub { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; font-size: 15px; flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 600; }
.plan-featured {
  border-color: var(--featured-border);
  background: linear-gradient(180deg, var(--featured-top), var(--bg-elev) 60%);
  box-shadow: 0 30px 80px -40px rgba(88, 86, 214, 0.6);
}

/* Final CTA */
.cta { text-align: center; padding: 140px 0; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(40% 50% at 50% 30%, var(--cta-glow), transparent 70%);
  pointer-events: none;
}
.cta .container { position: relative; }
.cta-icon { margin: 0 auto 32px; border-radius: 22px; box-shadow: 0 20px 60px -10px rgba(88, 86, 214, 0.6); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--faint); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid, .pricing { grid-template-columns: 1fr 1fr; }
  .split, .split-reverse { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse .frame { order: 2; }
  .nav-links { display: none; }
  .brand { margin-right: auto; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .hero { padding-top: 64px; }
  .hero-shot { margin-top: 48px; }
  .section { padding: 80px 0; }
  .grid, .pricing { grid-template-columns: 1fr; }
  .card, .plan, .flow { padding: 24px; }
  .frame { padding: 4px; }
}
