/* SPDX-License-Identifier: GPL-3.0-or-later
   Copyright (C) 2026 Murat Çeliker */

:root {
  --bg: #e9eaec;
  --card: #f7f7f8;
  --fg: #14151a;
  --fg-2: rgba(15, 19, 36, 0.64);
  --fg-3: rgba(13, 17, 38, 0.46);
  --line: #d7d9de;
  --accent: #b75f35;
  --accent-surface: rgba(183, 95, 53, 0.075);
  --accent-border: rgba(183, 95, 53, 0.24);
  --radius: 6px;
  --sans: "Host Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131418;
    --card: #1b1c21;
    --fg: #f2f3f5;
    --fg-2: rgba(242, 243, 245, 0.62);
    --fg-3: rgba(242, 243, 245, 0.42);
    --line: #2b2d34;
    --accent: #e0834f;
    --accent-surface: rgba(224, 131, 79, 0.1);
    --accent-border: rgba(224, 131, 79, 0.28);
  }
}
:root[data-theme="dark"] {
  --bg: #131418;
  --card: #1b1c21;
  --fg: #f2f3f5;
  --fg-2: rgba(242, 243, 245, 0.62);
  --fg-3: rgba(242, 243, 245, 0.42);
  --line: #2b2d34;
  --accent: #e0834f;
  --accent-surface: rgba(224, 131, 79, 0.1);
  --accent-border: rgba(224, 131, 79, 0.28);
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
/* Wide enough for the two-column hero; the text-only sections stay narrow
   below so lines never run past a comfortable measure. */
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
section:not(.hero) { max-width: 660px; }

header { padding: 56px 0 8px; }
.top { display: flex; align-items: center; gap: 14px; }
.top img { width: 56px; height: 56px; }
h1 { font-size: 30px; font-weight: 600; margin: 0; letter-spacing: -0.02em; }
.tagline { color: var(--fg-2); margin: 14px 0 0; font-size: 18px; }

.lang {
  margin-left: auto; display: flex; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--card);
}
.lang a {
  font: 500 12px/1 var(--mono); color: var(--fg-2);
  border-radius: 999px; padding: 7px 10px; text-decoration: none;
}
.lang a:hover { text-decoration: none; color: var(--fg); }
.lang a[aria-current="page"] { background: var(--accent); color: #fff; }

section { padding: 34px 0; border-top: 1px solid var(--line); margin-top: 34px; }
header + section { border-top: 0; margin-top: 0; }
h2 {
  font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-3); margin: 0 0 18px;
}
p { margin: 0 0 14px; color: var(--fg-2); }
p.lead { color: var(--fg); }
p:last-child { margin-bottom: 0; }
strong { color: var(--fg); font-weight: 500; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }


.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  border-radius: var(--radius); padding: 10px 18px; font-weight: 500; font-size: 15px;
}
.btn:hover { text-decoration: none; opacity: 0.9; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }

pre, code { font-family: var(--mono); font-size: 13px; }
pre {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; overflow-x: auto; margin: 0 0 14px; color: var(--fg);
}
p > code {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 5px; color: var(--fg);
}

.code { position: relative; }
.code pre { padding-right: 84px; }
.copy {
  position: absolute; top: 8px; right: 8px;
  font: 500 11px/1 var(--mono); color: var(--fg-2);
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
  padding: 6px 9px; cursor: pointer;
}
.copy:hover { color: var(--fg); border-color: var(--accent-border); }
.copy.done { color: var(--accent); border-color: var(--accent-border); background: var(--accent-surface); }

/* Hero: screenshots on the left, the pitch on the right. */
.hero {
  display: grid; grid-template-columns: minmax(0, 380px) 1fr;
  gap: 44px; align-items: center;
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
}

/* The captures have different intrinsic sizes, so the stage is a fixed box and
   each one is contained inside it — otherwise the layout jumps between slides. */
.stage {
  position: relative; height: 380px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.slide {
  position: absolute; inset: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 18px; opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
/* Without JavaScript the first capture still shows. Once the slider takes
   over, `ready` retires that fallback — otherwise slide one would stay lit
   under every other slide. */
.slide:first-child { opacity: 1; }
[data-slider].ready .slide { opacity: 0; }
[data-slider].ready .slide.is-active { opacity: 1; }
.slide img { max-width: 100%; max-height: 100%; object-fit: contain; }

.slider-caption {
  font: 400 13px/1.5 var(--sans); color: var(--fg-3);
  margin: 12px 0 0; text-align: center; min-height: 2.6em;
}
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 2px; }
.arrow {
  font: 400 18px/1 var(--sans); color: var(--fg-2);
  background: none; border: 1px solid var(--line); border-radius: 999px;
  width: 28px; height: 28px; cursor: pointer; padding: 0;
}
.arrow:hover { color: var(--fg); border-color: var(--accent-border); }
.dots { display: flex; gap: 6px; }
.dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px;
  background: var(--line); cursor: pointer;
}
.dots button[aria-current="true"] { background: var(--accent); }

ul { margin: 0; padding-left: 0; list-style: none; }
li { color: var(--fg-2); padding: 9px 0; border-bottom: 1px solid var(--line); }
li:last-child { border-bottom: 0; }

.note {
  background: var(--accent-surface); border: 1px solid var(--accent-border);
  border-radius: var(--radius); padding: 14px 16px; color: var(--fg-2); font-size: 15px;
}

footer {
  border-top: 1px solid var(--line); margin-top: 34px;
  padding: 24px 0 56px; color: var(--fg-3); font-size: 14px;
}
footer a { color: var(--fg-2); }
footer p { color: var(--fg-3); }
