/* Baki AI — site styles. Brand: black, silver, gold (from the logo). */
/* Fonts (self-hosted, SIL Open Font License): Inter and Sora, Latin subset, variable weight. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/sora-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #07080a;
  --bg-alt: #0c0d10;
  --surface: #111317;
  --surface-2: #16191e;
  --line: #22262d;
  --line-soft: #1a1d22;
  --text: #f2f3f5;
  --muted: #a1a7b0;
  --dim: #828993;
  --silver: #c9cdd3;
  --gold: #ffc21a;
  --gold-2: #f5a800;
  --gold-soft: rgba(255, 194, 26, 0.12);
  --danger: #ff7a6b;
  --ok: #7ad58c;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --head: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.gold { color: var(--gold); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #000; padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-family: var(--head); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 15px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #111; box-shadow: 0 6px 24px rgba(255, 184, 0, 0.18); }
.btn-gold:hover { box-shadow: 0 8px 30px rgba(255, 184, 0, 0.3); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--silver); }
.btn-sm { padding: 10px 18px; font-size: 0.93rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 8, 10, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { height: 30px; width: auto; }
.brand-word { height: 17px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; color: var(--text); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Hero */
.hero { position: relative; padding: 96px 0 88px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(255, 194, 26, 0.13), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
  opacity: .55; pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; color: var(--dim); font-size: 0.93rem; }

/* Hero flow card (an illustrative automation, styled like a dashboard) */
.flow-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 194, 26, 0.05) inset;
}
.flow-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.flow-title { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; font-size: 1rem; }
.diamond { width: 12px; height: 12px; background: var(--gold); transform: rotate(45deg); border-radius: 2px; }
.flow-tag { font-size: 0.72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.flow-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.flow-steps::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.flow-steps li { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 10px 0; }
.flow-steps strong { display: block; font-weight: 600; font-size: 0.98rem; }
.flow-steps small { display: block; color: var(--dim); font-size: 0.85rem; }
.dot {
  position: relative; z-index: 1; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line);
}
.flow-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 0.88rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(122, 213, 140, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(122, 213, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(122, 213, 140, 0); } }

/* Each step lights up in turn, then the loop restarts. 10s cycle. */
.flow-steps li .dot { animation: dot-on 10s infinite; }
.flow-steps li > div { animation: text-on 10s infinite; }
.flow-steps li:nth-child(1) .dot, .flow-steps li:nth-child(1) > div { animation-delay: 0s; }
.flow-steps li:nth-child(2) .dot, .flow-steps li:nth-child(2) > div { animation-delay: 1.2s; }
.flow-steps li:nth-child(3) .dot, .flow-steps li:nth-child(3) > div { animation-delay: 2.4s; }
.flow-steps li:nth-child(4) .dot, .flow-steps li:nth-child(4) > div { animation-delay: 3.6s; }
.flow-steps li:nth-child(5) .dot, .flow-steps li:nth-child(5) > div { animation-delay: 4.8s; }
@keyframes dot-on {
  0%, 4% { background: var(--bg); border-color: var(--line); box-shadow: none; }
  8%, 80% { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 14px rgba(255, 194, 26, .55); }
  90%, 100% { background: var(--bg); border-color: var(--line); box-shadow: none; }
}
@keyframes text-on {
  0%, 4% { opacity: .6; }
  8%, 80% { opacity: 1; }
  90%, 100% { opacity: .6; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-steps li .dot, .flow-steps li > div, .pulse { animation: none; }
  .flow-steps li .dot { background: var(--gold); border-color: var(--gold); }
}

/* Pain points */
.pains { padding: 56px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg-alt); }
.pains-h { font-size: 1.3rem; color: var(--silver); text-align: center; margin-bottom: 26px; }
.pain-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pain-list li {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 18px 18px 18px 46px; position: relative; color: var(--muted); font-size: 0.97rem;
}
.pain-list li::before {
  content: ""; position: absolute; left: 18px; top: 22px; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--danger); opacity: .8;
}
.pain-list li::after { content: ""; position: absolute; left: 22px; top: 28px; width: 10px; height: 2px; background: var(--danger); transform: translateX(-2px) rotate(-45deg); opacity: .8; }
.pains-close { text-align: center; margin: 28px 0 0; font-family: var(--head); font-size: 1.15rem; font-weight: 600; color: var(--gold); }

/* Sections */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section h2 { max-width: 26em; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 44px; }
.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 30px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(255, 194, 26, 0.35); transform: translateY(-2px); }
.card p { color: var(--muted); }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--gold-soft); display: grid; place-items: center; margin-bottom: 20px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--silver); font-size: 0.95rem; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em; width: 11px; height: 6px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

/* Steps */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.steps p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.step-n { display: inline-block; font-family: var(--head); font-weight: 700; font-size: 0.85rem; color: var(--gold); letter-spacing: .1em; margin-bottom: 16px; padding: 5px 10px; border: 1px solid rgba(255, 194, 26, 0.35); border-radius: 999px; }

/* Pricing */
.price-card {
  display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 48px; align-items: center;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 194, 26, 0.10), transparent 55%), var(--surface);
  border: 1px solid var(--line); border-radius: 22px; padding: 56px;
}
.price-copy > p:not(.eyebrow) { color: var(--muted); max-width: 34em; }
.price-tag { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 30px; border-radius: 18px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); }
.from { color: var(--muted); font-size: 0.95rem; }
.amount { font-family: var(--head); font-weight: 700; font-size: 4rem; line-height: 1; color: var(--gold); margin-bottom: 18px; }

/* FAQ */
.faq { margin-top: 36px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 0 22px; }
.faq details[open] { border-color: var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 20px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.next-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.next-list li { display: flex; align-items: center; gap: 14px; color: var(--silver); }
.next-list span { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-weight: 700; font-size: .9rem; }
.quote-form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 34px; display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; font-size: 0.92rem; font-weight: 500; color: var(--silver); }
.field em { color: var(--gold); font-style: normal; }
.field small { color: var(--dim); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--body); color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 194, 26, 0.18); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.form-status { margin: 0; min-height: 1.4em; font-size: 0.95rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }
.form-fine { margin: -6px 0 0; color: var(--dim); font-size: 0.85rem; }
.form-fine a { color: var(--silver); }
.form-done { text-align: center; padding: 40px 10px; }
.form-done h3 { font-size: 1.5rem; }
.form-done p { color: var(--muted); margin: 0; }
.check { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--gold-soft); display: grid; place-items: center; }
.check svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); padding: 48px 0 28px; background: var(--bg-alt); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.slogan { margin: 14px 0 0; font-family: var(--head); font-size: 0.78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--silver); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--text); }
.footer-base { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-soft); color: var(--dim); font-size: 0.87rem; }

/* Header phone */
.site-nav a.nav-phone { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; white-space: nowrap; }
.nav-phone svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Local area */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.area-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; max-width: 32em; margin-bottom: 26px; }
.town-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.town-list li {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  font-weight: 600; color: var(--silver);
}
.town-list li::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); border-radius: 2px; }
.contact-phone { color: var(--silver); margin-top: 18px; }
.contact-phone a { color: var(--gold); font-weight: 600; text-decoration: none; white-space: nowrap; }
.contact-phone a:hover { text-decoration: underline; }
.footer-contact { margin: 10px 0 0; color: var(--muted); font-size: 0.92rem; }
.footer-contact a { color: var(--silver); text-decoration: none; white-space: nowrap; }
.footer-contact a:hover { color: var(--gold); }

/* Simple pages (privacy, thanks, 404) */
.page { padding: 80px 0 100px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page h2 { font-size: 1.35rem; margin-top: 2em; }
.page p, .page li { color: var(--muted); }
.page a { color: var(--gold); }
.page .updated { color: var(--dim); font-size: .92rem; }
.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.center-page p { color: var(--muted); }

/* Responsive */
@media (max-width: 1120px) {
  .site-nav { gap: 22px; }
}
@media (max-width: 1000px) {
  .area-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .flow-card { max-width: 520px; }
  .pain-list { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .price-card { grid-template-columns: 1fr; padding: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.6);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 16px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 60px; }
  .lede { font-size: 1.08rem; }
  .cta-row .btn { flex: 1 1 100%; }
  .hero-note { flex-direction: column; gap: 4px; }
  .hero-note span[aria-hidden] { display: none; }
  .section { padding: 72px 0; }
  .pain-list, .steps { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .price-card { padding: 28px 20px; }
  .amount { font-size: 3.2rem; }
  .field-row { grid-template-columns: 1fr; }
  .quote-form { padding: 22px 18px; }
  .brand-mark { height: 26px; }
  .brand-word { height: 14px; }
}
