/* Design tokens copied directly from the app's own src/renderer/src/styles/global.css (dark
   theme) — this page intentionally looks like an extension of the app, not a separate "marketing
   site" aesthetic. Sharp 2px radius, flat borders, hover-changes-border-not-background buttons,
   and the app's exact color values throughout. */
:root {
  --color-bg: #14161a;
  --color-surface: #1c1f25;
  --color-surface-alt: #232830;
  --color-border: #313742;
  --color-text: #eef1f5;
  --color-text-dim: #939ba7;
  --color-accent: #3d9bff;
  --color-on-accent: #04203f;
  --radius: 2px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 22, 26, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-dim);
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--color-text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-text);
}

/* Hero */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px 96px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.lede {
  color: var(--color-text-dim);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons — same shape/behavior as the app's .btn / .btn.primary: flat surface with a border,
   hover swaps the border to accent color rather than lightening the fill; primary variant fills
   solid accent with the app's --color-on-accent text. */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.btn:hover { border-color: var(--color-accent); }

.btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
}

.btn-primary:hover { border-color: var(--color-accent); filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
}

.hero-image img {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

/* Section shared */

.section-title {
  text-align: center;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  margin: 0 0 48px;
}

/* Features — same card treatment as the app's .card (Home screen tiles): --color-surface-alt
   fill, 1px border, sharp radius, hover changes only the border color. */

.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 96px;
}

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

.feature-card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.15s ease;
}

.feature-card:hover { border-color: var(--color-accent); }

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.feature-card p {
  margin: 0;
  color: var(--color-text-dim);
  font-size: 0.85rem;
}

/* Showcase */

.showcase {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 100px;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--color-border);
}

.showcase-row:first-of-type { border-top: none; }

.showcase-row.reverse { grid-template-columns: 1fr 1.3fr; }
.showcase-row.reverse .showcase-image { order: 2; }
.showcase-row.reverse .showcase-copy { order: 1; }

.showcase-image img {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.showcase-copy h3 {
  font-size: 1.3rem;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.showcase-copy p {
  color: var(--color-text-dim);
  margin: 0;
  max-width: 42ch;
}

/* Footer */

.footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 24px;
  text-align: center;
  color: var(--color-text-dim);
  font-size: 0.85rem;
}

.footer a {
  color: var(--color-text-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer a:hover { color: var(--color-text); }

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
    text-align: center;
  }
  .hero-actions { justify-content: center; }
  .lede { margin-left: auto; margin-right: auto; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }

  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr;
  }
  .showcase-row.reverse .showcase-image,
  .showcase-row.reverse .showcase-copy { order: initial; }
  .showcase-copy p { max-width: none; }
}

@media (max-width: 620px) {
  .feature-grid { grid-template-columns: 1fr; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
}
