/* Bulutsky AI — ai.bulutsky.com */

:root {
  --bg: #0B1430;
  --bg-2: #0F1A3A;
  --surface: #13204A;
  --surface-2: #19285A;
  --text: #EAF1FF;
  --muted: #9FB0D3;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #5BC6FF;
  --accent-ink: #0B1430;
  --sun: #FFC46B;
  --ok: #5EE0A7;
  --warn: #FFB36B;
  --shadow: 0 24px 60px rgba(2, 8, 30, 0.45);
  --radius: 18px;
  --radius-sm: 10px;
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F3F7FE;
  --bg-2: #E9F0FB;
  --surface: #FFFFFF;
  --surface-2: #F1F5FD;
  --text: #0F1B3A;
  --muted: #52618A;
  --line: rgba(15, 27, 58, 0.1);
  --accent: #0F7AD6;
  --accent-ink: #FFFFFF;
  --sun: #E08A00;
  --ok: #138A5B;
  --warn: #C45E00;
  --shadow: 0 24px 60px rgba(15, 27, 58, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1rem; margin-bottom: 0.8rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
svg { display: block; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.97rem; cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.lg { padding: 14px 24px; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; }
.icon-btn:hover { border-color: var(--accent); }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; text-underline-offset: 3px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.01em; }
.brand strong { color: var(--accent); font-weight: 800; }
.brand-mark { width: 30px; height: 30px; fill: var(--accent); }
.brand-sun { fill: var(--sun); }
.nav-links { display: flex; gap: 22px; margin-left: 16px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; padding: 5px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; cursor: pointer; color: var(--muted); }
.lang button.is-active { background: var(--surface-2); color: var(--text); }
.menu-btn { display: none; }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 10px 16px 18px; border-top: 1px solid var(--line); }
.mobile-menu a { padding: 10px 4px; text-decoration: none; color: var(--text); font-weight: 500; }
.mobile-menu.open { display: flex; }
.mobile-cta { display: flex; gap: 10px; margin-top: 10px; }
.mobile-cta .btn { flex: 1; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.sky {
  position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 50% at 20% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(40% 40% at 85% 20%, color-mix(in srgb, var(--sun) 16%, transparent), transparent 70%);
  filter: blur(20px);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: 0.82rem; font-weight: 600;
}
.chip-claude { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 30px; }
.hero-facts { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font-family: var(--font-display); font-size: 1.25rem; }
.hero-facts span { color: var(--muted); font-size: 0.88rem; }

/* Chat */
.chat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 520px; overflow: hidden;
}
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-title { display: flex; align-items: center; gap: 12px; }
.chat-title small { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; color: var(--muted); font-size: 0.78rem; line-height: 1.3; }
.avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; font-family: var(--font-display); }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.chat-body { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: 380px; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: 0.95rem; line-height: 1.5; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg.ai .who { display: block; font-size: 0.72rem; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.msg.typing { color: var(--muted); font-style: italic; }
.chat-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 10px; }
.chat-chips button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 11px; font-size: 0.8rem; cursor: pointer; color: var(--text); }
.chat-chips button:hover { border-color: var(--accent); }
.chat-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; font-size: 0.95rem; }
.chat-note { margin: 0; padding: 0 16px 12px; font-size: 0.74rem; color: var(--muted); }

/* Strip */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; }
.strip-inner { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.strip p { margin: 0; color: var(--muted); font-size: 0.92rem; max-width: 60ch; }
.strip-list { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--font-display); font-weight: 700; }
.strip-list li { opacity: 0.85; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 64ch; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Features */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.reverse .feature-text { order: 2; }
.feature-text p { color: var(--muted); }
.model-chip { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.ticks li { position: relative; padding-left: 26px; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 25%, transparent); border: 2px solid var(--ok); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.panel-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.panel-row:last-of-type { border-bottom: 0; }
.panel-foot { margin-top: 10px; font-size: 0.82rem; color: var(--muted); }
.tag { flex: 0 0 auto; min-width: 48px; text-align: center; font-size: 0.72rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); }
.tag.ok { color: var(--ok); }
.tag.warn { color: var(--warn); }
.score { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.score span { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--sun); line-height: 1; }
.score small { color: var(--muted); }

/* Pipeline */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.pipeline li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.pipeline p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.step { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 800; margin-bottom: 14px; }

/* Stack */
.stack-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.stack-grid p { color: var(--muted); }
.stack-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stack-list li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.stack-list strong { font-family: var(--font-display); }
.stack-list span { color: var(--muted); font-size: 0.88rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan .ticks { flex: 1; }
.price { display: flex; flex-direction: column; gap: 2px; }
.price > span { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.price > span small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price > small { color: var(--muted); font-size: 0.85rem; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.trust-grid > div p { color: var(--muted); }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.trust-list h3 { font-size: 1.1rem; }
.trust-list p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* FAQ */
.faq-wrap { max-width: 760px; }
details { border-bottom: 1px solid var(--line); padding: 6px 0; }
summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-family: var(--font-display); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 0 0 14px; }

/* CTA */
.cta { padding: 96px 0; }
.cta-inner { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 56px 32px; text-align: center; box-shadow: var(--shadow); }
.cta p { color: var(--muted); max-width: 52ch; margin-inline: auto; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-note { color: var(--muted); font-size: 0.88rem; margin: 12px 0 0; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a, .footer-col .linklike { color: var(--muted); text-decoration: none; font-size: 0.95rem; text-align: left; }
.footer-col a:hover, .footer-col .linklike:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; flex-wrap: wrap; }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(4, 10, 30, 0.6); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
.modal-card p { color: var(--muted); font-size: 0.95rem; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.modal-foot { margin: 16px 0 0; font-size: 0.9rem; }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-size: 0.95rem; padding: 11px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2); color: var(--text); width: 100%; }
.form textarea { resize: vertical; }
.form-msg { margin: 0; font-size: 0.88rem; min-height: 1.2em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--warn); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: 0.9rem; box-shadow: var(--shadow); transition: opacity 0.2s, transform 0.2s; z-index: 95; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid, .feature, .stack-grid, .trust-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature.reverse .feature-text { order: 0; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 44px 0 40px; }
  .section { padding: 60px 0; }
  .pipeline, .stack-list, .trust-list, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .chat { min-height: 460px; }
  .hero-facts { gap: 18px; }
  .cta-inner { padding: 40px 20px; }
  .modal-card { padding: 22px; }
  .strip-list { gap: 12px; font-size: 0.9rem; }
}
