:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --bg-soft: #11151c;
  --panel: rgba(21, 26, 35, 0.78);
  --panel-strong: #171c25;
  --text: #f3f6fb;
  --muted: #a9b2c3;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #66a7ff;
  --accent-2: #86efac;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius: 22px;
  --max: 1160px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% -10%, rgba(102, 167, 255, .16), transparent 35%),
    radial-gradient(circle at 85% 0%, rgba(134, 239, 172, .08), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(11, 13, 18, .72);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.02em;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 24px rgba(102, 167, 255, .5);
}

.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.lang { padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; }

.hero { padding: 92px 0 50px; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c9d4e6;
  background: rgba(255, 255, 255, .03);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  max-width: 900px;
  margin: 22px auto 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.actions { margin-top: 30px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 13px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 750;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.2); }
.btn-primary { color: #08111f; background: linear-gradient(135deg, #7eb8ff, #a7f3d0); border-color: transparent; }
.btn-secondary { background: rgba(255,255,255,.04); }

.trust-row {
  margin: 26px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  color: #d5dceb;
  font-size: 13px;
}
.trust-row span { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }

.hero-shot {
  margin: 54px auto 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.035);
  box-shadow: var(--shadow);
}
.hero-shot img { border-radius: 17px; width: 100%; }

section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 30px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-kicker { color: var(--accent-2); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
h2 { margin: 8px 0 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -.035em; }
.section-head p { margin: 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { font-size: 24px; margin-bottom: 14px; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; align-items: stretch; }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 28px;
}
.panel h3 { margin-top: 0; }
.panel p, .panel li { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { position: relative; padding-left: 28px; margin: 10px 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 900; }

.code {
  overflow-wrap: anywhere;
  padding: 14px 16px;
  border-radius: 12px;
  background: #0a0d12;
  border: 1px solid var(--line);
  color: #cfe1ff;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.gallery details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  margin: 10px 0;
  overflow: hidden;
}
.gallery summary { cursor: pointer; padding: 16px 18px; font-weight: 750; }
.gallery details img { border-top: 1px solid var(--line); }

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 750; padding: 16px 0; }
.faq p { margin: 0 0 18px; color: var(--muted); }

.comments-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 18px;
  align-items: start;
}

.comments-stream { min-height: 420px; }
.comments-stream-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.comments-stream-head > div { display: flex; align-items: center; gap: 10px; }
.comments-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 16px rgba(134, 239, 172, .55);
}
.comments-count { color: var(--muted); font-size: 13px; }
.comments-list { display: grid; gap: 12px; }
.comments-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .018);
}
.comments-state-error { color: #fca5a5; }

.review-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.038), rgba(255,255,255,.018));
}
.review-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.review-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.review-identity strong { overflow-wrap: anywhere; }
.review-avatar {
  flex: 0 0 auto;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #08111f;
  background: linear-gradient(135deg, #7eb8ff, #a7f3d0);
  font-size: 14px;
  font-weight: 900;
}
.review-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.review-meta span { color: #cfe1ff; }
.review-card p {
  margin: 14px 0 0;
  color: #d4dbea;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.developer-reply {
  margin-top: 16px;
  padding: 13px 14px;
  border-left: 3px solid var(--accent-2);
  border-radius: 0 12px 12px 0;
  background: rgba(134, 239, 172, .055);
}
.developer-reply strong { color: var(--accent-2); font-size: 13px; }
.developer-reply p { margin-top: 5px; }

.review-form-panel { position: sticky; top: 88px; }
.review-form-panel h3 { margin-bottom: 6px; }
.review-form-panel > p { margin-top: 0; font-size: 14px; }
.review-form { display: grid; gap: 15px; margin-top: 20px; }
.review-form label { display: grid; gap: 7px; color: #dce5f4; font-size: 13px; font-weight: 750; }
.optional { color: var(--muted); font-size: 11px; font-weight: 600; }
.review-form input,
.review-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  background: #0d1118;
  font: inherit;
  font-weight: 500;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.review-form input { min-height: 44px; padding: 0 13px; }
.review-form textarea { resize: vertical; min-height: 132px; padding: 12px 13px; line-height: 1.5; }
.review-form input:focus,
.review-form textarea:focus {
  border-color: rgba(102, 167, 255, .68);
  box-shadow: 0 0 0 3px rgba(102, 167, 255, .1);
}
.review-form input::placeholder,
.review-form textarea::placeholder { color: #687386; }
.comment-honeypot { position: absolute !important; left: -10000px !important; }
.turnstile-host { min-height: 65px; }
.review-submit { width: 100%; cursor: pointer; font: inherit; }
.review-submit:disabled { cursor: wait; opacity: .68; transform: none; }
.review-form-status { min-height: 24px; color: var(--muted); font-size: 13px; }
.review-form-status[data-kind="success"] { color: var(--accent-2); }
.review-form-status[data-kind="error"] { color: #fca5a5; }

.cta {
  text-align: center;
  padding: 42px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(102,167,255,.12), rgba(134,239,172,.07));
}
.cta h2 { margin-top: 0; }
.cta p { color: var(--muted); max-width: 640px; margin: 0 auto; }

footer { padding: 36px 0 52px; color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .comments-layout { grid-template-columns: 1fr; }
  .review-form-panel { position: static; }
  .nav-links a:not(.lang):not(:last-child) { display: none; }
}

@media (max-width: 580px) {
  .container { width: min(calc(100% - 24px), var(--max)); }
  .hero { padding-top: 66px; }
  .grid { grid-template-columns: 1fr; }
  .card, .panel { padding: 20px; }
  .cta { padding: 30px 20px; }
  .review-card-head { align-items: flex-start; flex-direction: column; }
  .review-meta { align-items: flex-start; }
  section { padding: 56px 0; }
  h1 { font-size: clamp(40px, 14vw, 60px); }
}


/* KOFGE MOBILE EXPERIENCE 2026-08 */
.mobile-nav-controls { display: none; align-items: center; gap: 8px; }
.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255,255,255,.04);
  cursor: pointer;
}
.mobile-nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}
.mobile-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-lang {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 900px) {
  html { scroll-padding-top: 82px; }
  body.mobile-nav-open { overflow: hidden; }
  .site-header {
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(11, 13, 18, .92);
  }
  .nav {
    position: relative;
    min-height: 64px;
    gap: 12px;
  }
  .brand { min-height: 44px; font-size: 15px; }
  .mobile-nav-controls { display: flex; margin-left: auto; }
  .mobile-nav-toggle { display: grid; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 70;
    display: none;
    max-height: calc(100vh - 88px);
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(17, 21, 28, .98);
    box-shadow: 0 22px 60px rgba(0,0,0,.48);
    backdrop-filter: blur(18px);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a,
  .nav-links a:not(.lang):not(:last-child) {
    display: flex !important;
    min-height: 46px;
    align-items: center;
    padding: 0 13px;
    border-radius: 10px;
    color: #dce5f4;
    font-size: 15px;
  }
  .nav-links a:hover,
  .nav-links a:active { background: rgba(255,255,255,.055); }
  .nav-links .lang { display: none !important; }

  .hero { padding: 64px 0 38px; }
  .hero h1 { max-width: 760px; font-size: clamp(38px, 9vw, 60px); line-height: 1.01; }
  .hero p { font-size: 17px; }
  .hero-shot { margin-top: 36px; padding: 7px; border-radius: 20px; }
  .hero-shot img { border-radius: 13px; }
  section { padding: 60px 0; }
  .section-head { margin-bottom: 24px; }
  .panel { padding: 24px; }
  .gallery summary, .faq summary { min-height: 48px; display: flex; align-items: center; }
  .footer-row { flex-direction: column; align-items: flex-start; }

  body .guide-hero { padding: 52px 0 22px; }
  body .guide-hero h1 { font-size: clamp(38px, 9vw, 56px); line-height: 1.02; }
  body .guide-hero p { font-size: 16px; }
  body .guide-shell { padding: 4px 0 60px; }
  body .guide-content { width: 100%; padding: 30px 26px; }
  body .guide-content h2,
  body .guide-content h3,
  body .guide-content h4 { scroll-margin-top: 88px; }
  body .guide-content table { max-width: 100%; }
}

@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  section { padding: 50px 0; }
  .hero { padding: 48px 0 30px; }
  .eyebrow { font-size: 12px; padding: 6px 10px; }
  .hero h1 { margin-top: 18px; font-size: clamp(36px, 11.5vw, 50px); letter-spacing: -.045em; }
  .hero p { font-size: 16px; line-height: 1.55; }
  .hero .actions,
  .cta .actions,
  .panel .actions,
  .guide-tools { width: 100%; gap: 10px; }
  .hero .actions .btn,
  .cta .actions .btn,
  .panel .actions .btn,
  .guide-tools .btn { width: 100%; min-height: 50px; }
  .trust-row { gap: 7px; margin-top: 22px; }
  .trust-row span { font-size: 12px; padding: 5px 8px; }
  .hero-shot { margin-top: 28px; margin-inline: -2px; }
  h2 { font-size: clamp(28px, 9vw, 38px); }
  .card, .panel { padding: 19px; border-radius: 18px; }
  .card { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
  .card .icon { grid-row: 1 / span 2; margin: 0; font-size: 22px; }
  .card h3 { margin-top: 1px; }
  .card p { grid-column: 2; }
  .checks li { padding-left: 25px; }
  .code { padding: 12px 13px; font-size: 12px; }
  .gallery details, .faq details { border-radius: 13px; }
  .gallery summary { padding: 14px 15px; }
  .faq { gap: 8px; }
  .faq details { padding: 0 15px; }
  .comments-stream { min-height: 0; }
  .comments-state { min-height: 180px; padding: 20px; }
  .review-form input,
  .review-form textarea { font-size: 16px; }
  .turnstile-host { max-width: 100%; overflow: hidden; }
  .cta { padding: 26px 18px; border-radius: 20px; }
  footer {
    padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
  }
  .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 6px 12px; }
  .footer-links a { min-height: 40px; display: flex; align-items: center; }

  body .guide-hero { padding: 40px 0 18px; }
  body .guide-hero h1 { margin-top: 14px; font-size: clamp(35px, 11vw, 46px); }
  body .guide-tools { flex-direction: column; }
  body .guide-content { padding: 24px 18px; border-radius: 17px; }
  body .guide-content h2 { margin-top: 38px; font-size: clamp(26px, 8.5vw, 34px); }
  body .guide-content h3 { margin-top: 26px; font-size: 21px; }
  body .guide-content ul,
  body .guide-content ol { padding-left: 22px; }
  body .guide-content a[href^="#"] { display: inline-block; padding: 3px 0; }
  body .guide-content th,
  body .guide-content td { padding: 9px 10px; font-size: 13px; }
}

@media (max-width: 380px) {
  .container { width: min(calc(100% - 20px), var(--max)); }
  .brand { font-size: 14px; }
  .brand-dot { width: 10px; height: 10px; }
  .hero h1 { font-size: 34px; }
  .panel, .card { padding: 17px; }
  .footer-links { grid-template-columns: 1fr; }
  body .guide-content { padding-inline: 16px; }
}


/* KOFGE SITE POLISH 2026-08 */
.release-meta {
  width: fit-content;
  max-width: 100%;
  margin: 17px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: var(--muted);
  font-size: 13px;
}
.release-meta > span:not(.release-live)::before {
  content: "·";
  margin-right: 12px;
  color: #5f6979;
}
.release-meta a {
  color: #cfe1ff;
  text-decoration: none;
  font-weight: 700;
}
.release-meta a:hover { color: var(--text); }
.release-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #dce5f4;
  font-weight: 750;
}
.release-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(134, 239, 172, .55);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.gallery-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 16px 46px rgba(0,0,0,.16);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.gallery-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 22px 52px rgba(0,0,0,.24);
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 1100 / 635;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  transition: transform .22s ease;
}
.gallery-card:hover img { transform: scale(1.012); }
.gallery-card-copy {
  display: grid;
  gap: 3px;
  padding: 14px 16px 16px;
}
.gallery-card-copy strong { font-size: 15px; }
.gallery-card-copy small { color: var(--muted); font-size: 13px; line-height: 1.45; }

.mobile-download-bar { display: none; }

@media (max-width: 680px) {
  .hero-shot {
    aspect-ratio: 1.78 / 1;
    overflow: hidden;
  }
  .hero-shot img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
  }

  .release-meta {
    margin-top: 15px;
    gap: 6px 9px;
    font-size: 12px;
  }
  .release-meta > span:not(.release-live)::before { margin-right: 9px; }
  .release-meta a { flex-basis: 100%; margin-top: 2px; }

  .gallery { overflow: hidden; }
  .gallery-grid {
    display: flex;
    gap: 12px;
    width: auto;
    margin-inline: -14px;
    padding: 2px 14px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 14px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-card {
    flex: 0 0 min(84vw, 360px);
    scroll-snap-align: start;
    border-radius: 16px;
  }
  .gallery-card:hover { transform: none; }
  .gallery-card-copy { padding: 12px 14px 14px; }

  .mobile-download-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 85;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 9px 9px 13px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 17px;
    background: rgba(17, 21, 28, .94);
    box-shadow: 0 18px 54px rgba(0,0,0,.46);
    backdrop-filter: blur(18px);
    transform: translateY(calc(100% + 34px));
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .18s ease;
  }
  .mobile-download-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-download-copy {
    min-width: 0;
    display: grid;
    line-height: 1.2;
  }
  .mobile-download-copy strong { font-size: 13px; }
  .mobile-download-copy span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
  }
  .mobile-download-bar .btn {
    flex: 0 0 auto;
    min-height: 42px;
    padding-inline: 15px;
    border-radius: 11px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .mobile-download-copy strong { display: none; }
  .mobile-download-copy span { margin-top: 0; }
  .mobile-download-bar .btn { padding-inline: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card,
  .gallery-card img,
  .mobile-download-bar { transition: none; }
}
