/* =========================================================================
   KimchiOS — kimchios.pages.dev
   Copyright (C) KimchiOS · GPLv3 or later (tool sources)
   Brand: dark #070C08 · lime #DAFF7C · green #25DB69
   ========================================================================= */

:root {
  --bg: #070C08;
  --bg-2: #0C140D;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #F4F7F3;
  --muted: #9FB0A3;
  --muted-2: #748577;
  --accent: #DAFF7C;      /* Kimchi lime — brand green */
  --accent-2: #E7FFAC;
  --green: #25DB69;       /* status green */
  --lime: #DAFF7C;
  --ink: #0A0A0A;         /* dark text on lime */
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { left: 16px; }

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 80%);
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5; }
.bg-glow--lime { width: 620px; height: 620px; top: -240px; left: -140px; background: radial-gradient(circle, rgba(218,255,124,0.55), transparent 70%); }
.bg-glow--green { width: 520px; height: 520px; top: -180px; right: -160px; background: radial-gradient(circle, rgba(37,219,105,0.30), transparent 70%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-weight: 600; font-size: 14.5px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--ink); box-shadow: 0 10px 30px -10px rgba(218,255,124,0.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(218,255,124,0.85); }
.btn--ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); }
.btn--lg { padding: 14px 24px; font-size: 15.5px; border-radius: 14px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,12,8,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 18px; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand__logo { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(218,255,124,0.4)); }
.brand__name { color: #fff; }
.brand__os { color: var(--accent-2); }

.nav { display: flex; gap: 4px; margin-left: 16px; }
.nav a { color: var(--muted); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 9px; transition: color .15s, background .15s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.burger { display: none; background: transparent; border: 1px solid var(--line-2); border-radius: 10px; width: 42px; height: 42px; padding: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); }
.mobile-menu a { padding: 12px 8px; color: var(--text); font-weight: 500; border-radius: 10px; }
.mobile-menu a:hover { background: rgba(255,255,255,0.05); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding-top: 84px; padding-bottom: 96px;
}
.hero__title { font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; margin: 20px 0 0; }
.grad {
  background: linear-gradient(100deg, var(--accent-2) 0%, var(--accent) 42%, var(--green) 118%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { color: var(--muted); font-size: 17px; max-width: 560px; margin-top: 20px; }
.hero__cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero__meta { list-style: none; display: flex; gap: 28px; padding: 0; margin: 38px 0 0; flex-wrap: wrap; }
.hero__meta li { color: var(--muted-2); font-size: 13.5px; }
.hero__meta strong { display: block; font-family: var(--display); font-size: 26px; color: #fff; font-weight: 800; letter-spacing: -0.02em; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 500; color: #EAF3DE;
  background: rgba(218,255,124,0.12); border: 1px solid rgba(218,255,124,0.35);
  padding: 7px 14px; border-radius: 999px;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(218,255,124,0.18); }

/* ---------- Hero window mock ---------- */
.hero__visual { position: relative; }
.window {
  border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #14141E, #0E0E16);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(218,255,124,0.08);
  transform: rotate(-1.2deg);
}
.window__bar { display: flex; align-items: center; gap: 8px; padding: 13px 15px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--red { background: #FF5F57; } .dot--amber { background: #FEBC2E; } .dot--green { background: #28C840; }
.window__title { margin-left: 8px; font-size: 13px; color: var(--muted-2); font-weight: 500; }
.window__body { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.035); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 15px;
}
.tile__k { font-size: 13px; color: var(--muted); font-weight: 500; }
.tile__v { font-size: 13px; font-weight: 600; color: var(--green); }
.tile__v--keep { color: var(--accent-2); }
.bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 4px; }
.bar__fill { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--lime)); animation: grow 2.4s ease-in-out infinite alternate; transform-origin: left; }
@keyframes grow { from { width: 35%; } to { width: 100%; } }
.window__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted-2); }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--green); }

/* ---------- Sections ---------- */
.features, .install, .faq, .cta { padding-top: 40px; padding-bottom: 88px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16px; }

/* ---------- Feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(218,255,124,0.4); background: var(--panel-2); }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(218,255,124,0.14); color: var(--accent-2); border: 1px solid rgba(218,255,124,0.28); margin-bottom: 16px;
}
.card h3 { font-size: 16.5px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }

/* ---------- Install ---------- */
.install__layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  transition: border-color .2s ease, background .2s ease;
}
.step:hover { border-color: rgba(218,255,124,0.4); background: var(--panel-2); }
.step__num {
  flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 16px; color: #fff;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 8px 22px -10px rgba(218,255,124,0.8);
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }

.panel {
  background: linear-gradient(180deg, rgba(218,255,124,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(218,255,124,0.25); border-radius: var(--radius);
  padding: 26px 24px; position: sticky; top: 92px;
}
.panel__title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-2); margin-bottom: 14px; }
.panel__title:not(:first-child) { margin-top: 24px; }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.checklist li { position: relative; padding-left: 26px; color: var(--text); font-size: 14px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 15px; height: 15px; border-radius: 50%;
  background: rgba(191,225,99,0.16); border: 1px solid rgba(191,225,99,0.5);
}
.checklist li::after {
  content: ""; position: absolute; left: 5px; top: 11px; width: 4px; height: 7px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(40deg);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12.5px; font-weight: 500; color: #DDD8F5; background: rgba(255,255,255,0.05); border: 1px solid var(--line-2); padding: 6px 11px; border-radius: 999px; }
.panel__note { font-size: 12.5px; color: var(--muted-2); margin-top: 12px; }
.panel .btn { margin-top: 20px; }

/* ---------- FAQ ---------- */
.faq__list { display: flex; flex-direction: column; gap: 12px; max-width: 880px; }
.qa { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.qa summary {
  cursor: pointer; list-style: none; padding: 20px 22px; font-weight: 600; font-size: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--accent-2); transition: transform .2s; flex: none;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 22px 22px; color: var(--muted); font-size: 14.5px; }

.disclaimer {
  margin-top: 24px; max-width: 880px; font-size: 13.5px; color: var(--muted-2);
  background: rgba(255,138,61,0.06); border: 1px solid rgba(255,138,61,0.25);
  border-radius: var(--radius-sm); padding: 18px 20px;
}
.disclaimer strong { color: #FFB37A; }

/* ---------- CTA ---------- */
.cta__box {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(218,255,124,0.16), rgba(191,225,99,0.08));
  border: 1px solid rgba(218,255,124,0.32); border-radius: 24px; padding: 40px 42px;
}
.cta__box h2 { font-size: clamp(24px, 3vw, 34px); }
.cta__box p { color: var(--muted); margin-top: 10px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 20px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.footer__brand { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.footer__brand img { width: 26px; height: 26px; object-fit: contain; }
.footer__nav { display: flex; gap: 6px; flex-wrap: wrap; }
.footer__nav a { color: var(--muted); font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.footer__nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.footer__legal { width: 100%; color: var(--muted-2); font-size: 12.5px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bar__fill { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Account / gated download ---------- */
.account { padding-top: 72px; padding-bottom: 96px; }
.account__head { max-width: 680px; margin-bottom: 34px; }
.account__title { font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; margin-top: 14px; }
.account__lead { color: var(--muted); font-size: 17px; margin-top: 16px; }

.account__banner {
  max-width: 760px; margin: 0 0 26px; padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 14px; border: 1px solid var(--line-2); background: var(--panel);
}
.account__banner--ok { color: var(--accent-2); border-color: rgba(218,255,124,0.4); background: rgba(218,255,124,0.1); }
.account__banner--err { color: #FFB37A; border-color: rgba(255,138,61,0.4); background: rgba(255,138,61,0.08); }

.account__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }

.authcard {
  background: linear-gradient(180deg, rgba(218,255,124,0.07), rgba(255,255,255,0.02));
  border: 1px solid rgba(218,255,124,0.24); border-radius: var(--radius);
  padding: 30px 28px; min-height: 260px; display: flex; flex-direction: column;
}
.authcard[hidden] { display: none; }
.authcard h2 { font-size: 22px; margin-bottom: 10px; }
.authcard > p { color: var(--muted); font-size: 14.5px; }
.authcard .btn { margin-top: 22px; }
.authcard__icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: rgba(218,255,124,0.14); color: var(--accent-2);
  border: 1px solid rgba(218,255,124,0.3); margin-bottom: 20px;
}
.authcard__fine { font-size: 12.5px; color: var(--muted-2); margin-top: 14px; }
.authcard__hint { color: var(--muted); font-size: 14px; margin-top: 16px; text-align: center; }
.authcard__spinner {
  width: 34px; height: 34px; margin: 30px auto 0; border-radius: 50%;
  border: 3px solid rgba(218,255,124,0.2); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.account__user {
  display: flex; align-items: center; gap: 16px; padding-bottom: 22px;
  border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap;
}
.account__avatar {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid rgba(218,255,124,0.5); box-shadow: 0 8px 24px -10px rgba(218,255,124,0.7);
  background: #0E0E16;
}
.account__id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.account__hello { font-size: 12.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; }
.account__id strong { font-size: 19px; color: #fff; }
.account__tag { font-size: 12.5px; color: var(--accent-2); }
.account__user .btn { margin-left: auto; }

.account__download { display: flex; flex-direction: column; }
.account__file {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.25); border: 1px solid var(--line); color: var(--accent-2); margin-bottom: 20px;
}
.account__file div { display: flex; flex-direction: column; gap: 3px; }
.account__file strong { color: #fff; font-size: 15.5px; }
.account__meta { font-size: 12.5px; color: var(--muted); }

@media (max-width: 1024px) {
  .account__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .account { padding-top: 48px; }
  .account__user .btn { margin-left: 0; width: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 60px; padding-bottom: 72px; }
  .hero__visual { max-width: 480px; }
  .install__layout { grid-template-columns: 1fr; }
  .panel { position: static; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .header__actions .btn--ghost { display: none; }
  .header__actions .btn--primary { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: flex; }
  .mobile-menu[hidden] { display: none; }
  .grid { grid-template-columns: 1fr; }
  .hero__meta { gap: 20px; }
  .cta__box { padding: 30px 26px; }
  .window { transform: none; }
}
