/* Floating Todos — f-todo.com
   Dark glass palette lifted from the app: #111117 / #191A21 / #1E2025,
   priority accents red / orange / yellow. */

:root {
  --bg: #111117;
  --bg-raise: #191a21;
  --bg-card: #1e2025;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e8e9ed;
  --text-dim: #9a9ca6;
  --text-faint: #6b6d78;
  --red: #e5484d;
  --orange: #f0883e;
  --yellow: #e2b93d;
  --blue: #6e9fff;
  --green: #46a758;
  --radius: 12px;
  --radius-lg: 18px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img { max-width: 100%; height: auto; display: block; }

code, kbd, pre { font-family: var(--mono); font-size: 0.88em; }

kbd {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.1em 0.45em;
  white-space: nowrap;
  color: var(--text);
}

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

/* --- nav ------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(17, 17, 23, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }

.logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--red), var(--orange) 55%, var(--yellow));
  box-shadow: 0 0 14px rgba(240, 136, 62, 0.45);
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
}
.nav-links a { color: var(--text-dim); font-size: 14.5px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-block;
  background: var(--text);
  color: var(--bg) !important;
  font-weight: 600;
  font-size: 14.5px;
  padding: 8px 18px;
  border-radius: 999px;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; text-decoration: none; }

.btn-big { font-size: 16px; padding: 13px 30px; }

.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-card); opacity: 1; }

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

.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(42% 55% at 68% 38%, rgba(229, 72, 77, 0.16), transparent 70%),
    radial-gradient(38% 50% at 30% 60%, rgba(240, 136, 62, 0.10), transparent 70%),
    radial-gradient(30% 42% at 55% 82%, rgba(110, 159, 255, 0.07), transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; text-align: center; }

.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 820px;
  margin: 0 auto;
}

.hero h1 .accent {
  background: linear-gradient(100deg, var(--red), var(--orange) 60%, var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .sub {
  color: var(--text-dim);
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 640px;
  margin: 22px auto 0;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-note { color: var(--text-faint); font-size: 13.5px; margin-top: 14px; }
.hero-note kbd { font-size: 12px; }

/* hero visual: fake IDE + floating panel screenshot */

.hero-visual {
  position: relative;
  max-width: 920px;
  margin: 64px auto 0;
  text-align: left;
}

.fake-ide {
  background: #14151b;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
}

.fake-ide-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #191a21;
}
.fake-ide-bar i {
  width: 12px; height: 12px; border-radius: 50%;
  background: #3a3b43; display: inline-block;
}
.fake-ide-bar i:first-child { background: #454650; }
.fake-ide-bar span {
  margin-left: 10px;
  color: var(--text-faint);
  font-size: 12px;
}

.fake-ide pre {
  padding: 22px 26px 30px;
  overflow: hidden;
  color: #7d8291;
  white-space: pre;
}
.fake-ide .k { color: #c678a4; }
.fake-ide .f { color: #6e9fff; }
.fake-ide .s { color: #98b96f; }
.fake-ide .c { color: #565b68; }

.hero-panel {
  position: absolute;
  right: -14px;
  top: 42px;
  width: min(46%, 420px);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

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

section { padding: 88px 0; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow.red { color: var(--red); }
.eyebrow.orange { color: var(--orange); }
.eyebrow.yellow { color: var(--yellow); }
.eyebrow.blue { color: var(--blue); }
.eyebrow.green { color: var(--green); }

h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-weight: 750;
}

.section-sub { color: var(--text-dim); max-width: 620px; margin-top: 14px; }

/* alternating feature rows */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.feature:first-of-type { border-top: none; }
.feature.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-shot { order: 1; }

.feature-copy h3 {
  font-size: clamp(22px, 2.8vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.feature-copy p { color: var(--text-dim); margin-bottom: 12px; }

.feature-copy ul {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.feature-copy li {
  color: var(--text-dim);
  padding-left: 22px;
  position: relative;
  font-size: 15px;
}
.feature-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--orange);
}

.feature-shot {
  background:
    radial-gradient(80% 90% at 30% 20%, rgba(229, 72, 77, 0.10), transparent 65%),
    radial-gradient(90% 80% at 75% 85%, rgba(110, 159, 255, 0.08), transparent 65%),
    var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3.4vw, 40px);
}

.feature-shot img {
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}

.feature-shot .stack { display: grid; gap: 18px; }

/* --- card grids -------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.card {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.card h3, .card h4 {
  font-size: 17px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

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

.card .glyph {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: 18px;
}

/* --- integrations ------------------------------------------------------ */

.int-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.int {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.int img { width: 30px; height: 30px; flex: none; margin-top: 3px; }

.int h3, .int h4 { font-size: 16px; margin-bottom: 4px; }
.int p { color: var(--text-dim); font-size: 13.5px; line-height: 1.5; }

/* --- misc grid («and everything else») --------------------------------- */

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

.mini {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  font-size: 14px;
}
.mini b { display: block; margin-bottom: 4px; font-size: 14.5px; }
.mini span { color: var(--text-dim); font-size: 13px; line-height: 1.45; display: block; }

/* --- terminal / code block --------------------------------------------- */

.term {
  background: #0d0e12;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 18px 0;
}

.term-bar {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 12px;
  font-family: var(--mono);
}

.term pre {
  padding: 14px 16px;
  overflow-x: auto;
  color: #c9cbd4;
  font-size: 13.5px;
  line-height: 1.65;
}

.term .copy {
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  border-radius: 6px;
  font-size: 11.5px;
  font-family: var(--sans);
  padding: 3px 10px;
  cursor: pointer;
}
.term .copy:hover { color: var(--text); border-color: var(--text-faint); }

/* --- CTA band ----------------------------------------------------------- */

.cta-band {
  text-align: center;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(50% 90% at 50% 0%, rgba(240, 136, 62, 0.10), transparent 70%);
}

/* --- footer -------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 60px;
  color: var(--text-faint);
  font-size: 14px;
}

.foot-inner {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { color: var(--text-dim); }

/* --- docs layout ---------------------------------------------------------- */

.docs {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  padding: 48px 0 96px;
}

.docs-nav {
  position: sticky;
  top: 84px;
  align-self: start;
  display: grid;
  gap: 2px;
  font-size: 14.5px;
}

.docs-nav .docs-nav-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin: 0 0 8px 10px;
}

.docs-nav a {
  color: var(--text-dim);
  padding: 7px 10px;
  border-radius: 8px;
}
.docs-nav a:hover { color: var(--text); background: var(--bg-raise); text-decoration: none; }
.docs-nav a.active { color: var(--text); background: var(--bg-card); font-weight: 600; }

.docs-body { max-width: 720px; }

.docs-body h1 {
  font-size: 34px;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.docs-body .lead { color: var(--text-dim); font-size: 17px; margin-bottom: 34px; }

.docs-body h2 {
  font-size: 22px;
  margin: 44px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.docs-body h3 { font-size: 17px; margin: 26px 0 8px; }

.docs-body p { color: var(--text-dim); margin-bottom: 12px; }
.docs-body p strong, .docs-body li strong { color: var(--text); }

.docs-body ul, .docs-body ol { margin: 0 0 14px 22px; color: var(--text-dim); }
.docs-body li { margin-bottom: 6px; }

.docs-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 26px;
  font-size: 14.5px;
}

.docs-body th {
  text-align: left;
  color: var(--text-faint);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 8px 14px 8px 0;
  border-bottom: 1px solid var(--line-strong);
}

.docs-body td {
  padding: 9px 14px 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  vertical-align: top;
}
.docs-body td:first-child { white-space: nowrap; }

.table-scroll { overflow-x: auto; }

.callout {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--orange);
  background: var(--bg-raise);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
  font-size: 14.5px;
  color: var(--text-dim);
}
.callout.red { border-left-color: var(--red); }
.callout.blue { border-left-color: var(--blue); }
.callout b { color: var(--text); }

.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid rgba(226, 185, 61, 0.4);
  background: rgba(226, 185, 61, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
  vertical-align: 3px;
  margin-left: 10px;
}

/* --- 404 -------------------------------------------------------------------- */

.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.error-page h1 { font-size: 72px; letter-spacing: -0.04em; }
.error-page p { color: var(--text-dim); margin: 12px 0 28px; }

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

@media (max-width: 900px) {
  .grid, .int-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 30px; padding: 56px 0; }
  .feature.flip .feature-copy { order: 1; }
  .feature.flip .feature-shot { order: 2; }
  .docs { grid-template-columns: 1fr; gap: 32px; }
  .docs-nav { position: static; grid-template-columns: repeat(2, 1fr); }
  .docs-nav .docs-nav-title { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .nav-links a:not(.btn) { display: none; }
  .grid, .int-grid, .mini-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .hero-panel { position: static; width: 88%; margin: -30px auto 0; }
  section { padding: 60px 0; }
}
