/* Cyberou homepage — implemented from "Homepage v3.dc.html" (claude.ai/design).
   Layout stays inline in index.html for 1:1 fidelity with the design file;
   this sheet carries base rules plus the hover/focus states the DC runtime
   expressed via style-hover / style-focus attributes. */

html { zoom: 0.9; }
html, body { margin: 0; background: #faf9f7; }
* { box-sizing: border-box; }
/* hidden attribute must win over inline display (e.g. display:flex forms) */
[hidden] { display: none !important; }
input::placeholder, textarea::placeholder { color: #8a8578; }

@keyframes heroPulse {
  from { box-shadow: 0 0 0 0 var(--pc, rgba(31,138,91,0.45)); }
  to   { box-shadow: 0 0 0 7px rgba(0,0,0,0); }
}

/* ── Hero mist backdrop ───────────────────────────────────────────
   The design's hero-mist.png exceeds the sync API's file-size cap, so
   the soft diffused mist is recreated here with layered gradients. */
.hero-mist {
  background:
    radial-gradient(52% 42% at 20% 16%, rgba(249,111,75,0.16), transparent 72%),
    radial-gradient(48% 38% at 79% 10%, rgba(217,154,42,0.13), transparent 70%),
    radial-gradient(64% 50% at 52% 32%, rgba(249,111,75,0.10), transparent 75%),
    radial-gradient(46% 42% at 34% 58%, rgba(192,71,42,0.07), transparent 75%),
    radial-gradient(40% 36% at 68% 48%, rgba(138,133,120,0.08), transparent 75%);
}

/* ── Announcement bar ─────────────────────────────────────────── */
.a-announce:hover { text-decoration: underline; }

/* ── Nav ──────────────────────────────────────────────────────── */
.nav-link:hover { color: #171717; }

/* Services dropdown: CSS hover on the wrapper (the menu's padding-top
   bridges the gap so it stays open while moving the pointer down). */
.svc .svc-menu { display: none; }
.svc:hover .svc-menu, .svc:focus-within .svc-menu { display: block; }
.svc:hover .svc-chev { transform: rotate(180deg); }
.dd-item:hover { background: #f5f4f1; color: #171717; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn-primary:hover { background: #e85c38; }
.btn-secondary-light:hover { border-color: #171717; background: #faf9f7; }
.btn-viewall:hover { background: #faf8f5; border-color: #b8b2a3; }
.cta-primary:hover {
  background: #e85c38;
  box-shadow: 0 18px 38px -8px rgba(249,111,75,0.65), 0 6px 14px -2px rgba(249,111,75,0.35);
}
.cta-ghost:hover { background: rgba(255,255,255,0.08); }

/* ── Client logo grid ─────────────────────────────────────────── */
.logo-img { opacity: 0.82; transition: opacity .15s; }
a:hover > span > .logo-img { opacity: 1; }
.cs-badge { transition: background .15s, color .15s, border-color .15s; }
a:hover .cs-badge { background: #171717; color: #ffffff; border-color: #171717; }

/* ── Cards ────────────────────────────────────────────────────── */
.card-hover { transition: box-shadow .15s, border-color .15s; }
.card-hover:hover { box-shadow: 0 16px 36px rgba(23,23,23,0.12); border-color: #d6d1c4; }

/* ── Pipeline output tiles ────────────────────────────────────── */
.output-tile { transition: background .15s, border-color .15s; }
.output-tile:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.24); }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid #f2efe9; }
.faq-item:last-child { border-bottom: none; }
.faq-item .faq-a { display: none; }
.faq-item.open .faq-a { display: block; }
.faq-chev { transition: transform .2s; }
.faq-item.open .faq-chev { transform: rotate(180deg); }

/* ── Modal ────────────────────────────────────────────────────── */
.modal-overlay { display: none; }
.modal-overlay.open { display: flex; }
.modal-close:hover { background: #ece9e3; }
.field:focus { border-color: #f96f4b; box-shadow: 0 0 0 3px rgba(249,111,75,0.15); outline: none; }
.interest-btn {
  text-align: left; border-radius: 14px; padding: 14px 16px; cursor: pointer;
  font-family: Inter, sans-serif; background: #ffffff; border: 1.5px solid #e0dcd3;
  transition: border-color .15s, background .15s;
}
.interest-btn.selected {
  background: #fff6f3; border: 1.5px solid #f96f4b;
  box-shadow: 0 0 0 3px rgba(249,111,75,0.12);
}

/* ── Case studies page ────────────────────────────────────────── */
.filter-chip {
  height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid #e6e2dc;
  background: #ffffff; color: #57534e; font-family: Inter, sans-serif; font-size: 14.5px;
  font-weight: 600; letter-spacing: -0.005em; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.filter-chip.active { background: #171717; color: #ffffff; border-color: #171717; }

/* ── Product page services index (highlighted 4th row) ───────────── */
.service-row-highlight:hover { background: #fcf0e8; }

/* ── Coverage gap page (dark theme) ──────────────────────────────── */
.nav-link-dark:hover { color: #ffffff; }
.logo-dark-hover:hover { opacity: 0.75; }
.svc-dark .svc-menu { display: none; }
.svc-dark:hover .svc-menu, .svc-dark:focus-within .svc-menu { display: block; }
.svc-dark:hover .svc-chev { transform: rotate(180deg); }

/* ── Contact page ─────────────────────────────────────────────── */
.contact-link { transition: color .15s; }
.contact-link:hover { color: #171717; }
.btn-outline { transition: background .15s; }
.btn-outline:hover { background: #faf9f7; }

/* ── Footer ───────────────────────────────────────────────────── */
.foot-link { color: rgba(255,255,255,0.85); transition: color .15s; }
.foot-link:hover { color: #ffffff; }
.foot-legal { color: rgba(255,255,255,0.45); transition: color .15s; }
.foot-legal:hover { color: #ffffff; }

/* Case studies v2 rows */
.case-row { transition: box-shadow .15s, border-color .15s; }
.case-row:hover { box-shadow: 0 16px 36px rgba(23,23,23,0.12); border-color: #d6d1c4; }
