@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #ffffff;
  --bg-sunk: #fafaf9;
  --ink: #111;
  --ink-soft: #555;
  --ink-meta: #888;
  --line: #ececec;
  --line-strong: #d4d4d4;
  --orange: #dc6d2a;
  --orange-soft: rgba(220,109,42,.08);
  --green: #15803d;
  --amber: #f59e0b;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
p { text-wrap: pretty; }
code {
  font-family: var(--mono);
  font-size: .9em;
  padding: 1px 6px;
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-soft);
}

.container { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* === Topbar === */
.topbar {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  z-index: 50;
}
.topbar .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--ink-meta);
  text-transform: uppercase;
}
.topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: .08em;
  transition: color .2s ease;
}
.topbar .brand:hover { color: var(--orange); }
.topbar .meta { display: flex; gap: 14px; align-items: center; }
.topbar .live::before {
  content: "●"; color: var(--green); margin-right: 4px;
  animation: blink 2s infinite;
}
@keyframes blink { 50% { opacity: .3; } }

/* === Hero === */
.proj-hero {
  padding: 96px 0 64px;
}
.proj-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.proj-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 110px);
  line-height: .96;
  letter-spacing: -.04em;
  color: var(--ink);
  margin-bottom: 28px;
}
.proj-hero h1 .punkt { color: var(--orange); }
.proj-tagline {
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 600px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all .2s ease;
  cursor: pointer;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.btn-primary:hover {
  background: var(--orange);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220,109,42,.35);
  color: white;
}
.btn-secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-meta);
  letter-spacing: .04em;
}

/* === Showcase === */
.showcase {
  margin: 32px 0 80px;
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.browser-bar {
  background: #f3f3f1;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-meta);
}
.dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #ddd; }
.dot.r { background: #e5675b; }
.dot.y { background: #e0c14f; }
.dot.g { background: #5cb05c; }
.url { flex: 1; text-align: center; color: var(--ink-soft); }
.url::before { content: "🔒 "; opacity: .5; }
.img-wrap {
  position: relative;
  aspect-ratio: 1920 / 920;
  max-height: 540px;
  overflow: hidden;
}
.img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.caption {
  padding: 14px 20px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-meta);
  letter-spacing: .04em;
}

/* === Sections === */
section {
  padding: 56px 0;
}
section + section { border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}
.section-head .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--orange);
  text-transform: uppercase;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -.02em;
  line-height: 1;
}
.lead {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 620px;
  margin-bottom: 32px;
}
.lead strong { font-weight: 500; }

/* === Bullets === */
.bullets {
  display: grid;
  gap: 24px;
}
.bullet {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.bullet:first-child { border-top: none; padding-top: 0; }
.bullet .b-num {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--orange);
  padding-top: 4px;
}
.bullet h4 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
  letter-spacing: -.005em;
}
.bullet p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* === Stack tiles === */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stack-tile {
  padding: 22px 24px;
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s ease, transform .2s ease;
}
.stack-tile:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.stack-tile .t-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--ink-meta);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.stack-tile .t-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.stack-tile .t-detail {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
@media (max-width: 600px) {
  .stack-grid { grid-template-columns: 1fr; }
}

/* === AI Flow === */
.ai-flow {
  display: grid;
  gap: 18px;
}
.flow-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 24px;
  background: linear-gradient(180deg, #ffffff, #fbfaf8);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s ease, transform .2s ease;
}
.flow-step:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}
.flow-step .s-num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -.02em;
}
.flow-step h4 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}
.flow-step p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* === Stats strip === */
.stats-strip {
  margin: 56px 0;
  padding: 28px 32px;
  background: var(--ink);
  color: white;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: 0 12px 32px rgba(0,0,0,.10);
}
.stats-strip .divider {
  width: 1px; background: rgba(255,255,255,.12); height: 50px;
}
.stats-strip .stat .num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.stats-strip .stat .num .accent { color: var(--orange); }
.stats-strip .stat .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .stats-strip { grid-template-columns: 1fr; gap: 18px; padding: 22px 24px; }
  .stats-strip .divider { display: none; }
}

/* === CTA === */
.cta {
  text-align: center;
  padding: 80px 0 60px;
}
.cta h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  margin-bottom: 12px;
  letter-spacing: -.015em;
}
.cta p {
  color: var(--ink-soft);
  font-size: 16px;
}

/* === Footer === */
footer {
  margin-top: 60px;
  padding: 32px 0 80px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-meta);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
footer .back-foot {
  color: var(--orange);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
footer .back-foot:hover { border-bottom-color: var(--orange); }

/* === Reveal === */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
