@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

/* ============================================================
   Visual Audit — marketing landing page styles (self-contained).
   Mirrors the app's modern-SaaS design tokens: cool-gray neutral
   surfaces, indigo accent, light + dark themes via [data-theme].
   ============================================================ */

:root {
  color-scheme: light;
  --font-sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --ink: #14171c;
  --muted: #5c6470;
  --faint: #98a1ad;
  --line: #e6e9ee;
  --line-strong: #d6dae1;

  --accent: #4f46e5;
  --accent-ink: #4338ca;
  --accent-weak: rgba(79, 70, 229, 0.1);
  --ring: rgba(79, 70, 229, 0.32);

  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --on-primary: #ffffff;

  --hover-tint: rgba(20, 23, 28, 0.05);
  --radius: 10px;
  --shadow-card: 0 1px 2px rgba(20, 23, 28, 0.05), 0 1px 0 rgba(20, 23, 28, 0.02);
  --shadow-pop: 0 24px 60px -20px rgba(20, 23, 28, 0.28), 0 8px 24px -12px rgba(20, 23, 28, 0.12);
  --grid-tint: rgba(79, 70, 229, 0.07);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1117;
  --surface: #161b22;
  --surface-2: #1c222b;
  --ink: #e8eaed;
  --muted: #9ba3af;
  --faint: #6b7480;
  --line: #262d38;
  --line-strong: #333b48;

  --accent: #6366f1;
  --accent-ink: #a5b4fc;
  --accent-weak: rgba(99, 102, 241, 0.16);
  --ring: rgba(99, 102, 241, 0.42);

  --primary: #6366f1;
  --primary-hover: #818cf8;
  --on-primary: #ffffff;

  --hover-tint: rgba(255, 255, 255, 0.07);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.02);
  --shadow-pop: 0 28px 64px -20px rgba(0, 0, 0, 0.7), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  --grid-tint: rgba(99, 102, 241, 0.12);
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); border-radius: 6px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
}
.skip-link:focus { left: 1rem; }

/* ---------- brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--surface), 0 0 0 1px var(--accent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2.4rem;
  padding: 0 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn--lg { height: 2.9rem; padding: 0 1.5rem; font-size: 0.98rem; }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}
.site-nav { display: flex; gap: 1.6rem; font-size: 0.92rem; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }
.site-header__actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle { display: none; }

.mobile-nav { display: none; flex-direction: column; gap: 0.25rem; padding: 0.75rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.mobile-nav a { padding: 0.7rem 0.25rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: none; margin-top: 0.5rem; }
.mobile-nav[hidden] { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  background-image:
    radial-gradient(48rem 28rem at 80% -10%, var(--accent-weak), transparent 60%),
    linear-gradient(var(--grid-tint) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-tint) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 0.9rem;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
.lead { margin-top: 1.1rem; font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 38ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero__note { margin-top: 1rem; font-size: 0.82rem; color: var(--faint); }

/* hero product mock */
.hero__visual { perspective: 1400px; }
.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  transform: rotateY(-9deg) rotateX(4deg);
  transform-style: preserve-3d;
}
.mock__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock__dot { width: 9px; height: 9px; border-radius: 999px; background: var(--line-strong); }
.mock__title { margin-left: 0.6rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.mock__plan {
  position: relative;
  height: 220px;
  margin: 0.9rem;
  border-radius: 10px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--surface-2);
  background-size: 26px 26px, 26px 26px, auto;
}
.mock__zone {
  position: absolute;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 7px;
  border: 1.5px solid var(--accent);
  background: var(--accent-weak);
  color: var(--accent-ink);
}
.mock__zone--a { top: 22px; left: 22px; }
.mock__zone--b { top: 26px; right: 26px; }
.mock__zone--d { bottom: 22px; left: 30px; }
.mock__zone--c {
  bottom: 30px; right: 24px;
  border-color: #e0792b;
  background: rgba(224, 121, 43, 0.16);
  color: #c2611c;
  animation: pulse 2.4s ease-in-out infinite;
}
.mock__gantt { display: flex; flex-direction: column; gap: 0.5rem; padding: 0 0.9rem 1rem; }
.mock__row { display: block; height: 12px; border-radius: 999px; background: var(--surface-2); }
.mock__row i { display: block; height: 100%; border-radius: 999px; background: var(--accent); opacity: 0.85; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 121, 43, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(224, 121, 43, 0); }
}

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--tight { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.section--alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 44rem; margin: 0 auto clamp(1.8rem, 4vw, 3rem); text-align: center; }
.section__head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
.section__sub { margin-top: 0.8rem; color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

/* definition block */
.define { padding: clamp(1.5rem, 3vw, 2.2rem); max-width: 56rem; margin: 0 auto; }
.define__h { font-size: 1.3rem; margin-bottom: 0.7rem; }
.define p { color: var(--muted); }
.define strong { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1.1rem 0 0; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-weak);
  color: var(--accent-ink);
}

/* grids */
.grid { display: grid; gap: 1.1rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.feature { padding: 1.5rem; }
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background: var(--accent-weak);
  color: var(--accent-ink);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.feature h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; counter-reset: step; }
.step { padding: 1.5rem; position: relative; }
.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* use cases */
.usecase { padding: 1.4rem; }
.usecase h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.usecase p { color: var(--muted); font-size: 0.92rem; }

/* faq */
.faq { display: flex; flex-direction: column; gap: 0.8rem; }
.faq__item { padding: 0 1.2rem; }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent-ink); font-size: 1.3rem; line-height: 1; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { color: var(--muted); padding: 0 0 1.2rem; }

/* CTA band */
.cta { text-align: center; padding: clamp(2.2rem, 5vw, 3.5rem); background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta p { color: var(--muted); margin: 0.7rem 0 1.5rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 2.5rem 0 1.5rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.site-footer__tag { margin-top: 0.7rem; color: var(--muted); font-size: 0.9rem; max-width: 30ch; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--muted); font-size: 0.92rem; align-items: flex-start; }
.site-footer__links a:hover { color: var(--ink); }
.site-footer__legal { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.82rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .lead { max-width: none; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-header__actions .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 560px) {
  .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .site-header__actions .btn { padding: 0 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  .mock { transform: none; }
}
