/* ============================================================
   Brief — andreybazykin.com
   Стили формы брифа
   ============================================================ */

:root {
  --bg: #0a0a0f;
  --bg-2: #11121a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --text: #f5f5f7;
  --text-dim: #9c9caa;
  --text-muted: #6b6b78;
  --accent: #b6ff3b;
  --accent-2: #7c5cff;
  --accent-3: #ff5cb3;
  --danger: #ff6b6b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ====== selection ====== */
::selection      { background: #b6ff3b; color: #0a0a0f; text-shadow: none; }
::-moz-selection { background: #b6ff3b; color: #0a0a0f; text-shadow: none; }
::target-text    { background: #b6ff3b; color: #0a0a0f; }

html, body { background: var(--bg); color: var(--text); font-family: 'Manrope', system-ui, -apple-system, sans-serif; min-height: 100%; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }

/* ====== animated background — slow drifting orbs ====== */
.bg-orbs { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.55; will-change: transform; }
.orb-1 { width: 520px; height: 520px; background: #7c5cff; top: -120px; left: -120px; animation: drift1 42s infinite ease-in-out; }
.orb-2 { width: 460px; height: 460px; background: #b6ff3b; bottom: -120px; right: -120px; animation: drift2 48s infinite ease-in-out; animation-delay: -12s; }
.orb-3 { width: 380px; height: 380px; background: #ff5cb3; top: 40%; left: 50%; animation: drift3 38s infinite ease-in-out; animation-delay: -20s; }

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20%      { transform: translate(180px, 120px) scale(1.1); }
  40%      { transform: translate(320px, 60px) scale(0.95); }
  60%      { transform: translate(240px, 260px) scale(1.05); }
  80%      { transform: translate(80px, 180px) scale(1.02); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(-220px, -140px) scale(1.08); }
  50%      { transform: translate(-360px, 80px) scale(0.92); }
  75%      { transform: translate(-140px, -280px) scale(1.04); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20%      { transform: translate(-200px, -160px) scale(1.12); }
  40%      { transform: translate(180px, -120px) scale(0.9); }
  60%      { transform: translate(260px, 200px) scale(1.06); }
  80%      { transform: translate(-160px, 220px) scale(0.96); }
}

/* respect users with motion sensitivity */
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
}
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ====== layout ====== */
.wrap { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; padding: 48px 28px 96px; }

.nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 64px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); animation: pulse 2.4s infinite ease-in-out; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1);} 50% { opacity: 0.6; transform: scale(0.85);} }
.nav-meta { color: var(--text-muted); font-size: 13px; }

/* ====== hero ====== */
.hero { margin-bottom: 56px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 24px; background: var(--surface); backdrop-filter: blur(10px); }
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 12px var(--accent); }

h1.hero-title { font-family: 'Unbounded', 'Manrope', sans-serif; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 24px; }
h1.hero-title .grad { background: linear-gradient(120deg, #b6ff3b 0%, #7c5cff 50%, #ff5cb3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1.hero-title em { font-style: normal; color: var(--text-muted); font-weight: 500; }

.hero-sub { font-size: 18px; color: var(--text-dim); max-width: 620px; line-height: 1.55; margin-bottom: 36px; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.stat { padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); backdrop-filter: blur(10px); transition: 0.3s; }
.stat:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.stat-num { font-family: 'Unbounded', sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-muted); }

.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; border: none; font-family: inherit; transition: 0.25s; text-decoration: none; }
.btn-primary { background: var(--accent); color: #0a0a0f; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(182, 255, 59, 0.5); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--border-hover); }
.arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ====== progress ====== */
.progress-shell { position: sticky; top: 16px; z-index: 10; margin-bottom: 32px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(17, 18, 26, 0.75); backdrop-filter: blur(16px); display: flex; align-items: center; gap: 18px; }
.progress-track { flex: 1; height: 6px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%); border-radius: 999px; width: 0%; transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 0 16px rgba(182, 255, 59, 0.5); }
.progress-label { font-size: 13px; color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress-label strong { color: var(--text); font-weight: 600; }

/* ====== sections ====== */
.section { padding: 36px 36px 40px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); backdrop-filter: blur(14px); margin-bottom: 22px; transition: 0.3s; }
.section:hover { border-color: rgba(255,255,255,0.14); }
.section-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.section-num { font-family: 'Unbounded', sans-serif; font-size: 26px; font-weight: 700; color: var(--text-muted); letter-spacing: -0.02em; }
.section-num .gradient-num { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-title-block h2 { font-family: 'Unbounded', sans-serif; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; line-height: 1.2; }
.section-title-block p { color: var(--text-muted); font-size: 14px; line-height: 1.5; }

/* ====== fields ====== */
.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field label.lbl { display: block; font-size: 15px; font-weight: 500; margin-bottom: 10px; color: var(--text); }
.field label.lbl .req { color: var(--accent-3); margin-left: 4px; }
.field .hint { display: block; color: var(--text-muted); font-size: 13px; margin-top: 8px; line-height: 1.5; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], textarea, select {
  width: 100%; padding: 14px 16px; background: rgba(0,0,0,0.25); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: inherit; font-size: 15px; transition: 0.25s; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(182, 255, 59, 0.12); background: rgba(0,0,0,0.4); }
input::placeholder, textarea::placeholder { color: var(--text-muted); }
textarea { resize: vertical; min-height: 110px; line-height: 1.55; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }

/* radio / checkbox cards */
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.2); cursor: pointer; transition: 0.2s; font-size: 14px; font-weight: 500; user-select: none;
}
.opt label:hover { border-color: var(--border-hover); background: rgba(0,0,0,0.35); }
.opt label::before {
  content: ''; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--text-muted); transition: 0.2s; position: relative;
}
.opt input[type="checkbox"] + label::before { border-radius: 5px; }
.opt input:checked + label { background: rgba(182, 255, 59, 0.08); border-color: var(--accent); color: var(--text); }
.opt input:checked + label::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(182, 255, 59, 0.15); }
.opt input[type="radio"]:checked + label::before {
  background: radial-gradient(circle, #0a0a0f 35%, var(--accent) 38%);
}
.opt input[type="checkbox"]:checked + label::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5L6.5 12L13 4.5' stroke='%230a0a0f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}

/* range / slider */
.range-shell { display: flex; align-items: center; gap: 16px; }
.range-shell input[type="range"] {
  flex: 1; -webkit-appearance: none; appearance: none; height: 6px; outline: none;
  border-radius: 999px;
  background: linear-gradient(to right,
    var(--accent) 0%, var(--accent-2) var(--val, 0%),
    rgba(255,255,255,0.08) var(--val, 0%), rgba(255,255,255,0.08) 100%);
  transition: background 0.1s linear;
}
.range-shell input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); cursor: pointer; box-shadow: 0 0 0 6px rgba(182, 255, 59, 0.15);
  transition: 0.2s; border: 2px solid #0a0a0f;
}
.range-shell input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(182, 255, 59, 0.22); }
.range-shell input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 2px solid #0a0a0f; border-radius: 50%; background: var(--accent); cursor: pointer; }
.range-shell input[type="range"]::-moz-range-track { background: transparent; height: 6px; }
.range-val { font-family: 'Unbounded', sans-serif; font-weight: 600; min-width: 110px; text-align: right; font-size: 16px; }
.range-val .currency { color: var(--text-muted); margin-left: 4px; font-size: 14px; }

/* color palette */
.palette { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { width: 46px; height: 46px; border-radius: 50%; cursor: pointer; transition: 0.2s; position: relative; background-clip: padding-box; box-shadow: inset 0 0 0 2px transparent; }
.swatch:hover { transform: scale(1.12); }
.swatch.active { box-shadow: inset 0 0 0 2px var(--text), 0 0 0 4px rgba(255,255,255,0.15); }

/* mood references */
.references-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ref-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; }
@media (max-width: 640px) { .ref-row { grid-template-columns: 1fr; } }
.ref-row button.rm {
  background: rgba(255, 107, 107, 0.08); color: var(--danger); border: 1px solid rgba(255,107,107,0.2);
  border-radius: 10px; padding: 10px 14px; cursor: pointer; font-family: inherit; font-size: 13px; transition: 0.2s;
}
.ref-row button.rm:hover { background: rgba(255, 107, 107, 0.15); }
.add-row { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 16px; border: 1px dashed var(--border-hover); border-radius: 999px; background: transparent; color: var(--text-dim); cursor: pointer; font-family: inherit; font-size: 13px; transition: 0.2s; }
.add-row:hover { color: var(--accent); border-color: var(--accent); }

/* ====== action bar ====== */
.action-bar {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between;
  margin-top: 36px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(182, 255, 59, 0.05));
}
.action-bar .info { display: flex; align-items: center; gap: 14px; }
.action-bar .ic { width: 44px; height: 44px; border-radius: 50%; background: rgba(182, 255, 59, 0.1); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.action-bar .txt { font-size: 14px; color: var(--text-dim); line-height: 1.4; }
.action-bar .txt strong { color: var(--text); display: block; margin-bottom: 2px; }

/* ====== modal ====== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; animation: fadeIn 0.3s ease; }
.modal-overlay.show { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--bg-2); border: 1px solid var(--border-hover); border-radius: var(--radius); max-width: 520px; width: 100%; padding: 36px; box-shadow: var(--shadow); animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); text-align: center; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: none; } }
.modal h3 { font-family: 'Unbounded', sans-serif; font-size: 26px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.modal p { color: var(--text-dim); font-size: 15px; line-height: 1.55; margin-bottom: 24px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.modal-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; }
.modal-icon.loading { background: rgba(124, 92, 255, 0.12); }
.modal-icon.success { background: rgba(182, 255, 59, 0.12); color: var(--accent); animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.modal-icon.error   { background: rgba(255, 107, 107, 0.12); color: var(--danger); animation: shake 0.5s ease; }
@keyframes bounceIn { 0% { transform: scale(0.4); opacity: 0;} 60% { transform: scale(1.1); opacity: 1;} 100% { transform: scale(1);} }
@keyframes shake { 0%, 100% { transform: translateX(0);} 25% { transform: translateX(-6px);} 75% { transform: translateX(6px);} }

/* checkmark draw animation */
.check-svg { width: 36px; height: 36px; }
.check-svg circle { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 200; stroke-dashoffset: 200; animation: drawCircle 0.5s ease forwards; }
.check-svg path    { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: drawCheck 0.3s 0.4s ease forwards; }
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck  { to { stroke-dashoffset: 0; } }

/* spinner */
.spinner { width: 44px; height: 44px; border: 3px solid rgba(255,255,255,0.08); border-top-color: var(--accent-2); border-radius: 50%; animation: spin 0.9s linear infinite; }
.spinner-sm { width: 16px; height: 16px; border: 2px solid rgba(10,10,15,0.25); border-top-color: #0a0a0f; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* button states */
.btn[disabled], .btn.is-loading { opacity: 0.7; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { background: var(--accent); }

/* honeypot hidden completely */
.hp { position: absolute !important; left: -9999px !important; top: -9999px !important; opacity: 0 !important; pointer-events: none !important; height: 0; width: 0; }

/* inline status badge under form */
.status-msg { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; display: none; }
.status-msg.show { display: block; animation: fadeIn 0.3s ease; }
.status-msg.error   { background: rgba(255, 107, 107, 0.08); border: 1px solid rgba(255,107,107,0.25); color: var(--danger); }
.status-msg.success { background: rgba(182, 255, 59, 0.08); border: 1px solid rgba(182,255,59,0.25); color: var(--accent); }

/* ====== consent block ====== */
.consent {
  margin-top: 28px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.18); display: flex; gap: 14px; align-items: flex-start;
}
.consent input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.consent .cbox {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px;
  border: 1.5px solid var(--text-muted); display: grid; place-items: center;
  margin-top: 1px; transition: 0.2s; background: rgba(0,0,0,0.25); cursor: pointer;
}
.consent .cbox svg { opacity: 0; transition: 0.2s; }
.consent input[type="checkbox"]:checked ~ .cbox { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(182, 255, 59, 0.15); }
.consent input[type="checkbox"]:checked ~ .cbox svg { opacity: 1; }
.consent label.consent-label { font-size: 13.5px; line-height: 1.55; color: var(--text-dim); cursor: pointer; user-select: none; }
.consent label.consent-label a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(182, 255, 59, 0.4); }
.consent label.consent-label a:hover { border-color: var(--accent); }
.consent.invalid { border-color: rgba(255, 107, 107, 0.5); background: rgba(255, 107, 107, 0.04); animation: shake 0.45s ease; }

/* ====== cookie banner ====== */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 90;
  max-width: 640px; margin: 0 auto;
  padding: 20px 22px; border: 1px solid var(--border-hover); border-radius: var(--radius);
  background: rgba(17, 18, 26, 0.92); backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
  display: none; gap: 18px; align-items: center;
  transform: translateY(120%); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.show { display: flex; transform: translateY(0); }
.cookie-banner .ic-wrap { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, rgba(182,255,59,0.18), rgba(124,92,255,0.15)); display: grid; place-items: center; font-size: 22px; }
.cookie-banner .txt { flex: 1; font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }
.cookie-banner .txt strong { color: var(--text); display: block; margin-bottom: 3px; font-size: 14px; }
.cookie-banner .txt a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); }
.cookie-banner .actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-banner .btn { padding: 11px 18px; font-size: 13px; }
@media (max-width: 720px) {
  .cookie-banner { flex-direction: column; align-items: stretch; padding: 18px; gap: 14px; }
  .cookie-banner .ic-wrap { display: none; }
  .cookie-banner .actions { flex-direction: row; }
  .cookie-banner .actions .btn { flex: 1; justify-content: center; }
}

/* footer */
.foot { margin-top: 60px; text-align: center; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.foot a { color: var(--text-dim); text-decoration: none; border-bottom: 1px dotted var(--text-muted); }
.foot a:hover { color: var(--accent); border-color: var(--accent); }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* mobile tweaks */
@media (max-width: 640px) {
  .wrap { padding: 28px 18px 64px; }
  .nav { margin-bottom: 36px; }
  .hero { margin-bottom: 36px; }
  .hero-stats { grid-template-columns: 1fr; }
  .section { padding: 26px 22px 28px; }
  .section-head { flex-direction: column; gap: 8px; align-items: flex-start; }
  .section-num { font-size: 20px; }
  .section-title-block h2 { font-size: 20px; }
  .action-bar { flex-direction: column; align-items: stretch; }
  .modal { padding: 26px; }
}

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }
