/* MSservices – stylesheet */
:root {
  --bg: #0a1220;
  --bg-2: #0e1829;
  --surface: #121e33;
  --line: #1f2d47;
  --text: #e6edf7;
  --muted: #8fa0b8;
  --accent: #3ee0ff;
  --accent-2: #2b8cff;
  --ok: #3ddc97;
  --radius: 14px;
  --max: 1160px;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 750; overflow-wrap: anywhere; hyphens: auto; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: var(--bg); padding: .5rem 1rem; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04111d; font-weight: 650; border: 0; cursor: pointer;
  box-shadow: 0 8px 30px -10px rgba(62, 224, 255, .55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 34px -10px rgba(62, 224, 255, .75); }
.btn-ghost {
  background: transparent; color: var(--text); box-shadow: none;
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn-small { padding: .45rem 1rem; font-size: .95rem; }
.btn-block { width: 100%; margin-top: 1.5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 18, 32, .78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-size: 1.2rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand strong { color: var(--accent); font-weight: 700; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a:not(.btn) { color: var(--muted); font-size: .97rem; }
.nav-links a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .2s; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(4rem, 8vw, 6rem); }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(62, 224, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 224, 255, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -200px;
  background: radial-gradient(circle, rgba(43, 140, 255, .28), transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3.5rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: rgba(62, 224, 255, .08); border: 1px solid rgba(62, 224, 255, .25);
  padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.6rem;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); display: inline-block; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 34em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Spectrum card */
.spectrum {
  margin: 0; background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.2rem 1rem;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.spectrum-head, .spectrum-foot { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--muted); }
.spectrum-head { margin-bottom: .6rem; font-weight: 600; letter-spacing: .02em; }
.spectrum-foot { margin-top: .6rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.spectrum svg { width: 100%; height: 230px; display: block; }
.spectrum .axis line { stroke: #3a4b69; stroke-width: 1.2; }
.spectrum .gridlines line { stroke: #1d2a42; stroke-width: 1; stroke-dasharray: 3 5; }
.spectrum .labels text { fill: var(--muted); font-family: var(--mono); font-size: 10px; }
.spectrum .peaks rect {
  transform-origin: bottom; transform-box: fill-box;
  animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--d) * 70ms + 200ms);
}
.status { display: inline-flex; align-items: center; gap: .45rem; color: var(--ok); }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Sections */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 2.8rem; }
.kicker { color: var(--accent); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.section-lead { color: var(--muted); font-size: 1.1rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem 1.6rem;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(62, 224, 255, .45); transform: translateY(-3px); }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: rgba(62, 224, 255, .09); border: 1px solid rgba(62, 224, 255, .25);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Devices */
.devices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem; }
.devices li {
  display: flex; flex-direction: column; gap: .2rem;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: .95rem 1.1rem;
}
.devices li.wide { grid-column: span 2; }
.model { font-size: 1rem; font-weight: 600; color: var(--text); }
.type { font-size: .88rem; color: var(--muted); }
.note { margin-top: 1.8rem; color: var(--muted); }

/* About + contact */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.split p { color: var(--muted); }
.photo { margin: 2rem 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.contact {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: 18px; padding: 2.2rem;
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.label { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: .2rem; }
address { font-style: normal; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-inner nav { display: flex; gap: 1.5rem; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--text); }

/* Legal pages */
.legal { padding: clamp(3rem, 7vw, 5rem) 0; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--muted); }
.back { display: inline-block; margin-bottom: 2rem; font-family: var(--mono); font-size: .88rem; }

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

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .spectrum { max-width: 560px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 1rem; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .devices li.wide { grid-column: auto; }
  .contact { padding: 1.5rem; }
  .contact-list li { grid-template-columns: 1fr; gap: .2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
