:root {
  --bg: #1a1d21;
  --bg-deep: #14171a;
  --flame: #ff5a2e;
  --flame-light: #ffb16a;
  --text-dim: rgba(230, 225, 220, 0.68);
  --border: rgba(255, 255, 255, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; min-height: 100%;
  background: var(--bg);
  overflow-x: hidden;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #f2efe9;
}
body { position: relative; }
a { color: inherit; text-decoration: none; }

#embers { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 80; }

/* ================= HEADER + NAV DRAWER ================= */
header.site-header {
  position: relative; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 6vw;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.04em; font-size: 1.05rem; }
.logo-mark { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; position: relative; }
.logo-mark svg { width: 34px; height: 34px; }
.logo-mark-img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
.logo .sub { display: block; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.25em; color: var(--text-dim); margin-top: 2px; }

.header-right { display: flex; align-items: center; gap: 18px; }
@media (max-width: 560px) { .header-right { gap: 12px; } }

.header-phone {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.85rem; font-weight: 700; color: #f2efe9;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.header-phone svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--flame-light); }
.header-phone:hover { color: var(--flame-light); }
@media (max-width: 560px) {
  .header-phone span { display: none; }
  .header-phone svg { width: 19px; height: 19px; }
}

.menu-btn {
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  gap: 4px; flex-direction: column;
  cursor: pointer;
  background: transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.menu-btn:hover { border-color: rgba(255,138,76,0.5); background: rgba(255,138,76,0.08); }
.menu-btn span { display: block; width: 18px; height: 2px; background: #eee; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-drawer {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,7,8,0.88);
  backdrop-filter: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-drawer.open { opacity: 1; pointer-events: auto; }
.nav-drawer ul { list-style: none; text-align: center; }
.nav-drawer li { margin: 18px 0; opacity: 0; transform: translateY(14px); transition: opacity 0.4s ease, transform 0.4s ease; }
.nav-drawer.open li { opacity: 1; transform: translateY(0); }
.nav-drawer.open li:nth-child(1) { transition-delay: 0.05s; }
.nav-drawer.open li:nth-child(2) { transition-delay: 0.1s; }
.nav-drawer.open li:nth-child(3) { transition-delay: 0.15s; }
.nav-drawer.open li:nth-child(4) { transition-delay: 0.2s; }
.nav-drawer.open li:nth-child(5) { transition-delay: 0.25s; }
.nav-drawer.open li:nth-child(6) { transition-delay: 0.3s; }
.nav-drawer a {
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #f2efe9;
  transition: color 0.25s ease;
}
.nav-drawer a:hover, .nav-drawer a.active { color: var(--flame-light); }
.nav-drawer .nav-close {
  position: absolute; top: 22px; right: 6vw;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ================= PAGE HERO (secondary pages) ================= */
.page-hero {
  position: relative;
  padding: 60px 6vw 54px;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(255,90,46,0.14), transparent 70%);
  pointer-events: none;
}
.page-hero .eyebrow {
  position: relative; z-index: 2;
  font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  color: #ffe0c7;
}
.page-hero h1 {
  position: relative; z-index: 2;
  margin-top: 10px;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800; line-height: 1.08;
}
.page-hero h1 .flame { color: var(--flame-light); }
.page-hero p {
  position: relative; z-index: 2;
  margin: 14px auto 0; max-width: 460px;
  font-size: 0.95rem; color: var(--text-dim); line-height: 1.5;
}

/* ================= REVEAL (generic scroll-entrance utility) ================= */
.reveal {
  opacity: 0;
  transform: translateY(28px) rotate(-1deg) scale(0.96);
  transition: opacity 0.7s cubic-bezier(0.19,1,0.22,1), transform 0.7s cubic-bezier(0.19,1,0.22,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }

/* ================= BUTTONS ================= */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 999px;
  text-align: center;
  background: linear-gradient(90deg, #ff6a38, #e8410f);
  font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(255, 90, 46, 0.25);
  border: none; cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255, 90, 46, 0.35); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  font-weight: 700; font-size: 0.9rem;
  background: transparent; color: #f2efe9; cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.btn-secondary:hover { border-color: rgba(255,138,76,0.5); background: rgba(255,138,76,0.08); }

@keyframes fadeUp { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes flicker {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(255,90,46,0.22)); }
  50% { filter: drop-shadow(0 0 30px rgba(255,120,60,0.38)); }
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* ================= FEATURE / SERVICE CARDS ================= */
.section-head {
  padding: 50px 6vw 0;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: 0.01em; }
.section-head p { margin-top: 10px; font-size: 0.9rem; color: var(--text-dim); }

.features {
  padding: 28px 6vw 50px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
}
@media (max-width: 980px) { .features { grid-template-columns: 1fr 1fr; max-width: 460px; gap: 10px; } }

.card {
  position: relative;
  background: #050505;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 0 18px;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translateY(34px) rotate(-1.5deg) scale(0.94);
  transition: opacity 0.7s cubic-bezier(0.19,1,0.22,1), transform 0.7s cubic-bezier(0.19,1,0.22,1), border-color 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}
.card.in-view { opacity: 1; }
.card.in-view:not(.parallaxed) { transform: translateY(0) rotate(0deg) scale(1); }
.card:nth-child(1) { transition-delay: 0s; }
.card:nth-child(2) { transition-delay: 0.1s; }
.card:nth-child(3) { transition-delay: 0.2s; }
.card:nth-child(4) { transition-delay: 0.3s; }

.card-body { padding: 14px 16px 0; }
@media (max-width: 980px) {
  .card h3 { font-size: 0.8rem; }
  .card p { font-size: 0.7rem; margin-bottom: 10px; }
  .card-body { padding: 10px 12px 0; }
  .card-expand { width: 24px; height: 24px; }
  .card-expand svg { width: 10px; height: 10px; }
}

.card-media { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.card-media img, .card-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.19,1,0.22,1);
}
.card:hover .card-media img, .card:hover .card-media video { transform: scale(1.06); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, #050505 100%); }
.card:hover, .card:focus-visible {
  border-color: rgba(255, 138, 76, 0.45);
  box-shadow: 0 18px 40px rgba(255, 90, 46, 0.14);
}
.card::before {
  content: ""; position: absolute; inset: -40% -40% auto auto; width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(255,138,76,0.22), transparent 70%);
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
.card:hover::before { opacity: 1; }

.card h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; }
.card p { font-size: 0.78rem; line-height: 1.42; color: var(--text-dim); margin-bottom: 14px; }

.card-expand {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.card:hover .card-expand { background: rgba(255,138,76,0.15); border-color: rgba(255,138,76,0.5); transform: translateX(3px); }
.card-expand svg { width: 12px; height: 12px; }

/* ================= MODAL ================= */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5,4,4,0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal-box {
  width: 100%; max-width: 440px;
  background: #1c1f23;
  border: 1px solid rgba(255,138,76,0.3);
  border-radius: 18px;
  padding: 30px;
  position: relative;
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.19,1,0.22,1), opacity 0.35s ease;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}
.modal-backdrop.open .modal-box { transform: translateY(0) scale(1); opacity: 1; }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; background: transparent;
}
.modal-close svg { width: 13px; height: 13px; }
.modal-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,138,76,0.18), rgba(226,65,15,0.1));
  border: 1px solid rgba(255,138,76,0.28);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.modal-icon svg { width: 26px; height: 26px; }
.modal-box h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 14px; }
.modal-box p { font-size: 0.92rem; line-height: 1.65; color: var(--text-dim); }

/* ================= ACCORDION (FAQ) ================= */
.accordion { max-width: 720px; margin: 0 auto; padding: 10px 6vw 20px; display: flex; flex-direction: column; gap: 10px; }
.acc-item {
  background: #050505; border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  transition: border-color 0.3s ease;
}
.acc-item.open { border-color: rgba(255,138,76,0.4); }
.acc-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; font-weight: 700; font-size: 0.92rem;
}
.acc-q .acc-plus {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.acc-plus::before, .acc-plus::after { content: ""; position: absolute; background: #f2efe9; transition: transform 0.3s ease, opacity 0.3s ease; }
.acc-plus::before { width: 10px; height: 1.5px; }
.acc-plus::after { width: 1.5px; height: 10px; }
.acc-item.open .acc-plus { border-color: rgba(255,138,76,0.5); }
.acc-item.open .acc-plus::after { transform: rotate(90deg); opacity: 0; }
.acc-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.19,1,0.22,1);
}
.acc-a-inner { padding: 0 20px 20px; font-size: 0.85rem; line-height: 1.6; color: var(--text-dim); }

/* ================= FOOTER ================= */
footer.site-footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  padding: 44px 6vw 100px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; max-width: 1040px; margin: 0 auto; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 12px; }
.footer-logo svg { width: 28px; height: 28px; }
.footer-logo-img { width: 28px; height: 28px; object-fit: contain; display: block; }
.footer-col h4 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.footer-col p, .footer-col a { display: block; font-size: 0.86rem; line-height: 1.8; color: rgba(240,235,230,0.82); }
.footer-col a:hover { color: var(--flame-light); }
.footer-bottom {
  max-width: 1040px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 0.75rem; color: var(--text-dim); text-align: center;
}

/* ================= CHATBOT WIDGET ================= */
.chat-widget { position: fixed; right: clamp(14px, 4vw, 28px); bottom: clamp(14px, 4vw, 28px); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chat-ring {
  width: clamp(58px, 15vw, 76px); height: clamp(58px, 15vw, 76px);
  border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(255,138,76,0.55);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 24px rgba(255,90,46,0.18);
  cursor: pointer;
  animation: chatBob 3.2s ease-in-out infinite;
  background: #050505;
}
.chat-ring video { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes chatBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.chat-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  background: rgba(8,7,8,0.82); border: 1px solid rgba(255,138,76,0.3);
  color: var(--flame-light); padding: 5px 11px; border-radius: 999px;
  white-space: nowrap;
}
/* ---- Live Support chat panel (Anthropic-backed, real conversation) ---- */
.chat-panel {
  position: fixed; right: clamp(14px, 4vw, 28px);
  bottom: calc(clamp(58px, 15vw, 76px) + clamp(14px, 4vw, 28px) + 16px);
  z-index: 95;
  width: min(320px, calc(100vw - 32px));
  height: min(440px, calc(100vh - 170px));
  background: #15171a; border: 1px solid rgba(255,138,76,0.3); border-radius: 18px 18px 6px 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(0.96); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.chat-panel-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid rgba(255,138,76,0.4); }
.chat-panel-avatar video { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-panel-head-text { flex: 1; min-width: 0; }
.chat-panel-head-text .name { font-size: 0.85rem; font-weight: 700; }
.chat-panel-head-text .status { font-size: 0.68rem; color: #8fe3a8; display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.chat-panel-head-text .status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8fe3a8; display: inline-block; flex-shrink: 0; }
.chat-panel-close { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid var(--border); flex-shrink: 0; transition: border-color 0.2s ease; }
.chat-panel-close:hover { border-color: rgba(255,138,76,0.5); }
.chat-panel-body { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; font-size: 0.82rem; line-height: 1.5; padding: 10px 13px; border-radius: 14px; white-space: pre-wrap; }
.chat-msg.bot { align-self: flex-start; background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-bottom-left-radius: 4px; color: #f2efe9; }
.chat-msg.user { align-self: flex-end; background: linear-gradient(90deg, #ff6a38, #e8410f); border-bottom-right-radius: 4px; color: #fff; font-weight: 500; }
.chat-msg.typing { display: flex; gap: 4px; align-items: center; padding: 12px 14px; }
.chat-msg.typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--text-dim); animation: chatTyping 1.2s ease-in-out infinite; }
.chat-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTyping { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-panel-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); flex-shrink: 0; }
.chat-panel-input-row input {
  flex: 1; padding: 10px 13px; border-radius: 10px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.03); color: #f2efe9; font-size: 0.82rem; font-family: inherit;
}
.chat-panel-input-row input:focus { outline: none; border-color: rgba(255,138,76,0.5); }
.chat-panel-input-row input:disabled { opacity: 0.6; }
.chat-panel-send {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; border: none; cursor: pointer;
  background: linear-gradient(90deg, #ff6a38, #e8410f); display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s ease;
}
.chat-panel-send:disabled { opacity: 0.5; cursor: default; }
.chat-panel-send svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  .chat-ring { animation: none !important; }
}
