:root {
  --bg: #080b14;
  --bg2: #0e1322;
  --card: #121829;
  --border: rgba(125, 211, 252, 0.12);
  --text: #e6edf7;
  --muted: #9fb0c8;
  --accent: #7dd3fc;
  --accent2: #f472b6;
  --accent3: #34d399;
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Pretendard",
    "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 75% -5%, rgba(125, 211, 252, 0.16), transparent 60%),
    radial-gradient(55% 45% at 10% 10%, rgba(244, 114, 182, 0.12), transparent 55%),
    radial-gradient(70% 60% at 50% 110%, rgba(52, 211, 153, 0.10), transparent 60%);
}

a { color: inherit; text-decoration: none; }
b { color: #fff; font-weight: 650; }

/* ---- nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(8, 11, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.nav .links { display: flex; gap: 20px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav .links a:hover { color: var(--text); }
.lang { display: flex; gap: 4px; }
.lang-btn {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; cursor: pointer;
}
.lang-btn.active { color: #06121f; background: var(--accent); border-color: var(--accent); }

/* ---- layout ---- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: 76px 0; border-top: 1px solid var(--border); }
.section h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.02em; margin: 0 0 22px; }

/* ---- hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  background: linear-gradient(120deg, #fff 30%, var(--accent) 75%, var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); margin: 0 0 28px; max-width: 30ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 650; font-size: 15px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease;
}
.btn.primary {
  color: #06121f;
  background: linear-gradient(120deg, var(--accent), #a5b4fc 60%, var(--accent2));
  box-shadow: 0 6px 30px rgba(125, 211, 252, 0.35);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 38px rgba(125, 211, 252, 0.5); }
.btn.ghost { color: var(--text); border-color: var(--border); background: rgba(255, 255, 255, 0.03); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.big { font-size: 17px; padding: 15px 28px; }

.hero-shot img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(125, 211, 252, 0.12);
}

/* ---- about ---- */
.big { font-size: clamp(17px, 2.1vw, 21px); color: #cdd9ea; max-width: 64ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.feature-grid {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.feature-grid li {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 4px;
}
.feature-grid .fi { font-size: 24px; margin-bottom: 6px; }
.feature-grid b { font-size: 15px; }
.feature-grid em { font-style: normal; font-size: 13px; color: var(--muted); }

/* ---- presets ---- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.gallery figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips span {
  font-size: 13px; padding: 7px 13px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); color: #c8d6ea;
}

/* ---- steps / code ---- */
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps .n {
  flex: 0 0 28px; height: 28px; border-radius: 50%;
  background: rgba(125, 211, 252, 0.12); color: var(--accent);
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.big-steps li { font-size: 16px; }
.code {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 16px 0; padding: 14px 16px; border-radius: 12px;
  background: #0a0f1d; border: 1px solid var(--border);
}
.code code { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--accent); font-size: 15px; }
.copy {
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); color: var(--text);
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 8px; cursor: pointer; flex-shrink: 0;
}
.copy:hover { border-color: var(--accent); }
.copy.done { color: var(--accent3); border-color: var(--accent3); }
code { background: rgba(255, 255, 255, 0.06); padding: 1px 6px; border-radius: 5px; font-size: 0.92em; }

/* ---- closer / footer ---- */
.closer { text-align: center; }
.closer h2 {
  font-size: clamp(28px, 5vw, 48px);
  background: linear-gradient(120deg, #fff, var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 26px;
}
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px) 60px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px;
}
.footer .made a { color: var(--accent); }
.footer .flinks { display: flex; gap: 18px; margin-left: auto; }
.footer .flinks a:hover { color: var(--text); }
.footer .lic { width: 100%; font-size: 12px; opacity: 0.6; }

/* ---- lang toggle ---- */
[data-en] { transition: opacity .12s ease; }

/* ---- responsive ---- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .nav .links { display: none; }
}
@media (max-width: 460px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---- how / snippet ---- */
.section h3 { font-size: clamp(18px, 2.4vw, 22px); margin: 40px 0 12px; letter-spacing: -0.01em; }
.how-grid { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.how-grid li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.how-grid .hi { display: block; font-size: 22px; margin-bottom: 10px; }
.how-grid b { display: block; font-size: 16px; margin-bottom: 6px; }
.how-grid li > span:not(.hi) { color: var(--muted); font-size: 14px; line-height: 1.6; }
.how-grid code, .steps code { font-size: 0.9em; }
.snippet { position: relative; margin: 16px 0; padding: 16px 18px; border-radius: 12px; background: #0a0f1d; border: 1px solid var(--border); overflow-x: auto; }
.snippet pre { margin: 0; }
.snippet code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; line-height: 1.6; color: #c8d6ea; background: none; padding: 0; white-space: pre; }
.snippet .snippet-copy { position: absolute; top: 12px; right: 12px; }
kbd { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: 0.85em; font-family: ui-monospace, monospace; }
@media (max-width: 700px) { .how-grid { grid-template-columns: 1fr; } }

/* ---- ai prompts ---- */
.prompts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.prompt { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.prompt-label { font-weight: 650; font-size: 14px; }
.prompt-text { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
@media (max-width: 700px) { .prompts { grid-template-columns: 1fr; } }

/* ---- tip callout ---- */
.tip {
  margin: 18px 0 26px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.25);
  color: #d7e8f7;
  font-size: 14.5px;
  line-height: 1.6;
}
.tip b { color: #fff; }
