/* =========================================================
   IGFont.top — studio dark theme
   ========================================================= */

:root {
  --ink: #08080d;
  --ink-2: #0d0d16;
  --panel: #12121c;
  --panel-2: #171724;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #ececf3;
  --muted: #9b9bab;
  --lime: #d8ff3e;
  --coral: #ff5f6d;
  --violet: #8f6bff;
  --radius: 16px;
  --radius-sm: 10px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  background-image:
    radial-gradient(1100px 600px at 12% -10%, rgba(143, 107, 255, 0.16), transparent 65%),
    radial-gradient(900px 520px at 92% 0%, rgba(216, 255, 62, 0.08), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-top: 1.9em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
strong { color: #fff; font-weight: 700; }
em { color: #fff; font-style: normal; font-weight: 600; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 40px); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--lime); color: #000; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------------- header ---------------- */

.site-head {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(8, 8, 13, 0.78);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; letter-spacing: -0.03em; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--lime), #6ee7b7 45%, var(--violet));
  color: #08080d; font-weight: 800; font-size: 0.95rem; letter-spacing: -0.08em;
  text-transform: lowercase;
}
.brand-text em { font-style: normal; color: var(--muted); font-weight: 500; }

.site-nav {
  display: flex; gap: 4px; flex-wrap: wrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.site-nav::-webkit-scrollbar { display: none; width: 0; height: 0; }
.site-nav a {
  color: var(--muted); font-size: 0.88rem; font-weight: 600;
  padding: 8px 12px; border-radius: 999px; text-decoration: none;
  transition: color .16s ease, background .16s ease;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.site-nav a.is-active { color: #08080d; background: var(--lime); }

.nav-toggle {
  display: none;
  appearance: none; cursor: pointer;
  width: 42px; height: 38px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; margin: 0 auto;
  border-radius: 2px; background: var(--text);
  transition: transform .2s ease, opacity .18s ease;
}
.nav-toggle span + span { margin-top: 4px; }
.nav-toggle.is-active { border-color: var(--lime); }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------- hero ---------------- */

.hero { padding: 10px 0 clamp(20px, 3vw, 34px); }
.hero-inner { display: flex; flex-direction: column; gap: 4px; }
.hero h1 { margin-bottom: 0.35em; }
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--lime); margin: 0 0 14px;
}
.grad-text {
  background: linear-gradient(96deg, #ff3b30, #ffd400 22%, #34c759 46%, #00c8ff 68%, #a855f7 88%, #ff2d78);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 62ch; color: #c9c9d6; font-size: 1.05rem; margin: 0; }

/* ---------------- studio ---------------- */

.studio { padding: 10px 0 26px; }
.studio-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 18px; align-items: start;
}

.panel {
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 22px 50px -32px rgba(0, 0, 0, 0.9);
}
.panel-controls { display: flex; flex-direction: column; gap: 16px; }
.panel-preview { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field.split { flex-direction: row; gap: 20px; flex-wrap: wrap; }
.field.split > div { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: baseline; gap: 8px;
}
.field-label .hint { text-transform: none; letter-spacing: 0; font-size: 0.66rem; color: #6d6d7d; }
.field-label output { color: var(--lime); font-family: var(--mono); }

.input, .textarea {
  width: 100%;
  background: #0a0a12;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.12rem;
  font-weight: 600;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.input:focus, .textarea:focus {
  outline: none; border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(216, 255, 62, 0.14);
}

/* style grid */
.style-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px; max-height: 302px; overflow-y: auto;
  padding: 2px 6px 2px 2px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 255, 62, 0.32) transparent;
}
.style-card {
  appearance: none; cursor: pointer;
  background: #0a0a12; border: 1px solid var(--line);
  border-radius: 12px; padding: 6px 6px 5px;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.style-card img { width: 100%; height: 58px; object-fit: contain; border-radius: 6px; background: #0f0f18; }
.style-card span {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.04em;
  color: var(--muted); text-align: center; text-transform: uppercase;
}
.style-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.style-card.is-active { border-color: var(--lime); background: rgba(216, 255, 62, 0.07); }
.style-card.is-active span { color: var(--lime); }

/* chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  appearance: none; cursor: pointer;
  background: #0a0a12; border: 1px solid var(--line);
  color: var(--muted); font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  padding: 7px 12px; border-radius: 999px;
  transition: all .16s ease;
}
.chip:hover { color: #fff; border-color: var(--line-strong); }
.chip.is-active { background: var(--lime); border-color: var(--lime); color: #08080d; }

.bg-swatch {
  appearance: none; cursor: pointer; position: relative;
  width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--line-strong); padding: 0; overflow: hidden;
}
.bg-swatch.is-active { outline: 2px solid var(--lime); outline-offset: 2px; }
.bg-transparent {
  background-image: linear-gradient(45deg, #2a2a38 25%, transparent 25%, transparent 75%, #2a2a38 75%),
                    linear-gradient(45deg, #2a2a38 25%, transparent 25%, transparent 75%, #2a2a38 75%);
  background-color: #14141f;
  background-size: 10px 10px;
  background-position: 0 0, 5px 5px;
}
.bg-dark { background: #0c0c12; }
.bg-light { background: #fff; }
.bg-custom { display: grid; place-items: center; background: #181826; }
.bg-custom input[type="color"] {
  width: 150%; height: 150%; border: none; padding: 0; background: none; cursor: pointer;
}

.size-field input[type="range"] { width: 100%; accent-color: var(--lime); }
.size-field.is-disabled { opacity: 0.4; pointer-events: none; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border-radius: 11px; padding: 12px 18px;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 700;
  border: 1px solid transparent; text-decoration: none;
  transition: transform .14s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-solid { background: var(--lime); color: #08080d; }
.btn-solid:hover { background: #e6ff6a; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.micro {
  font-family: var(--mono); font-size: 0.68rem; color: #6d6d7d;
  margin: 0; line-height: 1.5;
}
.micro strong { color: var(--muted); }

/* preview */
.preview-stage {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  background-color: #0a0a12;
  background-image: linear-gradient(45deg, #15151f 25%, transparent 25%, transparent 75%, #15151f 75%),
                    linear-gradient(45deg, #15151f 25%, transparent 25%, transparent 75%, #15151f 75%);
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
  display: grid; place-items: center;
  min-height: 300px;
  aspect-ratio: 1 / 1;
}
.preview-stage img { width: 100%; height: 100%; object-fit: contain; }
.preview-loading {
  position: absolute; inset: 0; display: none; place-items: center;
  background: rgba(8, 8, 13, 0.55); backdrop-filter: blur(2px);
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lime);
}
.preview-loading.is-on { display: grid; }
.preview-meta {
  display: flex; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 10px;
}

/* ---------------- ads ---------------- */

.ad-wrap {
  margin: 26px auto; padding: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px; width: min(1180px, 100% - 40px);
}
.ad-label {
  display: block; font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: #5c5c6b;
  margin-bottom: 6px; text-align: center;
}
.ad-wrap ins { display: block; }

/* ---------------- content sections ---------------- */

.content-block { padding: 26px 0 60px; }
.content-block h2:first-child { margin-top: 0; }
.content-block p, .content-block li { color: #c2c2d0; }

.steps { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 14px; }
.steps li {
  border-left: 2px solid var(--line-strong);
  padding: 2px 0 2px 18px;
}
.steps h3 { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); margin-bottom: 6px; }
.steps p { margin: 0; }

.tick-list { padding: 0; list-style: none; display: grid; gap: 10px; margin: 0 0 1.6em; }
.tick-list li { position: relative; padding-left: 26px; }
.tick-list li::before {
  content: ""; position: absolute; left: 4px; top: 0.62em;
  width: 8px; height: 8px; border-radius: 2px;
  background: linear-gradient(135deg, var(--lime), var(--violet));
}

.faq-mini { display: grid; gap: 8px; margin-bottom: 1.4em; }
details {
  border: 1px solid var(--line);
  border-radius: 12px; padding: 0 14px;
  background: rgba(255, 255, 255, 0.015);
}
details[open] { border-color: var(--line-strong); }
summary {
  cursor: pointer; padding: 13px 0; font-weight: 600; color: #fff;
  list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--lime); font-family: var(--mono); }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 14px; font-size: 0.95rem; }

.link-arrow { font-weight: 600; }
.link-arrow::after { content: " →"; }

/* ---------------- interior pages ---------------- */

.page-head { padding: 30px 0 22px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.3em; }
.page-head .lead { color: #c9c9d6; }

.page-body { padding-bottom: 64px; }
.page-body h2 { margin-top: 1.8em; }
.page-body h3 { margin-top: 1.4em; }
.page-body ul, .page-body ol { padding-left: 20px; }
.page-body li { margin-bottom: 8px; }
.page-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.94rem; }
.page-body th, .page-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.page-body th { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.page-body code {
  font-family: var(--mono); font-size: 0.85em;
  background: rgba(255, 255, 255, 0.07); padding: 2px 6px; border-radius: 5px;
}
.note {
  border: 1px solid var(--line); border-left: 3px solid var(--lime);
  background: rgba(216, 255, 62, 0.05);
  border-radius: 10px; padding: 14px 16px; margin: 1.4em 0;
}
.note p:last-child { margin-bottom: 0; }

/* styles gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 1.6em 0; }
.gallery figure {
  margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--panel);
}
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #0b0b13; }
.gallery figcaption { padding: 12px 14px 14px; }
.gallery h3 { margin: 0 0 4px; font-size: 1rem; }
.gallery p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* contact form */
.form-grid { display: grid; gap: 14px; max-width: 560px; }
.form-grid label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; background: #0a0a12; border: 1px solid var(--line-strong);
  border-radius: 10px; color: var(--text); font-family: var(--sans);
  font-size: 1rem; padding: 11px 13px;
}
.form-grid textarea { min-height: 150px; resize: vertical; }
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { outline: none; border-color: var(--lime); }
.form-status { padding: 12px 14px; border-radius: 10px; font-size: 0.92rem; }
.form-status.ok { background: rgba(52, 199, 89, 0.12); border: 1px solid rgba(52, 199, 89, 0.4); }
.form-status.err { background: rgba(255, 95, 109, 0.12); border: 1px solid rgba(255, 95, 109, 0.45); }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------------- footer ---------------- */

.site-foot { border-top: 1px solid var(--line); background: rgba(6, 6, 10, 0.6); padding: 40px 0 18px; margin-top: 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 28px; }
.foot-brand p { color: var(--muted); font-size: 0.9rem; max-width: 34ch; margin-top: 12px; }
.foot-col h2 {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 12px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.foot-col a { color: #c9c9d6; font-size: 0.9rem; }
.foot-col a:hover { color: var(--lime); }
.foot-note { font-size: 0.78rem; color: #62626f; margin-top: 12px; }
.foot-bottom {
  border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}
.foot-bottom p { margin: 0; font-size: 0.78rem; color: #6a6a78; }
.foot-disclaimer { max-width: 62ch; }

/* ---------------- cookie bar ---------------- */

.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: #14141f; border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  max-width: 860px; margin-inline: auto;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: 0.86rem; color: #c9c9d6; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-actions .btn { padding: 8px 14px; font-size: 0.82rem; }

/* ---------------- responsive ---------------- */

@media (max-width: 960px) {
  .studio-grid { grid-template-columns: 1fr; }
  .panel-preview { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* hamburger navigation */
@media (max-width: 900px) {
  .head-inner { position: relative; }
  .nav-toggle { display: grid; place-content: center; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    display: none; flex-direction: column; gap: 2px;
    background: #0b0b14;
    border: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
    padding: 10px;
    box-shadow: 0 26px 46px -26px rgba(0, 0, 0, 0.95);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 12px; border-radius: 9px; font-size: 0.95rem; }
  .site-nav a.is-active { background: rgba(216, 255, 62, 0.14); color: var(--lime); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .wrap.narrow, .ad-wrap { width: calc(100% - 28px); }
  .head-inner { height: 58px; padding: 0; }
  .panel { padding: 14px; }
  .style-grid { grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); max-height: 300px; }
  .preview-stage { min-height: 220px; }
  .actions .btn { flex: 1 1 auto; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: flex-end; }

  /* compact footer: two link columns per block instead of one long stack */
  .site-foot { padding: 24px 0 12px; margin-top: 18px; }
  .foot-grid { grid-template-columns: 1fr; gap: 13px; }
  /* the marketing paragraph is already covered by the hero above */
  .foot-brand p { display: none; }
  .foot-brand { margin-bottom: 2px; }
  .foot-col h2 { margin-bottom: 7px; font-size: 0.62rem; }
  .foot-col ul { display: block; columns: 2; column-gap: 16px; }
  .foot-col ul li { margin: 0 0 5px; break-inside: avoid; }
  .foot-col a { font-size: 0.85rem; }
  .foot-note { font-size: 0.72rem; margin-top: 7px; }
  .foot-bottom {
    flex-direction: column;
    gap: 5px;
    margin-top: 18px;
    padding-top: 12px;
  }
  .foot-bottom p { font-size: 0.71rem; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Fancy text generator (home page)
   ========================================================= */

.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;
}

.hero-compact { padding-bottom: 16px; }
.hero-compact h1 { font-size: clamp(2.1rem, 6vw, 3.9rem); }

.fancy-studio { padding: 4px 0 38px; }

.fancy-input-wrap {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #14141f, #0d0d16);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 4px 16px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.fancy-input-wrap:focus-within {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(216, 255, 62, 0.14);
}
.fancy-input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: none;
  color: #fff; font-family: var(--sans);
  font-size: clamp(1.1rem, 3vw, 1.55rem); font-weight: 700;
  padding: 14px 0;
}
.fancy-input::placeholder { color: #5d5d6d; font-weight: 500; }
.fancy-hint {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #5d5d6d; white-space: nowrap;
}

.fancy-list {
  display: grid; gap: 6px; margin-top: 14px;
  max-height: 640px; overflow-y: auto;
  padding-right: 6px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 255, 62, 0.32) transparent;
}
.fancy-row {
  display: grid; grid-template-columns: 148px minmax(0, 1fr) 62px;
  align-items: center; gap: 14px; width: 100%; text-align: left;
  background: #0b0b13; border: 1px solid var(--line);
  border-radius: 11px; padding: 11px 14px; cursor: pointer;
  color: var(--text); font-family: var(--sans);
  transition: border-color .14s ease, background .14s ease, transform .14s ease;
}
.fancy-row:hover { border-color: var(--lime); background: rgba(216, 255, 62, 0.05); transform: translateX(2px); }
.fancy-row.is-copied { border-color: var(--lime); background: rgba(216, 255, 62, 0.13); }
.fancy-name {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #7c7c8c;
}
.fancy-text {
  font-size: 1.05rem; line-height: 1.5; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fancy-copy {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--lime); text-align: right;
}
.fancy-row.is-copied .fancy-copy { color: #fff; }
.fancy-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* cross-sell band */

.cta-band { padding: 8px 0 34px; }
.cta-inner {
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 24px; align-items: center;
  background: linear-gradient(120deg, rgba(216, 255, 62, 0.07), rgba(143, 107, 255, 0.12));
  border: 1px solid var(--line); border-radius: 18px; padding: 26px;
}
.cta-copy h2 { margin-top: 0; }
.cta-copy p { margin-bottom: 0.9em; color: #c9c9d6; }
.cta-media img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }

/* style family table */

.family-list { list-style: none; padding: 0; margin: 1.2em 0; display: grid; gap: 9px; }
.family-list li { border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.family-list li::before { content: none; }
.family-list strong {
  display: inline-block; min-width: 104px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--lime);
}
.family-list span { color: #b9b9c8; font-size: 0.93rem; }

@media (max-width: 760px) {
  .cta-inner { grid-template-columns: 1fr; padding: 20px; }
  .fancy-row { grid-template-columns: minmax(0, 1fr) 54px; gap: 4px 10px; }
  .fancy-name { grid-column: 1 / -1; }
  .fancy-text { font-size: 0.95rem; }
  .fancy-hint { display: none; }
  .family-list strong { min-width: 0; display: block; }
}

/* =========================================================
   Scrollbars — override the chunky Windows default
   ========================================================= */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track,
::-webkit-scrollbar-track-piece {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.16);
  border: 2px solid transparent;
  background-clip: content-box;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(216, 255, 62, 0.45);
}
::-webkit-scrollbar-thumb:active {
  background-color: rgba(216, 255, 62, 0.65);
}
::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
::-webkit-scrollbar-corner {
  background: transparent;
}

/* =========================================================
   Animated text video generator
   ========================================================= */

.video-stage {
  position: relative;
  display: grid;
  place-items: center;
  background: #05050b;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  min-height: 300px;
  padding: 10px;
}
.video-stage canvas {
  display: block;
  max-width: 100%;
  max-height: 62vh;
  width: auto;
  height: auto;
  border-radius: 8px;
}

.vt-result {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #05050b;
}
.vt-result[hidden] { display: none; }

.vt-progress {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.vt-progress[hidden] { display: none; }
.vt-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lime), #6ee7b7);
  transition: width 0.08s linear;
}

.vt-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.vt-upload:hover { border-color: var(--lime); background: rgba(216, 255, 62, 0.05); }
.vt-upload-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(216, 255, 62, 0.14);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1;
}
.vt-upload-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e6e6ef;
}
.vt-upload-text em {
  font-style: normal;
  font-size: 0.73rem;
  font-weight: 400;
  color: #7c7c8c;
}
#vtFontStatus { color: var(--lime); }

.vg-swatch {
  appearance: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 35% 30%, var(--sw), rgba(0, 0, 0, 0.78) 88%);
  transition: transform 0.15s ease;
}
.vg-swatch:hover { transform: translateY(-1px); }
.vg-swatch.is-active { outline: 2px solid var(--sw); outline-offset: 2px; }

.vg-swatch.vg-custom {
  --sw: var(--lime);
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  background: #181826;
}
.vg-custom input[type="color"] {
  width: 150%;
  height: 150%;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
}

.vg-effect-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  margin: 1.2em 0;
}
.vg-effect-list li {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.015);
}
.vg-effect-list li::before { content: none; }
.vg-effect-list strong {
  display: inline-block;
  min-width: 118px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
}
.vg-effect-list span { color: #b9b9c8; font-size: 0.93rem; }

@media (max-width: 760px) {
  .video-stage { min-height: 220px; }
  .video-stage canvas { max-height: 52vh; }
  .vg-effect-list strong { display: block; min-width: 0; margin-bottom: 2px; }
}

/* =========================================================
   Tool entry cards
   ========================================================= */

.tool-band { padding: 6px 0 34px; }
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  color: var(--text);
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.tool-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}
.tool-card.is-highlight {
  border-color: rgba(216, 255, 62, 0.42);
  background: linear-gradient(180deg, rgba(216, 255, 62, 0.09), rgba(143, 107, 255, 0.06));
}
.tool-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}
.tool-card h3 { margin: 0; font-size: 1.12rem; }
.tool-card p { margin: 0; color: #b9b9c8; font-size: 0.92rem; }
.tool-arrow {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}
.tool-card:hover .tool-arrow { color: var(--lime); }

@media (max-width: 900px) {
  .tool-grid { grid-template-columns: 1fr; }
}
