/* Landing pages for mmdemirbas projects. One stylesheet, one accent per site
   (set as --accent* on :root by the generator), light and dark from the same
   tokens. Type: Bricolage Grotesque for display, the system sans for text. */

:root {
  --paper: #fbfaf7;
  --paper-2: #f3f1ea;
  --ink: #17181a;
  --ink-2: #4a4d52;
  --muted: #74777d;
  --line: #e4e1d8;
  --code-bg: #1b1d22;
  --code-ink: #e6e4dd;
  --shadow: 0 30px 60px -30px rgba(20, 20, 30, 0.35), 0 10px 24px -14px rgba(20, 20, 30, 0.25);
  --radius: 18px;
  --max: 76rem;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --text: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121316;
    --paper-2: #1a1c21;
    --ink: #eceae4;
    --ink-2: #b9b7b0;
    --muted: #8d9096;
    --line: #2a2d34;
    --code-bg: #0c0d10;
    --code-ink: #e6e4dd;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 10px 24px -14px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p a, li a, td a { color: var(--accent-ink-on-paper); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
img, svg { max-width: 100%; height: auto; display: block; }
code, pre, kbd { font-family: var(--mono); }
p code, li code, td code, dd code {
  font-size: 0.9em;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }

/* ── Top bar ────────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); background: color-mix(in srgb, var(--paper) 80%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; height: 3.75rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.brand .mark { width: 1.6rem; height: 1.6rem; border-radius: 8px; background: var(--accent); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 45%, white); }
.top nav { margin-left: auto; display: flex; gap: 1.25rem; font-size: 0.95rem; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
.top nav .gh { display: inline-flex; align-items: center; gap: 0.4rem; }
.top nav svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
@media (max-width: 40rem) { .top nav a.hide-sm { display: none; } }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto; height: 90%;
  background:
    radial-gradient(60% 55% at 20% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(50% 45% at 85% 10%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--accent-ink-on-paper); letter-spacing: 0.01em; }
.eyebrow::before { content: ''; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 22ch; margin-top: 0.9rem; text-wrap: balance; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink-2); max-width: 58ch; margin: 1.25rem 0 0; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: 1rem; border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--accent); color: var(--accent-on); }
.btn-quiet { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-quiet:hover { background: var(--paper-2); }
.btn svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.hero .visual { margin-top: clamp(2rem, 5vw, 3.5rem); }
.frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); box-shadow: var(--shadow); }
.frame.window { background: var(--code-bg); }
.frame.window .bar { height: 2.25rem; display: flex; align-items: center; gap: 0.5rem; padding: 0 1rem; background: color-mix(in srgb, var(--code-bg) 70%, #3a3d46); }
.frame.window .bar i { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #ff5f57; }
.frame.window .bar i:nth-child(2) { background: #febc2e; } .frame.window .bar i:nth-child(3) { background: #28c840; }
.frame.plain { background: #fff; padding: clamp(0.5rem, 2vw, 1.25rem); }
.frame figcaption, .fig figcaption { font-size: 0.9rem; color: var(--muted); padding: 0.75rem 1rem; }
.hero .stats { display: flex; flex-wrap: wrap; gap: 2.5rem 3rem; margin-top: 2.5rem; }
.hero .stats div { display: grid; gap: 0.1rem; }
.hero .stats b { font-family: var(--display); font-size: 1.8rem; letter-spacing: -0.02em; }
.hero .stats span { color: var(--muted); font-size: 0.95rem; }

/* ── Sections ───────────────────────────────────────────────────────────── */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 0.75rem; max-width: 60ch; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section-head p { margin: 0; color: var(--ink-2); font-size: 1.1rem; text-wrap: pretty; }
.pitch { font-family: var(--display); font-weight: 500; font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.3; letter-spacing: -0.015em; max-width: 34ch; text-wrap: pretty; }
.pitch em { font-style: normal; color: var(--accent-ink-on-paper); }

.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.feature { padding: 1.4rem 1.5rem 1.5rem; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); display: grid; gap: 0.5rem; align-content: start; }
.feature .glyph { width: 2.4rem; height: 2.4rem; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, var(--paper)); color: var(--accent-ink-on-paper); margin-bottom: 0.4rem; }
.feature .glyph svg { width: 1.3rem; height: 1.3rem; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature p { margin: 0; color: var(--ink-2); font-size: 1rem; }

.how { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (min-width: 64rem) { .how.split { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } .how.wide .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.9rem; align-items: start; }
.steps li::before { counter-increment: step; content: counter(step); width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-on); font-weight: 700; font-family: var(--display); }
.steps b { display: block; font-family: var(--display); font-size: 1.1rem; margin-bottom: 0.15rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.fig { margin: 0; }
.fig img { width: 100%; }
.fig + .fig { margin-top: 1.25rem; }

pre.code { position: relative; margin: 0; background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius); padding: 1.25rem 1.4rem; overflow: auto; font-size: 0.95rem; line-height: 1.6; border: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
pre.code .c { color: #8b9098; }
pre.code .k { color: color-mix(in srgb, var(--accent) 70%, white); }
.install { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.install > div { min-width: 0; }
@media (min-width: 64rem) { .install.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.install h3 { margin-bottom: 0.6rem; }
.note { color: var(--ink-2); font-size: 1rem; margin: 0.75rem 0 0; }

ul.plain { max-width: 70ch; padding-left: 1.2rem; display: grid; gap: 0.6rem; color: var(--ink-2); }
ul.plain li::marker { color: var(--accent); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink-2); font-size: 0.85rem; letter-spacing: 0.02em; }
td:first-child { white-space: nowrap; font-weight: 600; }
@media (max-width: 40rem) { td:first-child { white-space: normal; } }

.links { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.link-card { padding: 1.25rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: 0.3rem; transition: border-color 0.15s ease, transform 0.15s ease; }
.link-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.link-card b { font-family: var(--display); font-size: 1.1rem; }
.link-card span { color: var(--ink-2); font-size: 0.95rem; }
.link-card small { color: var(--muted); font-size: 0.85rem; }

.gallery + table { margin-top: 1.5rem; }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
footer a { color: var(--ink-2); }
footer a:hover { color: var(--ink); }
footer .spacer { flex: 1; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .link-card { transition: none; } }
