/* ===== Reset & tokens ===== */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --navy-900: #071528;
  --navy-800: #0B1F3A;
  --navy-700: #12305a;
  --blue: #1E90FF;
  --cyan: #00C2FF;
  --orange: #FF6B2C;
  --orange-dark: #e65a1c;
  --ink: #0f1c2e;
  --muted: #5a6b82;
  --line: #e3e9f1;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 31, 58, .08);
  --shadow-lg: 0 20px 50px rgba(11, 31, 58, .16);
  --container: 1200px;
  --header-h: 72px;
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { font-family: 'Montserrat', 'Inter', system-ui, sans-serif; line-height: 1.2; margin: 0 0 16px; color: var(--navy-800); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 16px; }
ul { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { color: var(--muted); }
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--orange); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { left: 8px; color: #fff; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 24px rgba(255, 107, 44, .35); }
.btn--primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(7, 21, 40, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: .04em; }
.logo:hover { color: #fff; }
.logo span { color: var(--cyan); }
.logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.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); }
.site-nav {
  position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--navy-900);
  padding: 8px 24px 24px; display: none; flex-direction: column; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-nav.is-open { display: flex; }
.site-nav a { color: #cfdcf0; font-weight: 500; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--cyan); }
.site-nav .nav-cta { margin-top: 16px; border: 0; background: var(--orange); color: #fff; text-align: center; border-radius: 999px; padding: 12px 20px; }
.site-nav .nav-cta:hover { background: var(--orange-dark); color: #fff; }

/* ===== Hero ===== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(0, 194, 255, .22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(30, 144, 255, .25), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, #0d2a50);
  padding: 72px 0 120px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 70% 40%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 70% 40%, #000, transparent 75%);
}
.hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--cyan), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: #b9c9e0; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.hero-tags li { margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; color: #cfdcf0; }
.rack { width: 100%; max-width: 460px; margin: 0 auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)); }
.led { animation: blink 2.4s infinite ease-in-out; }
.led:nth-of-type(2n) { animation-delay: .6s; }
.led:nth-of-type(3n) { animation-delay: 1.3s; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== Services ===== */
.cards { display: grid; gap: 24px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--cyan); }
.icon-box {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff;
}
.icon-box svg { width: 28px; height: 28px; }
.card p { color: var(--muted); margin: 0; }

/* ===== Why us (asymmetric) ===== */
.why { display: grid; gap: 48px; align-items: start; }
.why-list { display: grid; gap: 20px; }
.why-item { display: flex; gap: 18px; padding: 24px; background: #fff; border-radius: var(--radius); border-left: 4px solid var(--orange); box-shadow: var(--shadow); }
.why-item .num { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--orange); line-height: 1; min-width: 40px; }
.why-item h3 { margin-bottom: 6px; }
.why-item p { margin: 0; color: var(--muted); }

/* ===== Process ===== */
.steps { display: grid; gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--navy-800); color: #cfdcf0; overflow: hidden; }
.step::before {
  counter-increment: step; content: '0' counter(step);
  position: absolute; right: 16px; top: 4px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 4rem; color: rgba(255, 255, 255, .07);
}
.step h3 { color: #fff; }
.step p { margin: 0; }

/* ===== About ===== */
.about { display: grid; gap: 48px; align-items: center; }
.about-panel {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700)); color: #fff; border-radius: 24px; padding: 40px 32px; box-shadow: var(--shadow-lg);
}
.about-panel h3 { color: #fff; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); margin: 0; }
.facts li:last-child { border-bottom: 0; }
.facts small { color: var(--cyan); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 600; }
.facts span { font-weight: 500; }

/* ===== Contact ===== */
.contact { display: grid; gap: 40px; }
.contact-cards { display: grid; gap: 16px; align-content: start; }
.contact-card { display: flex; gap: 16px; padding: 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card .icon-box { margin: 0; flex-shrink: 0; width: 48px; height: 48px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p, .contact-card address { margin: 0; color: var(--muted); font-style: normal; font-size: .98rem; }
.contact-card a { word-break: break-word; }
.form { background: #fff; padding: 32px 28px; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy-800); }
.field input, .field textarea {
  width: 100%; font: inherit; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-soft); color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(30, 144, 255, .15); }
.field.has-error input, .field.has-error textarea { border-color: #d93025; }
.error-msg { display: none; color: #c5221f; font-size: .85rem; margin-top: 4px; }
.field.has-error .error-msg { display: block; }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.form .btn { width: 100%; }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(120deg, var(--blue), var(--cyan)); color: #04162b; padding: 56px 0; }
.cta-inner { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.cta-band h2 { color: #04162b; margin: 0; }
.cta-band .btn--primary { background: var(--navy-900); box-shadow: none; }
.cta-band .btn--primary:hover { background: #000; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-900); color: #9fb2cf; padding: 64px 0 0; font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #9fb2cf; }
.site-footer a:hover { color: var(--cyan); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }

/* ===== Page hero (policy) ===== */
.page-hero {
  color: #fff; padding: 64px 0 72px; position: relative; overflow: hidden;
  background: radial-gradient(700px 400px at 90% 0%, rgba(0, 194, 255, .22), transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-800));
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 12px; }
.page-hero p { color: #b9c9e0; margin: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: 20px; color: #9fb2cf; }
.breadcrumb a { color: var(--cyan); }

/* ===== Policy ===== */
.policy-layout { display: grid; gap: 40px; padding: 64px 24px 88px; }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; align-self: start; }
.toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; font-size: .95rem; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--ink); }
.toc a:hover, .toc a.active { color: var(--blue); }
.policy { max-width: 780px; }
.policy section { margin-bottom: 44px; }
.policy h2 { font-size: 1.5rem; padding-bottom: 10px; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.policy h3 { margin-top: 24px; font-size: 1.1rem; }
.policy .updated { display: inline-block; background: var(--bg-soft); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: .88rem; color: var(--muted); margin-bottom: 32px; }
.contact-box { background: var(--navy-800); color: #cfdcf0; border-radius: var(--radius); padding: 28px; }
.contact-box strong { color: #fff; }
.contact-box a { color: var(--cyan); }
.contact-box address { font-style: normal; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Tablet ===== */
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .form { padding: 40px; }
  .hero { padding: 96px 0 140px; }
}

/* ===== Desktop ===== */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 28px; padding: 0; background: none; border: 0; }
  .site-nav a { padding: 8px 0; border: 0; font-size: .95rem; }
  .site-nav .nav-cta { margin: 0; padding: 10px 22px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .why { grid-template-columns: .8fr 1.2fr; }
  .why .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
  .about { grid-template-columns: 1.2fr .8fr; }
  .contact { grid-template-columns: .85fr 1.15fr; }
  .policy-layout { grid-template-columns: 280px 1fr; }
  .toc { position: sticky; top: calc(var(--header-h) + 24px); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; }
}
