/* Bronux – Brock IT Consulting */
:root {
  --bg: #0b1120;
  --bg-alt: #0f172a;
  --surface: #131c31;
  --surface-2: #1a2540;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --accent-strong: #2563eb;
  --ok: #34d399;
  --err: #f87171;
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; color: #fff; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
strong { color: #fff; font-weight: 600; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent) 60%, #4f8cff);
  color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, .7);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(59, 130, 246, .85); }
.btn-ghost { background: transparent; border-color: var(--border); box-shadow: none; color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.05); box-shadow: none; border-color: rgba(148,163,184,.35); }
.btn-ghost svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { padding: .5em 1.1em; font-size: .95rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 17, 32, .72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 34px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a:not(.btn) { color: var(--muted); font-weight: 500; font-size: .98rem; }
.nav-menu a:not(.btn):hover { color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(80px, 14vw, 160px) 0 clamp(70px, 10vw, 120px); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 80% 10%, rgba(37, 99, 235, .28), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(34, 211, 238, .14), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(96, 165, 250, .18); }
.circuit path { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 3.5s ease forwards; }
.circuit circle { fill: rgba(96, 165, 250, .35); stroke: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-inner { max-width: 820px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: .45em 1em;
  background: rgba(255,255,255,.02);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin: .45em 0 .35em; font-weight: 800; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 680px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 2em 0 3em; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 44px; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 1.8rem; font-weight: 800; }
.hero-facts span { color: var(--muted); font-size: .9rem; }

/* Sections */
.section { padding: clamp(70px, 10vw, 120px) 0; scroll-margin-top: 40px; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); }
.kicker { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: .8em; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  position: relative; background: linear-gradient(180deg, var(--surface), rgba(19, 28, 49, .6));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(96, 165, 250, .4); box-shadow: var(--shadow); }
.card p { color: var(--muted); font-size: .97rem; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .25), rgba(34, 211, 238, .15));
  border: 1px solid rgba(96, 165, 250, .25);
}
.card-icon svg { width: 24px; fill: none; stroke: #93c5fd; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.checks { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.checks li { position: relative; padding-left: 26px; margin-top: 8px; color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); transform: rotate(-45deg);
}
.stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.stack span {
  font-family: var(--mono); font-size: .82rem; color: var(--muted);
  padding: .4em .9em; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.02);
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }
.step-no { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: .9rem; color: var(--accent-2); margin-bottom: 14px; padding: .2em .6em; border-radius: 6px; background: rgba(34, 211, 238, .1); }

/* About */
.about { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-photo { position: relative; margin: 0; }
.about-photo::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; border-radius: 22px;
  border: 1px solid rgba(96, 165, 250, .35); z-index: -1;
}
.about-photo img:not(figcaption img) { border-radius: 20px; width: 100%; aspect-ratio: 5 / 6; object-fit: cover; box-shadow: var(--shadow); }
.about-photo figcaption {
  position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px;
  background: rgba(11, 17, 32, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; border: 1px solid var(--border);
}
.about-photo figcaption img { width: 22px; height: auto; }
.about-text p { color: var(--muted); }
.about-points { list-style: none; padding: 0; margin: 1.4em 0 2em; display: grid; gap: 10px; }
.about-points li { position: relative; padding-left: 26px; }
.about-points li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-info p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 2em 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; color: var(--text); word-break: break-word; }
.contact-list svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--surface-2); fill: none; stroke: #93c5fd; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; padding: .75em .9em; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.4em; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, .25); }
.field .invalid, .field input.invalid, .field textarea.invalid { border-color: var(--err); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 4px 0 22px; cursor: pointer; }
.consent input { margin-top: .3em; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.consent.invalid span { color: var(--err); }
.form-status { margin: 14px 0 0; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.sending .spinner { display: inline-block; }
.sending { opacity: .8; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-inner p { margin: 0; }
.footer-logo { height: 26px; width: auto; opacity: .85; }
.footer-inner nav { display: flex; gap: 22px; }
.footer-inner nav a { color: var(--muted); }
.footer-inner nav a:hover { color: #fff; }

/* Legal pages */
.legal { padding: clamp(50px, 8vw, 90px) 0; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5em; }
.legal p, .legal li { color: var(--muted); }
.legal .todo { background: rgba(250, 204, 21, .15); color: #fde68a; padding: 0 .3em; border-radius: 4px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .circuit path { animation: none; stroke-dashoffset: 0; }
}

/* Responsive */
@media (max-width: 900px) {
  .about, .contact { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 17, 32, .97); border-bottom: 1px solid var(--border); padding: 8px 20px 20px;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-menu .btn { margin-top: 16px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand img { height: 28px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .container { width: calc(100% - 32px); }
}
