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

:root {
  --bg:         #FAF6F0;
  --bg-soft:    #F5EFE6;
  --bg-card:    #FFFFFF;
  --ink:        #0A0A0A;
  --ink-90:     rgba(10,10,10,0.9);
  --ink-70:     rgba(10,10,10,0.7);
  --ink-55:     rgba(10,10,10,0.55);
  --ink-40:     rgba(10,10,10,0.4);
  --ink-25:     rgba(10,10,10,0.25);
  --ink-12:     rgba(10,10,10,0.12);
  --ink-06:     rgba(10,10,10,0.06);
  --ink-03:     rgba(10,10,10,0.03);

  --accent:     #FF4B1F;
  --accent-h:   #E83E12;
  --accent-soft:#FFE4DA;
  --accent-glow:rgba(255,75,31,0.35);
  --lime:       #C6F750;

  --paper:      #FFFFFF;

  --font-brand: 'Archivo Black', 'Inter', system-ui, sans-serif;
  --font-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; }
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, header.site-header, footer.site-foot { position: relative; z-index: 2; }


/* ─── 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-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;
}
.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 ───────────────────────────────────────────────── */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  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),
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-med) var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { transition: transform var(--dur-fast) var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn-primary { --bg: var(--accent); --fg: var(--paper); }
.btn-primary:hover {
  --bg: var(--accent-h);
  box-shadow: 0 16px 34px -12px var(--accent-glow), 0 0 0 1px var(--accent-glow);
}
.btn-ghost {
  --bg: transparent;
  --fg: var(--ink);
  border-color: var(--ink-12);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-ink { --bg: var(--ink); --fg: var(--paper); }
.btn-ink:hover { box-shadow: 0 16px 34px -14px rgba(10,10,10,0.3); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 17px 26px; font-size: 15.5px; }


/* ─── 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;
}
.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;
}
.hero-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(44px, 7.5vw, 110px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
  max-width: 18ch;
}
.hero-title .bd {
  font-family: var(--font-brand);
  font-weight: 900;
  color: var(--ink);
}
.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-sans);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-70);
}
.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; }

@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 {
  padding-block: 32px 16px;
  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(255,75,31,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(255,75,31,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; } }
