/* =============================================================
   dev. — AI app · www.dev-token.online
   Lovable/Bolt-style. Warm cream background, orange accent.
   ============================================================= */

:root {
  /* v55 — Claude Mobile design tokens (synced with /app/app.css) */
  --cream:        #EEE9DC;
  --cream-soft:   #F4EFE2;
  --cream-deep:   #E5DECD;
  --paper:        #FBF7EE;
  --ink:          #1F1E1B;
  --ink-2:        #3A3833;
  --muted:        #8C8881;
  --hairline:     rgba(31,30,27,0.08);
  --hairline-2:   rgba(31,30,27,0.14);
  --clay:         #C96442;
  --clay-deep:    #A8512F;
  --clay-soft:    rgba(201,100,66,0.10);
  --success:      #5A8B5C;
  --warn:         #B8862C;

  --bg:         var(--cream);
  --bg-soft:    var(--cream-soft);
  --bg-card:    var(--paper);
  --ink-90:     rgba(31,30,27,0.92);
  --ink-70:     rgba(31,30,27,0.68);
  --ink-55:     rgba(31,30,27,0.52);
  --ink-40:     rgba(31,30,27,0.38);
  --ink-25:     rgba(31,30,27,0.22);
  --ink-12:     var(--hairline-2);
  --ink-06:     var(--hairline);
  --ink-03:     rgba(31,30,27,0.035);

  --accent:     var(--clay);
  --accent-h:   var(--clay-deep);
  --accent-soft:var(--clay-soft);
  --accent-glow:rgba(201,100,66,0.30);
  --lime:       #C6F750;

  --font-brand:   'Archivo Black', 'Instrument Serif', 'Inter', system-ui, sans-serif;
  --font-display: 'Instrument Serif', 'Charter', 'Georgia', serif;
  --font-sans:    'DM Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --container:  1280px;
  --gutter:     clamp(20px, 4vw, 48px);
  --section-y: clamp(80px, 10vh, 120px);

  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   22px;
  --r-xl:   28px;
  --r-2xl:  36px;
  --r-pill: 999px;

  --ease:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 220ms;
  --dur-med:  440ms;
  --dur-slow: 780ms;

  --header-h: 68px;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
/* Kill mobile blue tap-highlight + browser focus ring on click */
* { -webkit-tap-highlight-color: transparent; }
button, a, [role="button"], input, textarea, select, summary {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
button:focus, a:focus, [role="button"]:focus,
input:focus, textarea:focus, select:focus, summary:focus { outline: none; }
/* Keyboard accessibility — ring only when Tab-focused */
button:focus-visible, a:focus-visible, [role="button"]:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: inherit;
}
html {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.025em; }
p { margin: 0; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--paper); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; top: 8px; left: 8px;
  padding: 8px 14px;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 12px;
  border-radius: var(--r-sm);
  transform: translateY(-200%);
  transition: transform 0.2s;
  z-index: 200;
}
.skip-link:focus { transform: translateY(0); }


/* ─── Background ambient orbs ───────────────────────────────── */
.bg-orbs {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  will-change: transform;
}
.orb-1 { top: -8%; left: -10%; width: 520px; height: 520px; background: var(--accent-soft); animation: orbFloat1 18s ease-in-out infinite alternate; }
.orb-2 { top: 35%; right: -12%; width: 480px; height: 480px; background: #FFD9A8; opacity: 0.4; animation: orbFloat2 22s ease-in-out infinite alternate; }
.orb-3 { bottom: -10%; left: 20%; width: 420px; height: 420px; background: #FFCFC0; opacity: 0.45; animation: orbFloat3 26s ease-in-out infinite alternate; }
@keyframes orbFloat1 { to { transform: translate(60px, 40px); } }
@keyframes orbFloat2 { to { transform: translate(-40px, -60px); } }
@keyframes orbFloat3 { to { transform: translate(50px, -30px); } }

main, footer.site-foot { position: relative; z-index: 2; }
header.site-header { position: sticky; top: 0; z-index: 50; }


/* ─── Scroll progress ───────────────────────────────────────── */
.scroll-line {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 100;
  pointer-events: none;
}
.scroll-line-bar {
  height: 100%; width: 0%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 60ms linear;
}


/* ─── Brand (logo text + dot) ──────────────────────────────── */
.brand {
  display: inline-flex; align-items: flex-end;
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 28px;
  color: var(--ink);
  line-height: 0.9;
  letter-spacing: -0.05em;
  gap: 2px;
  line-height: 1;
}
.brand-logo {
  width: 80px;
  height: auto;
  display: block;
}
.brand-text { display: inline-block; }
.brand-dot {
  display: inline-block;
  width: 0.28em;
  height: 0.28em;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 0.06em;
  margin-left: 0.01em;
  transition: transform var(--dur-med) var(--ease-io);
}
.brand:hover .brand-dot { transform: translateY(-3px) scale(1.15); }


/* ─── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--ink-06);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}
.hdr-row {
  height: 100%;
  display: flex; align-items: center; gap: 28px;
}
.site-header .container {
  max-width: none;
  padding-inline: clamp(14px, 2vw, 32px);
}
.nav {
  display: flex; gap: 30px;
  margin-left: 20px;
}
.nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-70);
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease);
}
.nav a:hover { color: var(--ink); }

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

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--ink-12);
  border-radius: var(--r-pill);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.nav-toggle span {
  display: block; width: 14px; height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle:hover { background: var(--ink); }
.nav-toggle:hover span { background: var(--paper); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.4px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

.mobile-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--bg);
  padding: 40px var(--gutter);
  z-index: 45;
  opacity: 0; pointer-events: none; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), visibility 0s linear var(--dur-med);
  overflow-y: auto;
}
.mobile-nav.is-open {
  opacity: 1; pointer-events: auto; visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.mobile-nav a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 22px 0;
  font-family: var(--font-brand);
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 900;
  letter-spacing: -0.04em;
  border-bottom: 1px solid var(--ink-08);
  transition: color var(--dur-fast) var(--ease), padding var(--dur-med) var(--ease);
}
.mobile-nav a .mn-n {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-40);
}
.mobile-nav a:hover { color: var(--accent); padding-left: 6px; }
body.nav-open { overflow: hidden; }


/* ─── Buttons (with fill-from-bottom hover repaint) ─────────── */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  --fill: var(--accent);
  --fill-fg: #fff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  font-size: 14.5px; font-weight: 500;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg);
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition:
    transform var(--dur-fast) var(--ease),
    color 320ms var(--ease),
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-med) var(--ease);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  background: var(--fill);
  transform: translateY(100%);
  transition: transform 360ms cubic-bezier(0.65,0,0.35,1);
  z-index: -1;
}
.btn:hover { transform: translateY(-2px); color: var(--fill-fg); border-color: var(--fill); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(-1px) scale(0.98); }
.btn svg { transition: transform var(--dur-fast) var(--ease); }
.btn:hover svg { transform: translateX(2px); }

.btn-primary { --bg: var(--accent); --fg: var(--paper); --fill: var(--ink); --fill-fg: var(--paper); }
.btn-primary:hover {
  box-shadow: 0 16px 34px -12px rgba(10,10,10,0.32), 0 0 0 1px rgba(10,10,10,0.08);
}
.btn-ghost {
  --bg: transparent;
  --fg: var(--ink);
  --fill: var(--ink);
  --fill-fg: var(--paper);
  border-color: var(--ink-12);
}
.btn-ink { --bg: var(--ink); --fg: var(--paper); --fill: var(--accent); --fill-fg: #fff; }
.btn-ink:hover {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
  box-shadow: 0 16px 34px -14px var(--accent-glow);
}
.btn-ink:hover svg { color: #fff !important; }


/* v28: hero attachment chips */
.hero-att {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--ink-08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-90);
  margin-right: 6px; margin-bottom: 6px;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 17px 26px; font-size: 15.5px; }

/* Chips on landing — same fill-from-bottom on hover */
.chip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color 320ms var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(100%);
  transition: transform 360ms cubic-bezier(0.65,0,0.35,1);
  z-index: -1;
}
.chip:hover {
  color: var(--paper) !important;
  border-color: var(--ink) !important;
  transform: translateY(-2px);
}
.chip:hover::before { transform: translateY(0); }

/* Burger / icon-btn on landing also gets the fill */
.icon-btn:not(.hp-clip):not(.hp-send) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color 320ms var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.icon-btn:not(.hp-clip):not(.hp-send)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-radius: inherit;
  transform: scale(0);
  transition: transform 360ms cubic-bezier(0.65,0,0.35,1);
  z-index: -1;
}
.icon-btn:not(.hp-clip):not(.hp-send):hover {
  color: var(--paper);
  border-color: var(--ink);
}
.icon-btn:not(.hp-clip):not(.hp-send):hover::before { transform: scale(1); }


/* ─── Reveal ────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }


/* ─── Section head ──────────────────────────────────────────── */
.section { padding-block: var(--section-y); position: relative; }
.sec-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 6vh, 64px);
}
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-bottom: 20px;
}
.sec-eyebrow .pulse {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
  animation: pulse 1.8s var(--ease-io) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 var(--accent-glow); }
  50%      { opacity: 0.6; transform: scale(1.2); box-shadow: 0 0 0 6px transparent; }
}
.sec-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.sec-title em {
  font-family: var(--font-brand);
  font-weight: 900;
  font-style: normal;
  color: var(--accent);
  letter-spacing: -0.05em;
}
.sec-lede {
  margin-top: 18px;
  max-width: 56ch;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-70);
}


/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: clamp(40px, 6vh, 80px) clamp(80px, 10vh, 120px);
  min-height: calc(100vh - var(--header-h) - 40px);
  display: flex; align-items: center;
}
.hero-inner {
  width: 100%;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

/* v56 — Splash = LAUNCH VIDEO (full-screen, plays once) */
.splash-overlay {
  position: fixed; inset: 0;
  z-index: 9999;
  /* v61 — фон совпадает с краями hero-loop.mp4 (sampled rgb(229,219,205)) */
  background: #E5DBCD;
  display: flex; align-items: center; justify-content: center;
  pointer-events: auto;
  overflow: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  opacity: 1;
}
.splash-overlay.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-video {
  /* Smaller, centred — не во весь экран. cream-рамка остаётся видна. */
  width: min(60vw, 60vh);
  height: min(60vw, 60vh);
  max-width: 420px;
  max-height: 420px;
  object-fit: contain;
  display: block;
}
@media (max-width: 480px) {
  .splash-video {
    width: min(70vw, 70vh);
    height: min(70vw, 70vh);
  }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px;
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(10,10,10,0.04);
}
.hero-eyebrow .pulse {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
  animation: pulse 1.8s var(--ease-io) infinite;
}
/* v48 — claude.ai-inspired serif hero. Source Serif 4 for headline,
   sans bold only for the brand mark, italic serif for emphasis. */
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  max-width: 20ch;
  color: var(--ink);
}
.hero-title .bd {
  font-family: var(--font-brand);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.hero-title .dot {
  display: inline-block;
  width: 0.28em; height: 0.28em;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-0.04em);
  margin-left: 0.02em;
}
.hero-title em {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
}
.hero-lede {
  max-width: 56ch;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
  color: var(--ink-70);
  margin-bottom: 36px;
}

/* Prompt input */
.prompt {
  width: 100%;
  max-width: 720px;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-2xl);
  padding: 14px 14px 14px 20px;
  display: flex; align-items: center; gap: 12px;
  box-shadow:
    0 1px 2px rgba(10,10,10,0.04),
    0 24px 48px -24px rgba(10,10,10,0.18);
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.prompt:focus-within {
  border-color: var(--ink);
  box-shadow:
    0 0 0 3px var(--accent-soft),
    0 24px 48px -24px rgba(10,10,10,0.22);
}
.prompt-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--ink-40);
}
.prompt-input {
  flex: 1; min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  padding: 10px 0;
  color: var(--ink);
  font-family: var(--font-sans);
}
.prompt-input::placeholder { color: var(--ink-40); }
.prompt-send {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.prompt-send:hover { background: var(--accent); transform: translateY(-1px); }
.prompt-send svg { width: 14px; height: 14px; }

.prompt-chips {
  margin-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px;
  max-width: 720px;
}
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-70);
  transition:
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}
.chip-icon {
  width: 14px; height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.hero-foot {
  margin-top: 44px;
  display: inline-flex; align-items: center; gap: 24px;
  padding: 10px 18px;
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--ink-55);
}
.hero-foot strong { color: var(--ink); font-weight: 500; }
.hero-foot-sep {
  width: 1px; height: 14px;
  background: var(--ink-12);
}
.hero-foot-avatars {
  display: inline-flex;
}
.hero-foot-avatars span {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  margin-left: -6px;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
}
.hero-foot-avatars span:first-child { margin-left: 0; }
.hero-foot-avatars span:nth-child(1){ background: #FFD9A8; color: #8B4A12; }
.hero-foot-avatars span:nth-child(2){ background: #C6F750; color: #2C5C00; }
.hero-foot-avatars span:nth-child(3){ background: #0A0A0A; color: var(--paper); }
.hero-foot-avatars span:nth-child(4){ background: #FFCFC0; color: #8B2F12; }


/* ─── Hero prompt (landing) ─────────────────────────────── */
.hero-prompt {
  width: 100%;
  max-width: 720px;
  background: var(--paper, #fff);
  border: 1.5px solid var(--ink-12, rgba(10,10,10,0.1));
  border-radius: 22px;
  padding: 10px 10px 14px;
  box-shadow: 0 2px 4px rgba(10,10,10,0.03), 0 24px 50px -24px rgba(10,10,10,0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-top: 8px;
}
.hero-prompt:focus-within {
  border-color: var(--ink, #0A0A0A);
  box-shadow: 0 2px 4px rgba(10,10,10,0.04), 0 24px 50px -24px rgba(10,10,10,0.25), 0 0 0 4px rgba(204, 120, 92,0.08);
}
.hero-prompt-attachments {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 6px;
}
.hero-prompt-attachments:empty { display: none; }
.hp-attach {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 6px;
  background: var(--bg-soft, #F5EFE6);
  border: 1px solid var(--ink-08, rgba(10,10,10,0.06));
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink, #0A0A0A);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  max-width: 240px;
  animation: hpAttachIn 0.22s ease-out;
}
@keyframes hpAttachIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.hp-attach img {
  width: 22px; height: 22px; border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.hp-attach .icon {
  width: 22px; height: 22px; border-radius: 4px;
  background: var(--accent-soft, #F2D9CD);
  color: var(--accent, #CC785C);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 10px; font-weight: 600;
}
.hp-attach .n {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.hp-attach button {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  color: var(--ink-55, rgba(10,10,10,0.55));
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.hp-attach button:hover {
  background: var(--ink, #0A0A0A);
  color: #fff;
}

.hero-prompt-row {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 6px;
}
.hp-clip {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-70, rgba(10,10,10,0.7));
  display: grid; place-items: center;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  flex-shrink: 0;
}
.hp-clip:hover {
  background: var(--bg-soft, #F5EFE6);
  color: var(--ink, #0A0A0A);
  transform: rotate(-10deg);
}
#heroPromptInput {
  flex: 1;
  border: 0; outline: 0;
  background: transparent;
  padding: 10px 4px;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink, #0A0A0A);
  max-height: 160px;
  min-height: 24px;
  resize: none;
  overflow-y: auto;
}
#heroPromptInput::placeholder { color: var(--ink-40, rgba(10,10,10,0.4)); }
.hp-send {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--ink, #0A0A0A);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background 0.18s, transform 0.18s, box-shadow 0.3s;
}
.hp-send:hover {
  background: var(--accent, #CC785C);
  transform: scale(1.05);
  box-shadow: 0 8px 22px -6px rgba(204, 120, 92,0.45);
}
.hp-send:disabled { background: var(--ink-25, rgba(10,10,10,0.22)); cursor: not-allowed; transform: none; }
.hero-prompt-hint {
  margin-top: 4px;
  padding: 0 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-40, rgba(10,10,10,0.4));
  text-align: right;
}


@media (max-width: 560px) {
  .prompt { padding: 10px 10px 10px 14px; border-radius: var(--r-xl); }
  .prompt-input { font-size: 15px; }
  .prompt-send span { display: none; }
  .prompt-send { padding: 10px; }
  .hero-foot { flex-wrap: wrap; gap: 12px 18px; padding: 10px 14px; font-size: 12px; }
}


/* ─── Trusted-by strip ─────────────────────────────────────── */
.trusted {
  /* extra top breathing room so it doesn't sit right below the
     hero-prompt card */
  padding-block: 72px 28px;
  text-align: center;
}
.trusted-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 20px;
}
.trusted-logos {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
}
.trusted-logos span {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--ink-40);
  transition: color var(--dur-fast) var(--ease);
}
.trusted-logos span:hover { color: var(--ink); }


/* ─── BENTO — features grid ────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 14px;
}
.bento-card {
  background: var(--paper);
  border: 1px solid var(--ink-06);
  border-radius: var(--r-2xl);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-med) var(--ease),
              border-color var(--dur-med) var(--ease),
              box-shadow var(--dur-med) var(--ease);
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink-15, rgba(10,10,10,0.12));
  box-shadow: 0 20px 40px -20px rgba(10,10,10,0.15);
}
.bento-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%),
    var(--accent-soft) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease);
  pointer-events: none;
  z-index: -1;
}
.bento-card:hover::before { opacity: 0.6; }

.bento-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  transition: transform var(--dur-med) var(--ease);
}
.bento-card:hover .bento-icon { transform: rotate(-6deg) scale(1.06); }
.bento-icon svg { width: 22px; height: 22px; }

.bento-card h3 {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.bento-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-70);
  flex: 1;
}
.bento-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.bento-tag {
  padding: 4px 10px;
  background: var(--bg-soft);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-55);
}

/* Sizes */
.b-wide   { grid-column: span 8; }
.b-tall   { grid-column: span 4; grid-row: span 2; }
.b-reg    { grid-column: span 4; }
.b-half   { grid-column: span 6; }

/* Dark bento */
.bento-card.is-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
}
.bento-card.is-dark h3 { color: var(--paper); }
.bento-card.is-dark p  { color: rgba(255,255,255,0.7); }
.bento-card.is-dark .bento-icon { background: rgba(204, 120, 92,0.15); color: var(--accent); }
.bento-card.is-dark .bento-tag { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.bento-card.is-dark::before { opacity: 0.3; background: radial-gradient(400px circle at var(--mx,50%) var(--my,50%), rgba(204, 120, 92,0.3) 0%, transparent 50%); }

/* Visuals inside bento */
.bento-visual-code {
  background: #111;
  color: #EDEDED;
  padding: 14px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  overflow: hidden;
  flex: 1;
}
.bento-visual-code .c-k { color: #FF8A66; }
.bento-visual-code .c-s { color: #A3E57B; }
.bento-visual-code .c-c { color: #6B7280; }
.bento-visual-code .c-v { color: #7FD6FF; }

.bento-visual-preview {
  flex: 1;
  border-radius: var(--r-lg);
  background: var(--bg-soft);
  border: 1px solid var(--ink-06);
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 160px;
}
.bvp-dots { display: flex; gap: 5px; }
.bvp-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-12); }
.bvp-dots span:first-child { background: #FF5F56; }
.bvp-dots span:nth-child(2) { background: #FFBD2E; }
.bvp-dots span:nth-child(3) { background: #28C940; }
.bvp-line { height: 6px; border-radius: 3px; background: var(--ink-06); }
.bvp-line.w60 { width: 60%; }
.bvp-line.w40 { width: 40%; background: var(--accent); }
.bvp-line.w80 { width: 80%; }
.bvp-line.w50 { width: 50%; }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .b-wide { grid-column: span 6; }
  .b-tall { grid-column: span 6; grid-row: span 1; }
  .b-reg  { grid-column: span 3; }
  .b-half { grid-column: span 6; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .b-wide, .b-tall, .b-reg, .b-half { grid-column: span 1; grid-row: auto; }
}


/* ─── Showcase gallery ─────────────────────────────────────── */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.show-card {
  background: var(--paper);
  border: 1px solid var(--ink-06);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
  display: flex; flex-direction: column;
}
.show-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(10,10,10,0.2);
}
.show-preview {
  aspect-ratio: 5/3;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.show-preview[data-art="bot"] {
  background:
    radial-gradient(circle at 30% 40%, var(--accent) 0 60px, transparent 61px),
    radial-gradient(circle at 70% 65%, var(--ink) 0 70px, transparent 71px),
    var(--bg-soft);
}
.show-preview[data-art="saas"] {
  background:
    linear-gradient(var(--ink) 0 30%, transparent 30%),
    linear-gradient(90deg, transparent 0 50%, var(--accent) 50% 52%, transparent 52%),
    var(--bg-soft);
}
.show-preview[data-art="land"] {
  background:
    linear-gradient(180deg, var(--accent-soft) 0 55%, var(--bg-soft) 55%),
    var(--bg-soft);
}
.show-preview[data-art="mini"] {
  background:
    radial-gradient(circle at 50% 40%, var(--ink) 0 80px, transparent 81px),
    linear-gradient(180deg, var(--accent-soft) 0 100%),
    var(--bg-soft);
}
.show-preview[data-art="shop"] {
  background:
    linear-gradient(135deg, var(--accent) 0 50%, var(--ink) 50% 100%),
    var(--bg-soft);
}
.show-preview[data-art="dash"] {
  background:
    conic-gradient(var(--accent) 0 25%, var(--ink) 25% 50%, var(--accent-soft) 50% 100%),
    var(--bg-soft);
}
.show-body {
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
.show-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.show-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.show-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-55);
  margin-top: 4px;
}
.show-meta {
  margin-top: 10px;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--ink-06);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-40);
  text-transform: uppercase;
}
.show-meta em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 860px) { .showcase-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .showcase-grid { grid-template-columns: 1fr; } }


/* ─── How it works ─────────────────────────────────────────── */
.how {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-2xl);
  padding: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.how::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}
.how-head {
  max-width: 680px;
  margin-bottom: 48px;
  position: relative;
}
.how-head .sec-eyebrow {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
}
.how-head h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--paper);
}
.how-head h2 em {
  font-family: var(--font-brand);
  font-style: normal;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.05em;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
}
.how-step {
  padding: 26px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl);
  display: flex; flex-direction: column; gap: 12px;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.how-step:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  transform: translateY(-4px);
}
.how-step-n {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--accent);
}
.how-step h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--paper);
}
.how-step p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.6);
  flex: 1;
}
@media (max-width: 760px) { .how-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .how-steps { grid-template-columns: 1fr; } }


/* ─── Pricing ──────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  transition: transform var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}
.price-card:hover { transform: translateY(-4px); border-color: var(--ink-25); }
.price-card.is-featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.price-card.is-featured h3 { color: var(--paper); }
.price-card.is-featured .price-n { color: var(--paper); }
.price-card.is-featured .price-desc { color: rgba(255,255,255,0.65); }
.price-card.is-featured .price-list li { color: rgba(255,255,255,0.75); }
.price-card.is-featured .price-list li::before { color: var(--accent); }
.price-card.is-featured::before {
  content: 'Популярный';
  position: absolute;
  top: 16px; right: 16px;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--paper);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.price-tier {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.price-card h3 {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.price-n {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 6px;
}
.price-n small { font-size: 15px; font-weight: 400; color: var(--ink-55); }
.price-desc {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-70);
}
.price-list {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-06);
  margin-top: auto;
}
.price-card.is-featured .price-list { border-top-color: rgba(255,255,255,0.1); }
.price-list li {
  font-size: 14px;
  color: var(--ink-70);
  padding-left: 22px;
  position: relative;
}
.price-list li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--accent);
}
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }


/* ─── Community / News ─────────────────────────────────────── */
.community-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
}
.news-hero {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-2xl);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 20px;
  justify-content: space-between;
  min-height: 420px;
}
.news-hero::before {
  content: '';
  position: absolute;
  bottom: -30%; left: -15%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent) 0, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
  animation: orbFloat1 12s ease-in-out infinite alternate;
}
.news-hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  align-self: flex-start;
  position: relative;
}
.news-hero-label .pulse {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
  animation: pulse 1.8s var(--ease-io) infinite;
}
.news-hero h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--paper);
  position: relative;
}
.news-hero h3 em {
  font-family: var(--font-brand);
  font-weight: 900;
  font-style: normal;
  color: var(--accent);
  letter-spacing: -0.05em;
}
.news-hero p {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 48ch;
  position: relative;
}
.news-hero .btn { align-self: flex-start; position: relative; }

.news-list {
  display: flex; flex-direction: column; gap: 10px;
}
.news-item {
  display: block;
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--ink-06);
  border-radius: var(--r-lg);
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.news-item:hover {
  transform: translateX(4px);
  border-color: var(--ink);
}
.news-date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 6px;
}
.news-item h4 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.news-item p {
  font-size: 13.5px;
  color: var(--ink-55);
  margin-top: 4px;
  line-height: 1.5;
}
@media (max-width: 860px) { .community-grid { grid-template-columns: 1fr; } }


/* ─── FAQ ──────────────────────────────────────────────────── */
.faq-wrap { max-width: 860px; margin-inline: auto; }
.faq-list {
  display: flex; flex-direction: column; gap: 10px;
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--ink-06);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease);
}
.faq-item:hover { border-color: var(--ink-12); }
.faq-item[open] { border-color: var(--ink); }
.faq-item summary {
  list-style: none;
  padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color var(--dur-fast) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-plus {
  width: 18px; height: 18px;
  position: relative;
  flex-shrink: 0;
  transition: transform var(--dur-med) var(--ease-io);
}
.faq-plus::before, .faq-plus::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
}
.faq-plus::after { transform: translateY(-50%) rotate(90deg); transition: transform var(--dur-med) var(--ease-io); }
.faq-item[open] .faq-plus::after { transform: translateY(-50%) rotate(0); }
.faq-body {
  padding: 0 24px 22px;
  max-width: 62ch;
  color: var(--ink-70);
  font-size: 14.5px;
  line-height: 1.6;
  animation: faqIn 400ms var(--ease);
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}


/* ─── Big CTA ──────────────────────────────────────────────── */
.big-cta {
  text-align: center;
  padding-block: clamp(80px, 10vh, 140px);
  position: relative;
  overflow: hidden;
}
.big-cta-bg {
  position: absolute;
  top: 50%; left: 50%;
  width: min(900px, 95vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
  opacity: 0.8;
  filter: blur(40px);
  pointer-events: none;
}
.big-cta-inner { position: relative; }
.big-cta-title {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: clamp(88px, 18vw, 260px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--ink);
  display: inline-flex; align-items: flex-end;
  gap: 0.04em;
}
.big-cta-dot {
  width: 0.2em; height: 0.2em;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 0.08em;
  transition: transform var(--dur-med) var(--ease-io);
}
.big-cta-title:hover .big-cta-dot { transform: translateY(-12px) scale(1.3); }
.big-cta-lede {
  max-width: 50ch;
  margin: 24px auto 36px;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-70);
}
.big-cta-actions {
  display: inline-flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
}


/* ─── Footer ───────────────────────────────────────────────── */
.site-foot {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0 32px;
}
.foot-wordmark {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: clamp(88px, 16vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--paper);
  display: inline-flex; align-items: flex-end;
  gap: 0.03em;
  user-select: none;
  cursor: default;
}
.foot-dot {
  width: 0.2em; height: 0.2em;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 0.08em;
  transition: transform var(--dur-med) var(--ease-io);
}
.foot-wordmark:hover .foot-dot { transform: translateY(-14px) scale(1.25); }

.foot-grid {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}
.foot-col-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.foot-col ul { display: flex; flex-direction: column; gap: 10px; }
.foot-col li, .foot-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  transition: color var(--dur-fast) var(--ease);
}
.foot-col a:hover { color: var(--accent); }
.foot-tag {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  max-width: 34ch;
  line-height: 1.55;
}
.foot-socials { display: flex; gap: 10px; margin-top: 20px; }
.foot-social {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.75);
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.foot-social:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
  transform: translateY(-2px);
}
.foot-base {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }


/* ═════════ v6: Hamburger + drawer ═════════ */
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(10,10,10,0.1);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.icon-btn:hover { background: rgba(10,10,10,0.05); border-color: var(--ink); }
.burger-btn { margin-left: 4px; }
.site-header.is-scrolled .icon-btn { border-color: rgba(10,10,10,0.14); }

.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer.hidden { display: none; }
.drawer-shade {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.26s var(--ease);
}
.drawer.is-open .drawer-shade { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 92vw);
  background: var(--paper);
  border-left: 1px solid rgba(10,10,10,0.1);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22,0.61,0.36,1);
  box-shadow: -40px 0 90px -20px rgba(10,10,10,0.25);
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(10,10,10,0.08);
}
.drawer-head .brand {
  display: inline-flex; align-items: flex-end; gap: 2px;
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.05em;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}
.drawer-head .brand-dot {
  display: inline-block;
  width: 0.28em; height: 0.28em;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 0.06em;
}
.drawer-nav {
  flex: 1;
  padding: 14px 10px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.dn-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  transition: color 0.18s var(--ease);
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 100%;
  font: inherit;
  position: relative;
  overflow: hidden;
}
.dn-item:hover { color: var(--ink); }
.dn-icon {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 0;
  background: transparent;
  border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.dn-item:hover .dn-icon {
  color: var(--accent-h);
  transform: translateX(1px) scale(1.05);
}
.dn-icon svg { width: 20px; height: 20px; }
.dn-icon svg path,
.dn-icon svg circle,
.dn-icon svg ellipse,
.dn-icon svg rect,
.dn-icon svg line { stroke-width: 1.6 !important; }
.dn-title { font-size: 14.5px; font-weight: 500; line-height: 1.25; font-family: var(--font-sans); }
.dn-sub { font-size: 12.5px; color: rgba(10,10,10,0.55); margin-top: 2px; line-height: 1.25; }

.drawer-foot {
  padding: 16px 20px;
  border-top: 1px solid rgba(10,10,10,0.08);
}

@media (max-width: 900px) {
  .nav { display: none; }
  .hdr-meta .btn-ghost { display: none; }
  /* Logo with comfortable left padding (not pinned to the edge) */
  .hdr-row { gap: 14px; }
  .hdr-row > .brand { margin-left: 4px; }
  .hdr-meta { margin-left: auto; }
}


/* ═════════ v10: NEW-badge above hero ═════════ */
.hero-newbadge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  background: var(--paper, #fff);
  border: 1px solid var(--ink-08, rgba(10,10,10,0.08));
  border-radius: 999px;
  color: var(--ink, #0A0A0A);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 22px;
  box-shadow: 0 1px 2px rgba(10,10,10,0.04), 0 8px 22px -10px rgba(10,10,10,0.12);
  transition: transform 0.2s var(--ease, ease), box-shadow 0.25s var(--ease, ease), border-color 0.2s;
}
.hero-newbadge:hover {
  transform: translateY(-1px);
  border-color: var(--ink-12, rgba(10,10,10,0.12));
  box-shadow: 0 2px 4px rgba(10,10,10,0.05), 0 14px 30px -12px rgba(10,10,10,0.18);
}
.hnb-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: var(--accent, #CC785C);
  color: #fff;
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.hnb-text {
  color: var(--ink-70, rgba(10,10,10,0.7));
}
.hero-newbadge svg {
  color: var(--ink-55, rgba(10,10,10,0.55));
  transition: transform 0.2s ease;
}
.hero-newbadge:hover svg { transform: translateX(2px); color: var(--ink, #0A0A0A); }

.prompt-suggestions-label {
  margin: 28px 0 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-55, rgba(10,10,10,0.55));
  text-align: center;
}


/* ═════════ v9: Base44-style hero-prompt (column layout) ═════════ */
.hero-prompt.hero-prompt-v6 {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px 22px 14px;
  border-radius: 26px;
  background: var(--paper, #fff);
  border: 1.5px solid var(--ink-12, rgba(10,10,10,0.1));
  box-shadow:
    0 1px 2px rgba(10,10,10,0.04),
    0 28px 60px -28px rgba(10,10,10,0.22);
  transition: border-color 0.2s, box-shadow 0.25s;
  margin-top: 8px;
}
.hero-prompt.hero-prompt-v6:focus-within {
  border-color: var(--ink, #0A0A0A);
  box-shadow:
    0 1px 2px rgba(10,10,10,0.05),
    0 28px 60px -28px rgba(10,10,10,0.28),
    0 0 0 4px rgba(204, 120, 92,0.09);
}
.hero-prompt.hero-prompt-v6 #heroPromptInput,
.hero-prompt.hero-prompt-v6 #ctaPromptInput {
  width: 100%;
  /* All four sides padded so the placeholder/caret never sits flush
     with any decorative strip on the form's edges. */
  padding: 22px 14px 28px 14px;
  border: 0; outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink, #0A0A0A);
  min-height: 96px;
  max-height: 280px;
  resize: none;
  overflow-y: auto;
}
.hero-prompt.hero-prompt-v6 .hero-prompt-attachments {
  padding: 0 0 8px 0;
}
.hero-prompt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hp-spacer { flex: 1; }
.hp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 6px;
  border-radius: 999px;
  background: var(--bg-soft, #F5EFE6);
  border: 1px solid var(--ink-08, rgba(10,10,10,0.06));
  font-size: 12.5px;
  color: var(--ink-70, rgba(10,10,10,0.7));
  user-select: none;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.hp-toggle-dot {
  width: 22px; height: 14px;
  border-radius: 999px;
  background: var(--ink-12, rgba(10,10,10,0.12));
  position: relative;
  flex: none;
}
.hp-toggle-dot::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink-55, rgba(10,10,10,0.55));
  transition: transform 0.2s ease;
}
.hp-toggle-label { font-weight: 500; }
.hp-toggle:hover {
  border-color: var(--ink-25, rgba(10,10,10,0.25));
  color: var(--ink, #0A0A0A);
}
.hp-toggle.is-active {
  background: var(--ink, #0A0A0A);
  border-color: var(--ink, #0A0A0A);
  color: #fff;
}
.hp-toggle.is-active .hp-toggle-dot {
  background: rgba(255,255,255,0.24);
}
.hp-toggle.is-active .hp-toggle-dot::after {
  transform: translateX(8px);
  background: var(--accent, #CC785C);
}
.hero-prompt.hero-prompt-v6 .hp-clip {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-soft, #F5EFE6);
  color: var(--ink-70, rgba(10,10,10,0.7));
  border: 1px solid var(--ink-08, rgba(10,10,10,0.06));
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s, transform 0.18s, border-color 0.18s;
}
.hero-prompt.hero-prompt-v6 .hp-clip:hover {
  background: var(--ink, #0A0A0A);
  color: #fff;
  border-color: var(--ink, #0A0A0A);
  transform: rotate(45deg);
}
.hero-prompt.hero-prompt-v6 .hp-send {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink, #0A0A0A);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background 0.18s, transform 0.18s, box-shadow 0.3s;
}
.hero-prompt.hero-prompt-v6 .hp-send:hover {
  background: var(--accent, #CC785C);
  transform: scale(1.07);
  box-shadow: 0 8px 22px -6px rgba(204, 120, 92,0.45);
}


/* ═════════ v9: BIG-CTA replaced with prompt block ═════════ */
.big-cta-v6 {
  position: relative;
  padding: 80px 0 90px;
  background: linear-gradient(170deg, #FFCDA8 0%, #FFA15A 55%, #FF7A35 100%);
  overflow: hidden;
}
.big-cta-v6::before, .big-cta-v6::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.45;
  pointer-events: none;
}
.big-cta-v6::before {
  width: 420px; height: 420px;
  background: #FFD7BC;
  bottom: -120px; left: -100px;
}
.big-cta-v6::after {
  width: 360px; height: 360px;
  background: #FFB789;
  top: -120px; right: -80px;
}
.big-cta-v6 .container { position: relative; z-index: 2; max-width: 760px; }
.big-cta-v6-head { text-align: center; margin-bottom: 28px; }
.big-cta-v6-title {
  font-family: 'Archivo Black', system-ui, sans-serif;
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: #0A0A0A;
}
.big-cta-v6-title em {
  font-style: italic;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  color: #1a1a1a;
}
.big-cta-v6-sub {
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(10,10,10,0.7);
  margin: 0;
}
.big-cta-v6 .hero-prompt.hero-prompt-v6 {
  margin-top: 0;
  background: #FAF6F0;
}

@media (max-width: 640px) {
  .big-cta-v6 { padding: 56px 0 64px; }
  .hero-prompt.hero-prompt-v6 { padding: 14px 16px 12px; }
  .hero-prompt.hero-prompt-v6 #heroPromptInput,
  .hero-prompt.hero-prompt-v6 #ctaPromptInput { font-size: 15.5px; min-height: 64px; }
  .hp-toggle { padding: 4px 9px 4px 5px; font-size: 12px; }
}


/* ═════════ v8: Landing polish (no-lede layout) ═════════ */

/* Eyebrow — cleaner, smaller */
.hero-eyebrow {
  padding: 6px 14px 6px 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  background: transparent;
  border: 1px solid rgba(10,10,10,0.12);
  box-shadow: none;
  margin-bottom: 22px;
}
.hero-eyebrow::before { display: none; }
.hero-eyebrow .pulse { box-shadow: 0 0 0 3px rgba(204, 120, 92,0.18); }

/* Hero prompt — more spacious, tighter shadow */
.hero-prompt {
  margin-top: 6px;
  padding: 12px 12px 16px;
  border-radius: 26px;
  border-width: 1px;
  box-shadow:
    0 1px 2px rgba(10,10,10,0.03),
    0 30px 60px -30px rgba(10,10,10,0.18);
}
.hero-prompt:focus-within {
  box-shadow:
    0 1px 2px rgba(10,10,10,0.04),
    0 30px 60px -30px rgba(10,10,10,0.24),
    0 0 0 4px rgba(204, 120, 92,0.09);
}
.hero-prompt-row {
  padding: 8px 10px 8px 12px;
  align-items: center;
}
#heroPromptInput {
  font-size: 16.5px;
}
.hp-clip {
  color: var(--accent);
}
.hp-clip:hover {
  background: rgba(204, 120, 92,0.08);
  color: var(--accent-h);
  transform: rotate(-10deg);
}
.hp-send {
  background: var(--ink);
  transition: background 0.2s, transform 0.2s, box-shadow 0.3s;
}
.hp-send:hover {
  background: var(--accent);
  transform: scale(1.06);
  box-shadow: 0 10px 24px -6px var(--accent-glow);
}
.hero-prompt-hint {
  padding: 6px 14px 2px;
  letter-spacing: 0.05em;
  color: rgba(10,10,10,0.42);
}

/* Hero actions — small, quiet, underline-on-hover style */
.hero-actions {
  display: inline-flex; gap: 10px;
  margin-top: 20px !important;
}
.hero-actions .btn-ghost {
  padding: 8px 14px;
  border-radius: 999px;
  border-color: rgba(10,10,10,0.12);
  color: var(--ink);
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}
.hero-actions .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
  transform: translateY(-1px);
}

/* Prompt chips — orange emoji, thinner borders */
.prompt-chips {
  margin-top: 22px;
  gap: 7px;
}
.chip {
  padding: 7px 12px 7px 10px;
  border-color: rgba(10,10,10,0.1);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(4px);
  font-size: 12.5px;
  letter-spacing: -0.003em;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.chip .chip-emoji {
  font-size: 14px;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(204, 120, 92,0.12));
}
.chip:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 8px 18px -10px var(--accent-glow);
}

/* Header CTA — the primary "Открыть редактор" — a touch more pop */
.site-header .btn-primary {
  box-shadow: 0 6px 18px -8px var(--accent-glow);
}
.site-header .btn-primary:hover {
  box-shadow: 0 10px 26px -8px var(--accent-glow);
}

/* Burger — orange on hover instead of ink */
.burger-btn { color: var(--ink-70); transition: color 0.2s, background 0.2s; }
.burger-btn:hover { color: var(--accent); background: transparent; }

/* Drawer hover effect lives in the v20 block at the bottom of the file:
   inset 0 100% 0 0  →  inset 0 0 0 0 — fills left-to-right with accent. */

@media (max-width: 560px) {
  .hero-title { margin-bottom: 22px; }
  .hero-eyebrow { margin-bottom: 18px; }
  .prompt-chips { gap: 6px; margin-top: 18px; }
  .chip { padding: 6px 10px 6px 9px; font-size: 12px; }
}


/* ─── Header eco button (orbit) ───────────────────────────── */
.hdr-eco { color: var(--ink); }
.hdr-eco:hover { border-color: var(--accent); color: var(--accent); }
.hdr-eco svg circle { fill: var(--accent); }
.hdr-eco:hover svg ellipse { stroke: var(--accent); }
@media (max-width: 760px) { .hdr-eco { display: none; } }


/* ─── Profile modal ───────────────────────────────────────── */
.profile-modal {
  position: fixed; inset: 0;
  z-index: 130;
  display: grid; place-items: center;
  animation: pmIn 0.2s ease-out;
}
.profile-modal.hidden { display: none; }
@keyframes pmIn { from { opacity: 0; } to { opacity: 1; } }

.profile-modal-shade {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.42);
  backdrop-filter: blur(6px);
}
.profile-modal-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 64px -22px rgba(10,10,10,0.45);
  width: 100%;
  max-width: 420px;
  margin: 20px;
  overflow: hidden;
  animation: pmSlide 0.25s var(--ease);
}
@keyframes pmSlide { from { transform: translateY(14px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }

.profile-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink-06);
}
.profile-modal-head h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.profile-modal-head .icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--ink-70);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.profile-modal-head .icon-btn:hover { background: var(--ink-06); color: var(--ink); }

.profile-modal-body {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 16px;
}

.profile-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 6px 4px 4px;
}
.profile-avatar-wrap {
  position: relative;
  width: 86px; height: 86px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-soft));
  box-shadow: 0 14px 28px -16px var(--accent-glow);
  display: grid; place-items: center;
  overflow: hidden;
  border: 2px solid var(--paper);
  outline: 1px solid var(--ink-12);
}
.profile-avatar {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.profile-avatar.hidden { display: none; }
.profile-avatar-fallback {
  font-family: var(--font-brand);
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.profile-avatar-fallback.hidden { display: none; }

.profile-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.profile-username {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-55);
}

.profile-meta {
  width: 100%;
  margin-top: 18px;
  display: flex; flex-direction: column; gap: 0;
  background: var(--bg-soft);
  border: 1px solid var(--ink-06);
  border-radius: var(--r-md);
  overflow: hidden;
}
.profile-meta-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  font-size: 13px;
  border-top: 1px solid var(--ink-06);
}
.profile-meta-row:first-child { border-top: 0; }
.profile-meta-row span {
  color: var(--ink-55);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.profile-meta-row b {
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.profile-hint {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-70);
  background: var(--accent-soft);
  border: 1px solid rgba(204, 120, 92,0.18);
  padding: 11px 14px;
  border-radius: var(--r-md);
  text-align: center;
}
.profile-hint.hidden { display: none; }
.profile-hint a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* drawer 'Profile' item — same look as <a class="dn-item"> for <button> */
button.dn-item {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}


/* ─── Subscription modal ──────────────────────────────────── */
.sub-modal {
  position: fixed; inset: 0;
  z-index: 130;
  display: grid; place-items: center;
  animation: smIn 0.2s ease-out;
}
.sub-modal.hidden { display: none; }
@keyframes smIn { from { opacity: 0; } to { opacity: 1; } }
.sub-modal-shade {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.42);
  backdrop-filter: blur(6px);
}
.sub-modal-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 64px -22px rgba(10,10,10,0.45);
  width: 100%;
  max-width: 440px;
  margin: 20px;
  overflow: hidden;
  animation: smSlide 0.25s var(--ease);
}
@keyframes smSlide { from { transform: translateY(14px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
.sub-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink-06);
}
.sub-modal-head h3 {
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em; margin: 0;
}
.sub-modal-head .icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--ink-70);
  transition: background 0.18s, color 0.18s;
}
.sub-modal-head .icon-btn:hover { background: var(--ink-06); color: var(--ink); }
.sub-modal-body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.sub-plan {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg-soft) 100%);
  border: 1px solid rgba(204, 120, 92,0.18);
  border-radius: var(--r-lg);
  padding: 18px 20px 20px;
}
.sub-plan-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.sub-plan-tier {
  font-family: var(--font-brand);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.sub-plan-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-55);
  background: rgba(10,10,10,0.05);
  padding: 4px 8px;
  border-radius: var(--r-pill);
}
.sub-plan-price {
  font-family: var(--font-brand);
  font-size: 38px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.sub-plan-price small {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-55);
  letter-spacing: 0;
  margin-left: 6px;
}
.sub-plan-list {
  margin-top: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.sub-plan-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-90);
}
.sub-plan-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}
.sub-plan-list li b { font-weight: 600; }
.sub-foot-note {
  font-size: 12px;
  color: var(--ink-55);
  text-align: center;
  margin: 0;
}


/* ─── Floating "Made in dev.ai" badge ─────────────────────── */
.madein-badge {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 10px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(10,10,10,0.45);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  backdrop-filter: blur(6px);
}
.madein-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px rgba(10,10,10,0.55), 0 0 0 1.5px var(--accent);
}
.madein-mark {
  display: inline-flex; align-items: baseline;
  font-family: var(--font-brand);
  letter-spacing: 0.02em;
  font-size: 13px;
  line-height: 1;
}
.madein-mark > span:first-child { color: var(--paper); }
.madein-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 2px;
  display: inline-block;
}
.madein-text { color: rgba(255,255,255,0.92); }
@media (max-width: 480px) {
  .madein-badge { padding: 7px 10px 7px 9px; font-size: 11.5px; right: 12px; bottom: 12px; }
}


/* ═════════ v15: Pricing v2 — 5 tiers ═════════ */
.pricing-v2 { padding-block: var(--section-y); }
.prv2-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.prv2-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 24px;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-xl);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.prv2-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 24px 60px -24px rgba(10,10,10,0.18);
}
.prv2-featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.prv2-featured:hover { box-shadow: 0 28px 70px -22px rgba(10,10,10,0.45); }
.prv2-badge {
  position: absolute;
  top: -10px;
  left: 22px;
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.prv2-head { margin-bottom: 16px; }
.prv2-tier {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-soft);
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-bottom: 14px;
}
.prv2-featured .prv2-tier { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); }
.prv2-price {
  font-family: 'Archivo Black', system-ui, sans-serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.prv2-price small {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-55);
  letter-spacing: 0;
}
.prv2-featured .prv2-price small { color: rgba(255,255,255,0.55); }
.prv2-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-70);
  margin: 0;
}
.prv2-featured .prv2-desc { color: rgba(255,255,255,0.7); }
.prv2-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.prv2-list li {
  font-size: 13.5px;
  line-height: 1.45;
  padding-left: 22px;
  position: relative;
  color: var(--ink-85);
}
.prv2-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 7.2l2.6 2.6L11 4.4' fill='none' stroke='%23CC785C' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
}
.prv2-featured .prv2-list li { color: rgba(255,255,255,0.92); }
.prv2-featured .prv2-list li::before {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 7.2l2.6 2.6L11 4.4' fill='none' stroke='%23CC785C' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
}
.prv2-list code {
  font-size: 12px;
  padding: 1px 6px;
  background: var(--bg-soft);
  border-radius: 4px;
}
.prv2-featured .prv2-list code { background: rgba(255,255,255,0.1); color: #fff; }
.prv2-cta { width: 100%; }
.prv2-foot {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--bg-soft);
  border: 1px dashed var(--ink-12);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--ink-70);
  text-align: center;
}

@media (max-width: 1100px) {
  .prv2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prv2-card.prv2-featured { grid-column: span 2; }
}
@media (max-width: 640px) {
  .prv2-grid { grid-template-columns: 1fr; }
  .prv2-card.prv2-featured { grid-column: span 1; }
  .prv2-price { font-size: 28px; }
}


/* ═══════════════════════════════════════════════════════════
   v17 additions — gate, build-target, subscription tiers,
   cloud modals, pay page, placeholder fix.
   =================================================================== */

/* Make textarea/input placeholders visible on the cream theme.
   The ?v=15 build had a white-on-white case in some browsers. */
textarea::placeholder,
input::placeholder { color: var(--ink-55) !important; opacity: 1; }

/* Telegram-only gate */
.tg-gate {
  position: fixed; inset: 0;
  z-index: 9999;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  padding: 24px;
}
.tg-gate[hidden] { display: none; }
.tg-gate-card {
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 60px -24px rgba(10,10,10,0.35);
  padding: 32px 28px 28px;
  max-width: 420px;
  text-align: center;
}
.tg-gate-mark {
  font-family: var(--font-brand);
  font-size: 24px;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  display: inline-flex; align-items: baseline;
}
.tg-gate-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 3px;
}
.tg-gate-title { font-size: 22px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.02em; }
.tg-gate-text { font-size: 14px; color: var(--ink-70); line-height: 1.55; margin: 0 0 20px; }


/* Build target toggle (sites / bot) */
.build-target {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--ink-08);
  border-radius: var(--r-pill);
  padding: 3px;
  margin-bottom: 10px;
}
.bt-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-55);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}
.bt-opt svg { color: currentColor; }
.bt-opt.is-active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 2px 8px -2px rgba(10,10,10,0.12);
}


/* Subscription tiers (5-tier grid in a wide modal) */
.sub-modal-wide { max-width: 920px; }
.sub-current {
  font-size: 13px;
  color: var(--ink-70);
  background: var(--bg-soft);
  border: 1px solid var(--ink-06);
  padding: 10px 14px;
  border-radius: var(--r-md);
  text-align: center;
}
.sub-current b { color: var(--accent); font-family: var(--font-brand); letter-spacing: 0.04em; margin-left: 6px; }

.sub-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.sub-tier {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-lg);
  padding: 16px 16px 14px;
  transition: border-color 0.18s, transform 0.18s;
}
.sub-tier:hover { border-color: var(--accent); transform: translateY(-2px); }
.sub-tier.is-current { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--paper)); }
.sub-tier.is-featured { border-color: var(--ink); }
.sub-tier-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.sub-tier-name {
  font-family: var(--font-brand);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.sub-tier-price {
  font-family: var(--font-brand);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.sub-tier-price small {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-55);
  margin-left: 2px;
}
.sub-tier-desc {
  font-size: 12.5px;
  color: var(--ink-70);
  line-height: 1.5;
  margin: 0 0 10px;
}
.sub-tier-list {
  font-size: 12.5px;
  color: var(--ink-90);
  line-height: 1.6;
  margin: 0 0 12px;
  flex: 1;
}
.sub-tier-list li {
  position: relative;
  padding-left: 14px;
}
.sub-tier-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.sub-tier-foot { margin-top: auto; }
.sub-pay-row { display: flex; gap: 6px; }
.sub-pay-row .btn { flex: 1; justify-content: center; padding: 7px 10px; font-size: 12px; }
.sub-pay-row svg { margin-right: 0; }
.sub-tier-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-55);
  background: var(--bg-soft);
  border-radius: var(--r-pill);
  padding: 4px 10px;
}
.sub-tier-tag.is-active { color: var(--paper); background: var(--accent); }


/* dev.cloud + dev.cloud.ai modals */
.cloud-modal {
  position: fixed; inset: 0;
  z-index: 130;
  display: grid; place-items: center;
  background: rgba(10,10,10,0.42);
  backdrop-filter: blur(6px);
}
.cloud-modal.hidden { display: none; }
.cloud-modal-shade { position: absolute; inset: 0; cursor: pointer; }
.cloud-modal-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 64px -22px rgba(10,10,10,0.45);
  width: min(960px, calc(100% - 32px));
  height: min(640px, calc(100vh - 32px));
  margin: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.cloud-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink-06);
}
.cloud-modal-head h3 { font-size: 16px; font-weight: 600; margin: 0; }
.cloud-modal-head .icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--ink-70);
}
.cloud-modal-head .icon-btn:hover { background: var(--ink-06); color: var(--ink); }
.cloud-modal-body { display: flex; flex: 1; min-height: 0; }

.cloud-projects {
  width: 240px;
  border-right: 1px solid var(--ink-06);
  display: flex; flex-direction: column;
}
.cloud-projects-head {
  padding: 14px 16px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.cloud-projects-list {
  flex: 1;
  overflow: auto;
  padding: 0 8px;
}
.cloud-projects-list li {
  padding: 8px 10px;
  font-size: 13px;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.cloud-projects-list li:hover { background: var(--ink-06); }
.cloud-projects-list li.is-active { background: var(--accent-soft); color: var(--accent); }
.cloud-projects-list li small { font-size: 11px; color: var(--ink-55); }
.cloud-projects-empty { padding: 8px 12px; color: var(--ink-55); font-size: 12px; text-align: center; }
.cloud-projects-foot {
  border-top: 1px solid var(--ink-06);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.cloud-quota-row {
  display: flex; justify-content: space-between;
  font-size: 12px;
}
.cloud-quota-row span { color: var(--ink-55); }
.cloud-quota-row b { font-family: var(--font-mono); font-weight: 600; }
.cloud-quota-sub { font-size: 11px; color: var(--ink-55); margin-top: 2px; }
.cloud-buy { margin-top: 6px; justify-content: center; }

.cloud-table { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cloud-table-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--ink-06);
}
.cloud-table-title { font-weight: 600; font-size: 14px; }
.cloud-table-body { flex: 1; overflow: auto; padding: 12px 18px; }
.cloud-empty { color: var(--ink-55); font-size: 13px; padding: 20px; text-align: center; }

.cloud-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.cloud-tbl th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-55);
  padding: 8px 10px;
  border-bottom: 1px solid var(--ink-06);
}
.cloud-tbl td { padding: 4px; border-bottom: 1px solid var(--ink-06); }
.cloud-tbl input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  font-size: 13px;
  outline: none;
}
.cloud-tbl input:focus { background: var(--bg-soft); border-color: var(--ink-12); }
.cloud-row-del {
  width: 26px; height: 26px;
  border-radius: 6px;
  color: var(--ink-55);
}
.cloud-row-del:hover { background: var(--accent-soft); color: var(--accent); }

.cloud-chat { flex: 1; display: flex; flex-direction: column; }
.cloud-chat-log { flex: 1; overflow: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.cloud-msg { padding: 10px 14px; border-radius: var(--r-md); font-size: 13.5px; line-height: 1.5; max-width: 80%; }
.cloud-msg-user { align-self: flex-end; background: var(--accent-soft); color: var(--ink); }
.cloud-msg-ai { align-self: flex-start; background: var(--bg-soft); color: var(--ink-90); }
.cloud-chat-form {
  display: flex; gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--ink-06);
}
.cloud-chat-form textarea {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--ink-12);
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: 13px;
  resize: none;
  outline: none;
}
.cloud-chat-form textarea:focus { border-color: var(--accent); }

@media (max-width: 720px) {
  .cloud-modal-card {
    height: 100vh; max-height: 100vh;
    width: 100%; margin: 0;
    border-radius: 0;
  }
  .cloud-modal-body { flex-direction: column; }
  .cloud-projects {
    width: 100%;
    flex-shrink: 0;
    border-right: 0;
    border-bottom: 1px solid var(--ink-06);
    max-height: 38vh;
  }
}


/* ───── v18: drawer hover (fill from left → right) ─────────── */
.drawer-nav .dn-item {
  position: relative;
  overflow: hidden;
  transition: color 0.18s var(--ease);
}
.drawer-nav .dn-item::before {
  content: '';
  position: absolute;
  inset: 0 100% 0 0;
  background: rgba(204, 120, 92,0.10);
  border-right: 1.5px solid var(--accent);
  transition: inset 0.22s var(--ease);
  z-index: 0;
  pointer-events: none;
}
.drawer-nav .dn-item:hover::before,
.drawer-nav .dn-item:active::before { inset: 0 0 0 0; }
.drawer-nav .dn-item:hover { color: var(--ink); }
.drawer-nav .dn-item > * { position: relative; z-index: 1; }
.drawer-nav .dn-item .dn-icon { color: var(--ink) !important; background: transparent !important; }
.drawer-nav .dn-item .dn-icon svg { color: var(--ink); }


/* ───── v18: subscription modal — sticky head + mobile full-screen ── */
.sub-modal-card.sub-modal-wide {
  display: flex; flex-direction: column;
  max-height: 92vh;
}
.sub-modal-head {
  position: sticky; top: 0;
  background: var(--paper);
  z-index: 2;
  border-bottom: 1px solid var(--ink-06);
  flex-shrink: 0;
}
.sub-modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1; min-height: 0;
}
@media (max-width: 720px) {
  .sub-modal { padding: 0; display: block; }
  .sub-modal-card.sub-modal-wide {
    width: 100%; max-width: 100%;
    height: 100vh; max-height: 100vh;
    margin: 0; border-radius: 0;
  }
  .sub-tiers { grid-template-columns: 1fr; }
}


/* ───── v18: brand img sizing — same height everywhere ────── */
.brand-logo, .site-header .brand-logo, .drawer-head .brand-logo {
  height: 24px; width: auto; max-width: none;
}
.brand, .brand-trigger { line-height: 0; }


/* ───── v20: textual brand mark (replaces /logo.svg img). Same look
   as the hero-title logo so the wordmark is consistent everywhere. */
.brand-mark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-brand, 'Archivo Black'), 'Inter', system-ui, sans-serif;
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink, #0A0A0A);
  text-decoration: none;
}
.brand-mark .brand-mark-dot {
  display: inline-block;
  width: 0.28em; height: 0.28em;
  border-radius: 50%;
  background: var(--accent, #CC785C);
  transform: translateY(-0.04em);
  margin-left: 0.02em;
}
.brand, .brand-trigger { line-height: 1; }

/* v48 — Unified inline-SVG brand (matches /app + devpool.online + dev-token.online) */
.brand-svg {
  display: block;
  height: 30px;
  width: auto;
  overflow: visible;
}
.brand-svg-text {
  font-family: 'Archivo Black', 'SF Pro Display', 'Arial Black', 'Inter', system-ui, sans-serif;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.04em;
  fill: var(--ink, #1A1916);
}
.brand-svg-dot {
  fill: var(--accent, #CC785C);
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1);
  transform-origin: 65px 27.5px;
}
.brand:hover .brand-svg-dot { transform: scale(1.18); }
.tg-gate-mark .brand-svg { height: 56px; margin: 0 auto 12px; }
@media (max-width: 720px) {
  .brand-svg { height: 36px; }
}


/* ───── v20+v23: drawer hover — solid accent fill, white text */
.drawer-nav .dn-item {
  position: relative;
  overflow: hidden;
  transition: color 0.18s var(--ease);
  z-index: 0;
}
.drawer-nav .dn-item::before {
  content: '';
  position: absolute;
  inset: 0 100% 0 0;
  background: var(--accent);
  transition: inset 0.32s cubic-bezier(0.22,0.61,0.36,1) !important;
  z-index: -1;
  pointer-events: none;
}
.drawer-nav .dn-item:hover::before,
.drawer-nav .dn-item:focus::before,
.drawer-nav .dn-item:focus-visible::before,
.drawer-nav .dn-item:active::before,
.drawer-nav .dn-item.is-pressed::before { inset: 0 0 0 0 !important; }
.drawer-nav .dn-item:hover,
.drawer-nav .dn-item:focus,
.drawer-nav .dn-item:focus-visible,
.drawer-nav .dn-item:active,
.drawer-nav .dn-item.is-pressed { color: #fff !important; background: transparent !important; }
.drawer-nav .dn-item:hover .dn-icon,
.drawer-nav .dn-item:focus .dn-icon,
.drawer-nav .dn-item:focus-visible .dn-icon,
.drawer-nav .dn-item:active .dn-icon,
.drawer-nav .dn-item.is-pressed .dn-icon,
.drawer-nav .dn-item:hover .dn-icon svg,
.drawer-nav .dn-item:focus .dn-icon svg,
.drawer-nav .dn-item:focus-visible .dn-icon svg,
.drawer-nav .dn-item:active .dn-icon svg,
.drawer-nav .dn-item.is-pressed .dn-icon svg {
  color: #fff !important;
  stroke: #fff !important;
  transform: none !important;
}
.drawer-nav .dn-item:hover .dn-sub,
.drawer-nav .dn-item:focus .dn-sub,
.drawer-nav .dn-item:focus-visible .dn-sub,
.drawer-nav .dn-item:active .dn-sub,
.drawer-nav .dn-item.is-pressed .dn-sub { color: rgba(255,255,255,0.85) !important; }


/* ───── v18: cloud "buy" button text — guarantee fit ───────── */
.cloud-buy { white-space: nowrap; padding: 8px 12px; font-size: 12px; }


/* ───── v25: universal fade for overlays on the landing too ─── */
.sub-modal,
.profile-modal,
.cloud-modal,
.tg-gate {
  transition: opacity 0.22s cubic-bezier(0.22,0.61,0.36,1),
              visibility 0s linear 0s;
}
.sub-modal.hidden,
.profile-modal.hidden,
.cloud-modal.hidden {
  display: flex !important;
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease-in, visibility 0s linear 0.18s;
}
.sub-modal:not(.hidden),
.profile-modal:not(.hidden),
.cloud-modal:not(.hidden) {
  opacity: 1; visibility: visible;
}


/* ───── v22: trusted-stack logos ──────────────────────────── */
.trusted-logos {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 22px 28px;
}
.tlogo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-90, rgba(10,10,10,0.85));
  white-space: nowrap;
}
.tlogo svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--ink, #0a0a0a);
}
@media (max-width: 480px) {
  .trusted-logos { gap: 14px 18px; }
  .tlogo { font-size: 12.5px; }
  .tlogo svg { width: 17px; height: 17px; }
}


/* ───── v22: hero-prompt typewriter caret ───────────────────── */
.hp-typing-caret {
  display: inline-block;
  width: 1px; height: 1em;
  background: var(--ink-55, rgba(10,10,10,0.55));
  vertical-align: middle;
  margin-left: 1px;
  animation: hpBlink 0.9s steps(2) infinite;
}
@keyframes hpBlink { 50% { opacity: 0; } }


/* ═════════════════════════════════════════════════════════════
   v19 — iOS-style site/bot switcher inline in hero-prompt-actions.
   Forces a horizontal pill regardless of parent flex direction;
   active half slides under .is-active.
   ═════════════════════════════════════════════════════════════ */

/* Hide attachments div when empty so it doesn't render an empty pad */
.hero-prompt-attachments:empty { display: none; }

/* Make the actions row a single horizontal flex line */
.hero-prompt-actions {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  flex-direction: row !important;
}
.hero-prompt-actions .hp-spacer { flex: 1; min-width: 4px; }

/* iOS-style segmented switcher */
.bt-inline {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: stretch;
  background: rgba(10,10,10,0.06);
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: 999px;
  padding: 2px;
  flex-shrink: 0;
  position: relative;
  height: 30px;
}
.bt-inline .bt-opt {
  display: inline-flex !important;
  align-items: center; gap: 5px;
  padding: 0 10px;
  font: 500 12px/1 Inter, system-ui, sans-serif;
  color: rgba(10,10,10,0.55);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.18s ease;
  white-space: nowrap;
}
.bt-inline .bt-opt:hover { color: rgba(10,10,10,0.8); }
.bt-inline .bt-opt.is-active {
  color: #0a0a0a;
  background: #fff;
  box-shadow: 0 1px 4px -1px rgba(10,10,10,0.18);
}
.bt-inline .bt-opt svg { color: currentColor; flex-shrink: 0; }
@media (max-width: 480px) {
  .bt-inline .bt-opt { padding: 0 8px; font-size: 11.5px; }
  .bt-inline .bt-opt span { display: inline; }
}
@media (max-width: 360px) {
  .bt-inline .bt-opt span { display: none; }
}


/* ─── /pay page ────────────────────────────────────────────── */
.pay-body { background: var(--bg); }
.pay-main { padding: 60px 0 80px; }
.pay-container { max-width: 520px; }
.pay-card {
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: 0 24px 64px -28px rgba(10,10,10,0.35);
}
.pay-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 14px;
}
.pay-title { font-size: 28px; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 6px; }
.pay-title em { color: var(--accent); font-style: normal; font-family: var(--font-brand); letter-spacing: 0.02em; }
.pay-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.pay-price-usd { font-family: var(--font-brand); font-size: 36px; }
.pay-price-ton { font-family: var(--font-mono); font-size: 13px; color: var(--ink-55); }
.pay-lede { font-size: 14px; color: var(--ink-70); line-height: 1.55; margin-bottom: 22px; }
.pay-step { display: flex; flex-direction: column; gap: 12px; }
.pay-step.hidden { display: none; }
.pay-connect-slot { min-height: 48px; display: grid; place-items: center; }
.pay-hint { font-size: 12px; color: var(--ink-55); text-align: center; margin: 0; }
.pay-wallet { background: var(--bg-soft); border: 1px solid var(--ink-06); border-radius: var(--r-md); padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; }
.pay-wallet-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-55); }
.pay-wallet-addr { font-family: var(--font-mono); font-size: 12px; }
.pay-btn { justify-content: center; }
.pay-disconnect { align-self: center; color: var(--ink-55); }
.pay-result-icon { font-size: 56px; text-align: center; margin: 8px 0; }
.pay-result-title { font-size: 20px; font-weight: 600; text-align: center; margin: 0 0 6px; }
.pay-result-text { font-size: 13.5px; color: var(--ink-70); text-align: center; line-height: 1.55; margin: 0 0 14px; }
.pay-foot-note { margin-top: 18px; text-align: center; font-size: 12px; color: var(--ink-55); }
.pay-foot-note code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; }


/* Performance: disable expensive tilts and orbs that might still be in CSS */
.bg-orbs, .orb { display: none !important; }
[data-tilt] { transform: none !important; }
.reveal { opacity: 1 !important; transform: none !important; }


/* ═════════════════════════════════════════════════════════════
   v52 — Bottom-sheet behaviour for ALL landing modals on mobile
   (cloud, cloudAi, sub, profile, deploy, quota). Fix complaint:
   "у дев клауд и у девклауд ии вкладки открываются как страницы".
   Match the editor's claude.ai-style bottom sheet pattern.
   ═════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .modal,
  .sub-modal,
  .profile-modal,
  .cloud-modal {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    place-items: end stretch !important;
    pointer-events: none;
  }
  .modal:not(.hidden),
  .sub-modal:not(.hidden),
  .profile-modal:not(.hidden),
  .cloud-modal:not(.hidden) { pointer-events: auto; }

  .modal.hidden,
  .sub-modal.hidden,
  .profile-modal.hidden,
  .cloud-modal.hidden {
    /* Keep in DOM so transitions fire on open + close */
    display: flex !important;
    pointer-events: none;
  }

  .modal-card,
  .sub-modal-card,
  .profile-modal-card,
  .cloud-modal-card {
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 22px 22px 0 0 !important;
    transform: translateY(0);
    transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
    animation: none !important;
    position: relative;
    padding-top: 14px;
  }
  .modal.hidden .modal-card,
  .sub-modal.hidden .sub-modal-card,
  .profile-modal.hidden .profile-modal-card,
  .cloud-modal.hidden .cloud-modal-card {
    transform: translateY(110%);
  }

  /* Drag-handle */
  .modal-card::before,
  .sub-modal-card::before,
  .profile-modal-card::before,
  .cloud-modal-card::before {
    content: '';
    position: absolute;
    top: 7px; left: 50%;
    transform: translateX(-50%);
    width: 42px; height: 4px;
    border-radius: 2px;
    background: var(--ink-25);
    pointer-events: none;
    z-index: 5;
  }

  .modal-card,
  .sub-modal-card,
  .profile-modal-card { max-height: 88vh !important; overflow-y: auto; }
  .cloud-modal-card { height: 92vh !important; max-height: 92vh !important; }

  /* Shade fade timing */
  .modal-shade,
  .sub-modal-shade,
  .profile-modal-shade,
  .cloud-modal-shade {
    transition: opacity 0.28s ease-out !important;
    opacity: 1;
  }
  .modal.hidden .modal-shade,
  .sub-modal.hidden .sub-modal-shade,
  .profile-modal.hidden .profile-modal-shade,
  .cloud-modal.hidden .cloud-modal-shade { opacity: 0; }
}


/* v52 — Landing drawer keeps its existing right-side open/close
   via the `.is-open` class (set by script.js). No additional rules
   needed — earlier override broke positioning on this side. */


/* ═════════════════════════════════════════════════════════════
   v52 — Logo: bold Archivo Black, no squish (textLength removed
   in HTML; here we only fix font fallback chain).
   ═════════════════════════════════════════════════════════════ */
.tg-gate-mark .brand-svg { height: 56px; margin: 0 auto 12px; }
@media (max-width: 720px) {
  .brand-svg { height: 36px; }
  .site-header { height: 64px !important; }
}

/* v53 — Burger morph (same as editor) */
.burger-icon line {
  transform-origin: 11px 11px;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1),
              opacity 0.2s ease;
}
.burger-btn.is-open .burger-icon .burger-l1 { transform: translateY(4px) rotate(45deg); }
.burger-btn.is-open .burger-icon .burger-l2 { opacity: 0; transform: scaleX(0); }
.burger-btn.is-open .burger-icon .burger-l3 { transform: translateY(-4px) rotate(-45deg); }


/* ═════════════════════════════════════════════════════════════
   v57 — Header inline-nav (Продукты / Как работает / Тарифы / $DEV)
   ═════════════════════════════════════════════════════════════ */
.hdr-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 28px;
  flex: 1;
}
.hdr-nav .hn-item {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font: 500 13.5px var(--font-sans, Inter, system-ui, sans-serif);
  color: var(--ink-2, rgba(31,30,27,0.68));
  letter-spacing: -0.005em;
  transition: background 0.18s, color 0.18s;
}
.hdr-nav .hn-item:hover {
  background: rgba(31,30,27,0.05);
  color: var(--ink, #1F1E1B);
}
@media (max-width: 900px) {
  .hdr-nav { display: none; }     /* на мобиле — drawer */
}


/* ═════════════════════════════════════════════════════════════
   v59 — Splash video: уменьшённый масштаб, чёткость, faster fade
   ═════════════════════════════════════════════════════════════ */
.splash-overlay {
  transition: opacity 0.36s ease-out, visibility 0s linear 0.36s !important;
}
.splash-video {
  object-position: center !important;
  image-rendering: -webkit-optimize-contrast;
  filter: contrast(1.04) saturate(1.05);
}


/* ═════════════════════════════════════════════════════════════
   v57 — Claude-style: больше скруглений и сдержанные тени
   ═════════════════════════════════════════════════════════════ */
.btn, .icon-btn, .hp-clip, .hp-toggle, .bt-inline, .hp-send,
.brand-pop, .modal-card, .sub-modal-card, .profile-modal-card, .cloud-modal-card {
  /* В Claude-стиле всё мягко-скруглено */
}
.modal-card,
.sub-modal-card,
.profile-modal-card,
.cloud-modal-card {
  border-radius: 22px !important;
}
.hero-prompt-v6 {
  border-radius: 28px !important;
}

/* v41 - splash background sampled from hero-loop-v2.mp4 edge */
:root {
  --splash-bg: #E5DBCD;
}
.splash-overlay {
  background: var(--splash-bg) !important;
}
.splash-video {
  background: var(--splash-bg) !important;
  filter: none !important;
}

/* v40 - same polished mask icons as the app hamburger drawer */
.drawer-nav .dn-icon {
  width: 44px !important;
  height: 44px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,0.92), transparent 35%),
    linear-gradient(135deg, rgba(255,255,255,0.68), rgba(31,30,27,0.04)) !important;
  color: var(--ink, #1F1E1B) !important;
  box-shadow:
    inset 0 0 0 1px rgba(31,30,27,0.07),
    0 8px 20px rgba(31,30,27,0.045) !important;
}
.drawer-nav .dn-icon svg {
  display: none !important;
}
.drawer-nav .dn-icon::before {
  content: "";
  width: 21px;
  height: 21px;
  display: block;
  background: currentColor;
  mask: var(--dn-mask) center / contain no-repeat;
  -webkit-mask: var(--dn-mask) center / contain no-repeat;
}
#drawerProfileBtn .dn-icon { --dn-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12a4 4 0 100-8 4 4 0 000 8zm0 2c-4.4 0-8 2.4-8 5.3V21h16v-1.7C20 16.4 16.4 14 12 14z' fill='black'/%3E%3C/svg%3E"); }
#drawerSubBtn .dn-icon { --dn-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6.5A2.5 2.5 0 016.5 4h11A2.5 2.5 0 0120 6.5v11a2.5 2.5 0 01-2.5 2.5h-11A2.5 2.5 0 014 17.5v-11zM7 8v2h10V8H7zm0 5v2h6v-2H7z' fill='black'/%3E%3C/svg%3E"); }
.drawer-nav .dn-item:nth-child(3) .dn-icon { --dn-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2l2.2 6.2L21 12l-6.8 3.8L12 22l-2.2-6.2L3 12l6.8-3.8L12 2z' fill='black'/%3E%3C/svg%3E"); }
#drawerCloudBtn .dn-icon { --dn-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 19h9a5 5 0 00.8-9.9A7 7 0 004.4 11 4.5 4.5 0 008 19z' fill='black'/%3E%3C/svg%3E"); }
#drawerCloudAiBtn .dn-icon { --dn-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 19h8.4a4.6 4.6 0 00.9-9.1A6.5 6.5 0 004.7 11.2 4.2 4.2 0 008 19zm9.5-16l.8 2.2L20.5 6l-2.2.8-.8 2.2-.8-2.2-2.2-.8 2.2-.8.8-2.2z' fill='black'/%3E%3C/svg%3E"); }
.drawer-nav .dn-item:nth-child(6) .dn-icon { --dn-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 5h14a2 2 0 012 2v8a2 2 0 01-2 2h-8l-5 4v-4H5a2 2 0 01-2-2V7a2 2 0 012-2z' fill='black'/%3E%3C/svg%3E"); }
.drawer-nav .dn-item:nth-child(7) .dn-icon { --dn-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm6.6 9h-3.1a16.8 16.8 0 00-1.2-5 8 8 0 014.3 5zM12 4.2c.8 1.1 1.4 3.1 1.6 5.1h-3.2c.2-2 .8-4 1.6-5.1zM4.4 13h3.1c.2 1.8.6 3.5 1.2 5a8 8 0 01-4.3-5zm3.1-2H4.4a8 8 0 014.3-5 16.8 16.8 0 00-1.2 5zm4.5 8.8c-.8-1.1-1.4-3.1-1.6-5.1h3.2c-.2 2-.8 4-1.6 5.1zM13.8 13h-3.6a20 20 0 010-2h3.6a20 20 0 010 2zm1.5 5c.6-1.5 1-3.2 1.2-5h3.1a8 8 0 01-4.3 5z' fill='black'/%3E%3C/svg%3E"); }
.drawer-nav .dn-item:nth-child(8) .dn-icon { --dn-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a2 2 0 012 2v1h3a3 3 0 013 3v7a4 4 0 01-4 4H8a4 4 0 01-4-4V8a3 3 0 013-3h3V4a2 2 0 012-2zm-4 9a1.5 1.5 0 100 3 1.5 1.5 0 000-3zm8 0a1.5 1.5 0 100 3 1.5 1.5 0 000-3zM9 17h6v-2H9v2z' fill='black'/%3E%3C/svg%3E"); }
.drawer-nav .dn-item:nth-child(9) .dn-icon { --dn-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 11.2L21 3l-4.2 18-4.7-5.8L7 19l1.8-6.1L3 11.2z' fill='black'/%3E%3C/svg%3E"); }
.drawer-nav .dn-item:hover .dn-icon::before,
.drawer-nav .dn-item:focus .dn-icon::before,
.drawer-nav .dn-item:focus-visible .dn-icon::before,
.drawer-nav .dn-item:active .dn-icon::before,
.drawer-nav .dn-item.is-pressed .dn-icon::before {
  background: #fff !important;
}

/* v42 - Claude-style hamburger drawer for landing */
.drawer {
  z-index: 240 !important;
}
.drawer-panel.drawer-claude {
  left: 0 !important;
  right: auto !important;
  top: 0 !important;
  bottom: 0 !important;
  width: min(390px, 100vw) !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-right: 1px solid rgba(31,30,27,0.08) !important;
  background: #FAF9F5 !important;
  color: var(--ink, #1F1E1B) !important;
  box-shadow: 34px 0 90px rgba(31,30,27,0.14) !important;
  transform: translateX(-105%) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.drawer.is-open .drawer-panel.drawer-claude {
  transform: translateX(0) !important;
  animation: claudeDrawerIn 0.36s cubic-bezier(0.22,0.61,0.36,1) both !important;
}
.drawer.is-closing .drawer-panel.drawer-claude {
  animation: claudeDrawerOut 0.34s cubic-bezier(0.65,0,0.35,1) both !important;
}
.drawer .drawer-shade {
  background: rgba(31,30,27,0.18) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
}
.drawer.is-closing .drawer-shade {
  animation: claudeShadeOut 0.28s ease both !important;
}
.drawer-head.drawer-head-claude {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 92px !important;
  padding: 30px 30px 18px !important;
  border: 0 !important;
  background: transparent !important;
}
.drawer-wordmark {
  display: inline-flex;
  align-items: center;
  width: 104px;
  height: 42px;
  text-decoration: none;
  color: var(--ink, #1F1E1B);
}
.drawer-wordmark .brand-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.drawer-layout-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(31,30,27,0.62);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.drawer-layout-btn:hover {
  background: rgba(31,30,27,0.06);
  color: var(--ink, #1F1E1B);
  transform: translateY(-1px);
}
.drawer-claude .drawer-nav.drawer-menu {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  padding: 12px 26px 18px !important;
  overflow: visible !important;
}
.drawer-claude .dn-item,
.drawer-claude .drawer-chat-row,
.drawer-claude .drawer-recent-link {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
  min-height: 52px !important;
  padding: 7px 6px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: transparent !important;
  color: var(--ink, #1F1E1B) !important;
  text-decoration: none !important;
  text-align: left !important;
  font: 500 21px/1.12 var(--font-sans, system-ui, sans-serif) !important;
  letter-spacing: 0 !important;
  cursor: pointer !important;
  overflow: hidden !important;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease !important;
}
.drawer-claude .dn-item::before {
  content: none !important;
}
.drawer-claude .dn-item:hover,
.drawer-claude .dn-item:focus-visible,
.drawer-claude .drawer-chat-row:hover,
.drawer-claude .drawer-chat-row:focus-visible,
.drawer-claude .drawer-recent-link:hover,
.drawer-claude .drawer-recent-link:focus-visible {
  background: rgba(31,30,27,0.055) !important;
  color: var(--ink, #1F1E1B) !important;
  transform: translateX(2px);
}
.drawer-claude .dn-icon,
.drawer-claude .drawer-chat-icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink, #1F1E1B) !important;
  display: inline-grid !important;
  place-items: center !important;
}
.drawer-claude .dn-primary .dn-icon {
  background: rgba(31,30,27,0.07) !important;
}
.drawer-claude .dn-icon::before,
.drawer-claude .drawer-chat-icon::before {
  content: none !important;
}
.drawer-claude .dn-icon svg,
.drawer-claude .drawer-chat-icon svg {
  display: block !important;
  width: 30px !important;
  height: 30px !important;
}
.drawer-claude .dn-title {
  font: inherit !important;
  color: inherit !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-claude .dn-sub {
  display: none !important;
}
.drawer-chat-section {
  padding: 12px 30px 0;
}
.drawer-section-label {
  margin: 8px 0 12px;
  color: rgba(31,30,27,0.55);
  font: 500 17px/1.2 var(--font-sans, system-ui, sans-serif);
}
.drawer-recents-section {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 18px;
}
.drawer-recent-link {
  min-height: 44px !important;
  padding: 7px 2px !important;
  gap: 0 !important;
  justify-content: center;
  flex-direction: column;
  align-items: flex-start !important;
  font-size: 20px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-account {
  padding: 18px 30px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  border-top: 1px solid rgba(31,30,27,0.08) !important;
  background: rgba(255,255,255,0.72) !important;
  box-shadow: 0 -10px 34px rgba(31,30,27,0.04) !important;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 8px 12px !important;
  align-items: center !important;
}
.drawer-account-main {
  border: 0;
  background: transparent;
  color: var(--ink, #1F1E1B);
  padding: 0;
  cursor: pointer;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  text-align: left;
  min-width: 0;
  font: inherit;
}
.drawer-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--ink, #1F1E1B);
  color: #fff;
  font: 600 24px/1 var(--font-sans, system-ui, sans-serif);
}
.drawer-account-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.drawer-account-name {
  font: 600 21px/1.05 var(--font-sans, system-ui, sans-serif);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-account-plan,
.drawer-account-plan-text {
  color: rgba(31,30,27,0.56);
  font: 500 16px/1.15 var(--font-sans, system-ui, sans-serif);
  white-space: nowrap;
}

@keyframes claudeDrawerIn {
  from { opacity: 0.72; transform: translateX(-105%); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes claudeDrawerOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0.78; transform: translateX(-105%); }
}
@keyframes claudeShadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (max-width: 720px) {
  .drawer .drawer-panel.drawer-claude,
  .drawer-panel.drawer-claude {
    width: 100vw !important;
    max-width: 100vw !important;
  }
  .drawer-claude .drawer-nav.drawer-menu {
    padding: 10px 26px 16px !important;
  }
  .drawer-claude .dn-item,
  .drawer-claude .drawer-chat-row,
  .drawer-claude .drawer-recent-link {
    font-size: 20px !important;
  }
}

/* v43 - compact hamburger drawer + clean X morph */
#burgerBtn,
.burger-btn {
  position: relative !important;
}
.burger-btn.is-open .burger-icon {
  display: block !important;
  opacity: 0 !important;
}
.burger-btn.is-open::before,
.burger-btn.is-open::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 18px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  display: block !important;
  transform-origin: center !important;
  z-index: 2 !important;
}
.burger-btn.is-open::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}
.burger-btn.is-open::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.drawer-claude .drawer-head.drawer-head-claude {
  min-height: 74px !important;
  padding: 18px 24px 12px !important;
}
.drawer-claude .drawer-wordmark {
  width: 82px !important;
  height: 34px !important;
}
.drawer-claude .drawer-layout-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
}
.drawer-claude .drawer-nav.drawer-menu {
  gap: 1px !important;
  padding: 8px 22px 12px !important;
}
.drawer-claude .dn-item,
.drawer-claude .drawer-chat-row,
.drawer-claude .drawer-recent-link {
  position: relative !important;
  isolation: isolate !important;
  min-height: 42px !important;
  padding: 5px 7px !important;
  gap: 11px !important;
  border-radius: 11px !important;
  font-size: 16px !important;
  line-height: 1.1 !important;
  transform: none !important;
  overflow: hidden !important;
}
.drawer-claude .dn-item::before,
.drawer-claude .drawer-chat-row::before,
.drawer-claude .drawer-recent-link::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 100% 0 0 !important;
  width: auto !important;
  border-radius: inherit !important;
  background: var(--accent, #CC785C) !important;
  opacity: 0 !important;
  transform: none !important;
  transition: inset 0.28s cubic-bezier(0.22,0.61,0.36,1) !important;
  z-index: -1 !important;
}
.drawer-claude .dn-item:hover::before,
.drawer-claude .dn-item:focus-visible::before,
.drawer-claude .dn-item:active::before,
.drawer-claude .dn-item.is-pressed::before,
.drawer-claude .drawer-chat-row:hover::before,
.drawer-claude .drawer-chat-row:focus-visible::before,
.drawer-claude .drawer-recent-link:hover::before,
.drawer-claude .drawer-recent-link:focus-visible::before {
  inset: 0 !important;
  right: 0 !important;
  width: auto !important;
  opacity: 1 !important;
}
.drawer-claude .dn-item:hover,
.drawer-claude .dn-item:focus-visible,
.drawer-claude .dn-item:active,
.drawer-claude .dn-item.is-pressed,
.drawer-claude .drawer-chat-row:hover,
.drawer-claude .drawer-chat-row:focus-visible,
.drawer-claude .drawer-recent-link:hover,
.drawer-claude .drawer-recent-link:focus-visible {
  background: transparent !important;
  color: #fff !important;
  transform: none !important;
}
.drawer-claude .dn-item > *,
.drawer-claude .drawer-chat-row > *,
.drawer-claude .drawer-recent-link > * {
  position: relative;
  z-index: 1;
}
.drawer-claude .dn-icon,
.drawer-claude .drawer-chat-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
}
.drawer-claude .dn-icon svg,
.drawer-claude .drawer-chat-icon svg {
  width: 21px !important;
  height: 21px !important;
}
.drawer-claude .dn-item:hover .dn-icon,
.drawer-claude .dn-item:focus-visible .dn-icon,
.drawer-claude .drawer-chat-row:hover .drawer-chat-icon,
.drawer-claude .drawer-chat-row:focus-visible .drawer-chat-icon {
  color: #fff !important;
}
.drawer-chat-section {
  padding: 8px 24px 0 !important;
}
.drawer-section-label {
  margin: 8px 0 8px !important;
  font-size: 13px !important;
}
.drawer-recent-link {
  min-height: 34px !important;
  padding: 5px 7px !important;
  font-size: 15px !important;
}
.drawer-account {
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
}
.drawer-account-main {
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 10px !important;
}
.drawer-avatar {
  width: 42px !important;
  height: 42px !important;
  font-size: 18px !important;
}
.drawer-account-name {
  font-size: 16px !important;
}
.drawer-account-plan,
.drawer-account-plan-text {
  font-size: 13px !important;
}

/* v46: restore legacy hamburger/drawer visuals */
.burger-btn.is-open .burger-icon {
  display: inline-block !important;
  opacity: 1 !important;
}
.burger-btn.is-open::before,
.burger-btn.is-open::after {
  content: none !important;
  display: none !important;
}
.burger-btn.is-open .burger-icon .burger-l1 {
  transform: translateY(4px) rotate(45deg) !important;
}
.burger-btn.is-open .burger-icon .burger-l2 {
  opacity: 0 !important;
  transform: scaleX(0) !important;
}
.burger-btn.is-open .burger-icon .burger-l3 {
  transform: translateY(-4px) rotate(-45deg) !important;
}
.drawer-panel:not(.drawer-claude) .drawer-nav {
  padding: 14px 10px !important;
  gap: 4px !important;
}
.drawer-panel:not(.drawer-claude) .dn-item {
  min-height: auto !important;
  padding: 12px 14px !important;
  gap: 14px !important;
  border-radius: 14px !important;
  font-size: inherit !important;
  color: var(--ink, #1F1E1B) !important;
}
.drawer-panel:not(.drawer-claude) .dn-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
}

/* v47: restore previous landing hamburger and drawer visuals */
#burgerBtn.burger-btn,
.burger-btn {
  position: relative !important;
}
.burger-icon {
  overflow: visible !important;
  opacity: 1 !important;
  display: inline-block !important;
}
.burger-icon line {
  transform-origin: 11px 11px !important;
  transition:
    transform 0.42s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.32s ease !important;
}
.burger-btn:not(.is-open) .burger-icon .burger-l1,
.burger-btn:not(.is-open) .burger-icon .burger-l2,
.burger-btn:not(.is-open) .burger-icon .burger-l3 {
  transform: none !important;
  opacity: 1 !important;
}
.burger-btn.is-open .burger-icon {
  display: inline-block !important;
  opacity: 1 !important;
}
.burger-btn.is-open::before,
.burger-btn.is-open::after {
  content: none !important;
  display: none !important;
}
.burger-btn.is-open .burger-icon .burger-l1 {
  transform: translateY(4px) rotate(45deg) !important;
}
.burger-btn.is-open .burger-icon .burger-l2 {
  opacity: 0 !important;
  transform: scaleX(0) !important;
}
.burger-btn.is-open .burger-icon .burger-l3 {
  transform: translateY(-4px) rotate(-45deg) !important;
}
.drawer-panel:not(.drawer-claude) .drawer-nav {
  padding: 14px 10px !important;
  gap: 4px !important;
}
.drawer-panel:not(.drawer-claude) .dn-item {
  gap: 14px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  color: var(--ink, #1F1E1B) !important;
  background: transparent !important;
}
.drawer-panel:not(.drawer-claude) .dn-item::before {
  content: none !important;
  display: none !important;
}
.drawer-panel:not(.drawer-claude) .dn-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--accent, #CC785C) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease) !important;
}
.drawer-panel:not(.drawer-claude) .dn-icon::before {
  content: none !important;
  display: none !important;
}
.drawer-panel:not(.drawer-claude) .dn-icon svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
}
.drawer-panel:not(.drawer-claude) .dn-item:hover,
.drawer-panel:not(.drawer-claude) .dn-item:focus-visible {
  color: var(--ink, #1F1E1B) !important;
  background: transparent !important;
}
.drawer-panel:not(.drawer-claude) .dn-item:hover .dn-icon,
.drawer-panel:not(.drawer-claude) .dn-item:focus-visible .dn-icon {
  color: var(--accent-h, #A85037) !important;
  transform: translateX(1px) scale(1.05) !important;
}
.splash-overlay,
.splash-video {
  background: #E5DBCD !important;
}

/* v48: lock legacy landing drawer panel and draw a centered open-state X */
.drawer-panel:not(.drawer-claude) {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: min(360px, 92vw) !important;
  background: var(--paper, #FAF9F5) !important;
  border-left: 1px solid rgba(10, 10, 10, 0.1) !important;
  border-right: 0 !important;
  border-radius: 0 !important;
  box-shadow: -40px 0 90px -20px rgba(10, 10, 10, 0.25) !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateX(106%) !important;
  opacity: 1 !important;
  transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
  animation: none !important;
}
.drawer.is-open .drawer-panel:not(.drawer-claude) {
  transform: translateX(0) !important;
  opacity: 1 !important;
  animation: none !important;
}
.drawer.is-closing .drawer-panel:not(.drawer-claude),
.drawer:not(.hidden):not(.is-open) .drawer-panel:not(.drawer-claude) {
  transform: translateX(106%) !important;
  opacity: 1 !important;
  animation: none !important;
}
#burgerBtn.burger-btn.is-open .burger-icon {
  opacity: 0 !important;
}
#burgerBtn.burger-btn.is-open::before,
#burgerBtn.burger-btn.is-open::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 17px !important;
  height: 1.8px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  display: block !important;
  transform-origin: center !important;
}
#burgerBtn.burger-btn.is-open::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}
#burgerBtn.burger-btn.is-open::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

/* v49: restore the old drawer hover sweep after the legacy panel rollback */
.drawer-panel:not(.drawer-claude) .dn-item {
  position: relative !important;
  overflow: hidden !important;
  z-index: 0 !important;
}
.drawer-panel:not(.drawer-claude) .dn-item::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 100% 0 0 !important;
  display: block !important;
  background: var(--accent, #CC785C) !important;
  transition: inset 0.32s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
  z-index: -1 !important;
  pointer-events: none !important;
}
.drawer-panel:not(.drawer-claude) .dn-item:hover::before,
.drawer-panel:not(.drawer-claude) .dn-item:focus::before,
.drawer-panel:not(.drawer-claude) .dn-item:focus-visible::before,
.drawer-panel:not(.drawer-claude) .dn-item:active::before,
.drawer-panel:not(.drawer-claude) .dn-item.is-pressed::before {
  inset: 0 !important;
}
.drawer-panel:not(.drawer-claude) .dn-item:hover,
.drawer-panel:not(.drawer-claude) .dn-item:focus,
.drawer-panel:not(.drawer-claude) .dn-item:focus-visible,
.drawer-panel:not(.drawer-claude) .dn-item:active,
.drawer-panel:not(.drawer-claude) .dn-item.is-pressed {
  color: #fff !important;
  background: transparent !important;
}
.drawer-panel:not(.drawer-claude) .dn-item:hover .dn-sub,
.drawer-panel:not(.drawer-claude) .dn-item:focus .dn-sub,
.drawer-panel:not(.drawer-claude) .dn-item:focus-visible .dn-sub,
.drawer-panel:not(.drawer-claude) .dn-item:active .dn-sub,
.drawer-panel:not(.drawer-claude) .dn-item.is-pressed .dn-sub {
  color: rgba(255, 255, 255, 0.85) !important;
}
.drawer-panel:not(.drawer-claude) .dn-item:hover .dn-icon,
.drawer-panel:not(.drawer-claude) .dn-item:focus .dn-icon,
.drawer-panel:not(.drawer-claude) .dn-item:focus-visible .dn-icon,
.drawer-panel:not(.drawer-claude) .dn-item:active .dn-icon,
.drawer-panel:not(.drawer-claude) .dn-item.is-pressed .dn-icon,
.drawer-panel:not(.drawer-claude) .dn-item:hover .dn-icon svg,
.drawer-panel:not(.drawer-claude) .dn-item:focus .dn-icon svg,
.drawer-panel:not(.drawer-claude) .dn-item:focus-visible .dn-icon svg,
.drawer-panel:not(.drawer-claude) .dn-item:active .dn-icon svg,
.drawer-panel:not(.drawer-claude) .dn-item.is-pressed .dn-icon svg {
  color: #fff !important;
  stroke: #fff !important;
  background: transparent !important;
  border-color: transparent !important;
  transform: none !important;
}

/* v50: unified premium mask icons for the legacy hamburger drawer */
.drawer-panel:not(.drawer-claude) {
  --dn-user: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12.2a4.1 4.1 0 1 0 0-8.2 4.1 4.1 0 0 0 0 8.2Zm0 2.1c-4.5 0-8 2.5-8 5.2V21h16v-1.5c0-2.7-3.5-5.2-8-5.2Z' fill='black'/%3E%3C/svg%3E");
  --dn-card: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 5h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Zm0 4v2h14V9H5Zm2 5v2h5v-2H7Z' fill='black'/%3E%3C/svg%3E");
  --dn-spark: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2l2.2 6.2L20.5 12l-6.3 3.8L12 22l-2.2-6.2L3.5 12l6.3-3.8L12 2Zm7-1 1 2.6L22.5 5 20 6.4 19 9l-1-2.6L15.5 5 18 3.6 19 1Z' fill='black'/%3E%3C/svg%3E");
  --dn-cloud: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.2 19h8.9a4.9 4.9 0 0 0 .8-9.7A6.7 6.7 0 0 0 5 11.1 4.1 4.1 0 0 0 8.2 19Z' fill='black'/%3E%3C/svg%3E");
  --dn-cloud-ai: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 19h8.7a4.7 4.7 0 0 0 .8-9.3A6.5 6.5 0 0 0 5 11.2 4 4 0 0 0 8 19Zm10.3-17 .8 2.4L21.5 5l-2.4.8-.8 2.2-.8-2.2L15.1 5l2.4-.6.8-2.4Z' fill='black'/%3E%3C/svg%3E");
  --dn-chat: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 5h14a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-7.3L6 21v-4H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z' fill='black'/%3E%3C/svg%3E");
  --dn-monitor: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-6v2h3v1H7v-1h3v-2H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Zm0 3v8h16V8H4Z' fill='black'/%3E%3C/svg%3E");
  --dn-bot: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 2h2v3h3a4 4 0 0 1 4 4v6a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5V9a4 4 0 0 1 4-4h3V2Zm-3 9.5A1.5 1.5 0 1 0 11 11.5a1.5 1.5 0 0 0-3 0Zm7 0a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0ZM9 16h6v-2H9v2Z' fill='black'/%3E%3C/svg%3E");
  --dn-sliders: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 4h2v5h2v3H4V9h2V4Zm10 0h2v10h2v3h-6v-3h2V4ZM6 15h2v5H6v-5Zm10 4h2v1h-2v-1Z' fill='black'/%3E%3C/svg%3E");
  --dn-plus: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 4h2v7h7v2h-7v7h-2v-7H4v-2h7V4Z' fill='black'/%3E%3C/svg%3E");
  --dn-send: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 11.5 21 3l-4.2 18-5.1-6-5 4 1.8-6L3 11.5Z' fill='black'/%3E%3C/svg%3E");
}
.drawer-panel:not(.drawer-claude) .dn-icon {
  position: relative !important;
  display: inline-grid !important;
  place-items: center !important;
}
.drawer-panel:not(.drawer-claude) .dn-icon svg { display: none !important; }
.drawer-panel:not(.drawer-claude) .dn-icon::after {
  content: "" !important;
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  background: currentColor !important;
  -webkit-mask: var(--dn-mask, var(--dn-chat)) center / contain no-repeat !important;
  mask: var(--dn-mask, var(--dn-chat)) center / contain no-repeat !important;
}
#drawerProfileBtn .dn-icon { --dn-mask: var(--dn-user); }
#drawerSubBtn .dn-icon { --dn-mask: var(--dn-card); }
.drawer-panel:not(.drawer-claude) .dn-item[href*="dev-token"] .dn-icon { --dn-mask: var(--dn-spark); }
#drawerCloudBtn .dn-icon { --dn-mask: var(--dn-cloud); }
#drawerCloudAiBtn .dn-icon { --dn-mask: var(--dn-cloud-ai); }
#drawerChatsBtn .dn-icon,
.drawer-panel:not(.drawer-claude) .dn-item[href="/app"] .dn-icon { --dn-mask: var(--dn-chat); }
#drawerSettingsBtn .dn-icon { --dn-mask: var(--dn-sliders); }
#drawerNewChatBtn .dn-icon { --dn-mask: var(--dn-plus); }
.drawer-panel:not(.drawer-claude) .dn-item[href="/app#t=site"] .dn-icon { --dn-mask: var(--dn-monitor); }
.drawer-panel:not(.drawer-claude) .dn-item[href="/app#t=bot"] .dn-icon { --dn-mask: var(--dn-bot); }
.drawer-panel:not(.drawer-claude) .dn-item[href*="devtoken_news"] .dn-icon { --dn-mask: var(--dn-send); }

/* v51: clean drawer icons without white frames */
.drawer-panel:not(.drawer-claude) .dn-icon,
.drawer-panel .dn-icon,
.drawer-panel .drawer-chat-icon,
.drawer-claude .dn-primary .dn-icon,
.drawer-panel:not(.drawer-claude) .dn-item:hover .dn-icon,
.drawer-panel:not(.drawer-claude) .dn-item:focus .dn-icon,
.drawer-panel:not(.drawer-claude) .dn-item:focus-visible .dn-icon,
.drawer-panel:not(.drawer-claude) .dn-item:active .dn-icon,
.drawer-panel:not(.drawer-claude) .dn-item.is-pressed .dn-icon {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.drawer-panel:not(.drawer-claude) .dn-icon::after {
  width: 21px !important;
  height: 21px !important;
}

.drawer-panel:not(.drawer-claude) .dn-item:hover .dn-icon::after,
.drawer-panel:not(.drawer-claude) .dn-item:focus .dn-icon::after,
.drawer-panel:not(.drawer-claude) .dn-item:focus-visible .dn-icon::after,
.drawer-panel:not(.drawer-claude) .dn-item:active .dn-icon::after,
.drawer-panel:not(.drawer-claude) .dn-item.is-pressed .dn-icon::after {
  background: #fff !important;
}

/* v25: admin entry shares the same premium drawer icon style on landing */
.admin-drawer-item.hidden {
  display: none !important;
}

.drawer-panel:not(.drawer-claude) {
  --dn-admin: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 21 5.8v5.9c0 5.1-3.7 8.6-9 10.3-5.3-1.7-9-5.2-9-10.3V5.8L12 2Zm-1 6v3H8v2h3v3h2v-3h3v-2h-3V8h-2Z' fill='black'/%3E%3C/svg%3E");
}

#drawerAdminBtn .dn-icon {
  --dn-mask: var(--dn-admin);
}

/* v53: landing mobile-first shell, navigation-only drawer, account sheet */
.avatar-trigger {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #1f1e1b;
  color: #fff;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 8px 24px -16px rgba(10,10,10,0.5);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.avatar-trigger:hover,
.avatar-trigger:focus-visible {
  transform: translateY(-1px);
  background: var(--accent, #CC785C);
  box-shadow: 0 14px 30px -18px rgba(204,120,92,0.7);
}
.avatar-trigger-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-trigger-img.hidden { display: none; }
.avatar-trigger-fallback {
  font-family: var(--font-brand, 'Archivo Black'), system-ui, sans-serif;
  font-size: 17px;
  line-height: 1;
}
.avatar-trigger-fallback.hidden { display: none; }

.hero-kicker {
  margin: 0 0 12px;
  font-family: var(--font-display, serif);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  color: var(--ink, #1F1E1B);
}
.hero-title {
  max-width: 840px;
  margin-inline: auto;
}
.hp-improve {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(10,10,10,0.08);
  background: rgba(255,255,255,0.54);
  color: var(--ink, #1F1E1B);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.hp-improve:hover,
.hp-improve:focus-visible {
  background: var(--ink, #1F1E1B);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -16px rgba(10,10,10,0.55);
}
.hp-improve.is-loading {
  color: var(--accent, #CC785C);
  background:
    conic-gradient(from -90deg, rgba(204,120,92,0.9) 0 300deg, rgba(10,10,10,0.08) 300deg 360deg),
    var(--paper, #FAF9F5);
}
.hp-improve.is-loading svg {
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.6));
}

.home-projects {
  padding: clamp(28px, 7vw, 84px) 0 clamp(42px, 7vw, 96px);
  background:
    radial-gradient(circle at 80% 10%, rgba(204,120,92,0.12), transparent 34%),
    var(--bg, #F7F4EE);
}
.home-projects-inner {
  max-width: 940px;
}
.projects-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.projects-head h2 {
  margin: 0;
  font-size: clamp(22px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink, #1F1E1B);
}
.projects-pill,
.projects-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(10,10,10,0.1);
  background: rgba(255,255,255,0.48);
  color: var(--ink, #1F1E1B);
  font-size: 13px;
  font-weight: 600;
}
.projects-link {
  color: rgba(31,30,27,0.72);
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}
.projects-link:hover {
  background: var(--ink, #1F1E1B);
  color: #fff;
  transform: translateY(-1px);
}
.project-card-large {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}
.project-preview {
  position: relative;
  min-height: clamp(240px, 38vw, 430px);
  border-radius: 26px;
  border: 1px solid rgba(10,10,10,0.1);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(245,239,230,0.74)),
    radial-gradient(circle at 18% 16%, rgba(204,120,92,0.18), transparent 28%);
  box-shadow: 0 28px 70px -42px rgba(10,10,10,0.45);
  overflow: hidden;
}
.project-preview-top {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  gap: 7px;
}
.project-preview-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(204,120,92,0.42);
}
.project-preview-body {
  position: absolute;
  inset: 58px 22px 22px;
  border: 1px dashed rgba(10,10,10,0.14);
  border-radius: 20px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px;
  color: rgba(31,30,27,0.64);
}
.project-preview-body strong {
  display: block;
  color: var(--ink, #1F1E1B);
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.03em;
}
.project-preview-body p {
  max-width: 34ch;
  margin: 10px auto 0;
  line-height: 1.45;
}
.project-open {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--ink, #1F1E1B);
  color: #fff;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}
.project-open:hover {
  background: var(--accent, #CC785C);
  transform: translateY(-1px) rotate(8deg);
}
.project-card-copy {
  border-radius: 26px;
  border: 1px solid rgba(10,10,10,0.1);
  background: rgba(255,255,255,0.52);
  padding: clamp(22px, 4vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.project-card-copy span {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(31,30,27,0.5);
}
.project-card-copy h3 {
  margin: 10px 0 8px;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.project-card-copy p {
  margin: 0;
  line-height: 1.5;
  color: rgba(31,30,27,0.62);
}

.drawer-panel:not(.drawer-claude) .drawer-section-label {
  padding: 16px 14px 8px !important;
  font-family: var(--font-mono, monospace) !important;
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: rgba(31,30,27,0.42) !important;
}
.drawer-panel:not(.drawer-claude) .dn-current {
  margin: 4px 0 10px !important;
  background: var(--ink, #1F1E1B) !important;
  color: #fff !important;
  box-shadow: 0 18px 36px -24px rgba(10,10,10,0.65) !important;
}
.drawer-panel:not(.drawer-claude) .dn-current::before {
  content: none !important;
  display: none !important;
}
.drawer-panel:not(.drawer-claude) .dn-current .dn-sub {
  color: rgba(255,255,255,0.7) !important;
}
.drawer-panel:not(.drawer-claude) .dn-current .dn-icon::after {
  background: #fff !important;
}
.drawer-panel:not(.drawer-claude) .dn-item {
  min-height: 52px !important;
  border-radius: 16px !important;
}
.drawer-panel:not(.drawer-claude) .dn-item:hover,
.drawer-panel:not(.drawer-claude) .dn-item:focus-visible {
  transform: translateX(2px) !important;
}
.drawer-panel:not(.drawer-claude) .dn-item[href="#projects"] .dn-icon { --dn-mask: var(--dn-monitor); }
.drawer-panel:not(.drawer-claude) .dn-item[href*="devai_online_bot"] .dn-icon { --dn-mask: var(--dn-bot); }

.profile-modal {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  padding: 0 !important;
}
.profile-modal.hidden {
  display: flex !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.profile-modal:not(.hidden) {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.profile-modal-shade {
  background: rgba(10,10,10,0.46) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}
.profile-modal-card {
  width: min(100%, 560px) !important;
  max-width: 560px !important;
  max-height: min(86svh, 760px) !important;
  margin: 0 !important;
  border-radius: 30px 30px 0 0 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  background: #181715 !important;
  color: #F7F2EA !important;
  box-shadow: 0 -24px 80px -34px rgba(0,0,0,0.9) !important;
  overflow-y: auto !important;
  transform: translateY(0) !important;
  animation: accountSheetUp 0.28s cubic-bezier(0.22,0.61,0.36,1) both !important;
}
@keyframes accountSheetUp {
  from { transform: translateY(22px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.profile-modal-head {
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  padding: 18px 22px 14px !important;
}
.profile-modal-head::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  transform: translateX(-50%);
}
.profile-modal-head h3 {
  color: #F7F2EA !important;
  font-family: var(--font-display, serif) !important;
  font-size: 28px !important;
  font-weight: 500 !important;
}
.profile-modal-head .icon-btn {
  border: 0 !important;
  background: transparent !important;
  color: rgba(247,242,234,0.78) !important;
}
.profile-modal-head .icon-btn:hover {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
}
.profile-modal-body {
  padding: 18px 22px max(22px, env(safe-area-inset-bottom)) !important;
  gap: 14px !important;
}
.profile-card {
  display: grid !important;
  grid-template-columns: 64px 1fr !important;
  grid-template-areas:
    "avatar name"
    "avatar username" !important;
  align-items: center !important;
  gap: 2px 14px !important;
  text-align: left !important;
  padding: 2px 0 18px !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.profile-avatar-wrap {
  grid-area: avatar !important;
  width: 60px !important;
  height: 60px !important;
  margin: 0 !important;
  border: 2px solid rgba(255,255,255,0.1) !important;
  outline: 0 !important;
  background: radial-gradient(circle at 35% 25%, #b765ea, #6b22c7 56%, #31115f) !important;
  box-shadow: none !important;
}
.profile-avatar-fallback {
  color: #fff !important;
  font-size: 24px !important;
}
.profile-name {
  grid-area: name !important;
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 700 !important;
}
.profile-username {
  grid-area: username !important;
  color: rgba(247,242,234,0.62) !important;
  font-size: 14px !important;
  margin: 0 !important;
}
.profile-meta {
  display: none !important;
}
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 0;
}
.profile-action {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 6px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #F7F2EA;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  text-align: left;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease), color 0.18s var(--ease);
}
.profile-action:hover,
.profile-action:focus-visible {
  background: rgba(255,255,255,0.08);
  transform: translateX(2px);
  color: #fff;
}
.profile-action-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: rgba(247,242,234,0.88);
  flex: 0 0 auto;
}
.profile-action-muted {
  color: rgba(247,242,234,0.68);
}

body.landing-dark {
  --bg: #181715;
  --paper: #211f1c;
  --ink: #F7F2EA;
  --ink-70: rgba(247,242,234,0.7);
  --ink-40: rgba(247,242,234,0.42);
}

@media (max-width: 900px) {
  .site-header {
    height: 64px !important;
  }
  .hdr-row {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) 58px !important;
    align-items: center !important;
    gap: 0 !important;
    position: relative !important;
  }
  .hdr-row > .brand {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: center !important;
  }
  .hdr-row > .brand .brand-svg {
    height: 34px !important;
  }
  .hdr-nav,
  .site-header .btn-ink {
    display: none !important;
  }
  .hdr-meta {
    display: contents !important;
    margin: 0 !important;
  }
  #burgerBtn.burger-btn {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    width: 44px !important;
    height: 44px !important;
    border: 0 !important;
    background: transparent !important;
    margin: 0 !important;
  }
  #avatarBtn.avatar-trigger {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
  }
  .hero {
    min-height: calc(100svh - 64px) !important;
    padding-block: 40px 34px !important;
    align-items: center !important;
  }
  .hero-inner {
    min-height: calc(100svh - 138px);
    justify-content: center;
  }
  .hero-kicker {
    font-size: clamp(28px, 9.6vw, 42px) !important;
    margin-bottom: 10px !important;
  }
  .hero-title {
    font-size: clamp(36px, 13vw, 58px) !important;
    line-height: 0.98 !important;
    max-width: 7.4em !important;
    margin-bottom: 26px !important;
  }
  .hero-lede {
    max-width: 30ch !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
  }
  .hero-prompt.hero-prompt-v6,
  .hero-prompt {
    width: calc(100vw - 24px) !important;
    border-radius: 24px !important;
    padding: 18px 14px 14px !important;
  }
  .hero-prompt-actions {
    overflow: visible !important;
  }
  .home-projects {
    padding-top: 24px !important;
  }
  .projects-head {
    grid-template-columns: 1fr auto !important;
    gap: 10px !important;
  }
  .projects-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .project-card-large {
    grid-template-columns: 1fr !important;
  }
  .project-preview {
    min-height: 300px !important;
  }
  .project-card-copy {
    min-height: 170px;
  }
}

@media (max-width: 520px) {
  .profile-modal-card {
    width: 100% !important;
    border-radius: 26px 26px 0 0 !important;
  }
  .profile-modal-head h3 {
    font-size: 25px !important;
  }
  .profile-action {
    min-height: 54px;
    font-size: 17px;
  }
}

/* v54: left landing navigation + unified press/hover motion */
.drawer-panel:not(.drawer-claude) {
  left: 0 !important;
  right: auto !important;
  border-left: 0 !important;
  border-right: 1px solid rgba(10,10,10,0.1) !important;
  box-shadow: 40px 0 90px -28px rgba(10,10,10,0.28) !important;
  transform: translateX(-106%) !important;
  transition: transform 0.38s cubic-bezier(0.22,0.61,0.36,1), box-shadow 0.38s cubic-bezier(0.22,0.61,0.36,1) !important;
}
.drawer.is-open .drawer-panel:not(.drawer-claude) {
  transform: translateX(0) !important;
}
.drawer.is-closing .drawer-panel:not(.drawer-claude),
.drawer:not(.hidden):not(.is-open) .drawer-panel:not(.drawer-claude) {
  transform: translateX(-106%) !important;
}
.drawer-shade {
  transition: opacity 0.3s cubic-bezier(0.22,0.61,0.36,1), backdrop-filter 0.3s cubic-bezier(0.22,0.61,0.36,1) !important;
}
.drawer.is-closing .drawer-shade {
  opacity: 0 !important;
  backdrop-filter: blur(0) !important;
}

.profile-modal {
  transition: opacity 0.24s cubic-bezier(0.22,0.61,0.36,1), visibility 0s linear 0s !important;
}
.profile-modal.is-closing {
  opacity: 0 !important;
  pointer-events: none !important;
}
.profile-modal.is-closing .profile-modal-card {
  animation: accountSheetDown 0.26s cubic-bezier(0.22,0.61,0.36,1) both !important;
}
.profile-modal.is-closing .profile-modal-shade {
  opacity: 0 !important;
}
@keyframes accountSheetDown {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(24px); opacity: 0; }
}

.profile-actions {
  gap: 12px !important;
}
.profile-action-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.075);
}
.profile-action-label {
  padding: 0 8px 2px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247,242,234,0.42);
}
.profile-action {
  min-height: 50px !important;
  padding: 0 12px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.035) !important;
  border: 1px solid rgba(255,255,255,0.055) !important;
  box-shadow: none !important;
}
.profile-action:hover,
.profile-action:focus-visible,
.profile-action.is-pressed {
  background: var(--accent, #CC785C) !important;
  border-color: transparent !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 16px 32px -24px rgba(204,120,92,0.9) !important;
}
.profile-action:active {
  transform: translateY(0) scale(0.985) !important;
}
.profile-action:hover .profile-action-icon,
.profile-action:focus-visible .profile-action-icon,
.profile-action.is-pressed .profile-action-icon {
  color: #fff !important;
}

:where(.btn, .icon-btn, .avatar-trigger, .hn-item, .hp-clip, .hp-toggle, .bt-opt, .hp-improve, .hp-send, .projects-link, .project-open, .drawer-foot .btn) {
  transition:
    background 0.2s cubic-bezier(0.22,0.61,0.36,1),
    color 0.2s cubic-bezier(0.22,0.61,0.36,1),
    border-color 0.2s cubic-bezier(0.22,0.61,0.36,1),
    box-shadow 0.2s cubic-bezier(0.22,0.61,0.36,1),
    transform 0.2s cubic-bezier(0.22,0.61,0.36,1) !important;
}
:where(.btn, .icon-btn, .avatar-trigger, .hp-clip, .hp-toggle, .bt-opt, .hp-improve, .projects-link, .project-open, .drawer-foot .btn):hover,
:where(.btn, .icon-btn, .avatar-trigger, .hp-clip, .hp-toggle, .bt-opt, .hp-improve, .projects-link, .project-open, .drawer-foot .btn):focus-visible {
  background: var(--accent, #CC785C) !important;
  border-color: transparent !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 30px -20px rgba(204,120,92,0.9) !important;
}
:where(.btn, .icon-btn, .avatar-trigger, .hp-clip, .hp-toggle, .bt-opt, .hp-improve, .hp-send, .projects-link, .project-open, .drawer-foot .btn):active {
  transform: translateY(0) scale(0.97) !important;
  box-shadow: 0 8px 18px -18px rgba(10,10,10,0.6) !important;
}
.hn-item {
  border-radius: 999px !important;
  padding: 8px 11px !important;
}
.hn-item:hover,
.hn-item:focus-visible {
  background: rgba(204,120,92,0.12) !important;
  color: var(--accent, #CC785C) !important;
  transform: translateY(-1px) !important;
}
.hp-send:hover,
.hp-send:focus-visible {
  background: var(--accent, #CC785C) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px -18px rgba(204,120,92,0.9) !important;
}
.drawer-panel:not(.drawer-claude) .dn-item:hover,
.drawer-panel:not(.drawer-claude) .dn-item:focus-visible,
.drawer-panel:not(.drawer-claude) .dn-item.is-pressed {
  transform: translateX(4px) translateY(-1px) !important;
  box-shadow: 0 16px 34px -26px rgba(204,120,92,0.85) !important;
}
.drawer-panel:not(.drawer-claude) .dn-current:hover,
.drawer-panel:not(.drawer-claude) .dn-current:focus-visible,
.drawer-panel:not(.drawer-claude) .dn-current.is-pressed {
  box-shadow: 0 20px 38px -24px rgba(10,10,10,0.75) !important;
}

.site-header {
  animation: landingHeaderIn 0.42s cubic-bezier(0.22,0.61,0.36,1) both;
}
.hero-kicker,
.hero-title,
.hero-lede,
.hero-prompt,
.home-projects .projects-head,
.home-projects .project-card-large,
.trusted,
.site-foot {
  animation: landingRiseIn 0.54s cubic-bezier(0.22,0.61,0.36,1) both;
}
.hero-title { animation-delay: 0.04s; }
.hero-lede { animation-delay: 0.08s; }
.hero-prompt { animation-delay: 0.12s; }
.home-projects .projects-head,
.trusted { animation-delay: 0.04s; }
.home-projects .project-card-large,
.site-foot { animation-delay: 0.08s; }
@keyframes landingHeaderIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes landingRiseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .hero-kicker,
  .hero-title,
  .hero-lede,
  .hero-prompt,
  .home-projects .projects-head,
  .home-projects .project-card-large,
  .trusted,
  .site-foot,
  .drawer-panel:not(.drawer-claude),
  .profile-modal-card {
    animation: none !important;
    transition: none !important;
  }
}


/* ═════════════════════════════════════════════════════════════
   v95 — Profile-modal = slide-up bottom-sheet на всех экранах.
   Раньше было: на мобильных слайд снизу, на ПК просто fade. Юзер
   хочет «открытие вверх» при тапе на аватар — поэтому даю единый
   bottom-sheet feel везде.
   ═════════════════════════════════════════════════════════════ */
.profile-modal {
  /* выравнивание по нижнему краю + плавный fade самого подложного слоя */
  display: grid !important;
  place-items: end center !important;
  align-items: flex-end !important;
  padding: 0 !important;
  animation: none !important;
  transition: opacity 0.28s cubic-bezier(0.22,0.61,0.36,1),
              visibility 0s linear 0s !important;
}
.profile-modal.hidden {
  display: grid !important;
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease-in, visibility 0s linear 0.22s !important;
}
.profile-modal:not(.hidden) {
  opacity: 1; visibility: visible;
}
.profile-modal-card {
  /* карточка въезжает снизу. На ПК — узкая 480px, прижатая к низу
     с отступом 24px. На мобильных — full-width, прилеплена. */
  width: 100% !important;
  max-width: 480px !important;
  margin: 0 auto 24px !important;
  border-radius: 24px 24px 24px 24px !important;
  transform: translateY(0) !important;
  transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
  animation: none !important;
  will-change: transform;
}
.profile-modal.hidden .profile-modal-card {
  transform: translateY(120%) !important;
}
@media (max-width: 720px) {
  .profile-modal-card {
    max-width: none !important;
    margin: 0 !important;
    border-radius: 22px 22px 0 0 !important;
  }
}


/* v95 — Перформанс: отдалённые секции лендинга считаются только
   когда попадают в viewport. Снижает время layout/paint. */
.hero,
.projects-rail,
.trusted,
.site-foot {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}
/* Hero не скрываем — он первый, content-visibility ему мешает на open */
.hero { content-visibility: visible; }


/* ═════════════════════════════════════════════════════════════
   v100 — DARK THEME (black bg, white text, orange accent)
   Final overrides — drop after EVERYTHING so they win the cascade.
   ═════════════════════════════════════════════════════════════ */
:root {
  --bg:         #050505 !important;
  --bg-soft:    #0F0F11 !important;
  --bg-card:    #14141A !important;
  --paper:      #14141A !important;

  --ink:        #FFFFFF !important;
  --ink-90:     rgba(255,255,255,0.92) !important;
  --ink-70:     rgba(255,255,255,0.72) !important;
  --ink-55:     rgba(255,255,255,0.55) !important;
  --ink-40:     rgba(255,255,255,0.4)  !important;
  --ink-25:     rgba(255,255,255,0.22) !important;
  --ink-12:     rgba(255,255,255,0.12) !important;
  --ink-06:     rgba(255,255,255,0.06) !important;
  --ink-03:     rgba(255,255,255,0.03) !important;

  /* Accent stays warm — matches the logo dot */
  --accent:     #F5B58A !important;
  --accent-h:   #FFA774 !important;
  --accent-soft:#3A2A1F !important;
  --accent-glow:rgba(245,181,138,0.32) !important;
}

html, body { background: #050505 !important; color: #FFFFFF !important; }

/* Replace any leftover inline .brand-svg marker with the new logo image */
.brand-svg {
  display: inline-block !important;
  width: 76px;
  height: 26px;
  background: url('/logo.jpg?v=2') center / contain no-repeat;
}
.brand-svg-text,
.brand-svg-dot { display: none !important; }

/* Brand image — let it breathe on the dark theme */
.brand-logo {
  width: 56px;
  height: auto;
  display: block;
  border-radius: 8px;
}
.brand-logo-lg { width: 110px; }

/* Common surfaces that had explicit light colors */
.site-header,
.site-header.is-scrolled {
  background: rgba(5,5,5,0.84) !important;
  border-bottom-color: rgba(255,255,255,0.06) !important;
}
.drawer-panel { background: #0A0A0C !important; color: #FFFFFF !important; }
.drawer-shade { background: rgba(0,0,0,0.65) !important; }

/* Tg-gate (welcome gate for non-Telegram visitors) */
.tg-gate { background: #050505 !important; }
.tg-gate-card {
  background: #14141A !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}
.tg-gate-title { color: #FFFFFF !important; }
.tg-gate-text  { color: rgba(255,255,255,0.7) !important; }

/* Cards and any block that was paper-white before */
.bento-card,
.show-card,
.price-card,
.prv2-card,
.faq-item,
.studio-card,
.svc-card,
.process-step,
.feature,
.case,
.foot-col,
.modal-card,
.cloud-modal-card,
.sub-modal-card,
.profile-modal-card {
  background: #14141A !important;
  color: #FFFFFF !important;
  border-color: rgba(255,255,255,0.08) !important;
}

/* Inputs / textareas */
input, textarea, select {
  background: #0F0F11 !important;
  color: #FFFFFF !important;
  border-color: rgba(255,255,255,0.12) !important;
}
input::placeholder, textarea::placeholder {
  color: rgba(255,255,255,0.42) !important;
}

/* Hero prompt block + big-CTA prompt — same dark surface */
.hero-prompt,
.hero-prompt.hero-prompt-v6,
.big-cta-v6 .hero-prompt.hero-prompt-v6 {
  background: #14141A !important;
  border-color: rgba(255,255,255,0.1) !important;
  color: #FFFFFF !important;
}
.hero-prompt:focus-within,
.hero-prompt.hero-prompt-v6:focus-within {
  border-color: #FFFFFF !important;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.4),
    0 28px 60px -28px rgba(0,0,0,0.7),
    0 0 0 4px rgba(245,181,138,0.12) !important;
}
#heroPromptInput,
#ctaPromptInput,
.hero-prompt.hero-prompt-v6 #heroPromptInput,
.hero-prompt.hero-prompt-v6 #ctaPromptInput {
  background: transparent !important;
  color: #FFFFFF !important;
}
.hp-clip,
.hero-prompt.hero-prompt-v6 .hp-clip {
  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.78) !important;
  border-color: rgba(255,255,255,0.1) !important;
}
.hp-clip:hover,
.hero-prompt.hero-prompt-v6 .hp-clip:hover {
  background: #FFFFFF !important;
  color: #050505 !important;
  border-color: #FFFFFF !important;
}
.hp-send,
.hero-prompt.hero-prompt-v6 .hp-send {
  background: var(--accent, #F5B58A) !important;
  color: #050505 !important;
}
.hp-send:hover,
.hero-prompt.hero-prompt-v6 .hp-send:hover {
  background: #FFFFFF !important;
  color: #050505 !important;
}
.hp-toggle {
  background: rgba(255,255,255,0.05) !important;
  color: rgba(255,255,255,0.7) !important;
  border-color: rgba(255,255,255,0.1) !important;
}

/* Suggestion chips */
.chip {
  background: #14141A !important;
  color: rgba(255,255,255,0.82) !important;
  border-color: rgba(255,255,255,0.1) !important;
}
.chip::before { background: #FFFFFF !important; }
.chip:hover { color: #050505 !important; border-color: #FFFFFF !important; }
.prompt-suggestions-label { color: rgba(255,255,255,0.4) !important; }

/* Buttons (the fill-from-bottom hover repaint) */
.btn-ghost {
  --bg:   transparent;
  --fg:   #FFFFFF;
  --fill: #FFFFFF;
  --fill-fg: #050505;
  color: #FFFFFF !important;
  border-color: rgba(255,255,255,0.18) !important;
}
.btn-ghost:hover { color: #050505 !important; border-color: #FFFFFF !important; }
.btn-primary {
  --bg:   var(--accent, #F5B58A);
  --fg:   #050505;
  --fill: #FFFFFF;
  --fill-fg: #050505;
  background: var(--accent, #F5B58A) !important;
  color: #050505 !important;
  border-color: var(--accent, #F5B58A) !important;
}
.btn-primary:hover { color: #050505 !important; border-color: #FFFFFF !important; }
.btn-ink {
  --bg:   #FFFFFF;
  --fg:   #050505;
  --fill: var(--accent, #F5B58A);
  --fill-fg: #050505;
  background: #FFFFFF !important;
  color: #050505 !important;
  border-color: #FFFFFF !important;
}
.btn-ink:hover { color: #050505 !important; }
.icon-btn { color: rgba(255,255,255,0.78); }
.icon-btn:hover { background: rgba(255,255,255,0.1); color: #FFFFFF; }

/* Footer */
.site-foot { background: #050505 !important; color: rgba(255,255,255,0.7) !important; }
.site-foot a { color: rgba(255,255,255,0.7) !important; }
.site-foot a:hover { color: #FFFFFF !important; }
.foot-base { color: rgba(255,255,255,0.4) !important; }

/* Pricing featured card stays inverted (white on white→dark switch) */
.prv2-card.prv2-featured {
  background: #FFFFFF !important;
  color: #050505 !important;
  border-color: #FFFFFF !important;
}
.prv2-card.prv2-featured .prv2-desc { color: rgba(5,5,5,0.7) !important; }
.prv2-card.prv2-featured .prv2-list li { color: rgba(5,5,5,0.92) !important; }
.prv2-card.prv2-featured .prv2-tier { background: rgba(5,5,5,0.08) !important; color: rgba(5,5,5,0.7) !important; }
.prv2-card.prv2-featured .prv2-price small { color: rgba(5,5,5,0.55) !important; }

/* Big-CTA hero (the orange section) — keep its orange gradient */
.big-cta-v6 { background: linear-gradient(170deg, #1E1612 0%, #3A2A1F 55%, #5C3F26 100%) !important; }
.big-cta-v6-title { color: #FFFFFF !important; }
.big-cta-v6-title em { color: rgba(255,255,255,0.86) !important; }
.big-cta-v6-sub { color: rgba(255,255,255,0.7) !important; }
.big-cta-v6 .hero-prompt.hero-prompt-v6 {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.14) !important;
}

/* Code-snippet readability inside dark cards */
.bento-visual-code { color: rgba(255,255,255,0.85) !important; }
.c-c { color: rgba(255,255,255,0.4) !important; }
.c-k { color: #F5B58A !important; }
.c-v { color: #FFFFFF !important; }
.c-s { color: rgba(255,255,255,0.78) !important; }

/* Eyebrows */
.hero-eyebrow,
.sec-eyebrow {
  background: rgba(255,255,255,0.04) !important;
  color: rgba(255,255,255,0.78) !important;
  border-color: rgba(255,255,255,0.14) !important;
}

/* Pulse dot on eyebrows — keep visible */
.pulse {
  background: var(--accent, #F5B58A) !important;
  box-shadow: 0 0 0 3px rgba(245,181,138,0.22) !important;
}

/* Grain texture — fade on dark */
.grain { opacity: 0.018 !important; mix-blend-mode: lighten !important; }
.bg-orbs .orb { opacity: 0.5 !important; mix-blend-mode: screen !important; }


/* ═════════════════════════════════════════════════════════════
   v101 — STRICT 3-COLOUR PALETTE (black / white / beige)
   Aggressive overrides for unreadable text + logo sizing + appbar.
   ═════════════════════════════════════════════════════════════ */
:root {
  --bg:          #000000 !important;
  --bg-soft:     #0A0A0A !important;
  --bg-card:     #111111 !important;
  --paper:       #111111 !important;
  --ink:         #FFFFFF !important;
  --accent:      #E8DCC4 !important;   /* beige */
  --accent-h:    #F0E3C9 !important;
  --accent-soft: #1F1B14 !important;
  --accent-glow: rgba(232,220,196,0.32) !important;
}

/* Everything on the page reads as white text on black, unless explicitly overridden */
html, body, main, section, article, aside, header, footer, nav, div,
h1, h2, h3, h4, h5, h6, p, span, li, a, em, i, strong, b, blockquote, label, td, th {
  color: #FFFFFF;
}
body, html { background: #000000 !important; }

/* Brand image — bigger, and the JPG's black background dissolves into the page via screen blend */
.brand-logo {
  width: 92px !important;
  height: auto !important;
  display: block !important;
  border-radius: 0 !important;
  mix-blend-mode: screen !important;
  background: transparent !important;
}
.brand-logo-lg { width: 160px !important; }

/* Replacement for inline SVG brand-svg marks — same blend trick */
.brand-svg {
  display: inline-block !important;
  width: 92px !important;
  height: 30px !important;
  background: url('/logo.jpg?v=2') center / contain no-repeat !important;
  mix-blend-mode: screen !important;
}
.brand-svg-text, .brand-svg-dot { display: none !important; }

/* Hero title — make sure "dev<dot>" inline mark is white */
.hero-title { color: #FFFFFF !important; }
.hero-title .bd { color: #FFFFFF !important; }
.hero-title .bd .dot { background: var(--accent, #E8DCC4) !important; }
.hero-title em { color: rgba(255,255,255,0.92) !important; }

/* ─── Appbar / header ─── */
.site-header {
  background: #000000 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  backdrop-filter: none !important;
}
.site-header.is-scrolled { background: #000000 !important; }
.hdr-row { color: #FFFFFF !important; }
.nav a { color: #FFFFFF !important; opacity: 0.78; }
.nav a:hover { opacity: 1; color: var(--accent, #E8DCC4) !important; }

/* ─── Sections / cards ─── */
.section,
.hero,
.trusted,
.bento,
.showcase-grid,
.how,
.pricing,
.pricing-v2,
.faq {
  background: #000000 !important;
  color: #FFFFFF !important;
}
.bento-card,
.show-card,
.price-card,
.prv2-card,
.faq-item,
.studio-card,
.svc-card,
.process-step,
.feature,
.case,
.foot-col,
.modal-card,
.cloud-modal-card,
.sub-modal-card,
.profile-modal-card,
.how-step,
.how-step-n,
.show-body,
.bento-tag {
  background: #111111 !important;
  color: #FFFFFF !important;
  border-color: rgba(255,255,255,0.1) !important;
}

/* Pricing — featured Studio card stays inverted (beige on dark) */
.prv2-card.prv2-featured {
  background: var(--accent, #E8DCC4) !important;
  color: #000000 !important;
  border-color: var(--accent, #E8DCC4) !important;
}
.prv2-card.prv2-featured *,
.prv2-card.prv2-featured h3,
.prv2-card.prv2-featured p,
.prv2-card.prv2-featured li { color: #000000 !important; }
.prv2-card.prv2-featured .prv2-tier {
  background: rgba(0,0,0,0.1) !important;
  color: rgba(0,0,0,0.7) !important;
}
.prv2-card.prv2-featured .prv2-price small { color: rgba(0,0,0,0.55) !important; }
.prv2-card.prv2-featured .prv2-badge { background: #000000 !important; color: #FFFFFF !important; }

/* Section heads, eyebrows */
.sec-eyebrow,
.hero-eyebrow {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.14) !important;
  color: rgba(255,255,255,0.78) !important;
}
.sec-title, .sec-title em { color: #FFFFFF !important; }
.sec-lede { color: rgba(255,255,255,0.72) !important; }

/* Bento cards inner */
.bento-card { color: #FFFFFF !important; }
.bento-card h3, .bento-card p { color: #FFFFFF !important; }
.bento-card p { color: rgba(255,255,255,0.78) !important; }
.bento-tag {
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.86) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
.bento-visual-code,
.bento-visual-code * { color: rgba(255,255,255,0.88) !important; }
.c-c { color: rgba(255,255,255,0.42) !important; }
.c-k { color: var(--accent, #E8DCC4) !important; }
.c-v { color: #FFFFFF !important; }
.c-s { color: rgba(255,255,255,0.78) !important; }
.bvp-line { background: rgba(255,255,255,0.14) !important; }
.bvp-dots span { background: rgba(255,255,255,0.3) !important; }

/* Showcase cards */
.show-card .show-tag {
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.78) !important;
}
.show-title { color: #FFFFFF !important; }
.show-desc { color: rgba(255,255,255,0.7) !important; }
.show-meta { color: rgba(255,255,255,0.55) !important; }
.show-meta em { color: var(--accent, #E8DCC4) !important; font-style: italic; }

/* How-it-works steps */
.how-step h3 { color: #FFFFFF !important; }
.how-step p  { color: rgba(255,255,255,0.7) !important; }
.how-step-n  { color: var(--accent, #E8DCC4) !important; }

/* Pricing card text */
.prv2-tier {
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.78) !important;
}
.prv2-price { color: #FFFFFF !important; }
.prv2-price small { color: rgba(255,255,255,0.55) !important; }
.prv2-desc { color: rgba(255,255,255,0.7) !important; }
.prv2-list li { color: rgba(255,255,255,0.92) !important; }
.prv2-list code {
  background: rgba(255,255,255,0.08) !important;
  color: #FFFFFF !important;
}
.prv2-foot {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.14) !important;
  color: rgba(255,255,255,0.7) !important;
}

/* Trusted strip logos */
.trusted-label { color: rgba(255,255,255,0.55) !important; }
.trusted-logos span { color: rgba(255,255,255,0.78) !important; }

/* Buttons — only black / white / beige */
.btn { color: #000000; }
.btn-primary {
  background: var(--accent, #E8DCC4) !important;
  color: #000000 !important;
  border-color: var(--accent, #E8DCC4) !important;
}
.btn-primary:hover {
  background: #FFFFFF !important;
  color: #000000 !important;
  border-color: #FFFFFF !important;
}
.btn-ghost {
  background: transparent !important;
  color: #FFFFFF !important;
  border-color: rgba(255,255,255,0.2) !important;
}
.btn-ghost:hover {
  background: #FFFFFF !important;
  color: #000000 !important;
  border-color: #FFFFFF !important;
}
.btn-ink {
  background: #FFFFFF !important;
  color: #000000 !important;
  border-color: #FFFFFF !important;
}
.btn-ink:hover {
  background: var(--accent, #E8DCC4) !important;
  color: #000000 !important;
}
/* Fill-from-bottom ::before — neutralize colored fills */
.btn::before { background: var(--accent, #E8DCC4) !important; }
.btn-primary::before { background: #FFFFFF !important; }
.btn-ghost::before  { background: #FFFFFF !important; }
.btn-ink::before    { background: var(--accent, #E8DCC4) !important; }

/* Icon-btn (burger etc) */
.icon-btn { color: #FFFFFF !important; border: 1px solid rgba(255,255,255,0.14); }
.icon-btn:hover { background: #FFFFFF !important; color: #000000 !important; border-color: #FFFFFF !important; }
.icon-btn::before { background: #FFFFFF !important; }

/* Chips on hero / suggestions */
.chip {
  background: #111111 !important;
  color: rgba(255,255,255,0.82) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
}
.chip::before { background: var(--accent, #E8DCC4) !important; }
.chip:hover {
  color: #000000 !important;
  border-color: var(--accent, #E8DCC4) !important;
}
.prompt-suggestions-label { color: rgba(255,255,255,0.5) !important; }

/* Hero prompt block */
.hero-prompt,
.hero-prompt.hero-prompt-v6 {
  background: #111111 !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #FFFFFF !important;
}
.hero-prompt:focus-within,
.hero-prompt.hero-prompt-v6:focus-within {
  border-color: var(--accent, #E8DCC4) !important;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.4),
    0 28px 60px -28px rgba(0,0,0,0.7),
    0 0 0 4px rgba(232,220,196,0.18) !important;
}
#heroPromptInput, #ctaPromptInput,
.hero-prompt #heroPromptInput,
.hero-prompt #ctaPromptInput,
.hero-prompt.hero-prompt-v6 #heroPromptInput,
.hero-prompt.hero-prompt-v6 #ctaPromptInput {
  color: #FFFFFF !important;
  background: transparent !important;
}
.hero-prompt textarea::placeholder,
.hero-prompt input::placeholder,
.hero-prompt.hero-prompt-v6 textarea::placeholder { color: rgba(255,255,255,0.4) !important; }
.hp-clip {
  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.78) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
}
.hp-clip:hover {
  background: #FFFFFF !important;
  color: #000000 !important;
  border-color: #FFFFFF !important;
}
.hp-send {
  background: #FFFFFF !important;
  color: #000000 !important;
  border-color: #FFFFFF !important;
}
.hp-send:hover {
  background: var(--accent, #E8DCC4) !important;
  color: #000000 !important;
  border-color: var(--accent, #E8DCC4) !important;
}
.hp-toggle {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  color: rgba(255,255,255,0.78) !important;
}

/* Big-CTA — dark with beige primary */
.big-cta-v6 {
  background: #0A0A0A !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.big-cta-v6::before, .big-cta-v6::after { display: none !important; }
.big-cta-v6-title,
.big-cta-v6-title em { color: #FFFFFF !important; }
.big-cta-v6-sub { color: rgba(255,255,255,0.72) !important; }
.big-cta-v6 .hero-prompt.hero-prompt-v6 {
  background: #111111 !important;
  border-color: rgba(255,255,255,0.14) !important;
}

/* ─── FOOTER — replace text wordmark with the logo image ─── */
.site-foot {
  background: #000000 !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.7) !important;
}
.foot-wordmark {
  width: 220px !important;
  height: 72px !important;
  background: url('/logo.jpg?v=2') left center / contain no-repeat !important;
  mix-blend-mode: screen !important;
  margin-bottom: 36px !important;
  font-size: 0 !important;     /* hide the legacy "dev" text */
  line-height: 0 !important;
}
.foot-wordmark span,
.foot-wordmark .foot-dot { display: none !important; }
.foot-col-head { color: #FFFFFF !important; font-weight: 600; }
.foot-tag,
.foot-col p,
.foot-col li,
.foot-col a {
  color: rgba(255,255,255,0.7) !important;
}
.foot-col a:hover { color: var(--accent, #E8DCC4) !important; }
.foot-base { color: rgba(255,255,255,0.42) !important; }
.foot-social {
  background: #111111 !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.78) !important;
}
.foot-social:hover { background: var(--accent, #E8DCC4) !important; color: #000000 !important; border-color: var(--accent, #E8DCC4) !important; }

/* Tg-gate */
.tg-gate { background: #000000 !important; }
.tg-gate-card {
  background: #111111 !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}
.tg-gate-title { color: #FFFFFF !important; }
.tg-gate-text  { color: rgba(255,255,255,0.72) !important; }
.tg-gate-mark {
  width: 200px !important;
  height: 64px !important;
  margin: 0 auto 18px !important;
}
.tg-gate-mark .brand-logo,
.tg-gate-mark .brand-logo-lg { width: 100% !important; mix-blend-mode: screen !important; }

/* Drawer */
.drawer-panel {
  background: #0A0A0A !important;
  color: #FFFFFF !important;
  border-left: 1px solid rgba(255,255,255,0.06) !important;
}
.drawer-shade { background: rgba(0,0,0,0.7) !important; }
.drawer-head { border-bottom: 1px solid rgba(255,255,255,0.06) !important; }
.dn-item {
  color: #FFFFFF !important;
  background: transparent !important;
}
.dn-item:hover { background: rgba(255,255,255,0.05) !important; }
.dn-title { color: #FFFFFF !important; }
.dn-sub   { color: rgba(255,255,255,0.55) !important; }
.dn-icon  { color: rgba(255,255,255,0.65) !important; }

/* Pulse dot — beige */
.pulse {
  background: var(--accent, #E8DCC4) !important;
  box-shadow: 0 0 0 3px rgba(232,220,196,0.22) !important;
}

/* Grain / orbs — completely off (they hint at warm cream tones) */
.grain { display: none !important; }
.bg-orbs { display: none !important; }


/* ==========================================================================
   v102 — dark product polish
   Final override only: fixes low-contrast nav, broken site/bot switch labels,
   weak prompt readability and oversized empty vertical rhythm.
   Palette remains strict: black / white / #E8DCC4.
   ========================================================================== */
:root {
  --bg: #000000 !important;
  --bg-soft: #050505 !important;
  --bg-card: #111111 !important;
  --paper: #111111 !important;
  --ink: #FFFFFF !important;
  --accent: #E8DCC4 !important;
  --accent-h: #FFFFFF !important;
  --accent-soft: rgba(232,220,196,0.14) !important;
  --accent-glow: rgba(232,220,196,0.18) !important;
}

html,
body {
  background: #000000 !important;
  color: #FFFFFF !important;
}

.site-header {
  height: 68px !important;
  background: #000000 !important;
  border-bottom: 1px solid rgba(255,255,255,0.10) !important;
}

.hdr-row {
  height: 68px !important;
  align-items: center !important;
}

.site-header .brand-logo {
  width: 104px !important;
  height: 38px !important;
  object-fit: cover !important;
  object-position: center !important;
}

.brand-svg {
  background: url('/logo.jpg?v=4') center / cover no-repeat !important;
  mix-blend-mode: screen !important;
}

.hdr-nav {
  display: flex !important;
  gap: clamp(20px, 2.5vw, 34px) !important;
}

.hdr-nav .hn-item,
.hn-item {
  color: rgba(255,255,255,0.74) !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

.hdr-nav .hn-item:hover,
.hdr-nav .hn-item:focus-visible,
.hn-item:hover,
.hn-item:focus-visible {
  color: #E8DCC4 !important;
  opacity: 1 !important;
}

.hero {
  min-height: auto !important;
  padding: clamp(96px, 13vh, 150px) 0 clamp(76px, 10vh, 112px) !important;
  background: #000000 !important;
}

.hero::before,
.hero::after {
  display: none !important;
}

.hero-inner {
  min-height: auto !important;
  display: grid !important;
  justify-items: center !important;
  align-content: center !important;
  gap: clamp(30px, 5vh, 48px) !important;
}

.hero-title {
  max-width: 980px !important;
  margin: 0 !important;
  color: #FFFFFF !important;
  text-align: center !important;
  text-wrap: balance !important;
  line-height: 0.98 !important;
}

.hero-prompt,
.hero-prompt.hero-prompt-v6 {
  width: min(760px, calc(100vw - 40px)) !important;
  min-height: 190px !important;
  padding: 22px 22px 16px !important;
  background: #111111 !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 28px !important;
  box-shadow:
    0 34px 90px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

.hero-prompt:focus-within,
.hero-prompt.hero-prompt-v6:focus-within {
  border-color: #E8DCC4 !important;
  box-shadow:
    0 38px 96px rgba(0,0,0,0.62),
    0 0 0 4px rgba(232,220,196,0.14) !important;
}

#heroPromptInput,
#ctaPromptInput,
.hero-prompt #heroPromptInput,
.hero-prompt #ctaPromptInput {
  min-height: 104px !important;
  color: #FFFFFF !important;
  font-size: clamp(17px, 1.45vw, 20px) !important;
  line-height: 1.5 !important;
  opacity: 1 !important;
}

#heroPromptInput::placeholder,
#ctaPromptInput::placeholder,
.hero-prompt textarea::placeholder,
.hero-prompt.hero-prompt-v6 textarea::placeholder {
  color: rgba(255,255,255,0.58) !important;
  opacity: 1 !important;
}

.hero-prompt-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.hp-clip,
.hp-improve,
.hp-toggle,
.bt-inline,
.hp-send {
  height: 36px !important;
  border-radius: 999px !important;
  flex: 0 0 auto !important;
}

.hp-clip,
.hp-improve,
.hp-toggle {
  background: rgba(255,255,255,0.07) !important;
  color: rgba(255,255,255,0.88) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
}

.hp-toggle-label,
.hp-toggle span,
.hp-improve svg,
.hp-clip svg {
  color: inherit !important;
}

.bt-inline {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px !important;
  gap: 3px !important;
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
}

.bt-inline .bt-opt {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 74px !important;
  height: 28px !important;
  padding: 0 11px !important;
  gap: 6px !important;
  border-radius: 999px !important;
  color: rgba(255,255,255,0.72) !important;
  background: transparent !important;
}

.bt-inline .bt-opt span {
  display: inline !important;
  color: inherit !important;
  font-weight: 700 !important;
}

.bt-inline .bt-opt svg {
  color: inherit !important;
  flex: 0 0 auto !important;
}

.bt-inline .bt-opt.is-active {
  background: #E8DCC4 !important;
  color: #000000 !important;
}

.hp-send {
  width: 36px !important;
  background: #E8DCC4 !important;
  color: #000000 !important;
  border: 1px solid #E8DCC4 !important;
}

.hp-send:hover,
.hp-clip:hover,
.hp-improve:hover,
.hp-toggle:hover {
  background: #FFFFFF !important;
  color: #000000 !important;
  border-color: #FFFFFF !important;
}

.home-projects {
  background: #000000 !important;
  padding-top: clamp(56px, 8vh, 92px) !important;
}

.project-card-large,
.project-preview,
.project-card-copy {
  background: #111111 !important;
  border-color: rgba(255,255,255,0.14) !important;
  color: #FFFFFF !important;
}

.project-card-copy p,
.project-preview-body p,
.projects-head h2,
.projects-link {
  color: rgba(255,255,255,0.74) !important;
}

@media (max-width: 900px) {
  .hdr-nav { display: none !important; }
}

@media (max-width: 640px) {
  .site-header,
  .hdr-row {
    height: 64px !important;
  }

  .site-header .brand-logo {
    width: 92px !important;
    height: 34px !important;
  }

  .hero {
    padding-top: 142px !important;
    padding-bottom: 68px !important;
  }

  .hero-inner {
    gap: 28px !important;
  }

  .hero-title {
    font-size: clamp(42px, 13vw, 58px) !important;
    line-height: 1.03 !important;
  }

  .hero-prompt,
  .hero-prompt.hero-prompt-v6 {
    width: calc(100vw - 24px) !important;
    min-height: 188px !important;
    padding: 20px 14px 14px !important;
    border-radius: 22px !important;
  }

  #heroPromptInput,
  #ctaPromptInput {
    min-height: 92px !important;
    font-size: 16px !important;
  }

  .hero-prompt-actions {
    gap: 6px !important;
  }

  .hp-clip,
  .hp-improve,
  .hp-send {
    width: 34px !important;
    min-width: 34px !important;
  }

  .hp-toggle {
    padding-inline: 8px !important;
  }

  .bt-inline .bt-opt {
    min-width: 58px !important;
    padding: 0 8px !important;
    gap: 4px !important;
  }

  .bt-inline .bt-opt span {
    display: inline !important;
    font-size: 11px !important;
  }
}

/* v109 product-depth pass */
body {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    #000 !important;
  background-size: 92px 92px, 92px 92px, auto !important;
}

.hero {
  position: relative !important;
  min-height: calc(92svh - 72px) !important;
  padding-top: clamp(104px, 11vh, 146px) !important;
  padding-bottom: clamp(48px, 6vh, 68px) !important;
  overflow: hidden !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    #000000 !important;
  background-size: 92px 92px, 92px 92px, auto !important;
}

.hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(180deg, rgba(232, 220, 196, 0.08), transparent 28%),
    linear-gradient(90deg, transparent 0%, rgba(232, 220, 196, 0.08) 50%, transparent 100%) !important;
  mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%) !important;
}

.hero-inner {
  position: relative !important;
  z-index: 1 !important;
  max-width: min(1180px, calc(100vw - 48px)) !important;
  gap: clamp(28px, 4vh, 40px) !important;
}

.hero-title {
  max-width: 12.8ch !important;
  margin-inline: auto !important;
  font-size: clamp(58px, 7.2vw, 118px) !important;
  line-height: 0.9 !important;
  letter-spacing: 0 !important;
}

.hero-prompt,
.hero-prompt.hero-prompt-v6 {
  position: relative !important;
  width: min(980px, calc(100vw - 56px)) !important;
  border: 1px solid rgba(232, 220, 196, 0.32) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #050505 !important;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.hero-prompt::before {
  content: "" !important;
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  top: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(232, 220, 196, 0.8), transparent) !important;
}

#heroPromptInput,
#ctaPromptInput {
  color: #fff !important;
  text-shadow: none !important;
}

.hp-clip,
.hp-improve,
.hp-send,
.bt-inline .bt-opt {
  border-radius: 8px !important;
}

.home-projects {
  position: relative !important;
  margin-top: 0 !important;
  padding-top: clamp(42px, 6vh, 72px) !important;
  border-top: 1px solid rgba(232, 220, 196, 0.2) !important;
  background: #000 !important;
}

.home-projects-inner {
  max-width: min(1180px, calc(100vw - 48px)) !important;
}

.project-card-large {
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #050505 !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.44) !important;
}

.project-preview {
  min-height: clamp(300px, 38vw, 430px) !important;
  border-radius: 0 !important;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 42px),
    linear-gradient(135deg, #050505 0%, #050505 48%, #e8dcc4 48.2%, #e8dcc4 54%, #fff 54.2%, #fff 100%) !important;
}

.project-preview-body {
  background: rgba(0, 0, 0, 0.78) !important;
  border-color: rgba(232, 220, 196, 0.26) !important;
  border-radius: 8px !important;
}

.project-open {
  border-radius: 8px !important;
}

@media (max-width: 900px) {
  body {
    background-size: 58px 58px, 58px 58px, auto !important;
  }

  .hero {
    min-height: auto !important;
    padding-top: 98px !important;
    padding-bottom: 56px !important;
    background-size: 58px 58px, 58px 58px, auto !important;
  }

  .hero-title {
    font-size: clamp(46px, 13vw, 68px) !important;
    line-height: 0.96 !important;
  }

  .hero-prompt,
  .hero-prompt.hero-prompt-v6 {
    width: calc(100vw - 24px) !important;
    border-radius: 14px !important;
  }

  .home-projects-inner {
    max-width: calc(100vw - 24px) !important;
  }

  .project-card-large {
    border-radius: 8px !important;
  }
}
