/* Bajro Developments - Stylesheet */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #0D0C0B;
  --surface: #181614;
  --surface-2: #221F1C;
  --line: #2A2622;
  --line-strong: #3B352F;
  --text: #F5F1EC;
  --muted: #9A928A;
  --accent: #FF7A1A;
  --accent-hover: #FF9240;
  --accent-2: #FFD29A;
  --error: #FF5A5A;
  --success: #4ADE80;

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --gutter: 20px;
  --section: clamp(72px, 10vw, 128px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--bg); }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 820px; }

.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--bg);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

.label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  margin-bottom: 18px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 12, 11, 0.8);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.logo__mark {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-weight: 700; font-size: 0.95rem;
}
.logo__name {
  font-family: var(--font-head);
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color .15s ease;
}
.nav a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none; border: 0; color: var(--text);
  cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block; width: 20px; height: 2px;
  margin: 0 auto;
  background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 112px) 0 var(--section);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 360px at 85% 20%, rgba(255, 122, 26, 0.09), transparent 70%),
    linear-gradient(rgba(245, 241, 236, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(245, 241, 236, 0.05) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.lead {
  margin-top: 24px;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin: 40px 0 0; padding: 0; list-style: none;
  color: var(--muted); font-size: 0.92rem;
}
.hero__facts .mono { color: var(--text); font-weight: 600; margin-right: 4px; }

/* Hero-Visual: Discord-Kanal */
.console {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  font-size: 0.92rem;
}
.console__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 0.82rem;
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong); }
.console__body { display: grid; gap: 18px; padding: 20px 18px 22px; }

.msg { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.avatar {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem;
}
.avatar--user { background: var(--surface-2); color: var(--accent-2); }
.avatar--bot { background: var(--bg); border: 1px solid var(--line-strong); }
.msg__meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 4px; }
.msg__meta strong { color: var(--text); font-weight: 600; margin-right: 4px; }
.tag {
  display: inline-block; padding: 1px 5px; margin-right: 4px;
  border-radius: 4px; background: var(--accent-2); color: var(--bg);
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700;
  vertical-align: 1px;
}
.msg__cmd { font-family: var(--font-mono); font-size: 0.85rem; }
.slash { color: var(--accent-2); }
.arg { padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--muted); }

.embed {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 6px;
  border-left: 3px solid var(--accent-2);
  background: var(--bg);
}
.embed__title { font-weight: 600; margin-bottom: 2px; }
.embed__text { color: var(--muted); font-size: 0.86rem; }
.embed__buttons { display: flex; gap: 8px; margin-top: 12px; }
.dbtn {
  padding: 5px 12px; border-radius: 4px;
  background: var(--surface-2); font-size: 0.8rem; font-weight: 500;
}
.dbtn--ok { background: var(--accent); color: var(--bg); font-weight: 600; }

.msg--system {
  grid-template-columns: 36px 1fr; align-items: center;
  padding-top: 14px; border-top: 1px dashed var(--line);
  color: var(--muted); font-size: 0.86rem;
}
.msg--system strong { color: var(--text); font-weight: 500; }
.ok { text-align: center; color: var(--success); font-weight: 700; }

/* Sections */
.section { padding: var(--section) 0; }
.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__lead { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Services */
.card {
  padding: 28px 26px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card__icon {
  width: 28px; height: 28px; margin-bottom: 22px;
  fill: none; stroke: var(--accent-2); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* Steps */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 0; padding: 0; list-style: none;
  counter-reset: none;
}
.step {
  position: relative;
  padding: 28px 24px 30px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
}
.step__num {
  display: block; margin-bottom: 36px;
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--accent-2);
}
.step:nth-child(3) .step__num { color: var(--accent); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* Pricing */
.pricing { align-items: stretch; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.plan--featured { border-color: var(--accent); }
.plan__badge {
  position: absolute; top: -12px; left: 28px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--accent); color: var(--bg);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.02em;
}
.plan__name {
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
}
.plan__price { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; }
.plan__price .mono { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.plan__unit { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }
.plan__desc { margin-top: 14px; color: var(--muted); font-size: 0.98rem; }
.checks {
  margin: 24px 0 32px; padding: 24px 0 0; list-style: none;
  border-top: 1px solid var(--line);
  display: grid; gap: 12px; flex: 1; align-content: start;
  font-size: 0.96rem;
}
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2);
  transform: rotate(-45deg);
}
.plan .btn { width: 100%; }

.hosting {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 16px; padding: 26px 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.hosting .label { margin-bottom: 8px; }
.hosting__text { color: var(--muted); max-width: 40em; }
.hosting__price { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.hosting__price .mono { font-size: 2rem; font-weight: 600; }

/* Showcase */
.shot { margin: 0; display: flex; flex-direction: column; }
.shot--wide { grid-column: span 2; }
.shot__ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(245, 241, 236, 0.02) 14px 28px),
    var(--bg);
  color: var(--muted); font-size: 0.92rem; text-align: center; padding: 16px;
}
.shot--wide .shot__ph { flex: 1; aspect-ratio: auto; }
.shot__ph .mono { font-size: 0.75rem; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.08em; }
.shot img, .shot video { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.shot figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 500;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.3rem; color: var(--accent-2);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--accent-2); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); }

/* CTA */
.cta { padding: 0 0 var(--section); }
.cta__inner {
  padding: clamp(44px, 7vw, 80px) clamp(24px, 5vw, 64px);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(255, 122, 26, 0.12), transparent 70%),
    var(--surface);
  border: 1px solid var(--line-strong);
  text-align: center;
}
.cta__inner p { margin: 16px auto 32px; color: var(--muted); max-width: 32em; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 0.92rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer nav { display: flex; gap: 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Unterseiten (Imprint, Privacy, 404) */
.page { padding: clamp(56px, 9vw, 112px) 0 var(--section); min-height: 60vh; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 24px; }
.page p { color: var(--muted); max-width: 40em; }
.page p + p { margin-top: 16px; }
.page .btn { margin-top: 32px; }
.page a:not(.btn) { color: var(--accent-2); }

/* Reveal-Animation (nur mit JS, sonst sofort sichtbar) */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .console { max-width: 560px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 520px; }
  .plan--featured { order: -1; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 18px; min-height: 48px; }
}

@media (max-width: 640px) {
  .logo__name { font-size: 0.88rem; }
  .grid--3, .steps { grid-template-columns: 1fr; }
  .shot--wide { grid-column: auto; }
  .shot--wide .shot__ph { aspect-ratio: 16 / 10; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hosting { flex-direction: column; align-items: flex-start; }
  .faq summary { font-size: 1.05rem; padding-right: 36px; }
  .faq details p { padding-right: 0; }
  .step__num { margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
