.tip { position: relative; }
.tip .tip-tip {
  position: absolute;
  display: none;
}
.tip:hover .tip-tip { display: block; }
.fit { display: inline-block; }
.grid { display: grid; }
.flex { display: flex; }
.pool { display: grid; }
.insert { outline: 0; }
.dropdown {
  cursor: pointer;
  outline: 0;
}
.handle {
  cursor: pointer;
  outline: 0;
}
.full-height { height: 100%; }
.absolute { position: absolute; }
.grafou-gallery-footer {
  display: none;
}
#grafou-gallery {
  position: absolute;
}
.grafou-img-button {
  padding: 0;
  border: 0;
  background: transparent;
  display: block;
}
.grafou-label-container {
  display: grid;
  grid-template-columns: auto min-content;
  width: calc(100% - 12px);
  margin: 0 0 0 5px;
}
.grafou-img-label {
  border: 0;
  text-align: center;
  display: block;
  padding: 4px 0;
}
.grafou-img-label:hover {
  background: #ffffff87;
}
.grafou-gallery-container {
  background: #00000045;
  border: 1px solid gray;
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  display: grid;
  grid-template-rows: auto min-content;
  font-family: sans-serif;
}
.grafou-gallery-inner {
  max-height: 80svh;
  overflow: auto;
}
.grafou-gallery-images-api, .grafou-gallery-images-www {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  padding: 20px;
}
.grafou-img {
  max-width: 200px;
  padding: 5px;
  cursor: pointer;
  display: block;
}
.grafou-gallery-image-edit:hover, .grafou-gallery-container .selected-grafou-img {
  border: 1px solid red;
}
.grafou-gallery-header {
  position: sticky;
  top: 0;
  background: lightgray;
  box-shadow: -1px 0px 3px black;
  padding: 4px 0;
}
.grafou-gallery-footer {
  background: black;
  padding: 4px 0;
  border-top: 1px solid gray;
  text-align: end;
}
.select-grafou-images {
  font-size: 20px;
  margin-right: 20px;
  background: transparent;
  color: green;
  border: 0;
  padding: 0;
  padding-top: 3px;
}
.select-grafou-images:hover {
  color: #116611;
}
#alert {
  color: black;
  font-size: 16px;
  bottom: 20px;
  position: absolute;
  left: 20px;
  padding: 10px;
  z-index: 10001 !important;
  display: none;
  background: white;
  border: 1px solid gray;
  height: min-content !important;
}
#alert.alert-error {
  color: white;
  background: #b10c0c;
  border: 1px solid darkred;
}
#alert.alert-success {
  color: white;
  background: green;
  border: 1px solid darkgreen;
}
#alert.alert-active { display: block; }
.hide-handle .togglerarrow-icons { padding: 0; }
.preview-wrapper-handles {
  display: grid;
  grid-template-columns: min-content 1fr min-content;
  white-space: nowrap;
}
.selected-element-title {
  background: lightgray;
  display: flex;
  white-space: break-spaces;
  font-size: 10px;
  margin-right: 5px;
  height: 27px;
  overflow-y: auto;
  overflow-x: hidden;
}
.preview-selected-element {
  display: grid;
  grid-template-columns: 1fr min-content;
}
.grafou-redo-view .bi {
  transform: rotate(180deg);
  display: block;
}
.data-handle {
  display: none !important;
}
.full-width { width: 100% !important; }
.ai-handle button { color: orange; }
.dashboard-wrappers {
  height: 100%;
  display: grid;
  grid-template-rows: auto min-content min-content;
}
.dashboard-wrappers .dashboard-handle {
  background: transparent;
  color: white;
  border: 1px solid gray;
  margin: 0;
}
.dashboard-wrappers .dashboard-handle:hover,
.dashboard-wrappers .active-dashboard-handle { background: #5d5d5d; }
.dashboard-wrappers .dashboard-wrapper { width: 100%; }
.preview-frame {
  background: white;
  width: 100%;
  height: 100%;
  transform-origin: top left;
}
.dashboard-wrapper {
  display: grid;
  height: 100%;
}
.dashboard-container {
  overflow: auto;
}
.preview-container {
  max-width: 100vw;
  display: grid;
  grid-template-rows: 1fr min-content min-content;
}
.preview-container-inner {
  overflow: auto;
  padding: 15px 5px;
}
.preview-wrapper {
  margin: 0 auto;
  height: 100%;
  background: white;
  color: black;
  overflow: hidden;
}
.rules-grid-normal {
  grid-template-rows: 1fr !important;
}
.dashboard-container-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.preview-wrapper-yr {
  display: grid;
  justify-content: center;
  padding: 20px;
}
.preview-handles-collapsed {
  padding: 0 !important;
  display: block;
  width: 100%;
}
.dashboard-handles-collapsed {
  padding: 0 !important;
  display: flex;
}
.rules-grid {
  height: 100%;
  display: grid;
}
.rules-overlay {
  position: fixed;
  width: 100vw;
  height: 100svh;
  z-index: 999999;
}
.rules-grid-item {
  border: 2px solid gray;
  cursor: row-resize;
  position: relative;
  z-index: 1;
  top: 0 !important;
  left: 0 !important;
}
.rules-grid-item:hover {
  border: 6px solid gray;
}
/* ===== BASE ===== */
.words-code-container {
  display: grid;
  grid-template-rows: 1fr min-content;
  height: 100%;
  overflow: hidden;
}
.words-code {
  display: grid;
  grid-template-columns: min-content auto;
  background-color: #1f1f1f;
  height: 100%;
}
.line-numbers {
  text-align: end;
  overflow: hidden;
  padding: 10px;
  padding-top: 0;
  color: #617668;
  user-select: none;
  height: 150%;
}
.line-numbers, .words-code-insert, .highlight {
  font-size: 12px;
  line-height: 1.4;
  font-family: monospace;
}
.words-code-insert {
  white-space: pre;
  resize: none;
  height: 100%;
  margin: 0;
  outline: 0;
  border: 0;
  width: 100%;
  background-color: inherit;
  color: transparent;
  caret-color: gray;
  padding: 10px 0 10px 2px;
  border-left: 1px solid #3e3e3e;
}
.highlight-container {
  position: relative;
  overflow: hidden;
}
.highlight {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  white-space: pre;
  padding-left: 2px;
  border-left: 1px solid #3e3e3e;
  color: #9CDCFE;
  background-image: linear-gradient(to right, transparent calc(79ch + 3px), #ffb10038 calc(79ch + 3px), #ffb10038 calc(80ch + 2px), transparent calc(80ch + 2px));
  min-width: 85ch;
}
/* yr tokens */
.yr-comment { color: gray !important; }
.yr-trigger, .yr-section, .yr-macro { color: #e90; }
.yr-html-selector { color: #569CD6; }
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  background: transparent !important;
}
.words-code-insert {
  overflow: auto; /* 🔥 ESSENCIAL */
}
.words-code {
  height: 100%;
  max-height: 100%;
  overflow: hidden; /* 🔥 impede crescer infinito */
}
.highlight-container {
  position: relative;
  overflow: hidden; /* ok manter */
}
.words-code-handles {
  display: flex;
  gap: 10px;
  padding: 6px 10px;
  font-size: 11px;
  background: #181818;
  color: #aaa;
  border-top: 1px solid #333;
  align-items: center;
  white-space: nowrap;
}
.words-code-info {
  display: flex;
  gap: 10px;
}
.words-code-search {
  margin-left: auto;
}
.search-words-code {
  background: #222;
  border: 1px solid #333;
  color: #ccc;
  padding: 2px 6px;
  width: 11ch;
  font-family: inherit;
}
.toggle-macros, .search-prev, .search-next, .search-clear {
  background: #222;
  border: 1px solid #333;
  color: #ccc;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 3px;
}
.toggle-macros {
  color: #aaa !important;
}
.toggle-macros.active {
  color: green !important;
}
.search-prev:disabled, .search-next:disabled, .search-clear:disabled {
  opacity: 0;
  cursor: default;
  display: none;
}
.search-count {
  font-size: 11px;
  color: #888;
  min-width: 50px;
  text-align: center;
}
.font-inc, .font-dec, .search-clear {
  background: #222;
  border: 1px solid #333;
  color: #ccc;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 3px;
}
.font-inc:hover, .font-dec:hover, .search-clear:hover {
  background: #2a2a2a;
}
/* cursor char highlight */
.cursor-char {
  background: #ffffff22;
  outline: 1px solid #ffffff33;
}
.highlight {
  /* existing styles... */
  overflow: scroll;        /* was: nothing / hidden */
  scrollbar-width: none;   /* hide the scrollbar */
}
.highlight::-webkit-scrollbar {
  display: none;
}
.iframe-console {
  font-family: monospace;
  font-size: 12px;
  background: #1e1e1e;
  color: #ddd;
  padding: 8px;
  overflow-y: auto;
}
.entry {
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid gray;
}
.time { color: #777; }
.level-log { color: #ccc; }
.level-warn { color: #e5c07b; }
.string { color: #98c379; }
.number { color: #d19a66; }
.boolean { color: #56b6c2; }
.null, .undefined { color: #c678dd; }
.function {
  color: #61afef;
  cursor: pointer;
}
.dom-node { color: #e5c07b; }
.object-key { color: #abb2bf; }
.level-error, .level-error .object-key { color: #e06c75; }
.collapsible { cursor: pointer; }
.children { margin-left: 15px; }
.stack-line {
  font-family: monospace;
  padding-left: 1em;
  white-space: pre;
}
.stack-line.clickable {
  cursor: pointer;
  color: #4ea1ff;
  text-decoration: underline;
}
.stack-line.clickable:hover {
  color: #1e90ff;
}
.entry > span { margin-right: 7px; }
.entry > span:first-child { margin-right: 0; }
.code-snippet {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 0.5em;
  margin: 0.25em 0;
  border-radius: 4px;
  overflow-x: auto;
  text-decoration: none !important;
}
.elements-tab {
  font-family: monospace;
  font-size: 12px;
  white-space: pre;
  line-height: 1.6;
  background: #111;
  color: #eee;
  overflow: auto;
  height: 100%;
  padding: 10px 0;
}
.node {
  cursor: pointer;
}
.collapsed > .el-children {
  display: none;
}
.entry-label {
  color: #8cf;
}
.entry-label:hover {
  background: gray;
}
.highlight-locked {
  background: blue;
  color: gray;
}
.chat-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f0f4f8, #e1e9f0);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #d1d1d1;
  transition: all 0.3s ease;
  color: black;
}
.input-container {
  display: flex;
  flex-direction: row;
  gap: 8px;
}
.button-container {
  display: flex;
  justify-content: space-between;
  padding: 5px 0 0;
}
.chat-history {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 24px;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  height: 100%;
  transition: background-color 0.3s ease;
}
.chat-user, .chat-assistant {
  max-width: 75%;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 24px;
  line-height: 1.5;
  word-wrap: break-word;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
.chat-user {
  background-color: #d1e7dd;
  align-self: end;
}
.chat-assistant {
  background-color: #f8d7da;
  align-self: start;
}
.message-role {
  font-weight: bold;
  margin-bottom: 4px;
}
.copy-btn {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #6c757d;
}
.typing-indicator {
  font-style: italic;
  color: black;
  margin: 16px 24px;
  animation: fadeIn 0.5s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    background-color: #cce5ff;
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}
.dots::after {
  content: '...';
  animation: blink 1.5s steps(3, end) infinite;
}
@keyframes blink {
  0% { content: ''; }
  33% { content: '.'; }
  66% { content: '..'; }
  100% { content: '...'; }
}
.chat-form {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-top: 1px solid #e0e0e0;
  background-color: #ffffff;
}
.chat-user-input {
  flex: 1;
  height: 39px;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 9px;
  border: none;
  outline: none;
  margin-bottom: 0;
  transition: border-color 0.3s;
}
.chat-user-input:focus {
  border-color: #007bff;
}
.chat-user-submit, .chat-audio-input, .chat-audio-stop {
  padding: 8px 10px;
  border: 1px solid #ced4da;
  border-radius: 12px;
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  flex: 0 0 auto;
}
.chat-user-submit:hover, .chat-audio-input:hover, .chat-audio-stop:hover {
  background: linear-gradient(45deg, #0056b3, #007bff);
  transform: scale(1.05);
}
.chat-user-submit:focus, .chat-audio-input:focus, .chat-audio-stop:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}
#theme-toggle {
  position: absolute;
  top: 10px;
  right: 20px;
  padding: 6px 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  z-index: 99;
}
.chat-container pre, .chat-container code {
  background: #2d2d2d;
  color: #f8f8f2;
  font-family: 'Courier New', Courier, monospace;
  padding: 8px;
  border-radius: 6px;
  overflow-x: auto;
  line-height: 22px;
}
.chat-disclaimer {
  font-size: 14px;
  color: #6c757d;
  margin: 6px 12px;
  padding: 4px;
  background-color: #f8f9fa;
  border-radius: 6px;
  text-align: center;
}
.chat-msg {
  display: flex;
  flex-direction: row;
  overflow: clip;
}
.chat-msg p {
  margin: 0;
}
.togglerarrow-icons { padding-right: 5px; }
.togglerexpand-icons { padding-right: 5px; }
.modal {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 11;
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.modal-content {
  display: grid;
  align-items: center;
  justify-items: center;
  width: 100%;
  height: 100%;
}
*, *::before, *::after {
  box-sizing:border-box;
  margin:0;
  padding:0
}
:root {
  --bg: #060816;
  --surface: #0d1020;
  --surface2: #111426;
  --border: rgba(255, 255, 255, 0.07);
  --border2: rgba(255, 255, 255, 0.13);
  --ink: #f4f3f0;
  --soft: #9ca3af;
  --muted: #4a4e6a;
/* logo colors - kept for logo blocks only */
 --red: #e8474a;
  --orange: #e88a2a;
  --yellow: #e8c42a;
  --green: #4ac94a;
  --blue: #4a8ae8;
  --purple-logo: #8a4ae8;
/* purple theme */
 --accent: #a855f7;
  --accent2: #8b5cf6;
  --accent-glow: rgba(168, 85, 247, 0.35);
  --accent-soft: rgba(168, 85, 247, 0.12);
  --accent-border: rgba(168, 85, 247, 0.25);
  --mono: 'Fragment Mono', monospace;
  --body: 'Plus Jakarta Sans', sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
/* grid bg */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
/* glow */
.glow-wrap {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
}
.glow-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -100px;
  background: #6d28d9;
}
.glow-2 {
  width: 400px;
  height: 400px;
  top: 100px;
  right: -100px;
  background: #7c3aed;
}
.glow-3 {
  width: 300px;
  height: 300px;
  bottom: 20%;
  left: 30%;
  background: #4c1d95;
  opacity: 0.07;
}
/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 8, 15, 0.85);
  backdrop-filter: blur(16px);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-blocks {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  grid-template-rows: repeat(3, 8px);
  gap: 2px;
}
.b {
  border-radius: 2px;
}
.b1 {
  background:var(--red)
}
.b2 {
  background:var(--yellow)
}
.b3 {
  background:var(--green)
}
.b4 {
  background:var(--orange)
}
.b5 {
  background:var(--blue)
}
.b6 {
  background:var(--purple)
}
.b7 {
  background:var(--green)
}
.b8 {
  background:var(--yellow)
}
.b9 {
  background:var(--red)
}
.nav-logo-text {
  font-family: var(--body);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--soft);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: all 0.18s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--soft);
  border-color: var(--border2);
}
.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--ink);
}
/* ── HERO ── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 40px 60px;
  max-width: 1160px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
  width: fit-content;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% {
    opacity:1
  }
  50% {
    opacity:0.3
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-h {
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
/* colored words */
.w-green {
  color: var(--green);
}
.w-blue {
  color: var(--blue);
}
.w-yellow {
  color: var(--yellow);
}
.w-orange {
  color: var(--orange);
}
.hero-sub {
  font-size: 17px;
  color: var(--soft);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 32px;
}
.hero-sub strong {
  color: var(--ink);
  font-weight: 600;
}
/* flow */
.flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.flow-step {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--soft);
  padding: 5px 12px;
  border: 1px solid var(--border2);
  background: var(--surface);
  border-radius: 6px;
}
.flow-step.hi {
  color: #c4b5fd;
  border-color: var(--accent-border);
  background: var(--accent-soft);
}
.flow-arr {
  color: var(--muted);
  font-size: 14px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-note {
  font-size: 13px;
  color: var(--muted);
}
/* ── RULE ── */
.rule {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 1160px;
  margin: 0 auto;
}
/* ── SECTION ── */
.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 40px;
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: #c4b5fd;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-h {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--soft);
  font-size: 16px;
  max-width: 480px;
  line-height: 1.7;
}
/* ── FEATURES ── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 48px;
}
.feat {
  background: var(--bg);
  padding: 28px 24px;
  transition: background 0.2s;
}
.feat:hover {
  background: var(--surface);
}
.feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}
.feat h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feat p {
  font-size: 13px;
  color: var(--soft);
  line-height: 1.6;
}
.feat-tag {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
}
.tag-live {
  background: var(--accent-soft);
  color: #c4b5fd;
}
.tag-beta {
  background: rgba(232, 196, 42, 0.1);
  color: var(--yellow);
}
/* ── VIDEO ── */
.video-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}
.video-player {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 16px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
  z-index: 1;
  transition: all 0.2s;
}
.play-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}
.video-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--soft);
  z-index: 1;
}
.video-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.vp {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.vp-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
  width: 24px;
}
.vp-text {
  font-size: 15px;
  color: var(--soft);
  line-height: 1.6;
}
.vp-text strong {
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}
/* ── SCREENSHOT ── */
.screenshot-wrap {
  border: 1px solid var(--border2);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 48px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.screenshot-bar {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.screenshot-placeholder {
  background: var(--surface);
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.screenshot-placeholder p {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
/* ── BYOK ── */
.byok-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  border-radius: 16px;
  padding: 48px;
  margin-top: 48px;
}
.byok-code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2;
}
.byok-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.byok-list li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--soft);
  line-height: 1.6;
}
.byok-list li .m {
  color: #c4b5fd;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 2px;
}
/* ── PLANS ── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 48px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
  position: relative;
}
.plan:hover {
  border-color: var(--border2);
}
.plan.hot {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.plan-badge {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #000;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.plan-price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 4px;
}
.plan-price sub {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  vertical-align: baseline;
}
.plan-future {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 20px;
}
.plan-desc {
  font-size: 13px;
  color: var(--soft);
  margin-bottom: 20px;
  line-height: 1.6;
}
.plan-features {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.plan-features li {
  font-size: 12px;
  color: var(--soft);
  display: flex;
  gap: 8px;
}
.plan-features li .c {
  color: var(--green);
  flex-shrink: 0;
}
.plan-features li.off {
  opacity: 0.35;
}
.plan-features li.off .c {
  color: var(--muted);
}
/* ── SPOTS ── */
.spots-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  border-radius: 12px;
  border: 1px solid var(--accent-border);
  background: rgba(74, 201, 74, 0.04);
  margin-bottom: 48px;
  max-width: 480px;
}
.spots-count {
  font-size: 32px;
  font-weight: 800;
  color: #c4b5fd;
  letter-spacing: -1px;
  line-height: 1;
}
.spots-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.spots-track {
  flex: 1;
  height: 3px;
  background: var(--border2);
  border-radius: 2px;
  overflow: hidden;
}
.spots-fill {
  height: 100%;
  background: var(--accent);
  /*width: 28%;*/
  width: 0%;
  border-radius: 2px;
}
.spots-text {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
/* ── CTA ── */
.cta-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 60px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-wrap h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
}
.cta-wrap p {
  color: var(--soft);
  font-size: 15px;
}
/* ── FOOTER ── */
.footer-wrap {
  border-top: 1px solid var(--border);
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.footer-logo-text {
  font-weight: 800;
  font-size: 16px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: var(--ink);
}
.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
/* ── LOGO BLOCKS LARGE ── */
.logo-large {
  display: grid;
  grid-template-columns: repeat(5, 14px);
  grid-template-rows: repeat(4, 14px);
  gap: 3px;
  margin-bottom: 40px;
}
.lb {
  border-radius: 3px;
}
.rules-grid {
  grid-template-columns: 1fr 1fr;
  height: 95svh;
}
.dashboard-wrappers {
  height: 95svh;
}
.code-container {
  height: 95svh;
}
/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav {
    padding: 0 20px;
  }
  .nav-links {
    display: none;
  }
  .hero, .section {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-screenshot {
    width: 100%;
  }
  .feat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .video-wrap {
    grid-template-columns: 1fr;
  }
  .byok-wrap {
    grid-template-columns: 1fr;
    padding: 48px 24px;
  }
  .plans-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta-wrap {
    flex-direction: column;
  }
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .templates-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .modal-body {
    grid-template-columns: 1fr;
  }
  .modal-preview-panel {
    display: none;
  }
  .rules-grid {
    grid-template-rows: 44% 1fr !important;
    grid-template-columns: 1fr !important;
  }
  .code-container {
    height: 100%;
  }
  .dashboard-container {
    position: relative;
    z-index: 999;
  }
  .preview-container-inner {
    padding: 0;
  }
}
@media (max-width: 560px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .templates-grid {
    grid-template-columns: 1fr !important;
  }
}
/* ── SCREENSHOT ── */
.hero-screenshot {
  align-self: center;
}
.screenshot-frame {
  border: 1px solid var(--border2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(168, 85, 247, 0.1);
}
.screenshot-bar {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.screenshot-bar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.screenshot-bar-title {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  margin-left: 6px;
}
.screenshot-frame img {
  width: 100%;
  display: block;
}
/* ── TEMPLATES ── */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.template-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.template-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.template-thumb {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--surface2);
}
.template-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.template-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.template-card:hover .template-overlay {
  opacity: 1;
}
.template-try-btn {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.template-info {
  padding: 16px;
}
.template-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.template-desc {
  font-size: 12px;
  color: var(--soft);
}
.template-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: #c4b5fd;
}
.template-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-height: 100svh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}
.modal-bar {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.modal-dots {
  display: flex;
  gap: 6px;
}
.modal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.modal-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  flex: 1;
}
.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 20px;
  padding: 0 4px;
  transition: color 0.15s;
  line-height: 1;
}
.modal-close:hover {
  color: var(--ink);
}
.modal-open-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #c4b5fd;
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  transition: all 0.15s;
  white-space: nowrap;
}
.modal-open-link:hover {
  background: var(--accent-soft);
}
.modal-body {
  display: grid;
  grid-template-columns: 1fr;
  flex: 1;
  overflow: hidden;
  min-height: 520px;
}
.modal-code-panel {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 20px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
}
.modal-preview-panel {
  overflow: hidden;
  background: #faf8f4;
}
.modal-preview-panel iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.preview-wrapper-handles {
  display: none;
}
*::-webkit-scrollbar {
  height: 6px;
  width: 8px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 8px;
  transition: background .2s;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--text2);
}
*::-webkit-scrollbar-thumb:active {
  background: var(--text);
}
*::-webkit-scrollbar-corner {
  background: transparent;
}
.dashboard-handles {
  display: none;
}
.undefined {
  /* ── I18N SWITCHER ── */: !important;
}
.__i18n-switcher {
  display: flex !important;
  gap: 2px !important;
  align-items: center !important;
  background: var(--surface2) !important;
  border: 1px solid var(--border2) !important;
  border-radius: 8px !important;
  padding: 3px !important;
  margin-right: 8px !important;
}
.__i18n-btn {
  background: none !important;
  border: none !important;
  color: var(--muted) !important;
  font-family: var(--mono) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  padding: 4px 9px !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
}
.__i18n-btn:hover {
  color: var(--ink) !important;
  background: var(--surface) !important;
}
.__i18n-btn.active {
  background: var(--accent-soft) !important;
  color: #c4b5fd !important;
  border: 1px solid var(--accent-border) !important;
}
.__sYJnFXs1 {
  width: 30px !important;
  height: 30px !important;
}
.__qCipI0an {
  width: 30px !important;
  height: 30px !important;
}
@media only screen and (max-width: 482px) {
  .__NKBmwZUT {
    display: none !important;
  }
}
.hidden {
  display: none !important;
  /*position: absolute !important;
  z-index: -9999 !important;
  top: -20404px !important;
  opacity: 0 !important;*/
}
