@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ─── Design tokens ──────────────────────────────────────────────────────── */
:root {
  --bg: #0a0e14;
  --panel: #10151f;
  --panel-2: #161c28;
  --panel-3: #1c2330;
  --line: #1f2837;
  --line-strong: #2a3548;
  --text: #e6edf3;
  --text-muted: #8b98a5;
  --text-dim: #5e6b7a;
  --accent: #4cc9f0;
  --accent-2: #7dd3fc;
  --accent-warm: #f5b544;
  --pos: #22c55e;
  --pos-strong: #16a34a;
  --neg: #ef4444;
  --neg-strong: #dc2626;
  --mono-font: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
  --ui-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 6px;
  --radius-lg: 8px;
  font-family: var(--ui-font);
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: clip;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* ─── Shared nav ─────────────────────────────────────────────────────────── */
.home-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.home-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}
.home-nav-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.hero-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #0a0e14;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.home-nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.home-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.home-nav-link:hover { color: var(--text); }
.home-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  background: var(--accent);
  color: #0a0e14;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.15s;
}
.home-nav-cta:hover { opacity: 0.85; }

/* ─── Shared footer ──────────────────────────────────────────────────────── */
.home-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text-dim);
}
.home-footer-sep { color: var(--line-strong); }
.home-footer-link {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.home-footer-link:hover { color: var(--text-muted); }

/* ─── Home page ──────────────────────────────────────────────────────────── */
.home-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.home-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}
.home-hero-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 99px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.home-hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  color: var(--text);
}
.home-hero-accent { color: var(--accent); }
.home-hero-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 0 2.5rem;
}
.home-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.home-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, background 0.15s;
}
.home-btn--primary { background: var(--accent); color: #0a0e14; }
.home-btn--primary:hover { opacity: 0.87; }
.home-btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--line-strong);
}
.home-btn--ghost:hover { color: var(--text); border-color: var(--text-dim); }

.home-concepts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  width: 100%;
}
.home-concepts-heading {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  padding: 2rem 2rem 1rem;
  margin: 0;
}
.home-concept {
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.home-concept-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.home-concept p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.home-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  width: 100%;
}
.home-feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.home-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent);
  margin-bottom: 1rem;
}
.home-feature h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.home-feature p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.home-disclaimer {
  max-width: 760px;
  margin: 0 auto 3rem;
  padding: 1.25rem 2rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  width: calc(100% - 4rem);
}
.home-disclaimer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  text-align: center;
}
.home-disclaimer strong { color: var(--accent-warm); }
.home-inline-link { color: var(--accent); text-decoration: none; }
.home-inline-link:hover { text-decoration: underline; }

/* ─── About page ─────────────────────────────────────────────────────────── */
.about-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.about-article {
  width: min(760px, 100% - 4rem);
  margin: 3rem auto 4rem;
  flex: 1;
}
.about-header { margin-bottom: 3rem; }
.about-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.about-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.2;
  color: var(--text);
}
.about-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}
.about-section { margin-bottom: 2.5rem; }
.about-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.about-section p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0.75rem 0;
}
.about-section ul {
  margin: 0.75rem 0;
  padding-left: 1.4rem;
}
.about-section ul li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.35rem;
}
.about-section strong { color: var(--text); }
.about-callout {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 1.25rem 0;
}
.about-callout--warn {
  background: color-mix(in srgb, var(--accent-warm) 8%, var(--panel-2));
  border: 1px solid color-mix(in srgb, var(--accent-warm) 30%, transparent);
  color: var(--text-muted);
}
.about-callout--warn strong { color: var(--accent-warm); }
.about-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}
.about-link:hover { text-decoration: underline; }

/* ─── Legal page ─────────────────────────────────────────────────────────── */
.legal-wrap {
  width: min(860px, 100% - 2rem);
  margin: 2rem auto 4rem;
}
.legal-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
}
.legal-back:hover { text-decoration: underline; }
.legal-article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  color: var(--text);
  line-height: 1.75;
}
.legal-article h1, .legal-article h2, .legal-article h3 {
  color: var(--text);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.legal-article h1 { font-size: 1.5rem; margin-top: 0; }
.legal-article h2 { font-size: 1.15rem; }
.legal-article h3 { font-size: 1rem; }
.legal-article p {
  margin: 0.75rem 0;
  color: var(--text-muted);
}
.legal-article a { color: var(--accent); text-decoration: none; }
.legal-article a:hover { text-decoration: underline; }

/* ─── Responsive tweaks ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .home-nav { padding: 0 1rem; }
  .about-article { width: calc(100% - 2.5rem); margin: 2rem auto 3rem; }
}
