/* ============================================================
   mfkne.com - shared design system
   Dark, technical, timeless. Single accent variable.
   To rematch the accent to your plugin colour, change --accent.
   ============================================================ */

:root {
  --bg:            #08090b;
  --bg-soft:       #0d0f13;
  --panel:         #101318;
  --panel-2:       #141821;
  --line:          #1e232d;
  --line-soft:     #171b22;
  --text:          #e7ebf0;
  --text-dim:      #9aa4b2;
  --text-faint:    #5c6675;
  --accent:        #1fe3c7;   /* cyan / teal - change this one line to rematch */
  --accent-dim:    #12a08c;
  --accent-glow:   rgba(31, 227, 199, 0.16);
  --danger:        #ff5c72;

  --radius:        14px;
  --radius-sm:     9px;
  --maxw:          1400px;
  --gutter:        clamp(20px, 5vw, 72px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle grid + glow atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 78% -10%, var(--accent-glow), transparent 60%),
    linear-gradient(180deg, #090a0d 0%, #08090b 100%);
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.lead { color: var(--text-dim); font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 62ch; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 9, 11, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

/* Logo - prominent wordmark */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo .mark { color: var(--accent); }
.logo .dot { color: var(--accent); }
.logo svg { display: block; }
.logo .wave rect { fill: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 9px 16px;
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav-links a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px; height: 40px;
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #04211d;
  font-weight: 700;
  box-shadow: 0 0 0 rgba(31,227,199,0);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px var(--accent-glow); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sections ---------- */
section { position: relative; }
.section-pad { padding: clamp(64px, 9vw, 130px) 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(70px, 12vw, 170px) 0 clamp(50px, 7vw, 90px); position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
/* plugin close-up as hero backdrop: full-bleed, gently tilted, soft blur,
   fading left into the page background (tracktion style) */
.hero-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 45%;
  transform: scale(1.28) perspective(1500px) rotateY(-8deg) rotateX(3deg);
  z-index: 0;
  opacity: 0.9;
  filter: blur(2px);
  pointer-events: none;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 16%, rgba(8,9,11,0.62) 46%, rgba(8,9,11,0.12) 78%, rgba(8,9,11,0.02) 100%),
    linear-gradient(180deg, rgba(8,9,11,0.10) 0%, rgba(8,9,11,0.32) 100%);
}
@media (max-width: 760px) {
  .hero-shot {
    transform: scale(1.2);
    object-position: 70% 42%;
    opacity: 0.5;
    filter: blur(2px);
  }
  .hero-veil {
    background: linear-gradient(180deg, rgba(8,9,11,0.45) 0%, rgba(8,9,11,0.9) 100%);
  }
}
.hero h1 { margin: 22px 0 26px; }
.hero h1 .accent { color: var(--accent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 54px;
  padding-top: 30px;
  border-top: 2px solid rgba(231, 235, 240, 0.55);
}
.hero-meta .item { font-family: var(--mono); font-size: 0.8rem; color: var(--text-faint); }
.hero-meta .item b { display: block; color: var(--text); font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }

/* ---------- Big logo band ---------- */
.logo-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
}
.logo-band .brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 44px);
  padding: clamp(28px, 5vw, 66px) 0;
  flex-wrap: nowrap;
}
.logo-band .brand-mark {
  width: clamp(64px, 13vw, 190px);
  height: auto;
  flex: none;
}
.logo-band .giant {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(3rem, 14vw, 12rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.logo-band .giant span { color: var(--accent); }

/* ---------- Feature rows ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1180px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--accent-dim); transform: translateY(-3px); }
.card .num { font-family: var(--mono); color: var(--accent); font-size: 0.8rem; letter-spacing: 0.2em; }
.card h3 { margin: 16px 0 10px; }
.card p { color: var(--text-dim); font-size: 0.98rem; }

.section-head { max-width: 70ch; margin-bottom: 46px; }
.section-head h2 { margin: 16px 0 14px; }
.section-head p { color: var(--text-dim); }

/* ---------- Plugin cards ---------- */
.plugin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.plugin {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.plugin:hover { border-color: var(--accent-dim); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.plugin .shot {
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(45deg, #0c0f14 0 12px, #0e1218 12px 24px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.8rem;
  position: relative;
}
.plugin .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plugin .body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.plugin .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 100px;
  padding: 4px 11px;
}
.tag.neutral { color: var(--text-dim); border-color: var(--line); }
.plugin h3 { font-size: 1.5rem; margin-bottom: 8px; }
.plugin .tagline { color: var(--accent); font-family: var(--mono); font-size: 0.82rem; margin-bottom: 14px; }
.plugin p { color: var(--text-dim); font-size: 0.96rem; margin-bottom: 22px; }
.plugin .foot { margin-top: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Plugin showcase rows (staged) ---------- */
.showcase { display: flex; flex-direction: column; }
.showrow {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(44px, 6vw, 84px) 0;
}
.showrow + .showrow { border-top: 1px solid var(--line-soft); }
.showrow.reverse .media { order: 2; }

.showrow .media {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(20px, 3.5vw, 42px);
  background: linear-gradient(180deg, #0c1015 0%, #090b0e 100%);
  border: 1px solid var(--line);
  overflow: hidden;
}
/* cyan backlight behind the screenshot */
.showrow .media::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -30%;
  width: 85%;
  height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-glow), transparent 72%);
  filter: blur(46px);
  opacity: 0.9;
  pointer-events: none;
}
/* accent hairline along the top of the stage */
.showrow .media::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.showrow .media img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 100%;
  max-height: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.showrow .media:hover img {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 40px 90px rgba(0,0,0,0.7), 0 0 0 1px var(--accent-dim);
}

.showrow .info h3 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); margin-bottom: 8px; }
.showrow .info .tagline { color: var(--accent); font-family: var(--mono); font-size: 0.85rem; margin-bottom: 16px; }
.showrow .info p { color: var(--text-dim); font-size: 1rem; margin-bottom: 18px; }
.showrow .info .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.showrow .info .controls { font-family: var(--mono); font-size: 0.78rem; color: var(--text-faint); margin-bottom: 24px; }
.showrow .info .foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.showrow .info .checksum { font-family: var(--mono); font-size: 0.66rem; color: var(--text-faint); margin-top: 14px; word-break: break-all; }

@media (max-width: 900px) {
  .showrow { grid-template-columns: 1fr; gap: 26px; padding: 40px 0; }
  .showrow.reverse .media { order: 0; }
  .showrow .media { padding: 18px; }
  /* Screenshot auf dem Handy zusaetzlich in der Hoehe begrenzen */
  .showrow .media img { max-height: 300px; }
}

/* ---------- Plugin preview cards (home) ---------- */
.pcard {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.pcard:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.pcard .thumb {
  position: relative;
  padding: 20px 20px 0;
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(180deg, #0c1015 0%, #090b0e 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.pcard .thumb::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -30%;
  width: 80%;
  height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-glow), transparent 72%);
  filter: blur(34px);
  opacity: 0.85;
  pointer-events: none;
}
.pcard .thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  object-position: bottom;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -1px 0 rgba(255,255,255,0.05) inset, 0 16px 34px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}
.pcard:hover .thumb img { transform: translateY(-4px); }
.pcard .pbody { padding: 20px 22px 24px; }
.pcard .pbody .num { font-family: var(--mono); color: var(--accent); font-size: 0.78rem; letter-spacing: 0.16em; }
.pcard .pbody h3 { margin: 10px 0 8px; font-size: 1.15rem; }
.pcard .pbody p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Notice / callout ---------- */
.notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
}
.notice .ico { color: var(--accent); font-family: var(--mono); font-weight: 700; }
.notice p { color: var(--text-dim); font-size: 0.95rem; }
.notice b { color: var(--text); }

/* ---------- Embeds / placeholders ---------- */
.embed-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.embed {
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-align: center;
  padding: 30px;
}
.embed .big { color: var(--text-dim); font-size: 1.05rem; }
.embed iframe { width: 100%; border: 0; border-radius: var(--radius); }

/* ---------- Footer / Impressum ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 60px 0 44px;
  margin-top: 40px;
}
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 44px; }
.footer-top .logo { font-size: 1.7rem; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-family: var(--mono); font-size: 0.82rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.footer-nav a:hover { color: var(--accent); }
.impressum {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-faint);
}
.impressum a { color: var(--text-dim); }
.impressum a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-2, .grid-4, .plugin-grid, .embed-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8,9,11,0.98);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 18px;
    transform: translateY(-140%);
    transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 6px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}
