/* Petrion AI — site styles (2026). Dark theme, same look as the original petrionai.com. */

:root {
  --bg: #0a0e17;
  --bg-2: #111827;
  --card: #111111;
  --card-2: #1a1f2e;
  --card-hover: #222838;
  --cyan: #00e5ff;
  --cyan-dim: #00b8d4;
  --cyan-glow: rgba(0, 229, 255, 0.15);
  --gradient-cyan: linear-gradient(135deg, #00e5ff, #00b8d4);
  --text: #f0f4f8;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --text-card: #e0e0e0;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-cyan: rgba(0, 229, 255, 0.3);
  --amber: #f5a524;
  --ok: #3ccf91;

  --font-display: 'Work Sans', 'Onest', system-ui, sans-serif;
  --font-body: 'Outfit', 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(2rem, 3.6vw, 3rem);
  --step-4: clamp(2.4rem, 5vw, 3.75rem);

  --wrap: 1280px;
  --gutter: clamp(16px, 3vw, 24px);
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
@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: var(--step-0); line-height: 1.6;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.2; letter-spacing: 0.04em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: var(--bg); padding: 8px 14px; border-radius: var(--radius-s); z-index: 1100; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 30px; border-radius: var(--radius-m); border: 2px solid transparent;
  font: 600 var(--step-0)/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.05em;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: box-shadow .2s, background-color .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--gradient-cyan); color: var(--bg); box-shadow: 0 0 20px rgba(0, 229, 255, 0.3); }
.btn-primary:hover { box-shadow: 0 0 30px rgba(0, 229, 255, 0.55); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--cyan); border-color: var(--cyan); }
.btn-ghost:hover { background: rgba(0, 229, 255, 0.1); color: var(--cyan); }
.btn-dark { background: var(--gradient-cyan); color: var(--bg); box-shadow: 0 0 20px rgba(0, 229, 255, 0.25); }
.btn-dark:hover { box-shadow: 0 0 30px rgba(0, 229, 255, 0.5); color: var(--bg); }
.btn-small { min-height: 44px; padding: 0 22px; font-size: var(--step--1); }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 14px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3)); transition: filter .3s; }
.brand:hover .brand-mark { filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.6)); }
.brand-name { height: 30px; width: auto; }
.main-nav { display: flex; gap: 0; margin-left: auto; }
.main-nav a {
  color: var(--text-2); text-decoration: none; font-size: var(--step--1); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 8px; white-space: nowrap; transition: color .2s;
}
.main-nav a:hover { color: var(--cyan); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.header-cta { white-space: nowrap; }
.lang-toggle { display: flex; gap: 2px; background: rgba(0, 229, 255, 0.05); border: 1px solid var(--line-cyan); border-radius: 999px; padding: 4px; }
.lang-btn {
  background: none; border: 0; color: var(--text-2); font: 600 0.75rem/1 var(--font-body); text-transform: uppercase;
  padding: 9px 12px; border-radius: 999px; cursor: pointer; transition: color .2s;
}
.lang-btn:hover:not(.active) { color: var(--cyan); }
.lang-btn.active { background: var(--cyan); color: var(--bg); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-cyan); color: var(--cyan); border-radius: var(--radius-m); width: 46px; height: 46px; cursor: pointer; }
.menu-toggle svg { margin: auto; }

@media (max-width: 1360px) {
  .main-nav {
    position: fixed; inset: 84px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line-cyan); display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: var(--step-0); }
  .menu-toggle { display: grid; }
  .header-tools { margin-left: auto; }
}
@media (max-width: 640px) { .header-cta { display: none; } }
@media (max-width: 520px) {
  .site-header .wrap { gap: 10px; min-height: 72px; }
  .main-nav { inset: 72px 0 auto 0; }
  .brand-name { height: 20px; }
  .brand-mark { width: 38px; height: 38px; }
  .lang-btn { padding: 8px 9px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; background: var(--bg); }
.section-white, .section-dark { background: var(--bg-2); }
.section-photo { position: relative; background-color: var(--bg); background-size: cover; background-position: center; background-attachment: fixed; }
.bg-solutions { background-image: linear-gradient(rgba(10, 14, 23, 0.45), rgba(10, 14, 23, 0.55)), url('../assets/images/opt/solutions-bg.webp'); }
.bg-contact { background-image: linear-gradient(90deg, rgba(10, 14, 23, 0.82) 0%, rgba(10, 14, 23, 0.45) 55%, rgba(10, 14, 23, 0.2) 100%), url('../assets/images/opt/contact-bg.webp'); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.section-head h2 {
  font-size: var(--step-3); background: var(--gradient-cyan); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--cyan);
}
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 1.125rem; }
.section-photo .section-head h2 { -webkit-text-fill-color: var(--cyan); text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7); }
.section-photo .section-head p { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--text);
  padding: clamp(64px, 9vw, 120px) 0; min-height: calc(100vh - 84px); display: flex; align-items: center;
  background-color: var(--bg);
  background-image: linear-gradient(90deg, rgba(10, 14, 23, 0.55) 0%, rgba(10, 14, 23, 0.2) 55%, rgba(10, 14, 23, 0.05) 100%), url('../assets/images/opt/hero-bg.webp');
  background-size: cover; background-position: center; background-attachment: fixed;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: var(--step-4); color: var(--cyan); max-width: 15ch; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 0, 0, 0.4); }
.hero-sub { margin-top: 22px; font-size: 1.25rem; color: #fff; max-width: 46ch; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 26px; font-size: var(--step--1); color: #fff; max-width: 50ch; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9); }
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero .wrap { grid-template-columns: 1fr; }
}

/* Call log card */
.call-log {
  background: rgba(17, 17, 17, 0.88); color: var(--text); border: 1px solid var(--line-cyan); border-radius: var(--radius-l);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 255, 0.1); overflow: hidden; backdrop-filter: blur(6px);
}
.call-log-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.call-log-head h2 { font-size: var(--step-0); letter-spacing: 0.02em; color: var(--cyan); }
.call-log-tag { font-size: 0.75rem; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.call-list { list-style: none; margin: 0; padding: 0; }
.call { display: grid; grid-template-columns: 56px 1fr; gap: 4px 14px; padding: 16px 22px; border-bottom: 1px solid var(--line-2); }
.call time { font-family: var(--mono); font-size: 0.8125rem; color: var(--text-2); padding-top: 2px; }
.call-who { font-weight: 600; }
.call-what { color: var(--text-2); font-size: var(--step--1); }
.call-done {
  grid-column: 2; margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  background: rgba(60, 207, 145, 0.14); color: #6ee7b0; font-size: var(--step--1); font-weight: 600; border-radius: 999px; padding: 4px 12px;
}
.call-done svg { flex-shrink: 0; }
.call-log-foot { display: flex; justify-content: space-between; gap: 12px; padding: 14px 22px; background: rgba(0, 229, 255, 0.05); font-size: var(--step--1); color: var(--text-2); }
.call-log-foot strong { color: var(--text); }
.call { opacity: 0; transform: translateY(8px); animation: call-in .5s ease forwards; }
.call:nth-child(1) { animation-delay: .3s; }
.call:nth-child(2) { animation-delay: .9s; }
.call:nth-child(3) { animation-delay: 1.5s; }
@keyframes call-in { to { opacity: 1; transform: none; } }

/* ---------- Problems ---------- */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.problem { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 30px; transition: border-color .3s, box-shadow .3s; }
.problem:hover { border-color: var(--line-cyan); box-shadow: 0 0 20px var(--cyan-glow); }
.problem h3 { font-size: var(--step-1); color: var(--cyan); }
.problem p { margin-top: 12px; color: var(--text-card); }
@media (max-width: 820px) { .problems { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.service:hover { border-color: var(--line-cyan); box-shadow: 0 0 20px var(--cyan-glow); }
.service-img { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; background: var(--bg); border-bottom: 1px solid var(--line); transition: transform .3s; }
.service:hover .service-img { transform: scale(1.04); }
.service-body { position: relative; z-index: 1; background: var(--card); padding: 28px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.service h3 { font-size: var(--step-1); color: var(--cyan); }
.service p { color: var(--text-card); font-size: 1rem; line-height: 1.7; flex-grow: 1; }
.service-price { font-weight: 600; color: var(--text); }
.service-price span { font-weight: 400; color: var(--text-2); }
.service-link { font-size: var(--step--1); font-weight: 600; color: var(--cyan); text-decoration: none; display: inline-flex; gap: 8px; width: fit-content; transition: gap .2s; }
.service-link:hover { gap: 12px; color: var(--cyan); }
.service-tag { align-self: flex-start; font-size: 0.75rem; font-weight: 600; color: var(--bg); background: var(--cyan); border-radius: 999px; padding: 3px 10px; text-transform: uppercase; letter-spacing: .04em; }
.service-featured { border-color: var(--line-cyan); }
.services-foot { margin-top: 28px; color: var(--text-2); font-size: var(--step--1); text-align: center; }
.services-foot a { font-weight: 600; }
@media (max-width: 1024px) { .services { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }

/* ---------- Forms (shared) ---------- */
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; align-content: start; }
.field > label, .field > legend { font-weight: 600; font-size: var(--step--1); color: var(--text); padding: 0; margin-bottom: 2px; }
.field-hint { font-size: 0.8125rem; color: var(--text-2); }
.select, .input, .textarea {
  width: 100%; min-height: 48px; border-radius: var(--radius-s); border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); font: 400 var(--step-0) var(--font-body); padding: 10px 12px;
}
.select:focus, .input:focus, .textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: transparent; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .two-col { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8125rem; color: var(--text-2); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--cyan); flex-shrink: 0; }
.form-status { font-size: var(--step--1); font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #ff8a80; }

/* ---------- Business Check ---------- */
.check { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.check-form { background: rgba(17, 17, 17, 0.88); border: 1px solid var(--line-cyan); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 32px); display: grid; gap: 22px; backdrop-filter: blur(6px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: var(--step--1); color: var(--text); cursor: pointer; user-select: none; }
.chip input:checked + span { background: var(--cyan); border-color: var(--cyan); color: var(--bg); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.check-result { border-radius: var(--radius-l); background: rgba(17, 17, 17, 0.88); border: 1px solid var(--line-cyan); color: var(--text); padding: clamp(20px, 3vw, 32px); backdrop-filter: blur(6px); }
.check-empty { color: var(--text-2); display: grid; gap: 12px; align-content: center; min-height: 280px; }
.check-empty h3 { color: var(--cyan); font-size: var(--step-1); }
.result-loss { background: rgba(245, 165, 36, 0.12); border-left: 4px solid var(--amber); padding: 14px 16px; border-radius: var(--radius-s); margin-bottom: 20px; }
.result-loss strong { font-size: var(--step-2); display: block; color: #ffd27a; font-family: var(--font-display); }
.result-loss p { font-size: var(--step--1); color: var(--text-card); margin-top: 4px; }
.check-result h3 { color: var(--cyan); }
.result-list { list-style: none; margin: 0; padding: 0; counter-reset: rec; display: grid; gap: 14px; }
.result-item { counter-increment: rec; display: grid; grid-template-columns: 32px 1fr; gap: 4px 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.result-item::before { content: counter(rec); grid-row: span 4; width: 28px; height: 28px; border-radius: 50%; background: var(--cyan); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: var(--step--1); }
.result-item h4 { font-size: var(--step-0); letter-spacing: .02em; }
.result-item p { font-size: var(--step--1); color: var(--text-2); }
.result-meta { font-size: var(--step--1); font-weight: 600; color: var(--cyan); }
.result-total { margin-top: 16px; font-size: var(--step--1); color: var(--text-2); }
.result-actions { margin-top: 20px; display: grid; gap: 12px; }
.result-actions form { display: grid; gap: 10px; }
@media (max-width: 900px) { .check { grid-template-columns: 1fr; } }

/* ---------- Work ---------- */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 30px; display: grid; gap: 12px; align-content: start; transition: border-color .3s, box-shadow .3s; }
.case:hover { border-color: var(--line-cyan); box-shadow: 0 0 20px var(--cyan-glow); }
.case-sector { font-size: var(--step--1); color: var(--text-2); }
.case-logo { width: 60px; height: 60px; object-fit: contain; border-radius: var(--radius-s); background: #fff; padding: 4px; }
.case h3 { font-size: var(--step-2); color: var(--cyan); }
.case p { color: var(--text-card); }
.case-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 0; }
.case-facts li { font-size: 0.8125rem; font-weight: 600; background: rgba(0, 229, 255, 0.08); border: 1px solid var(--line-cyan); border-radius: 999px; padding: 3px 12px; color: var(--text); }
.case a { font-weight: 600; font-size: var(--step--1); text-decoration: none; }
.case a::after { content: " →"; }
.case-lead { grid-column: 1 / -1; grid-template-columns: 1.2fr 1fr; gap: 12px 40px; border-color: var(--line-cyan); background: linear-gradient(180deg, rgba(0, 229, 255, 0.06), transparent 60%), var(--card); }
.case-lead .case-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-self: center; grid-row: 1 / span 4; grid-column: 2; }
.case-number strong { display: block; font-family: var(--font-display); font-size: var(--step-3); color: var(--cyan); font-weight: 700; }
.case-number span { font-size: 0.8125rem; color: var(--text-2); }
@media (max-width: 820px) {
  .work { grid-template-columns: 1fr; }
  .case-lead { grid-template-columns: 1fr; }
  .case-lead .case-numbers { grid-column: 1; grid-row: auto; }
}

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; text-align: center; }
.step { counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
  border: 2px solid var(--line-cyan); background: rgba(0, 229, 255, 0.06); color: var(--cyan); font: 700 2rem/1 var(--font-display);
}
.step h3 { font-size: var(--step-1); }
.step p { margin-top: 10px; color: var(--text-2); max-width: 36ch; margin-left: auto; margin-right: auto; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); }
.price-table caption { text-align: left; font: 700 var(--step-1)/1.2 var(--font-display); color: var(--cyan); padding: 0 0 16px; letter-spacing: .04em; }
.price-table th, .price-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { background: var(--card-2); font-size: var(--step--1); color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.price-table tbody th { font-weight: 600; width: 24%; color: var(--text); }
.price-table td { color: var(--text-2); font-size: var(--step--1); }
.price-table td.time { white-space: nowrap; }
.price-table td.price { color: var(--cyan); font-weight: 700; font-size: var(--step-0); white-space: nowrap; text-align: right; }
.price-table thead th:last-child { text-align: right; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table .row-featured th, .price-table .row-featured td { background: rgba(0, 229, 255, 0.06); }
.price-block + .price-block { margin-top: 48px; }
.price-notes { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.price-note { border-radius: var(--radius-l); padding: 26px; background: var(--card); border: 1px solid var(--line); }
.price-note h3 { font-size: var(--step-1); color: var(--cyan); }
.price-note p { margin-top: 10px; font-size: var(--step--1); color: var(--text-card); }
.price-note-founding { border-color: var(--line-cyan); background: linear-gradient(180deg, rgba(0, 229, 255, 0.08), transparent 70%), var(--card); }
.price-note-bg ul { margin: 12px 0 0; padding: 0; list-style: none; font-size: var(--step--1); display: grid; gap: 8px; }
.price-note-bg li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line-2); padding-bottom: 8px; color: var(--text-card); }
.price-note-bg li strong { color: var(--cyan); white-space: nowrap; }
@media (max-width: 760px) {
  .price-notes { grid-template-columns: 1fr; }
  .price-table thead { display: none; }
  .price-table tr { display: grid; grid-template-columns: 1fr auto; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .price-table th, .price-table td { padding: 0; border: 0; width: auto; }
  .price-table tbody th { width: auto; padding-right: 12px; }
  .price-table .row-featured { background: rgba(0, 229, 255, 0.06); }
  .price-table .row-featured th, .price-table .row-featured td { background: transparent; }
  .price-table td.desc { grid-column: 1 / -1; margin-top: 6px; }
  .price-table td.time { grid-column: 1 / -1; margin-top: 4px; font-size: 0.8125rem; }
  .price-table td.price { grid-row: 1; grid-column: 2; }
}

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.founder-photo { width: 140px; height: 177px; object-fit: cover; border-radius: var(--radius-l); margin-bottom: 28px; border: 2px solid var(--line-cyan); box-shadow: 0 0 25px var(--cyan-glow); }
.founder-quote { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; color: var(--text); letter-spacing: .01em; }
.founder-name { margin-top: 20px; color: var(--text-2); }
.founder-name strong { color: var(--cyan); }
.founder-facts { list-style: none; margin: 0; padding: 0; display: grid; }
.founder-facts li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2); color: var(--text-card); }
.founder-facts li:first-child { border-top: 1px solid var(--line-2); }
.founder-facts span { color: var(--cyan); font-size: var(--step--1); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.founder-links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 18px; font-size: var(--step--1); }
.founder-links a { font-weight: 600; }
@media (max-width: 820px) {
  .founder { grid-template-columns: 1fr; }
  .founder-facts li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Community ---------- */
.community { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(24px, 4vw, 48px); }
.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tool { display: grid; gap: 6px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--card); text-decoration: none; transition: border-color .3s, box-shadow .3s; }
.tool:hover { border-color: var(--line-cyan); box-shadow: 0 0 20px var(--cyan-glow); }
.tool strong { font-weight: 600; color: var(--cyan); }
.tool span { font-size: var(--step--1); color: var(--text-2); }
.social { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px; }
.social h3 { font-size: var(--step-1); color: var(--cyan); }
.social p { margin-top: 8px; font-size: var(--step--1); color: var(--text-2); }
.social ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.social a { display: flex; justify-content: space-between; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-s); text-decoration: none; font-weight: 600; font-size: var(--step--1); color: var(--text); }
.social a:hover { border-color: var(--line-cyan); color: var(--cyan); }
.social a span { color: var(--text-2); font-weight: 400; }
@media (max-width: 860px) { .community { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .tools { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 0 22px; transition: border-color .3s; }
.faq details[open] { border-color: var(--line-cyan); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; font-size: 1.125rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.6rem; font-weight: 400; color: var(--cyan); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--text-2); max-width: 70ch; }
.faq a { font-weight: 600; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.contact h2 { font-size: var(--step-3); color: var(--cyan); text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7); }
.contact-intro p { margin-top: 14px; color: #fff; font-size: 1.125rem; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85); }
.contact-direct { margin-top: 28px; display: grid; gap: 12px; }
.contact-direct a { color: var(--cyan); font-weight: 600; text-decoration: none; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.contact-direct span { display: block; font-size: var(--step--1); color: #fff; font-weight: 400; }
.contact-form { display: grid; gap: 16px; background: rgba(17, 17, 17, 0.9); border: 1px solid var(--line-cyan); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 32px); backdrop-filter: blur(6px); }
.contact-form .textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #070a11; color: var(--text-2); padding: 60px 0 32px; font-size: var(--step--1); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { color: var(--cyan); font-size: var(--step--1); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--text-2); }
.footer-grid a:hover { color: var(--cyan); }
.footer-brand p { margin-top: 14px; max-width: 36ch; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-base a { color: var(--text-2); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Simple content pages ---------- */
.page-hero { background: var(--bg-2); color: var(--text); padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; color: var(--cyan); }
.page-hero p { margin-top: 16px; color: var(--text-2); font-size: 1.125rem; max-width: 60ch; }
.prose { max-width: 780px; }
.prose h2 { font-size: var(--step-2); margin: 48px 0 14px; color: var(--cyan); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-card); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; margin: 12px 0 0; }
.prose strong { color: var(--text); }
.promise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.promise { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; }
.promise h3 { font-size: var(--step-1); color: var(--cyan); }
.promise p { margin-top: 8px; font-size: var(--step--1); }
@media (max-width: 640px) { .promise-grid { grid-template-columns: 1fr; } }

/* iOS and most phones ignore or mis-render fixed backgrounds, so they scroll there */
@media (max-width: 1024px), (hover: none) {
  .hero, .section-photo { background-attachment: scroll; }
}

/* Small screens: let long words and button labels wrap instead of widening the page */
.hero .wrap > *, .check > *, .contact > *, .founder > *, .community > *, .work > *, .case-numbers > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 600px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding: 12px 20px; }
  .hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.6rem); letter-spacing: 0.01em; hyphens: auto; }
  .section-head h2 { font-size: clamp(1.7rem, 7.5vw, 2.2rem); letter-spacing: 0.01em; }
  .hero-actions .btn { width: 100%; }
  .case { padding: 22px; }
  .case-number strong { font-size: clamp(1.4rem, 6.5vw, 2rem); }
}

/* ---------- AI consultant chat ---------- */
.chat-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 990; display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); color: var(--cyan); border: 1px solid var(--line-cyan); border-radius: 999px; padding: 12px 18px 12px 14px;
  font: 600 var(--step--1)/1 var(--font-body); text-transform: uppercase; letter-spacing: .05em; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.25); transition: box-shadow .2s;
}
.chat-launcher:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 255, 0.5); }
.chat-launcher svg { flex-shrink: 0; }
.chat-launcher[hidden] { display: none; }
.chat-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 100000; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100vh - 110px));
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-cyan); border-radius: var(--radius-l);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.15); overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); background: var(--bg); }
.chat-head img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.4)); }
.chat-head-text { flex: 1; min-width: 0; }
.chat-head-text strong { display: block; color: var(--cyan); font-family: var(--font-display); letter-spacing: .03em; }
.chat-head-text span { font-size: 0.75rem; color: var(--text-2); }
.chat-close { background: none; border: 1px solid var(--line-2); color: var(--text-2); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.chat-close:hover { color: var(--cyan); border-color: var(--line-cyan); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-intro { display: grid; gap: 12px; }
.chat-intro[hidden] { display: none; }
.chat-intro p { font-size: var(--step--1); color: var(--text-card); }
.chat-intro .input { min-height: 44px; font-size: 0.9375rem; }
.chat-intro .consent { font-size: 0.75rem; }
.chat-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 0.9375rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.bot { align-self: flex-start; background: var(--card-2); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg.user { align-self: flex-end; background: var(--gradient-cyan); color: var(--bg); border-bottom-right-radius: 4px; }
.chat-msg.note { align-self: center; background: none; color: var(--text-2); font-size: 0.75rem; text-align: center; padding: 2px 8px; }
.chat-typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 12px 14px; background: var(--card-2); border-radius: 14px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); opacity: .4; animation: chat-dot 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-chips button { background: transparent; color: var(--cyan); border: 1px solid var(--line-cyan); border-radius: 999px; padding: 6px 12px; font: 500 0.8125rem var(--font-body); cursor: pointer; text-align: left; }
.chat-chips button:hover { background: rgba(0, 229, 255, 0.1); }
.chat-foot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-2); background: var(--bg); }
.chat-foot[hidden] { display: none; }
.chat-foot textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; border-radius: var(--radius-m); border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: 400 0.9375rem/1.4 var(--font-body); padding: 11px 12px; }
.chat-foot textarea:focus { outline: 2px solid var(--cyan); border-color: transparent; }
.chat-send { width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: var(--radius-m); background: var(--gradient-cyan); color: var(--bg); cursor: pointer; display: grid; place-items: center; }
.chat-send:disabled { opacity: .5; cursor: default; }
.chat-small { font-size: 0.6875rem; color: var(--text-3); text-align: center; padding: 0 12px 10px; background: var(--bg); }
.chat-small a { color: var(--text-2); }
.result-chat { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line-cyan); border-radius: var(--radius-m); background: rgba(0, 229, 255, 0.05); }
.result-chat p { font-size: var(--step--1); color: var(--text-card); }
@media (max-width: 520px) {
  .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  .chat-launcher { right: 14px; bottom: 14px; padding: 12px; }
  .chat-launcher-text { display: none; }
}
