/* Xfactor Enterprise — site styles */
:root {
  --bg: #07080f;
  --bg-2: #0c0e1a;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef0fb;
  --muted: #9aa1bd;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --grad: linear-gradient(120deg, #7c5cff 0%, #22d3ee 100%);
  --radius: 20px;
  --max: 1180px;
  --shadow: 0 30px 80px -30px rgba(124, 92, 255, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.12; letter-spacing: -0.02em; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* ── nav ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 8, 15, 0.72); backdrop-filter: blur(16px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; font-weight: 800; color: #07080f; box-shadow: 0 8px 24px -8px rgba(124,92,255,.8); }
.logo small { color: var(--muted); font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.nav-links { display: flex; gap: 30px; align-items: center; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px; font-size: 15px; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 16px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); background: var(--card-hover); }
.btn.primary { background: var(--grad); color: #07080f; border: none; box-shadow: var(--shadow); }
.btn.primary:hover { box-shadow: 0 30px 80px -20px rgba(34, 211, 238, 0.5); }
.btn.small { padding: 10px 18px; font-size: 14px; }

/* ── hero ── */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 220px; background: linear-gradient(transparent, var(--bg)); z-index: 1; pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); font-size: 14px; backdrop-filter: blur(8px); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.hero h1 { font-size: clamp(42px, 7vw, 84px); margin: 22px 0 22px; max-width: 900px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 640px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero .chips { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 46px; color: var(--muted); font-size: 14px; }
.hero .chips span::before { content: "✓"; color: var(--accent-2); margin-right: 8px; font-weight: 700; }

/* ── sections ── */
section { padding: 110px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .kicker { color: var(--accent-2); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); margin: 12px 0 16px; }
.section-head p { color: var(--muted); font-size: 18px; }
.center { text-align: center; margin-inline: auto; }

/* services grid with 3D tilt */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; perspective: 1200px; }
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transform-style: preserve-3d; transition: transform .25s ease, background .25s, border-color .25s;
  will-change: transform;
}
.card:hover { background: var(--card-hover); border-color: rgba(124, 92, 255, 0.4); }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 92, 255, 0.14), transparent 45%);
  opacity: 0; transition: opacity .25s;
}
.card:hover::before { opacity: 1; }
.card .icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: rgba(124, 92, 255, 0.12); border: 1px solid rgba(124, 92, 255, 0.3); margin-bottom: 18px; transform: translateZ(30px); }
.card h3 { font-size: 20px; margin-bottom: 8px; transform: translateZ(20px); }
.card p { color: var(--muted); font-size: 15.5px; transform: translateZ(10px); }
.card .tag { display: inline-block; margin-top: 14px; font-size: 12.5px; color: var(--accent-2); letter-spacing: .06em; text-transform: uppercase; }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.04), transparent); }
.step .num { font-family: "Space Grotesk", sans-serif; font-size: 15px; color: var(--accent-2); font-weight: 600; }
.step h3 { font-size: 22px; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* why us */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.list { display: grid; gap: 18px; }
.list li { list-style: none; display: grid; grid-template-columns: 32px 1fr; gap: 14px; }
.list .tick { width: 32px; height: 32px; border-radius: 10px; background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.3); display: grid; place-items: center; color: var(--accent-2); font-weight: 700; }
.list strong { display: block; font-size: 18px; margin-bottom: 2px; }
.list span { color: var(--muted); font-size: 15.5px; }
.panel { border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(120% 120% at 0% 0%, rgba(124,92,255,.18), transparent 50%), radial-gradient(120% 120% at 100% 100%, rgba(34,211,238,.14), transparent 50%), var(--bg-2); padding: 36px; box-shadow: var(--shadow); transform: perspective(1000px) rotateY(-6deg) rotateX(3deg); transition: transform .5s; }
.panel:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }
.panel .row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.panel .row:last-child { border: none; }
.panel .row b { font-family: "Space Grotesk", sans-serif; font-size: 18px; }
.panel .row .ok { color: var(--accent-2); font-weight: 600; }
.panel h3 { font-size: 22px; margin-bottom: 8px; }
.panel .sub { color: var(--muted); font-size: 14px; margin-bottom: 10px; }

/* faq */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
details { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 20px 24px; }
details[open] { background: var(--card-hover); }
summary { cursor: pointer; font-weight: 600; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-2); font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 12px; font-size: 16px; }

/* booking + contact */
.book { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.embed { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; overflow: hidden; min-height: 640px; }
.embed iframe { width: 100%; min-height: 640px; border: 0; display: block; }
.embed-fallback { padding: 40px; color: #222; display: grid; gap: 12px; align-content: center; min-height: 640px; text-align: center; }
.embed-fallback a { color: #5b3df5; font-weight: 600; }
.embed-label { font-size: 14px; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }

/* cta band */
.band { border-radius: 32px; padding: 70px 40px; text-align: center; border: 1px solid var(--line); background: radial-gradient(80% 140% at 50% 0%, rgba(124,92,255,.28), transparent 60%), var(--bg-2); }
.band h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 14px; }
.band p { color: var(--muted); margin-bottom: 28px; font-size: 18px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 60px 0 40px; color: var(--muted); font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.foot h4 { color: var(--text); font-size: 15px; margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot a:hover { color: var(--text); }
.fine { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* cookie notice */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin-right: auto; padding: 18px 20px; border-radius: 16px; background: rgba(12, 14, 26, 0.95); border: 1px solid var(--line); backdrop-filter: blur(14px); display: none; gap: 14px; align-items: center; font-size: 14px; color: var(--muted); box-shadow: 0 20px 60px -20px #000; }
.cookie.show { display: flex; }
.cookie a { color: var(--accent-2); }

/* legal pages */
.legal { padding: 140px 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 5vw, 50px); margin-bottom: 10px; }
.legal .updated { color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 24px; margin: 38px 0 12px; }
.legal p, .legal li { color: #c9cde0; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent-2); }

/* responsive */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .book, .foot { grid-template-columns: 1fr; }
  .panel { transform: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 80px 0; }
  .nav-links { display: none; position: absolute; top: 72px; left: 16px; right: 16px; flex-direction: column; gap: 0; padding: 10px; border-radius: 16px; background: rgba(12,14,26,.97); border: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; width: 100%; }
  .menu-btn { display: block; }
  .steps { grid-template-columns: 1fr; }
  .band { padding: 50px 22px; }
  .embed, .embed iframe, .embed-fallback { min-height: 560px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .panel, .btn { transition: none; }
}
