/* Intellicom v3. Brand tokens kept from the live site; layout and motion are new. */
:root {
  --bg-0: #050314;
  --bg-1: #0f0a1f;
  --bg-2: #1a0b3d;
  --bg-3: #0b1f3d;
  --purple: #a855f7;
  --purple-deep: #7c3aed;
  --cyan: #38bdf8;
  --cyan-deep: #0ea5e9;
  --text: #f8fafc;
  --text-dim: #cbd5e1;
  --text-faint: #94a3b8;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.035);
  --grad: linear-gradient(90deg, var(--purple), var(--cyan));
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg-0); color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg-0); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Type */
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.06; font-weight: 800; }
h1 { font-size: clamp(38px, 5.6vw, 72px); letter-spacing: -0.04em; }
h2 { font-size: clamp(30px, 4vw, 50px); }
h3 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: 19px; color: var(--text-dim); max-width: 56ch; }
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); font-size: 14px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.cta {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px;
  color: #fff; text-decoration: none; padding: 14px 26px; border-radius: 999px;
  background: linear-gradient(90deg, var(--purple-deep), var(--cyan-deep));
  box-shadow: 0 8px 30px -10px rgba(124, 58, 237, 0.7);
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -10px rgba(14, 165, 233, 0.7); }
.cta.small { padding: 10px 18px; font-size: 14px; }
.ghost { color: var(--text-dim); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.ghost:hover { color: var(--text); border-color: var(--cyan); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(5, 3, 20, 0.78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; }
.brand img { height: 34px; width: auto; border-radius: 4px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; color: var(--text-dim); font-size: 15px; font-weight: 500; }
.nav ul a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(124, 58, 237, 0.34), transparent 62%),
    radial-gradient(760px 480px at -8% 108%, rgba(14, 165, 233, 0.22), transparent 62%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1)); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero .tag { display: inline-block; font-size: 13px; color: var(--text-faint); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 14px; }
.hero .reassure { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-faint); font-size: 14px; }

/* Checklist card */
.check { background: rgba(5, 3, 20, 0.45); border: 1px solid var(--line-strong); border-radius: 20px; padding: 26px; backdrop-filter: blur(3px);
  box-shadow: 0 30px 80px -40px rgba(124, 58, 237, 0.55); }
.check h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 4px; }
.check .sub { color: var(--text-faint); font-size: 14px; margin-bottom: 16px; }
.check fieldset { border: 0; margin: 0; padding: 0; }
.opt { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 15px; color: var(--text-dim); line-height: 1.4; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.opt:hover { border-color: var(--line-strong); }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt .box { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--text-faint); display: grid; place-items: center; }
.opt .box svg { width: 12px; height: 12px; opacity: 0; stroke: #fff; }
.opt:has(input:checked) { border-color: var(--purple); background: rgba(168, 85, 247, 0.1); color: var(--text); }
.opt:has(input:checked) .box { background: var(--grad); border-color: transparent; }
.opt:has(input:checked) .box svg { opacity: 1; }
.opt:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.readout { margin: 16px 0 18px; padding: 14px 16px; border-radius: 12px; background: rgba(5, 3, 20, 0.6); border: 1px solid var(--line); font-size: 14px; color: var(--cyan); min-height: 52px; display: flex; align-items: center; }
.readout.pulse { animation: pulse 0.5s ease; }

/* Sections */
section { padding: 104px 0; }
.band { background: linear-gradient(180deg, var(--bg-1), var(--bg-0)); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split.flip > :first-child { order: 2; }
.section-head { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 18px; max-width: 18ch; }
.points { list-style: none; margin: 26px 0 30px; padding: 0; }
.points li { padding: 12px 0 12px 28px; border-top: 1px solid var(--line); position: relative; color: var(--text-dim); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points li::before { content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 2px; background: var(--grad); }
.points b { color: var(--text); font-weight: 600; }

/* ERPNext: before and after */
.ba { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden; background: var(--glass); }
.ba > div { padding: 24px; }
.ba > div + div { border-left: 1px solid var(--line-strong); background: rgba(124, 58, 237, 0.08); }
.ba h3 { margin-bottom: 14px; font-size: 16px; color: var(--text-faint); font-weight: 600; }
.ba > div + div h3 { color: var(--cyan); }
.ba ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.ba li { padding: 9px 0; border-top: 1px solid var(--line); color: var(--text-dim); }
.ba li:first-child { border-top: 0; }
.ba .old li { text-decoration: line-through; text-decoration-color: rgba(148, 163, 184, 0.5); color: var(--text-faint); }

/* Automation: flow */
.flow { display: grid; gap: 0; }
.flow > div { position: relative; padding: 18px 22px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--glass); margin-bottom: 26px; }
.flow > div:last-child { margin-bottom: 0; }
.flow > div::after { content: ""; position: absolute; left: 34px; bottom: -27px; width: 2px; height: 26px; background: var(--grad); }
.flow > div:last-child::after { display: none; }
.flow b { display: block; }
.flow span { color: var(--text-faint); font-size: 14px; }

/* Security: review sheet */
.sheet { border: 1px solid var(--line-strong); border-radius: 18px; background: var(--glass); overflow: hidden; }
.sheet .row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 15px 22px; border-top: 1px solid var(--line); align-items: center; }
.sheet .row:first-child { border-top: 0; }
.sheet .row span:first-child { color: var(--text-dim); }
.sheet .status { font-size: 13px; color: var(--cyan); }
.sheet .status.q { color: var(--purple); }
.aiblock { margin-top: 28px; padding: 22px; border-radius: 16px; border: 1px solid var(--line-strong); background: rgba(14, 165, 233, 0.06); }
.aiblock h3 { margin-bottom: 8px; }
.aiblock p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* Managed IT */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
.cols3 h3 { margin-bottom: 8px; }
.cols3 p { color: var(--text-dim); font-size: 15px; margin: 0; }
.cities { margin-top: 40px; color: var(--text-faint); font-size: 14px; max-width: 80ch; }

/* Proof */
.proof { width: 100%; border-collapse: collapse; margin-top: 34px; }
.proof th, .proof td { text-align: left; padding: 18px 20px 18px 0; border-top: 1px solid var(--line-strong); vertical-align: top; }
.proof tr:last-child th, .proof tr:last-child td { border-bottom: 1px solid var(--line-strong); }
.proof th { width: 34%; font-weight: 700; }
.proof td { color: var(--text-dim); }

/* Booking */
.book { background:
  radial-gradient(700px 420px at 100% 0%, rgba(124, 58, 237, 0.28), transparent 60%),
  radial-gradient(600px 400px at 0% 100%, rgba(14, 165, 233, 0.2), transparent 60%), var(--bg-1); border-top: 1px solid var(--line); }
.booking { background: var(--glass); border: 1px solid var(--line-strong); border-radius: 20px; padding: 26px; }
.summary { padding: 12px 14px; border-radius: 12px; background: rgba(5, 3, 20, 0.6); border: 1px solid var(--line); font-size: 14px; color: var(--cyan); margin-bottom: 18px; }
.days { display: grid; gap: 14px; margin-bottom: 18px; max-height: 280px; overflow: auto; padding-right: 4px; }
.day b { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text-dim); font-weight: 600; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { font: inherit; font-size: 14px; color: var(--text); background: transparent; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.slot:hover { border-color: var(--cyan); }
.slot[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #fff; font-weight: 700; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: grid; gap: 4px; font-size: 13px; color: var(--text-faint); }
.form .full { grid-column: 1 / -1; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"], .form textarea {
  font: inherit; font-size: 16px; color: var(--text); background: rgba(5, 3, 20, 0.6); border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 12px; width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-dim); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--purple); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin-top: 12px; font-size: 14px; min-height: 20px; }
.msg.err { color: #fda4af; }
.msg.ok { color: var(--cyan); }
.fallback { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
[hidden] { display: none !important; }
.done h3 { font-size: 26px; margin-bottom: 8px; }

/* Footer */
footer { padding: 56px 0 40px; border-top: 1px solid var(--line); color: var(--text-faint); font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot b { color: var(--text); display: block; margin-bottom: 8px; }
.foot a { display: block; text-decoration: none; padding: 2px 0; }
.foot a:hover { color: var(--text); }
.legal { margin-top: 36px; }

/* Motion: only when the visitor has not asked for less */
@keyframes pulse { from { transform: translateY(4px); opacity: 0.4; } to { transform: none; opacity: 1; } }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-30px, 20px, 0); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .readout.pulse { animation: none; }
  .cta { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 65%); animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .foot { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > :first-child { order: 0; }
  .cols3 { grid-template-columns: 1fr; }
  .nav ul { display: none; }
  section { padding: 72px 0; }
  .hero { padding: 48px 0 64px; }
  .proof th { width: 40%; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .ba { grid-template-columns: 1fr; }
  .ba > div + div { border-left: 0; border-top: 1px solid var(--line-strong); }
  .form { grid-template-columns: 1fr; }
  .proof th, .proof td { display: block; width: 100%; padding: 6px 0; border-top: 0; }
  .proof tr { display: block; padding: 14px 0; border-top: 1px solid var(--line-strong); }
  .cta { width: 100%; justify-content: center; }
  .nav .cta { width: auto; }
}

/* Privacy page */
main.legal { max-width: 820px; margin: 0 auto; padding: 72px 24px 80px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 10px; }
.legal .effective { color: var(--text-faint); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 1.2rem; letter-spacing: -0.01em; margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-strong); }
.legal p, .legal li, .legal td, .legal th { font-size: 15.5px; line-height: 1.7; color: var(--text-dim); }
.legal ul { margin: 0 0 12px 20px; padding: 0; }
.legal a { color: var(--cyan); }
.legal .box { border: 1px solid var(--line-strong); border-radius: 12px; padding: 16px 20px; margin: 14px 0; background: var(--glass); }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--text-faint); font-weight: 600; }
.legal .table-wrap { overflow-x: auto; }
.legal-foot { color: var(--text-faint); font-size: 14px; }

/* Background scenes (scenes.js). Decorative only; the text side is faded so copy stays readable. */
section { position: relative; overflow: hidden; }
section > .wrap { position: relative; z-index: 1; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.9;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.5) 40%, #000 66%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.5) 40%, #000 66%); }
.scene-auto { -webkit-mask-image: linear-gradient(270deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.5) 40%, #000 66%);
  mask-image: linear-gradient(270deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.5) 40%, #000 66%); }
.scene-mgd { -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.7) 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.7) 100%); }
.ba, .flow, .sheet, .aiblock { background: rgba(5, 3, 20, 0.4); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
@media (max-width: 960px) { .scene { opacity: 0.55; -webkit-mask-image: none; mask-image: none; } }

/* AI-generated loops: black-ish video is screened onto the page so only the light shows. Replaces the canvas once playing. */
.vbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity 0.8s;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.55) 38%, #000 62%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.55) 38%, #000 62%); }
.vbg-auto { -webkit-mask-image: linear-gradient(270deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.5) 40%, #000 66%); mask-image: linear-gradient(270deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.5) 40%, #000 66%); }
.vbg-mgd { opacity: 0; -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.7) 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.7) 100%); }
.has-video > .vbg { opacity: 0.95; }
.has-video > .scene { opacity: 0; transition: opacity 0.8s; }
@media (max-width: 959px), (prefers-reduced-motion: reduce) { .vbg { display: none; } }

.comp .points { margin-top: 18px; }
.comp p { color: var(--text-dim); }
#compliance { background: linear-gradient(180deg, var(--bg-0), var(--bg-1)); }
