/* Reset / Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-width: 320px; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }

/* InfraCare — Modern dark B2B landing design system */
:root {
  --bg: #070b12;
  --bg-soft: #0b1220;
  --surface: #101827;
  --surface-2: #132033;
  /* Communities accents */
  --community-base: #a855f7;
  --community-base-soft: rgba(168, 85, 247, 0.14);
  --community-chat: #facc15;
  --community-chat-soft: rgba(250, 204, 21, 0.14);
  --community-announcements: #ef4444;
  --community-announcements-soft: rgba(239, 68, 68, 0.14);
  --surface-3: #0d1626;
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.30);
  --text: #e8eef8;
  --muted: #94a3b8;
  /* Accents */
  --accent: #27b7ff; /* primary accent */
  --accent-2: #22c55e; /* secondary accent (success green) */
  --primary: var(--accent);
  --primary-hover: #5ccaff;
  --success: #22c55e;
  --danger: #fb7185;
  --radius: 22px;
  --container: 1180px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

/* Base */
html, body { height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

::selection { background: rgba(59,182,255,0.25); color: var(--text); }

a { color: #93c5fd; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }

/* Sections — scoped backgrounds and overflow control */
.section { position: relative; isolation: isolate; overflow: clip; background: var(--bg); padding-block: clamp(64px, 8vw, 112px); }
.section + .section { border-top: 1px solid rgba(255,255,255,0.05); }
.section--soft { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.section__intro { max-width: 70ch; margin: 0 0 clamp(24px, 4vw, 40px); }
.section__eyebrow { color: var(--accent); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; }
.section__lead { color: var(--muted); font-size: clamp(16px, 2.1vw, 18px); }
.section__content { display: block; }
.section--panel .section__content { background: linear-gradient(180deg, rgba(16,24,39,0.92), rgba(11,18,32,0.92)); border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px); padding: clamp(20px, 3.6vw, 48px); box-shadow: var(--shadow); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); background: rgba(10,15,26,0.6); border-bottom: 1px solid var(--border); }
.site-header .bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { font-weight: 800; letter-spacing: 0.2px; color: var(--text); }
.brand-mark { height: 22px; width: auto; display: block; }
.tag { color: var(--muted); font-size: 0.95rem; }
.site-nav { display: flex; gap: 14px; align-items: center; flex-wrap: nowrap; }
.site-nav a { color: var(--muted); padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; white-space: nowrap; }
.site-nav a:hover { color: var(--text); border-color: var(--border); background: rgba(255,255,255,0.03); }
.site-nav .nav-cta { color: var(--text); border: 1px solid var(--border); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: transparent; color: var(--text); border: 1px solid var(--border); padding: 8px 10px; border-radius: 10px; cursor: pointer; min-height: 44px; min-width: 44px; }
.nav-toggle:hover { border-color: #35506b; background: rgba(255,255,255,0.03); }
.nav-toggle .lines { display: block; width: 18px; height: 2px; background: var(--text); position: relative; }
.nav-toggle .lines::before, .nav-toggle .lines::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); }
.nav-toggle .lines::before { top: -6px; }
.nav-toggle .lines::after { top: 6px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 16px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; font-weight: 650; transition: filter .15s ease, transform .02s linear, border-color .2s ease, background .2s ease; min-height: 44px; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn.primary { background: var(--primary); color: #03131e; }
.btn.primary:hover { background: var(--primary-hover); filter: none; }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.secondary:hover { border-color: #35506b; background: rgba(59,182,255,0.06); }
.btn-lg { padding: 14px 18px; border-radius: 12px; }

/* Utilities */
.muted { color: var(--muted); }
.small { font-size: 0.95rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0 16px; }
.actions.center { justify-content: center; }
img, video, svg { max-width: 100%; height: auto; }

/* Headings */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(22px, 3.6vw, 34px); margin: 0.6em 0 0.3em; }
h3 { font-size: clamp(18px, 2.8vw, 22px); margin: 0.6em 0 0.3em; }
p { margin: 0.65em 0; }

/* Hero */
.hero { padding: 80px 0; position: relative; background: var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(600px 260px at 18% 0%, rgba(59,182,255,0.18), transparent 70%); filter: blur(8px); }
.hero--first { min-height: 80dvh; display: grid; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.badge { font-size: 12px; padding: 6px 8px; border-radius: 999px; color: var(--text); background: rgba(59,182,255,0.08); border: 1px solid rgba(59,182,255,0.35); }
.hero-title { font-size: clamp(30px, 5.4vw, 54px); line-height: 1.12; margin: 0 0 14px; }
.hero-subtitle { color: var(--muted); font-size: clamp(16px, 2.1vw, 18px); max-width: 72ch; margin: 0 0 22px; }
.status-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; position: relative; overflow: hidden; }
.status-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 160px at 20% 0%, rgba(59,182,255,0.15), transparent 60%); pointer-events: none; }
.status-head { font-size: 12px; letter-spacing: 2px; color: var(--muted); margin-bottom: 8px; }
.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.status-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.status-list strong { font-weight: 700; }
.status-list .ok { color: var(--success); }
.status-list .warn { color: #f59e0b; }
.status-list .alert { color: #f97316; }
.status-list .audit { color: #93c5fd; }
.status-list .info { color: var(--muted); }

/* Panels */
.panel { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 18px; }
.panel::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(59,182,255,0.25), rgba(59,182,255,0.00)); mask: linear-gradient(#000, transparent 70%); }

/* Audit */
.audit { padding: 64px 0; }
.audit .panel { width: min(1000px, 100%); margin: 0 auto; }
.audit-title { font-size: clamp(24px, 4.2vw, 38px); margin: 0 0 10px; }
.audit-text { color: var(--muted); font-size: clamp(16px, 2.1vw, 18px); margin: 0 0 12px; }
.checklist { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.check { position: relative; padding-left: 28px; }
.check::before { content: "✔"; position: absolute; left: 0; top: 0.15em; width: 20px; height: 20px; display: grid; place-items: center; color: var(--success); background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.35); border-radius: 6px; font-size: 12px; line-height: 1; }

/* Risks */
.risks { padding: 56px 0 16px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)); }
.cards { list-style: none; margin: 18px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; transition: border-color .2s ease, transform .12s ease, box-shadow .2s ease; min-height: 96px; }
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.35); }
.card__icon { flex: 0 0 40px; height: 40px; width: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(59,182,255,0.08); border: 1px solid rgba(59,182,255,0.35); font-size: 18px; }
.card__body p { margin: 2px 0 0; }
.conclusion { margin-top: 18px; font-weight: 700; }

/* Services */
.services { padding: 56px 0 16px; }
.service-groups { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.s-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: border-color .2s ease, transform .12s ease, box-shadow .2s ease; }
.s-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: 12px 12px 0 0; background: linear-gradient(90deg, rgba(59,182,255,0.0), rgba(59,182,255,0.6), rgba(59,182,255,0.0)); }
.s-card:hover { border-color: #35506b; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.35); }
.s-title { margin: 2px 0 6px; font-size: clamp(18px, 2.6vw, 20px); }
.s-list { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }

/* Outsourcing */
.outsourcing { padding: 56px 0 12px; }
.outsourcing .panel { width: min(1100px, 100%); margin: 0 auto; }
.outsourcing .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.outsourcing-title { font-size: clamp(22px, 3.8vw, 32px); margin: 0 0 10px; }
.outsourcing-text { color: var(--muted); margin: 0 0 8px; font-size: clamp(16px, 2.1vw, 18px); }

/* Packages */
.packages { padding: 56px 0 18px; }
.package-cards { list-style: none; margin: 18px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pkg-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; transition: border-color .2s ease, transform .12s ease, box-shadow .2s ease; }
.pkg-card:hover { border-color: #35506b; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.35); }
.pkg-head { border-bottom: 1px dashed rgba(148,163,184,0.25); padding-bottom: 8px; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; row-gap: 6px; }
.pkg-title { margin: 0 0 2px; font-size: clamp(18px, 2.6vw, 20px); }
.pkg-sub { margin: 0; color: var(--muted); font-size: 0.98rem; }
.pkg-badge { font-size: 12px; padding: 4px 8px; border-radius: 999px; background: rgba(59,182,255,0.12); border: 1px solid rgba(59,182,255,0.35); color: var(--text); margin-left: auto; white-space: nowrap; }
.pkg-list { margin: 4px 0 0; padding-left: 18px; color: var(--muted); }
.pkg-actions { margin-top: 8px; }
.pkg-card.recommended { border-color: rgba(59,182,255,0.6); box-shadow: 0 12px 28px rgba(59,182,255,0.15); }
.pkg-card.recommended .btn { border-color: rgba(59,182,255,0.45); }
.note.center { text-align: center; margin-top: 12px; }

/* Ensure pricing buttons align to bottom */
.pkg-card { display: grid; grid-auto-rows: max-content; }
.pkg-actions { margin-top: auto; }

/* Cases */
.cases { padding: 56px 0 12px; }
.case-cards { list-style: none; margin: 18px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.c-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: grid; gap: 6px; transition: border-color .2s ease, transform .12s ease, box-shadow .2s ease; }
.c-card:hover { border-color: #35506b; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.35); }
.c-head { margin: 0 0 2px; font-size: clamp(18px, 2.6vw, 20px); }
.c-row { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; }
.c-label { color: var(--muted); white-space: nowrap; }
.c-text { color: var(--text); }
.c-row.result .c-text { color: var(--success); font-weight: 600; }

/* Process */
.process { padding: 56px 0 10px; }
.steps { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; gap: 14px; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--muted), transparent); opacity: 0.3; }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; transition: border-color .2s ease, transform .12s ease, box-shadow .2s ease; }
.step:hover { border-color: #35506b; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.35); }
.step__index { height: 32px; width: 32px; border-radius: 999px; display: grid; place-items: center; background: rgba(59,182,255,0.10); border: 1px solid rgba(59,182,255,0.35); color: var(--text); font-weight: 800; margin-left: 2px; }
.step__title { margin: 0 0 2px; font-size: clamp(18px, 2.6vw, 20px); }
.step__text { margin: 0; color: var(--muted); }

/* Lead form */
.lead-form { padding: 48px 0 72px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)); }
/* Request layout (form + contacts) */
.lead-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 0.95fr); gap: clamp(18px, 3vw, 28px); align-items: start; }
@media (max-width: 900px) { .lead-grid { grid-template-columns: 1fr; } }

/* Form panel */
form#lead-form { background: linear-gradient(180deg, rgba(15,25,41,0.96), rgba(9,16,28,0.96)); border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 24px 80px rgba(0,0,0,0.32); padding: clamp(22px, 4vw, 34px); }

/* Form grid & fields */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: end; }
/* Any element with .full spans the two columns */
.grid > .full { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-weight: 600; color: var(--text); }
label.full { grid-column: 1 / -1; }
/* Reset default fieldset look inside the form */
form#lead-form fieldset { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
form#lead-form fieldset > legend { padding: 0; margin: 0 0 10px; font-weight: 700; color: var(--text); }
form#lead-form fieldset > *:first-child { margin-top: 0; }
input, textarea, select { width: 100%; padding: 12px 12px; min-height: 48px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
::placeholder { color: color-mix(in oklab, var(--muted) 78%, transparent); }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,182,255,0.15); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%), linear-gradient(to right, transparent, transparent); background-position: calc(100% - 18px) calc(0.8em), calc(100% - 13px) calc(0.8em), calc(100% - 2.5em) 0.4em; background-size: 6px 6px, 6px 6px, 1px 1.6em; background-repeat: no-repeat; }
.checks legend { color: var(--muted); font-size: 0.95rem; }
.checks-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.check-opt { display: flex; gap: 8px; align-items: center; color: var(--text); font-weight: 500; }
.check-opt input { width: auto; accent-color: var(--primary); }
.form-status { margin-top: 10px; color: var(--muted); min-height: 1.2em; }
.form-status[data-kind="error"] { color: #fca5a5; }
.form-status[data-kind="success"] { color: #86efac; }
.form-status[data-kind="info"] { color: var(--muted); }
.invalid { border-color: var(--danger) !important; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* Radio option cards (for request_type) */
.radio-cards { display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: 12px; align-items: stretch; }
.radio-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; width: 100%; min-width: 0; }
@media (max-width: 900px) { .radio-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .radio-cards { grid-template-columns: 1fr; } }
.radio-card { position: relative; }
.radio-card { position: relative; min-width: 0; }
.radio-card label { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; padding: 12px 12px; border-radius: 16px; border: 1px solid var(--border); background: rgba(8,15,27,0.72); color: var(--text); cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .12s ease; min-height: 48px; height: 100%; line-height: 1.32; overflow-wrap: anywhere; word-break: normal; }
.radio-card label { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--border); background: rgba(8,15,27,0.72); color: var(--text); cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .12s ease; min-height: 44px; height: 100%; line-height: 1.32; overflow-wrap: normal; word-break: normal; hyphens: none; box-sizing: border-box; }
.radio-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.radio-card label { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; padding: 12px 12px; border-radius: 16px; border: 1px solid var(--border); background: rgba(8,15,27,0.72); color: var(--text); cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .12s ease; min-height: 48px; height: 100%; line-height: 1.32; overflow-wrap: anywhere; word-break: normal; }
.radio-card label::before { content: ""; width: 20px; height: 20px; border-radius: 999px; border: 2px solid rgba(56,189,248,0.34); background: linear-gradient(180deg, #08111f, #050a12); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03); }
.radio-card input[type="radio"]:focus + label { box-shadow: 0 0 0 3px rgba(59,182,255,0.15); border-color: var(--primary); }
.radio-card input[type="radio"]:checked + label { border-color: rgba(34,197,94,0.62); background: linear-gradient(180deg, rgba(13,45,34,0.78), rgba(8,24,26,0.88)); }
.radio-card input[type="radio"]:checked + label::before { border-color: rgba(34,197,94,0.85); background: radial-gradient(circle at 50% 50%, #22c55e 0 50%, #16a34a 100%); box-shadow: 0 0 16px rgba(34,197,94,0.22), inset 0 0 0 2px rgba(4,16,10,0.6); }
.radio-cards.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Checkbox visuals (generic) */
input[type="checkbox"] { width: auto; accent-color: var(--primary); }
label.agree { display: flex; align-items: center; gap: 8px; font-weight: 500; }
label.agree input[type="checkbox"] { margin: 0; }

/* Thematic check cards for tags[] */
.checks legend { margin-bottom: 10px; font-weight: 700; color: var(--text); }
.checks { border: 0; padding: 0; margin: 0; }
.checks-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check-opt { position: relative; display: block; min-height: 44px; padding: 12px 14px 12px 56px; border-radius: 16px; border: 1px solid rgba(148,163,184,0.16); background: rgba(8,15,27,0.72); cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; line-height: 1.35; word-break: normal; overflow-wrap: normal; hyphens: none; }
.check-opt:hover { border-color: rgba(56,189,248,0.34); background: rgba(13,26,44,0.92); }
.check-opt input { position: absolute; opacity: 0; pointer-events: none; }
.check-opt::before { content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 9px; border: 1px solid rgba(56,189,248,0.28); background: linear-gradient(180deg, #08111f, #050a12); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03); }
.check-opt::after { content: ""; position: absolute; left: 30px; top: 50%; width: 12px; height: 8px; border-left: 3px solid transparent; border-bottom: 3px solid transparent; transform: translate(-50%, -50%) rotate(-45deg); opacity: 0; transition: opacity .16s ease, transform .16s ease, border-color .16s ease; }
.check-opt:has(input:checked) { border-color: rgba(34,197,94,0.62); background: linear-gradient(180deg, rgba(13,45,34,0.78), rgba(8,24,26,0.88)); box-shadow: 0 0 0 1px rgba(34,197,94,0.10), 0 16px 45px rgba(0,0,0,0.22); }
.check-opt:has(input:checked)::before { border-color: rgba(34,197,94,0.85); background: linear-gradient(180deg, #22c55e, #16a34a); box-shadow: 0 0 18px rgba(34,197,94,0.22); }
.check-opt:has(input:checked)::after { opacity: 1; transform: translate(-50%, -50%) rotate(-45deg); border-left-color: #04100a; border-bottom-color: #04100a; }
.check-opt:has(input:focus-visible) { outline: 2px solid rgba(56,189,248,0.7); outline-offset: 3px; }
/* Ensure text wraps nicely inside cards */
.radio-card label, .check-opt { min-width: 0; box-sizing: border-box; }


/* Textarea comfort */
textarea { min-height: 160px; resize: vertical; }

/* Submit button prominence */
form#lead-form .btn.primary { min-height: 50px; border-radius: 14px; }

/* Thank you */
.thankyou { display: grid; place-items: center; height: 100dvh; text-align: center; }

/* Contact card next to form */
.contact-card { background:
  radial-gradient(circle at 10% -10%, rgba(56,189,248,0.14), transparent 34%),
  linear-gradient(180deg, rgba(15,28,45,0.96), rgba(8,15,27,0.96));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  max-width: 620px;
  width: 100%;
  margin-inline: auto;
}
.contact-card .contact-title { margin: 0 0 8px; font-size: clamp(18px, 2.6vw, 20px); }
.contact-items { list-style: none; padding: 0; margin: 8px 0 10px; display: grid; gap: 12px; }
.c-item { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; }
.c-ico { height: 36px; width: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(8,15,27,0.82); border: 1px solid rgba(56,189,248,0.24); font-size: 16px; }
.c-body { display: grid; gap: 2px; }
.c-label { color: var(--muted); font-size: 12px; }
.c-value { color: var(--text); overflow-wrap: anywhere; word-break: normal; }
.c-value a { color: inherit; overflow-wrap: anywhere; word-break: normal; }

/* Security note inside contact card */
.contact-card .muted.small { position: relative; padding: 10px 12px 10px 36px; border: 1px dashed rgba(148,163,184,0.18); border-radius: 12px; background: rgba(8,15,27,0.5); }
.contact-card .muted.small::before { content: "🛡️"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); opacity: 0.9; }

/* Legal inline note */
.legal-note { margin-top: 10px; color: var(--muted); }

/* First-step section cards layout */
.first-step { padding-block: clamp(56px, 7vw, 96px); }
.first-step .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.first-step .cards > * { min-width: 0; }
.first-step .section__content .actions.center { margin-top: 24px; }
@media (max-width: 640px) { .first-step .actions .btn { width: 100%; max-width: 320px; margin-inline: auto; } }
.first-step .card { align-items: center; min-height: 72px; }
.first-step .card .card__icon { height: 40px; width: 40px; border-radius: 12px; }

/* Footer */
.site-footer { padding: 28px 0; border-top: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.footer-copy a { text-decoration: underline; }
.footer-legal { display: grid; gap: 6px; overflow-wrap: anywhere; }
.footer-legal .label { color: var(--muted); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }

/* Visibility helpers */
.only-mobile { display: none; }
.mobile-nav-cta { display: none; color: var(--text); border: 1px solid var(--border); padding: 8px 10px; border-radius: 10px; }
.mobile-nav-cta:hover { border-color: #35506b; background: rgba(255,255,255,0.03); }

/* Reviews */
.reviews-list .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reviews { padding: 40px 0 20px; }
.reviews #home-reviews { margin-top: 12px; }
.reviews #home-reviews-empty { margin: 8px 0 0; }
.review-card { padding: 16px; display: grid; gap: 6px; }
.review-card .r-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.review-card .r-name { font-weight: 600; }
.review-card .r-rating { color: #e0a800; font-size: 14px; letter-spacing: 1px; }
.review-card .r-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.review-card .r-text { white-space: pre-wrap; }

/* Responsive */
@media (max-width: 1200px) {
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
  .service-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .package-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check-opt input { width: 20px; height: 20px; transform: scale(1.1); }
  .check-opt { min-height: 44px; }
  label.agree { min-height: 44px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outsourcing .split { grid-template-columns: 1fr; }
  .lead-grid { grid-template-columns: 1fr; }
}

/* Prevent overflow and ensure flexible items don't force horizontal scroll */
.hero-grid > *,
.grid > *,
.cards > *,
.service-groups > *,
.package-cards > *,
.case-cards > * { min-width: 0; }
@media (max-width: 768px) {
  .grid { grid-template-columns: 1fr; }
  .actions { flex-direction: column; align-items: stretch; }
  form#lead-form button[type="submit"] { width: 100%; }
  /* Compact header layout */
  .site-header .bar { flex-wrap: wrap; row-gap: 8px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  /* Mobile dropdown menu */
  .site-nav { display: none !important; position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(280px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; flex-direction: column; gap: 4px; }
  .site-header.is-open .site-nav { display: flex !important; }
  .site-nav a { display: block; padding: 12px 12px; border-radius: 10px; }
  /* Mobile CTA highlight */
  .site-nav .nav-cta { background: var(--accent-2); color: #06230f; border-color: rgba(34,197,94,0.45); }
  .site-nav .nav-cta:hover { background: #31d46b; color: #041a0b; }
  .only-mobile { display: inline-block; }
  /* Hide extra mobile-only CTA when burger exists */
  .mobile-nav-cta { display: none !important; }
  label.agree input[type="checkbox"] { width: 20px; height: 20px; transform: scale(1.15); }
  .cards { grid-template-columns: 1fr; }
  .service-groups { grid-template-columns: 1fr; }
  .package-cards { grid-template-columns: 1fr; }
  .case-cards { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .checks-grid { grid-template-columns: 1fr; }
}

/* Info split (who + access security) */
.info-split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
@media (max-width: 992px) { .info-split { grid-template-columns: 1fr; } }

/* Communities */
.section-communities { padding-block: clamp(56px, 7vw, 96px); }
.communities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.community-card { display: flex; flex-direction: column; gap: 12px; height: 100%; max-width: 100%; overflow-wrap: anywhere; }
.community-card .community-card__head { display: flex; align-items: center; gap: 10px; }
.community-card .community-card__title { margin: 0; font-size: clamp(18px, 2.4vw, 20px); }
.community-card__text { margin: 0; }
.community-card__button { margin-top: auto; }
.community-card__button .btn.is-disabled { opacity: 0.6; pointer-events: none; }
.community-card__icon { height: 40px; width: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text); }
.community-card--base .community-card__icon { border-color: var(--community-base-soft); background: var(--community-base-soft); color: var(--community-base); }
.community-card--chat .community-card__icon { border-color: var(--community-chat-soft); background: var(--community-chat-soft); color: var(--community-chat); }
.community-card--ann .community-card__icon { border-color: var(--community-announcements-soft); background: var(--community-announcements-soft); color: var(--community-announcements); }
@media (max-width: 768px) {
  .communities-grid { grid-template-columns: 1fr; }
  .community-card__button .btn { width: 100%; }
}