/* CyberSecuriosity — Professional single-page site styles */
/* Design tokens */
:root {
  --bg: #0b1220;
  --bg-alt: #0e1628;
  --text: #e6eefc;
  --muted: #a6b2c9;
  --primary: #65d1ff;
  --primary-strong: #00b7ff;
  --accent: #7c4dff;
  --card: #111a2d;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 85% -10%, rgba(124,77,255,0.12), transparent 60%),
              radial-gradient(900px 600px at 10% -20%, rgba(101,209,255,0.12), transparent 55%),
              var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-strong); }

.skip-link {
  position: absolute; left: -999px; top: -999px; background: #000; color: #fff; padding: 8px 12px; border-radius: 6px;
}
.skip-link:focus { left: 16px; top: 16px; z-index: 1000; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.h1 { font-size: clamp(2rem, 3.3vw + 1rem, 3.2rem); line-height: 1.1; margin: 0 0 12px; letter-spacing: 0.2px; }
.h2 { font-size: clamp(1.7rem, 1.8vw + 1rem, 2.2rem); margin: 0 0 8px; }
.h4 { font-size: 1.05rem; margin: 0 0 6px; }
.lead { font-size: 1.125rem; color: var(--muted); margin: 0 0 22px; }
.subtle { font-size: 0.95rem; color: var(--muted); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); background: transparent; transition: 200ms ease; cursor: pointer; }
.btn--primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #001018; border: none; box-shadow: 0 8px 18px rgba(124,77,255,0.25), inset 0 0 0 1px rgba(255,255,255,0.1); }
.btn--primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn--ghost { background: rgba(255,255,255,0.03); }
.btn--small { padding: 10px 14px; font-size: 0.95rem; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); backdrop-filter: saturate(140%) blur(10px); background: rgba(11,18,32,0.6); }
.header-inner { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 14px; padding: 14px 0; }
.socials--brand { justify-self: start; }
.nav { justify-self: end; }
.header-actions { display: none; align-items: center; gap: 14px; }
.socials--desktop { display: inline-flex; }
.header-contact { display: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark { flex: 0 0 auto; filter: drop-shadow(0 4px 10px rgba(101,209,255,0.35)); }
.brand-logo { width: 64px; height: 64px; object-fit: contain; display: block; filter: drop-shadow(0 4px 10px rgba(101,209,255,0.2)); }
.brand-name { font-weight: 700; letter-spacing: 0.2px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--text); opacity: 0.9; }
.nav a:hover { opacity: 1; }
.nav ul > li > a:not(.btn) { position: relative; padding: 6px 0; }
.nav ul > li > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform 180ms ease;
  opacity: 0.9;
}
.nav ul > li > a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: transparent; border: none; cursor: pointer; }
.nav-toggle-bar { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }
/* socials in header/footer */
.socials { display: inline-flex; gap: 10px; align-items: center; }
.socials .icon { width: 18px; height: 18px; color: var(--muted); opacity: 0.9; transition: 150ms ease; }
.socials .icon:hover { color: var(--text); opacity: 1; }
.socials--header { display: none; }

@media (max-width: 1100px) {
  .header-actions { display: none; }
}
@media (min-width: 861px) { .header-actions { display: none; } }
@media (max-width: 860px) {
  .nav { position: fixed; inset: 64px 0 auto 0; background: rgba(11,18,32,0.95); border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform 220ms ease; }
  .nav.open { transform: translateY(0); }
  .nav ul { flex-direction: column; padding: 16px; gap: 12px; }
  .nav-toggle { display: inline-block; }
  .socials--header { display: inline-flex; }
  .header-contact { display: inline-flex; }
  /* Hide brand-area socials on mobile (kept inside menu) */
  .socials--brand { display: none; }
}

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { text-align: center; margin-bottom: 32px; }
.section-header p { color: var(--muted); max-width: 760px; margin: 8px auto 0; }

.grid-2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 3vw, 38px); align-items: center; }
@media (max-width: 960px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr; } }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-4 { grid-template-columns: 1fr; } }

.hero { padding-top: 42px; }
.hero-copy .cta-group { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 12px; }
.hero-desc { color: var(--muted); max-width: 52ch; margin: 8px 0 10px; }
.hero-art { position: relative; min-height: 380px; }
.hero-picture, .hero-img { position: absolute; inset: 0; }
.hero-link { display: block; position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; }
.hero-link:focus-visible { outline: 3px solid rgba(124,77,255,0.65); outline-offset: 3px; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); opacity: 1; transition: transform 220ms ease; }
.hero-link:hover .hero-img { transform: scale(1.01); }
.globe { position: absolute; inset: 0; background: radial-gradient(closest-side, rgba(101,209,255,0.12), transparent 70%); border-radius: 50%; filter: blur(8px); pointer-events: none; }
.grid-mesh { position: absolute; inset: 6% 4% 2% 4%; border-radius: var(--radius); background: linear-gradient(180deg, rgba(124,77,255,0.18), rgba(101,209,255,0.1)); box-shadow: var(--shadow); opacity: 0.9; pointer-events: none; }

.cards { margin-top: 18px; }
.card { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: 0 6px 16px rgba(0,0,0,0.25); transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease; }
.cards .card:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(0,0,0,0.35), 0 4px 10px rgba(0,0,0,0.25); border-color: rgba(124,77,255,0.45); background: linear-gradient(180deg, rgba(124,77,255,0.10), rgba(255,255,255,0.02)); }
.card p { color: var(--muted); }
.card.highlight { background: linear-gradient(180deg, rgba(124,77,255,0.12), rgba(255,255,255,0.02)); border-color: rgba(124,77,255,0.35); }
/* media card with icon on left */
.card.media { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.media-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: rgba(124,77,255,0.14); border: 1px solid rgba(124,77,255,0.32); color: var(--primary); box-shadow: inset 0 0 22px rgba(124,77,255,0.2); }
.media-icon svg { width: 28px; height: 28px; }
.media-body h3 { margin-top: 2px; }
/* Right-align CTA inside service cards */
.card.media .media-body { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; }
.card.media .media-body .btn { justify-self: end; }

.checklist { margin: 12px 0 0; padding-left: 0; list-style: none; }
.checklist li { margin: 10px 0; padding-left: 28px; position: relative; color: var(--text); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 6px 14px rgba(124,77,255,0.35); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-align: center; display: grid; gap: 6px; }
.stat-num { display: block; font-size: 2rem; font-weight: 800; letter-spacing: 0.4px; min-height: 2.4rem; }
.stat-label { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }

.timeline { counter-reset: step; max-width: 820px; margin: 0 auto; list-style: none; padding: 0; }
.timeline li { position: relative; margin: 16px 0; padding-left: 40px; color: var(--muted); }
.timeline li strong { color: var(--text); }
.timeline li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #001018; font-weight: 700; display: grid; place-items: center; }

/* Vertical timeline variant with connecting line and active state */
.timeline.vertical { max-width: 860px; }
.timeline.vertical li { padding-left: 48px; margin: 18px 0; }
.timeline.vertical li::before { width: 26px; height: 26px; top: 2px; box-shadow: 0 0 0 3px rgba(124,77,255,0.15); }
.timeline.vertical li::after {
  content: ""; position: absolute; left: 12px; top: 30px; bottom: -18px; width: 2px; background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
}
.timeline.vertical li:last-child::after { display: none; }
.timeline.vertical li.is-active { color: var(--text); }
.timeline.vertical li.is-active strong { color: var(--text); }
.timeline.vertical li.is-active::before { background: linear-gradient(135deg, var(--accent), var(--primary)); }

/* Pro timeline: larger steps with headers and bodies */
.pro-timeline li { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px 12px 56px; box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
.pro-timeline .step-header { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.pro-timeline .step-title { font-weight: 700; color: var(--text); }
.pro-timeline .step-body { color: var(--muted); }
.pro-timeline li::before { top: 16px; left: 14px; width: 26px; height: 26px; }
.pro-timeline li::after { left: 26px; top: 44px; }
.pro-timeline li.is-active { border-color: rgba(124,77,255,0.35); box-shadow: 0 12px 28px rgba(0,0,0,0.35); }

/* Report preview mockup (pro) */
.report-preview { position: relative; padding: 14px; }
.report-preview .report-bar { height: 10px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--accent)); margin-bottom: 12px; opacity: 0.9; }
.report-preview .report-lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; margin-bottom: 12px; }
.report-preview .report-lines span { display: block; height: 8px; border-radius: 6px; background: rgba(255,255,255,0.08); }
.report-preview .report-lines span.long { grid-column: span 2; }
.report-preview .report-lines span.half { width: 70%; }
.report-preview .report-table { display: grid; grid-template-columns: 120px 1fr 60px; gap: 8px 10px; align-items: center; }
.report-preview .th { height: 10px; border-radius: 6px; background: rgba(255,255,255,0.16); }
.report-preview .th.wide { grid-column: 2; }
.report-preview .td { height: 10px; border-radius: 6px; background: rgba(255,255,255,0.08); }
.report-preview .td.wide { grid-column: 2; }
.report-preview .td.sev { background: linear-gradient(135deg, rgba(255,107,107,0.9), rgba(255,202,40,0.9)); }

/* Advanced report mockup */
.report-preview.pro { padding: 16px; }
.report-preview .report-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.report-preview .report-title { width: 40%; height: 14px; border-radius: 6px; background: rgba(255,255,255,0.16); }
.report-preview .report-meta { display: flex; gap: 6px; }
.report-preview .chip { width: 46px; height: 12px; border-radius: 999px; background: rgba(255,255,255,0.12); }
.report-preview .report-graph { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.report-preview .report-graph .bar { height: 36px; border-radius: 8px; background: rgba(255,255,255,0.08); position: relative; overflow: hidden; }
.report-preview .report-graph .bar::after { content:""; position:absolute; left:0; top:0; bottom:0; width: 60%; background: linear-gradient(135deg, var(--primary), var(--accent)); opacity: .25; }
.report-preview .report-graph .bar.a::after { width: 82%; }
.report-preview .report-graph .bar.b::after { width: 64%; }
.report-preview .report-graph .bar.c::after { width: 48%; }
.report-preview .report-graph .bar.d::after { width: 30%; }
.report-preview .report-table.pro { display: grid; gap: 8px; }
.report-preview .report-table .row { display: grid; grid-template-columns: 140px 1fr 100px; gap: 10px; align-items: center; }
.report-preview .report-table .row.head .col { height: 12px; background: rgba(255,255,255,0.16); border-radius: 6px; }
.report-preview .report-table .row .col { height: 12px; background: rgba(255,255,255,0.08); border-radius: 6px; }
.report-preview .report-table .row .col.sev { height: 22px; border-radius: 999px; background: rgba(255,255,255,0.08); }
.report-preview .report-table .row .col.sev.badge.high { background: linear-gradient(135deg, #ff6b6b, #ffb199); }
.report-preview .report-table .row .col.sev.badge.medium { background: linear-gradient(135deg, #ffd166, #fcbf49); }
.report-preview .report-table .row .col.sev.badge.low { background: linear-gradient(135deg, #7ae582, #b7efc5); }

/* Communication flow */
.communication-flow { display: grid; gap: 14px; }
.communication-flow .flow-track { position: relative; display: grid; gap: 14px; }
.communication-flow .flow-segment { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.communication-flow .flow-segment::before { content:""; position: absolute; left: 12px; top: 0; bottom: -14px; width: 2px; background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06)); }
.communication-flow .flow-segment:last-child::before { display: none; }
.communication-flow .flow-dot { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 0 0 4px rgba(124,77,255,0.15); }
.communication-flow .flow-card { background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
.communication-flow .flow-card p { color: var(--muted); margin: 6px 0 0; }
.communication-flow .flow-note { color: var(--muted); }

/* CTA improvements */
.btn--xl { padding: 14px 22px; font-size: 1.02rem; }
.btn--glow { box-shadow: 0 10px 24px rgba(124,77,255,0.35), 0 2px 8px rgba(0,0,0,0.25); }
.btn--glow:hover { transform: translateY(-2px); filter: brightness(1.06); }
/* Make ghost buttons glow on hover only */
.btn--ghost.btn--glow { box-shadow: none; }
.btn--ghost.btn--glow:hover { box-shadow: 0 10px 24px rgba(124,77,255,0.35), 0 2px 8px rgba(0,0,0,0.25); }

/* Service page hero */
.service-hero { padding: clamp(64px, 10vw, 120px) 0; background: radial-gradient(1000px 600px at 85% -10%, rgba(124,77,255,0.18), transparent 60%), radial-gradient(800px 500px at 10% -20%, rgba(101,209,255,0.15), transparent 55%), var(--bg); border-bottom: 1px solid var(--border); }
.service-hero .hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
@media (max-width: 960px) { .service-hero .hero-inner { grid-template-columns: 1fr; } }
.service-hero .eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; }
.service-hero h1 { margin: 6px 0 10px; }
.service-hero p { color: var(--muted); max-width: 62ch; }
.service-hero .hero-card { background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: 0 8px 18px rgba(0,0,0,0.3); }

/* Section tabs (subnav) */
.section-tabs { position: sticky; top: var(--header-h, 64px); z-index: 45; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(11,18,32,0.78); backdrop-filter: saturate(140%) blur(10px); box-shadow: 0 6px 14px rgba(0,0,0,0.25); }
.section-tabs .tabs-inner { display: flex; gap: 10px; flex-wrap: nowrap; padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.section-tabs .tabs-inner::-webkit-scrollbar { display: none; }
.section-tabs a { color: var(--muted); padding: 8px 12px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; transition: 160ms ease; }
.section-tabs a:hover { color: var(--text); border-color: var(--border); background: rgba(255,255,255,0.05); }
.section-tabs a[aria-current="true"] { color: var(--text); background: linear-gradient(180deg, rgba(124,77,255,0.18), rgba(255,255,255,0.04)); border-color: rgba(124,77,255,0.35); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }

/* Flow detail panel */
/* (removed in redesign) .flow-detail no longer used */

/* Horizontal communication stepper */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
@media (max-width: 900px) { .stepper { grid-template-columns: 1fr; } }
.stepper .step { position: relative; background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; box-shadow: 0 6px 16px rgba(0,0,0,0.25); overflow: hidden; }
/* Arrow connector to next step */
.stepper .step::after { content: ""; position: absolute; top: 50%; right: -10px; transform: translateY(-50%); width: 20px; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06)); clip-path: polygon(0 0, 85% 0, 85% -4px, 100% 50%, 85% calc(100% + 4px), 85% 100%, 0 100%); }
.stepper .step:last-child::after { display: none; }
@media (max-width: 900px) {
  .stepper .step::after { left: 50%; right: auto; top: auto; bottom: -10px; transform: translateX(-50%) rotate(90deg); }
}
.stepper .num { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 0 0 4px rgba(124,77,255,0.15); margin-bottom: 8px; display: grid; place-items: center; color: #001018; font-weight: 800; }
.stepper .dot { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 0 0 4px rgba(124,77,255,0.15); margin-bottom: 8px; }
.stepper .step p { color: var(--muted); margin: 6px 0 0; }

/* Iconic checklists */
.checklist.icons { list-style: none; padding-left: 0; }
.checklist.icons li { display: flex; gap: 10px; align-items: flex-start; padding-left: 0; color: var(--text); }
.checklist.icons li::before { content: none; }
.checklist.icons svg { width: 18px; height: 18px; color: var(--primary); margin-top: 4px; flex: 0 0 auto; }

/* Tinted card variants */
.card.tone-a { background: linear-gradient(180deg, rgba(124,77,255,0.08), rgba(255,255,255,0.02)); border-color: rgba(124,77,255,0.28); }
.card.tone-b { background: linear-gradient(180deg, rgba(101,209,255,0.08), rgba(255,255,255,0.02)); border-color: rgba(101,209,255,0.28); }
.card.tone-c { background: linear-gradient(180deg, rgba(123,237,159,0.08), rgba(255,255,255,0.02)); border-color: rgba(123,237,159,0.28); }
.card.tone-d { background: linear-gradient(180deg, rgba(255,213,79,0.08), rgba(255,255,255,0.02)); border-color: rgba(255,213,79,0.28); }
.card.tone-a:hover, .card.tone-b:hover, .card.tone-c:hover, .card.tone-d:hover { border-color: rgba(255,255,255,0.35); }

/* Expandable timeline */
.pro-timeline li { cursor: pointer; }
.pro-timeline .step-body { max-height: 0; overflow: hidden; transition: max-height 260ms ease, opacity 200ms ease, padding-top 200ms ease; opacity: 0; }
.pro-timeline li.is-open .step-body { max-height: 320px; opacity: 1; padding-top: 4px; }
.pro-timeline .step-header::after { content: ""; width: 10px; height: 10px; margin-left: auto; border-right: 2px solid rgba(255,255,255,0.6); border-bottom: 2px solid rgba(255,255,255,0.6); transform: rotate(-45deg); transition: transform 180ms ease; }
.pro-timeline li.is-open .step-header::after { transform: rotate(45deg); }

/* Equal height helper for side cards */
.equal-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
@media (max-width: 960px) { .equal-cards { grid-template-columns: 1fr; } }
.equal-cards .card { height: 100%; display: flex; flex-direction: column; }
.equal-cards .card .checklist { margin-top: 8px; }

/* Report preview mockup */
.report-preview { position: relative; padding: 14px; }
.report-preview .report-bar { height: 10px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--accent)); margin-bottom: 12px; opacity: 0.9; }
.report-preview .report-lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; margin-bottom: 12px; }
.report-preview .report-lines span { display: block; height: 8px; border-radius: 6px; background: rgba(255,255,255,0.08); }
.report-preview .report-lines span.long { grid-column: span 2; }
.report-preview .report-lines span.half { width: 70%; }
.report-preview .report-table { display: grid; grid-template-columns: 120px 1fr 60px; gap: 8px 10px; align-items: center; }
.report-preview .th { height: 10px; border-radius: 6px; background: rgba(255,255,255,0.16); }
.report-preview .th.wide { grid-column: 2; }
.report-preview .td { height: 10px; border-radius: 6px; background: rgba(255,255,255,0.08); }
.report-preview .td.wide { grid-column: 2; }
.report-preview .td.sev { background: linear-gradient(135deg, rgba(255,107,107,0.9), rgba(255,202,40,0.9)); }

/* approach slider */
.approach-grid { align-items: start; }
.approach-grid > *:first-child { align-self: start; }
.approach-grid > *:last-child { align-self: start; padding-top: 4px; }
.approach-slider { position: relative; }
.slider { position: sticky; top: 84px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); box-shadow: 0 6px 16px rgba(0,0,0,0.25); width: 100%; max-width: 680px; margin-inline: auto; }
.slides { position: relative; aspect-ratio: 540.906 / 360.594; line-height: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 350ms ease; display: grid; margin: 0; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,0.5); backdrop-filter: blur(6px); color: var(--text); padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); font-size: .9rem; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,0.12); }
.progress .bar { width: 0%; height: 100%; background: linear-gradient(135deg, var(--primary), var(--accent)); transition: none; }

.cta .center { text-align: center; }

/* clients carousel */
.clients .client-carousel { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.carousel-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: 160ms ease; }
.carousel-btn:hover { background: rgba(255,255,255,0.09); }
.carousel-btn:disabled { opacity: 0.5; cursor: default; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 12px) / 5); gap: 12px; align-items: start; }
.client { margin: 0; text-align: center; }
.client-avatar { width: 110px; height: 110px; margin: 0 auto 8px; border-radius: 50%; border: 1px solid var(--border); background: radial-gradient(circle at 40% 30%, rgba(124,77,255,0.2), rgba(101,209,255,0.12)), rgba(255,255,255,0.03); box-shadow: inset 0 0 24px rgba(124,77,255,0.18), 0 6px 16px rgba(0,0,0,0.25); padding: 10px; box-sizing: border-box; overflow: hidden; }
.client-avatar img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; display: block; background: transparent; }
.client figcaption { color: var(--muted); font-size: 0.95rem; display: grid; gap: 2px; }
.client figcaption .client-name { color: var(--text); font-weight: 600; font-size: 1rem; }
.client figcaption .client-site { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.client figcaption .client-site:hover { text-decoration: underline; }
@media (max-width: 960px) { .carousel-track { grid-auto-columns: calc((100% - 3 * 12px) / 4); } }
@media (max-width: 720px) { .carousel-track { grid-auto-columns: calc((100% - 2 * 12px) / 3); } }
@media (max-width: 520px) { .carousel-track { grid-auto-columns: calc((100% - 1 * 12px) / 2); } .client-avatar { width: 90px; height: 90px; padding: 8px; } }

.contact-form { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.contact-form label { display: grid; gap: 8px; font-size: 0.95rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; background: var(--card); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 12px 12px; outline: none; transition: 180ms ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: rgba(124,77,255,0.45); box-shadow: 0 0 0 4px rgba(124,77,255,0.12);
}
/* improve select styling for readability */
.contact-form select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23a6b2c9' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px;
}
.contact-form select option { background: var(--bg-alt); color: var(--text); }
.contact-form .consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--muted); }
.contact-form .consent input { margin-top: 4px; width: auto; }
.contact-form .consent a { color: var(--primary); text-decoration: underline; }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.form-note { color: var(--muted); }
.form-status { margin: 8px 0 0; color: var(--muted); min-height: 1.2em; }

.site-footer { border-top: 1px solid var(--border); padding: 22px 0; background: rgba(0,0,0,0.2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 14px; }
.footer-brand { color: var(--muted); display: flex; gap: 10px; align-items: center; }
.footer-brand .dot { opacity: 0.6; }

/* Scroll reveal basics */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Modal (Thank you) */
.modal { position: fixed; inset: 0; display: grid; place-items: center; visibility: hidden; opacity: 0; transition: opacity 180ms ease, visibility 0s linear 180ms; z-index: 1000; }
.modal.open { visibility: visible; opacity: 1; transition-delay: 0s; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(2px); }
.modal-content { position: relative; width: min(520px, 92vw); border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); box-shadow: var(--shadow); padding: 18px 18px 16px; animation: modalIn 200ms ease both; }
.modal-body p { color: var(--muted); margin: 8px 0 0; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text); cursor: pointer; transition: 160ms ease; }
.modal-close:hover { background: rgba(255,255,255,0.1); }
@keyframes modalIn { from { transform: translateY(8px); opacity: 0.9; } to { transform: translateY(0); opacity: 1; } }

/* Floating chat widget */
.chat-launcher { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); color: #001018; cursor: pointer; z-index: 950; box-shadow: 0 12px 22px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.25); background: linear-gradient(135deg, var(--primary), var(--accent)); }
.chat-launcher:hover { filter: brightness(1.05); transform: translateY(-1px); }
.chat-launcher .icon { width: 24px; height: 24px; }

.chat-panel { position: fixed; right: 20px; bottom: 86px; width: min(360px, 92vw); height: min(520px, 82vh); border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); box-shadow: var(--shadow); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.98); transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms; z-index: 940; }
.chat-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); transition-delay: 0s; }
.chat-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: rgba(0,0,0,0.25); border-bottom: 1px solid var(--border); }
.chat-panel-title { font-weight: 700; }
.chat-close { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text); cursor: pointer; }
.chat-close:hover { background: rgba(255,255,255,0.1); }
.chat-iframe { width: 100%; height: calc(100% - 48px); border: 0; display: block; background: var(--bg); }

@media (max-width: 520px) {
  .chat-panel { right: 12px; left: 12px; width: auto; height: min(78vh, 520px); bottom: 82px; }
  .chat-launcher { right: 12px; bottom: 12px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --- Service layout sidebar and presentation enhancements --- */
@media (min-width: 961px) { .section-tabs { display: none; } }

/* Service layout with left sidebar */
.service-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
@media (max-width: 1200px) { .service-layout { grid-template-columns: 220px 1fr; } }
@media (max-width: 960px) { .service-layout { grid-template-columns: 1fr; } }
.section-sidebar { position: sticky; top: calc(var(--header-h, 64px) + 12px); align-self: start; height: fit-content; }
.section-sidebar .sidebar-card { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 18px rgba(0,0,0,0.25); padding: 12px; }
.section-sidebar h3 { font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.section-sidebar nav { display: grid; gap: 6px; }
.section-sidebar a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--muted); border: 1px solid transparent; transition: 150ms ease; }
.section-sidebar a:hover { color: var(--text); background: rgba(255,255,255,0.05); border-color: var(--border); }
.section-sidebar a[aria-current="true"] { color: var(--text); background: linear-gradient(180deg, rgba(124,77,255,0.18), rgba(255,255,255,0.04)); border-color: rgba(124,77,255,0.35); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
@media (max-width: 960px) { .section-sidebar { display: none; } }

/* Presentation-style timeline enhancements */
.timeline.present li { background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02)); border-left: 3px solid rgba(124,77,255,0.4); border-radius: 12px; padding: 12px 14px 12px 60px; }
.timeline.present li::before { box-shadow: 0 0 0 4px rgba(124,77,255,0.18); }
.timeline.present .step-header .icon { width: 18px; height: 18px; color: var(--primary); opacity: 0.9; }
.timeline.present .step-header { position: relative; width: 100%; }
.timeline.present .step-header .badge { margin-left: auto; font-size: 0.78rem; color: #001018; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 999px; padding: 2px 8px; }

/* A4 report page preview */
.a4-preview { position: relative; width: 100%; max-width: 560px; margin: 0 auto; }
.a4-page { position: relative; width: 100%; aspect-ratio: 210 / 297; background: #fff; color: #111; border-radius: 8px; box-shadow: 0 18px 36px rgba(0,0,0,0.35); overflow: hidden; }
.a4-page .a4-header { height: 52px; background: linear-gradient(135deg, #7c4dff, #65d1ff); color: #001018; display: flex; align-items: center; padding: 0 16px; font-weight: 700; letter-spacing: .2px; }
.a4-page .a4-body { padding: 16px; display: grid; gap: 8px; }
.a4-section { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; border: 1px dashed rgba(0,0,0,0.15); background: rgba(0,0,0,0.02); }
.a4-num { width: 28px; height: 28px; border-radius: 50%; background: #eef3ff; color: #111; display: grid; place-items: center; font-weight: 800; }
.a4-title { font-weight: 700; }
.a4-footer { position: absolute; bottom: 0; left: 0; right: 0; height: 34px; border-top: 1px solid rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; font-size: .85rem; color: #666; background: #fafafa; }
.a4-note { text-align: center; color: var(--muted); margin-top: 8px; }

/* Communication stepper icon support */
.stepper .icon { width: 18px; height: 18px; color: var(--primary); opacity: 0.9; }

/* --- Mobile refinements --- */
@media (max-width: 520px) {
  /* Header & brand */
  .header-inner { gap: 10px; padding: 10px 0; }
  .brand-logo { width: 48px; height: 48px; }

  /* Section rhythm */
  .section { padding: 44px 0; }
  .section-tabs .tabs-inner { padding: 6px 0; }

  /* Cards & checklists */
  .card { padding: 16px; }
  .media-icon { width: 44px; height: 44px; }
  .media-icon svg { width: 24px; height: 24px; }
  .checklist li { margin: 8px 0; padding-left: 24px; }
  .checklist li::before { width: 14px; height: 14px; top: 7px; box-shadow: 0 4px 10px rgba(124,77,255,0.3); }
  .checklist.icons svg { width: 14px; height: 14px; margin-top: 3px; }

  /* Hero */
  .service-hero { padding: 56px 0; }
  .service-hero .hero-inner { gap: 16px; }
  .service-hero .hero-card { padding: 16px; }

  /* Timeline & stepper */
  .timeline.vertical li { padding-left: 44px; margin: 14px 0; }
  .pro-timeline li { padding: 12px 12px 12px 52px; }
  .pro-timeline li::before { left: 12px; width: 22px; height: 22px; top: 14px; }
  .pro-timeline li::after { left: 22px; top: 40px; }
  .timeline.present .step-header .icon { width: 16px; height: 16px; }
  .stepper .icon { width: 16px; height: 16px; }
  .stepper .step { padding: 12px; }
  .stepper .num { width: 24px; height: 24px; margin-bottom: 6px; }

  /* A4 preview */
  .a4-preview { max-width: 100%; }
}
