/* 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; }

/* Test style to verify CSS loads */
body {
  background: #070b12;
  color: #e8eef8;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* InfraCare — Modern dark B2B landing design system */
:root {
  --bg: #070b12;
  --bg-soft: #0b1220;
  --surface: #101827;
  --surface-2: #132033;
  --border: rgba(148, 163, 184, 0.18);
  --text: #e8eef8;
  --muted: #94a3b8;
  --primary: #27b7ff;
  --primary-hover: #5ccaff;
  --success: #22c55e;
  --danger: #fb7185;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 5% -10%, rgba(39,183,255,0.12), transparent 60%),
              radial-gradient(900px 500px at 95% -10%, rgba(34,197,94,0.10), transparent 55%),
              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(1180px, 92%); margin: 0 auto; }

/* 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; }
.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; }
.site-nav a { color: var(--muted); padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; }
.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); }

/* 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; }
.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; }
.hero::before { content: ""; position: absolute; inset: -40px 0 auto 0; height: 300px; pointer-events: none; background: radial-gradient(600px 240px at 20% -10%, rgba(59,182,255,0.18), transparent 70%); filter: blur(10px); }
.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: 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: #35506b; 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; }

/* 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)); }
form#lead-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: end; }
label { display: grid; gap: 6px; font-weight: 600; color: var(--text); }
label.full { grid-column: 1 / -1; }
input, textarea, select { width: 100%; padding: 12px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
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; }

/* Thank you */
.thankyou { display: grid; place-items: center; height: 100dvh; text-align: center; }

/* Footer */
.site-footer { padding: 28px 0; border-top: 1px solid var(--border); background: rgba(255,255,255,0.02); }

/* 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)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outsourcing .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .actions { flex-direction: column; align-items: stretch; }
  .site-nav { display: none; }
  .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; }
}