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

:root {
  --bg: #ffffff;
  --surface: #f4f4f5;
  --border: #e4e4e7;
  --text: #18181b;
  --muted: #71717a;
  --accent: #e05c2a;
  --code-bg: #f4f4f5;
  --radius: 10px;
  --max: 1400px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-title { font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

/* HERO */
main { max-width: var(--max); margin: 0 auto; padding: 0 3rem 4rem; }

.hero { padding: 4rem 0 2.5rem; text-align: center; }
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
h1 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin: 0 auto 1rem;
}
.authors { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.3rem; }
.status { color: var(--muted); font-size: 0.85rem; }

/* SLIDER */
.slider-section { padding: 1rem 0 3rem; text-align: center; }
.slider-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }

.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: col-resize;
  user-select: none;
  line-height: 0;
}

.img-before {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.img-after-wrap {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
}
.img-after {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  pointer-events: none;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.handle-line { flex: 1; width: 2px; background: transparent; }
.handle-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.handle-circle svg { width: 14px; height: 14px; color: #111; }

.img-tag {
  position: absolute;
  bottom: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.9);
  pointer-events: none;
}
.tag-left { left: 12px; }
.tag-right { right: 12px; }

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; }
.card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.card code { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; background: var(--border); padding: 0.1em 0.3em; border-radius: 3px; }

/* INSTALL */
.install { margin-bottom: 3rem; }
h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.01em; }
pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 0.75rem;
}
code { font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; color: #3f3f46; line-height: 1.7; }
p code { background: var(--surface); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.8rem; border: 1px solid var(--border); }
.install p { font-size: 0.85rem; color: var(--muted); }

/* MODELS */
.models { margin-bottom: 3rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th {
  text-align: left; padding: 0.6rem 1rem;
  color: var(--muted); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

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