/* ---------- tokens ---------- */
:root {
  --denim: #233b6e;
  --denim-light: #415f9d;
  --denim-soft: #eef1f7;
  --ink: #1a2533;
  --ink-soft: #5a6878;
  --line: #e3e6ec;
  --bg: #ffffff;
  --bg-alt: #f6f7fa;
  --radius: 6px;
  --max: 1120px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--denim-light); text-decoration: none; }
a:hover { color: var(--denim); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .6em; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--ink-soft); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  background: var(--denim-soft);
  color: var(--denim);
  padding: .08em .35em;
  border-radius: 4px;
}

/* ---------- wordmark ---------- */
.wordmark {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--denim);
  text-decoration: none;
}
.wordmark:hover { text-decoration: none; }
.wordmark-task  { color: var(--denim); }
.wordmark-smart { color: var(--denim-light); }
.wordmark-small { font-size: 1.05rem; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

/* ---------- CTA buttons ---------- */
.cta {
  display: inline-block;
  padding: .7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
  white-space: nowrap;
}
.cta-primary {
  background: var(--denim);
  color: #fff;
  padding: .9rem 1.6rem;
  font-size: 1.05rem;
}
.cta-primary:hover {
  background: var(--denim-light);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.cta-ghost {
  background: transparent;
  color: var(--denim);
  border: 1px solid var(--denim);
}
.cta-ghost:hover {
  background: var(--denim);
  color: #fff;
  text-decoration: none;
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1.1fr; padding-top: 4rem; padding-bottom: 5rem; }
}
.hero-inner h1 { margin-bottom: .5em; }
.hero-inner .lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 32em;
  margin-bottom: 1.6em;
}
.hero-fineprint {
  font-size: .9rem;
  color: var(--ink-soft);
  margin-top: 1em;
  margin-bottom: 0;
}
.hero-figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 48px -20px rgba(35, 59, 110, .35), 0 6px 18px -10px rgba(35, 59, 110, .15);
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.hero-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1600 / 1000;
  object-fit: cover;
}

/* ---------- generic section spacing ---------- */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ---------- features ---------- */
.features {
  background: var(--bg-alt);
  padding: 4.5rem 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.features .section-title { max-width: var(--max); margin-left: auto; margin-right: auto; }
.feature {
  max-width: var(--max);
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.feature:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; }
  .feature-reverse .feature-text   { order: 2; }
  .feature-reverse .feature-figure { order: 1; }
}
.feature-text h3 { margin-bottom: .5em; }
.feature-figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px -22px rgba(35, 59, 110, .35);
}
.feature-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 800;
  object-fit: cover;
}
.syntax-list {
  list-style: none;
  padding: 0;
  margin: 1em 0 0;
  color: var(--ink-soft);
}
.syntax-list li { padding: .25em 0; }

/* ---------- why ---------- */
.why { padding: 4.5rem 1.5rem; }
.why-inner { max-width: var(--max); margin: 0 auto; }
.why-lead { text-align: center; max-width: 38em; margin: 0 auto 2.5rem; font-size: 1.1rem; }
.why-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.why-card h4 { color: var(--ink); margin-bottom: .35em; }
.why-card p  { margin: 0; }
.why-card-highlight {
  background: var(--denim);
  border-color: var(--denim);
}
.why-card-highlight h4 { color: #fff; }
.why-card-highlight p  { color: rgba(255,255,255,.85); }

/* ---------- cross-device ---------- */
.cross-device {
  background: var(--bg-alt);
  padding: 4.5rem 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cross-device-text {
  max-width: 38em;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.cross-device-figs {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: end;
  justify-items: center;
}
@media (min-width: 800px) {
  .cross-device-figs { grid-template-columns: 200px 1fr; gap: 3rem; }
}
.cross-device-mobile {
  margin: 0;
  width: 200px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 36px -22px rgba(35, 59, 110, .45);
}
.cross-device-mobile img {
  display: block;
  width: 100%;
  aspect-ratio: 375 / 667;
  object-fit: cover;
}
.cross-device-desktop {
  margin: 0;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px -22px rgba(35, 59, 110, .35);
  background: var(--bg);
}
.cross-device-desktop img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 800;
  object-fit: cover;
}

/* ---------- final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 5rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}
.final-cta h2 { margin-bottom: 1.5rem; }
.final-cta .hero-fineprint { margin-top: 1.2em; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: .92rem;
  color: var(--ink-soft);
}
.site-footer .copy { color: var(--ink-soft); }
