/*
Theme Name: RUFP
Theme URI: https://rufp.ru
Author: RUFP team
Author URI: https://rufp.ru
Description: Тема для лендинга RUFP — AI coding agent для VS Code. Тёплый dark, терракотовый акцент (#d97757), Inter Tight + JetBrains Mono. Conversion-focused, SEO-ready.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: All rights reserved
Text Domain: rufp
*/

/* ═══════════════════════════════════════════════════════════════
   RUFP Landing — токены и компоненты
   Палитра: Anthropic-like, тёплый dark с терракотовым акцентом
   (продолжает семью плагина: --rufp-accent #d97757).
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* — Colors — */
  --bg:           #0e0d0c;
  --bg-elev:      #16140f;
  --bg-card:      #1a1814;
  --bg-soft:      #221f19;
  --line:         rgba(255, 245, 230, 0.08);
  --line-strong:  rgba(255, 245, 230, 0.14);

  --text:         #f5f1ea;
  --text-soft:    #c8c1b4;
  --text-muted:   #8e887d;
  --text-faint:   #6b665d;

  --accent:       #d97757;
  --accent-hov:   #e58767;
  --accent-deep:  #b85f43;
  --accent-soft:  rgba(217, 119, 87, 0.12);
  --accent-line:  rgba(217, 119, 87, 0.32);

  --success:      #7eb486;
  --warn:         #d9a35e;
  --danger:       #d96550;

  /* — Typography — */
  --font-sans: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --fs-display: clamp(2.6rem, 5.4vw, 4.6rem);
  --fs-h2:      clamp(1.9rem, 3.4vw, 2.75rem);
  --fs-h3:      clamp(1.05rem, 1.4vw, 1.2rem);
  --fs-lead:    clamp(1.05rem, 1.25vw, 1.25rem);
  --fs-body:    1rem;
  --fs-sm:      0.875rem;
  --fs-xs:      0.75rem;

  --lh-tight:   1.08;
  --lh-snug:    1.25;
  --lh-body:    1.55;
  --lh-relaxed: 1.7;

  /* — Spacing — */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* — Radii — */
  --r-sm: 6px;  --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-2xl: 28px;

  /* — Shadows / glows — */
  --sh-card:   0 1px 0 rgba(255,245,230,0.04) inset, 0 6px 24px rgba(0,0,0,0.35);
  --sh-pop:    0 16px 60px rgba(0,0,0,0.55);
  --sh-accent: 0 8px 32px rgba(217, 119, 87, 0.22);

  /* — Layout — */
  --container: 1240px;
  --container-narrow: 880px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ─── Reset / base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent-soft); color: var(--text); }

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(60% 40% at 78% -10%, rgba(217,119,87,0.10), transparent 60%),
    radial-gradient(50% 35% at 8% 8%, rgba(217,119,87,0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Container ─── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); position: relative; z-index: 1; }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-5); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  font-size: 14.5px; font-weight: 500; letter-spacing: -0.005em;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary {
  background: var(--accent);
  color: #1a0f08;
  box-shadow: var(--sh-accent);
}
.btn-primary:hover { background: var(--accent-hov); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); background: var(--accent-deep); }
.btn-primary[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--bg-soft); border-color: var(--line-strong); }
.btn-secondary:active { background: var(--bg-card); }

.btn-ghost {
  background: transparent; color: var(--text-soft);
  height: 36px; padding: 0 12px;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-soft); }

.btn-lg { height: 52px; padding: 0 28px; font-size: 15.5px; border-radius: var(--r-lg); }
.btn-xl { height: 60px; padding: 0 36px; font-size: 17px; border-radius: var(--r-lg); }

.btn .ico { width: 16px; height: 16px; flex-shrink: 0; }

/* ═══════════════════════ HEADER ═══════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 80;
  height: 64px;
  display: flex; align-items: center;
  background: transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), backdrop-filter 0.25s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(14, 13, 12, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: var(--s-7);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
}
.brand-mark {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1em;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--text);
  display: inline-block;
}
.brand-mark .br { color: var(--accent); }
.brand-mark .ltr { padding: 0 0.04em; }
.brand-word {
  font-family: 'Space Grotesk', var(--font-sans);
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
  display: inline-block;
}
.nav { display: flex; gap: var(--s-6); flex: 1; }
.nav a {
  font-size: 14px; color: var(--text-soft);
  transition: color 0.15s var(--ease);
}
.nav a:hover { color: var(--text); }
.header-actions { display: flex; gap: var(--s-3); align-items: center; }

.burger { display: none; width: 36px; height: 36px; border-radius: 8px; align-items: center; justify-content: center; }
.burger:hover { background: var(--bg-soft); }
.burger svg { width: 20px; height: 20px; }

/* ═══════════════════════ HERO ═══════════════════════ */
.hero {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 clamp(64px, 8vw, 110px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: var(--s-5);
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(217,119,87,0.18); }
h1.hero-h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 var(--s-5);
  text-wrap: balance;
}
h1.hero-h1 .accent { color: var(--accent); }
h1.hero-h1 .mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: -0.02em; }
.hero-lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-snug);
  color: var(--text-soft);
  margin: 0 0 var(--s-7);
  max-width: 600px;
  text-wrap: pretty;
}
.hero-cta { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-7); }
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 4px var(--s-4);
  font-size: 13px;
  color: var(--text-muted);
  align-items: center;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 6px; }
.trust-strip .sep { color: var(--text-faint); margin: 0 2px; }
.trust-strip .check { color: var(--accent); width: 14px; height: 14px; }
.trust-strip-row2 {
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* ─── IDE MOCKUP ─── */
.ide {
  background: #0a0908;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,245,230,0.05) inset,
    0 30px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(217,119,87,0.05);
  position: relative;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: #cfc7b6;
  transform: perspective(1800px) rotateY(-2.5deg) rotateX(1deg);
  transform-origin: center center;
}
.ide-titlebar {
  height: 30px;
  background: linear-gradient(180deg, #1a1714, #141210);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 12px; gap: 8px;
  flex-shrink: 0;
}
.ide-dots { display: flex; gap: 6px; }
.ide-dots span { width: 11px; height: 11px; border-radius: 50%; background: #2c2620; }
.ide-dots span:nth-child(1) { background: #d96550; }
.ide-dots span:nth-child(2) { background: #d9a35e; }
.ide-dots span:nth-child(3) { background: #7eb486; }
.ide-title {
  flex: 1; text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px; color: var(--text-faint);
}
.ide-body { display: grid; grid-template-columns: 44px 1fr 280px; min-height: 460px; }

.ide-sidebar {
  background: #0d0b09;
  border-right: 1px solid var(--line);
  padding: 10px 0; display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.ide-sidebar .icon {
  width: 28px; height: 28px; border-radius: 6px;
  display: grid; place-items: center;
  color: var(--text-faint);
  position: relative;
}
.ide-sidebar .icon svg { width: 18px; height: 18px; }
.ide-sidebar .icon.active {
  background: var(--bg-soft); color: var(--text);
}
.ide-sidebar .icon.rufp {
  background: var(--accent);
  color: #1a0f08;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
}
.ide-sidebar .icon.rufp::after {
  content: ''; position: absolute; left: -4px; top: 6px; bottom: 6px; width: 2px; background: var(--accent);
  border-radius: 2px;
}

.ide-editor { padding: 14px 18px 18px; min-width: 0; overflow: hidden; }
.ide-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--line);
  margin: -14px -18px 14px;
  font-size: 12px; color: var(--text-muted);
}
.ide-tabs .tab { padding: 9px 14px; border-right: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.ide-tabs .tab.active { background: #0a0908; color: var(--text); }
.ide-tabs .tab.active::before { content: ''; position: absolute; }
.ide-tabs .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.ide-code { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
.ide-code .ln { color: #4a463e; text-align: right; user-select: none; }
.ide-code .line { white-space: pre; min-height: 1.55em; }
.ide-code .line.add { background: rgba(126,180,134,0.10); margin: 0 -18px; padding: 0 18px; position: relative; }
.ide-code .line.del { background: rgba(217,101,80,0.10); margin: 0 -18px; padding: 0 18px; color: #b58a82; }
.ide-code .line.add::before { content: '+'; position: absolute; left: 4px; color: #7eb486; }
.ide-code .line.del::before { content: '−'; position: absolute; left: 4px; color: #d96550; }
.ide-code .ln.add { color: #7eb486; }
.ide-code .ln.del { color: #d96550; }

.s-key  { color: #d97757; }
.s-fn   { color: #d9a35e; }
.s-str  { color: #a3b88a; }
.s-num  { color: #cf9d7a; }
.s-com  { color: #5e574b; font-style: italic; }
.s-pun  { color: #8e887d; }
.s-prop { color: #c8c1b4; }

.ide-panel {
  background: #0c0a08;
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  font-family: var(--font-sans);
  font-size: 12.5px;
}
.ide-panel-h {
  height: 32px; padding: 0 12px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase;
  flex-shrink: 0;
}
.ide-panel-h .pill { margin-left: auto; padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); font-size: 10px; letter-spacing: 0.04em; }
.ide-panel-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.ide-msg {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text-soft);
  line-height: 1.5;
}
.ide-msg .who { font-size: 11px; color: var(--text-faint); margin-bottom: 4px; font-family: var(--font-mono); }
.ide-msg.user { background: transparent; border-color: var(--accent-line); }
.ide-msg.user .who { color: var(--accent); }

.ide-plan {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.ide-plan-h { padding: 10px 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; }
.ide-plan-h .pill-plan { margin-left: auto; background: var(--accent); color: #1a0f08; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.ide-plan ol { margin: 0; padding: 8px 12px 10px 28px; color: var(--text-soft); font-size: 12px; line-height: 1.6; }
.ide-plan li::marker { color: var(--accent); font-family: var(--font-mono); }

.ide-tool {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--text-soft);
}
.ide-tool .ico { width: 14px; height: 14px; color: var(--accent); }
.ide-tool .lab { color: var(--text-faint); }
.ide-tool .v { color: var(--text); }

.ide-stream {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
}
.ide-stream .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.4; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.1); } }

/* ═══════════════════════ SECTION primitives ═══════════════════════ */
.section {
  padding: clamp(72px, 9vw, 128px) 0;
  position: relative;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.section-h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: var(--lh-snug);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
  max-width: 880px;
}
.section-lead {
  font-size: var(--fs-lead);
  color: var(--text-soft);
  line-height: var(--lh-snug);
  max-width: 720px;
  margin: 0 0 var(--s-8);
  text-wrap: pretty;
}
.section-head { margin-bottom: var(--s-8); }

.section-contrast {
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(217,119,87,0.08), transparent 60%),
    var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ═══════════════════════ ACCESS ═══════════════════════ */
.access-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.access-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-7) var(--s-5) var(--s-5);
  position: relative;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.access-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.access-card .icn {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: var(--s-5);
}
.access-card .icn svg { width: 22px; height: 22px; }
.access-card h3 {
  font-size: 19px; font-weight: 600; letter-spacing: -0.018em;
  margin: 0 0 10px; line-height: 1.3;
}
.access-card p {
  margin: 0; color: var(--text-soft); line-height: var(--lh-body); font-size: 14.5px;
}
.access-after {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 15px;
  text-align: center;
  max-width: 720px; margin-left: auto; margin-right: auto;
}

/* ═══════════════════════ STEPS ═══════════════════════ */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-4);
}
.steps::before {
  content: ''; position: absolute; top: 28px; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent);
  z-index: 0;
}
.step {
  position: relative; z-index: 1;
  padding: 0 8px;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--s-5);
  position: relative;
}
.step-num::after {
  content: ''; position: absolute; inset: -4px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  opacity: 0.5;
}
.step h3 {
  font-size: 16px; font-weight: 600; letter-spacing: -0.015em;
  margin: 0 0 8px; line-height: 1.3;
}
.step p {
  margin: 0; color: var(--text-soft); font-size: 13.5px; line-height: 1.55;
}

/* ═══════════════════════ FEATURES ═══════════════════════ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-6) var(--s-5);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.feature:hover { border-color: var(--line-strong); background: var(--bg-soft); }
.feature .icn {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.feature .icn svg { width: 18px; height: 18px; }
.feature h3 {
  font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.015em;
  margin: 0 0 8px; line-height: 1.3;
}
.feature p {
  margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.55;
}

/* ═══════════════════════ FOR-WHOM ═══════════════════════ */
.persons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-4);
}
.person {
  grid-column: span 2;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  display: flex; gap: var(--s-4); align-items: flex-start;
  transition: border-color 0.2s var(--ease);
}
.person:hover { border-color: var(--line-strong); }
.person .icn {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--accent);
}
.person .icn svg { width: 20px; height: 20px; }
.person h3 {
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.012em;
  margin: 0 0 6px; line-height: 1.3;
}
.person p {
  margin: 0; color: var(--text-soft); font-size: 13.5px; line-height: 1.55;
}
.person.special {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(217,119,87,0.06), transparent 60%), var(--bg-card);
}
.person.special .icn { background: var(--accent-soft); border-color: var(--accent-line); }
.persons .person:nth-child(4) { grid-column: span 3; }
.persons .person:nth-child(5) { grid-column: span 3; }

/* ═══════════════════════ WHY ═══════════════════════ */
.why-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3) var(--s-7);
}
.why-item {
  display: flex; gap: var(--s-4); align-items: flex-start;
  padding: var(--s-4) 0;
  border-top: 1px solid var(--line);
}
.why-item:nth-child(2) { border-top-color: var(--line); }
.why-item .icn {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: grid; place-items: center;
  color: var(--accent);
  margin-top: 2px;
}
.why-item .icn svg { width: 14px; height: 14px; }
.why-item h3 {
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em;
  margin: 0 0 4px; line-height: 1.3;
  color: var(--text);
}
.why-item p {
  margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.55;
}

/* ═══════════════════════ TEAM ═══════════════════════ */
.team {
  max-width: 720px; margin: 0 auto;
  text-align: left;
}
.team .section-h2 { text-align: left; }
.team-text p {
  font-size: 17px;
  line-height: var(--lh-relaxed);
  color: var(--text-soft);
  margin: 0 0 var(--s-5);
  text-wrap: pretty;
}
.team-cta {
  margin-top: var(--s-6);
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
  font-size: 14.5px; font-weight: 500;
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 2px;
}
.team-cta:hover { color: var(--accent-hov); border-bottom-color: var(--accent-hov); }

/* ═══════════════════════ BLOG ═══════════════════════ */
.blog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-5); margin-bottom: var(--s-7); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.blog-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.blog-cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1f1b15, #15120e);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.blog-cover svg.deco { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.blog-cover .tag {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.04em;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(14,13,12,0.6); color: var(--accent);
  border: 1px solid var(--accent-line);
  backdrop-filter: blur(6px);
}
.blog-body { padding: var(--s-5) var(--s-5) var(--s-6); }
.blog-meta {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--text-faint);
  display: flex; gap: 8px; align-items: center;
  margin-bottom: var(--s-3);
}
.blog-card h3 {
  font-size: 18px; font-weight: 600; letter-spacing: -0.018em;
  line-height: 1.3; margin: 0 0 10px;
}
.blog-card p {
  margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.55;
}

/* ═══════════════════════ FAQ ═══════════════════════ */
.faq {
  max-width: 880px; margin: 0 auto;
}
details.faq-item {
  border-top: 1px solid var(--line);
  padding: 0;
}
details.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
details.faq-item summary {
  padding: var(--s-5) 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.012em;
  user-select: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary:hover { color: var(--accent); }
details.faq-item summary .toggle {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--text-muted);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
details[open].faq-item summary .toggle {
  transform: rotate(45deg);
  border-color: var(--accent);
  color: var(--accent);
}
details.faq-item .ans {
  padding: 0 0 var(--s-5);
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: var(--lh-relaxed);
  max-width: 740px;
  text-wrap: pretty;
}

/* ═══════════════════════ FINAL CTA ═══════════════════════ */
.final-cta {
  text-align: center;
  padding: clamp(96px, 12vw, 160px) 0;
  background:
    radial-gradient(60% 80% at 50% 100%, rgba(217,119,87,0.18), transparent 70%),
    radial-gradient(40% 60% at 50% 0%, rgba(217,119,87,0.06), transparent 70%),
    var(--bg-elev);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.final-cta::after {
  content: ''; position: absolute;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: 80%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line) 40%, var(--accent-line) 60%, transparent);
}
.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: var(--lh-snug);
  margin: 0 auto var(--s-5);
  max-width: 880px;
  text-wrap: balance;
}
.final-cta .lead {
  font-size: var(--fs-lead);
  color: var(--text-soft);
  margin: 0 auto var(--s-7);
  max-width: 560px;
  text-wrap: pretty;
}

/* ═══════════════════════ FOOTER ═══════════════════════ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: var(--s-9) 0 var(--s-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-8);
}
.footer-brand .brand { margin-bottom: var(--s-4); }
.footer-brand p {
  font-family: var(--font-mono);
  font-size: 12.5px; color: var(--text-faint);
  margin: 0; max-width: 260px; line-height: 1.5;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--s-4);
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px; color: var(--text-soft);
  transition: color 0.15s var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: var(--s-5);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--text-faint);
}

/* ═══════════════════════ MOBILE MENU OVERLAY ═══════════════════════ */
.mob-overlay {
  position: fixed; inset: 0;
  background: rgba(14, 13, 12, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 90;
  display: none;
  flex-direction: column;
  padding: 64px var(--s-5) var(--s-5);
}
.mob-overlay.open { display: flex; }
.mob-overlay-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 8px;
  display: grid; place-items: center;
}
.mob-overlay-close:hover { background: var(--bg-soft); }
.mob-overlay nav {
  display: flex; flex-direction: column; gap: 0;
  margin-top: var(--s-5);
}
.mob-overlay nav a {
  font-size: 22px; font-weight: 500;
  color: var(--text);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
}
.mob-overlay nav a:hover { color: var(--accent); }
.mob-overlay .mob-cta {
  margin-top: var(--s-6);
}

/* ═══════════════════════ BLOG / SINGLE / PAGE ═══════════════════════ */
.content-section { padding: clamp(48px, 6vw, 96px) 0; }
.content-section .container { max-width: 760px; }
.content-section h1 {
  font-size: var(--fs-h2);
  font-weight: 600; letter-spacing: -0.025em;
  line-height: var(--lh-snug);
  margin: 0 0 var(--s-5);
  text-wrap: balance;
}
.content-section h2 {
  font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em;
  margin: var(--s-7) 0 var(--s-3);
}
.content-section h3 {
  font-size: 1.2rem; font-weight: 600;
  margin: var(--s-6) 0 var(--s-3);
}
.content-section p { margin: 0 0 var(--s-4); color: var(--text-soft); line-height: var(--lh-relaxed); }
.content-section a { color: var(--accent); border-bottom: 1px solid var(--accent-line); }
.content-section a:hover { color: var(--accent-hov); border-bottom-color: var(--accent-hov); }
.content-section ul, .content-section ol { margin: 0 0 var(--s-4); padding-left: var(--s-5); color: var(--text-soft); }
.content-section li { margin-bottom: var(--s-2); line-height: var(--lh-relaxed); }
.content-section code {
  font-family: var(--font-mono);
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  font-size: 0.9em;
}
.content-section pre {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4);
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
}
.content-section pre code { background: transparent; border: 0; padding: 0; }
.content-section blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--s-3) var(--s-4);
  margin: var(--s-5) 0;
  color: var(--text-soft);
  background: var(--bg-card);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.post-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: var(--s-4);
}

.post-list {
  display: grid; gap: var(--s-5);
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}
.post-list .blog-card {
  display: block;
}

.page-header {
  text-align: center;
  padding: clamp(64px, 8vw, 120px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.page-header h1 { margin: 0; }

/* ═══════════════════════ RESPONSIVE ═══════════════════════ */
@media (max-width: 1080px) {
  .ide-body { grid-template-columns: 36px 1fr 240px; }
  .features, .access-cards, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .persons { grid-template-columns: repeat(2, 1fr); }
  .persons .person { grid-column: span 1; }
  .persons .person:nth-child(4), .persons .person:nth-child(5) { grid-column: span 1; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-4); }
  .steps::before { display: none; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .header-actions .btn-secondary { display: none; }
  .burger { display: inline-flex; }

  .hero-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .ide { transform: none; }
  .ide-body { grid-template-columns: 36px 1fr; min-height: 360px; }
  .ide-panel { display: none; }

  .features, .access-cards, .blog-grid, .persons { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .footer-brand { grid-column: span 2; }
  .blog-head { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: var(--s-3); align-items: flex-start; }

  details.faq-item summary { font-size: 15.5px; }

  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
