:root {
  --navy: #0b1f4d;
  --navy-2: #102b66;
  --ink: #0f1d3a;
  --body: #3b475e;
  --muted: #64718a;
  --blue: #1463f3;
  --blue-dark: #0b4fd1;
  --line: #e2e8f2;
  --bg: #f6f8fc;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 35, 80, .08), 0 2px 6px rgba(15, 35, 80, .05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--body);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
.container { width: min(1640px, 100% - 40px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(15,35,80,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 108px; }
.logo { position: relative; display: flex; align-items: baseline; gap: 10px; text-decoration: none; padding-bottom: 8px; }
.logo-script { font-family: "Great Vibes", cursive; font-size: 54px; color: var(--navy-2); line-height: 1; }
.logo-word { font-size: 32px; font-weight: 500; color: #4b5568; }
.logo-swoosh { position: absolute; left: 2px; bottom: -4px; width: 300px; height: 22px; fill: var(--navy-2); opacity: .85; }
.nav-links { display: flex; gap: 60px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 21px; color: var(--ink); transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--blue); color: #fff; text-decoration: none;
  font-family: inherit; font-weight: 600; font-size: 20px; line-height: 1;
  padding: 18px 28px; border-radius: 8px; border: 0; cursor: pointer;
  box-shadow: 0 6px 16px rgba(20, 99, 243, .3);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.13fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 22px;
  padding: 34px 0 56px;
  min-height: 800px;
}
.card {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #fff;
}
.card-body { position: relative; z-index: 2; padding: 44px 48px; }
.rule { display: block; width: 72px; height: 4px; background: var(--blue); border-radius: 2px; margin-bottom: 26px; }
.card p { font-size: 22px; line-height: 1.38; color: #2c3a55; margin: 18px 0 32px; max-width: 18em; }

.card-shielding { grid-row: 1 / span 2; background: #f6f8fc; border: 0; }
.card-shielding::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(40,110,255,.55), transparent 55%),
    linear-gradient(168deg, #071a45 0%, #0b2a6b 36%, rgba(15,52,135,.7) 48%, rgba(246,248,252,0) 62%);
  pointer-events: none;
}
.card-shielding .card-body { padding: 52px 48px; }
.card-shielding .rule { width: 102px; background: #2b78ff; }
.card-shielding h1 { color: #fff; font-size: clamp(44px, 4.6vw, 74px); font-weight: 800; }
.card-shielding p { color: #e6edfb; font-size: clamp(19px, 1.8vw, 30px); max-width: 17em; }
.blueprint { position: absolute; right: -6%; bottom: -3%; width: 100%; max-width: none; z-index: 0; }

.card-rso, .card-upthera { background: linear-gradient(120deg, #fff 0%, #f5f8fd 55%, #e9f0fa 100%); }
.card-rso h2 { font-size: clamp(32px, 2.6vw, 44px); font-weight: 800; }
.rso-art { position: absolute; right: -10px; top: 0; bottom: 0; width: 50%; z-index: 0; display: flex; align-items: center; }
.rso-art svg { width: 100%; height: auto; }

.upthera-mark { font-size: clamp(56px, 4.4vw, 76px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.upthera-mark .up { color: var(--navy); }
.upthera-mark .thera { color: var(--blue); }
.upthera-mark sup { font-size: .28em; color: var(--navy); vertical-align: top; margin-left: 2px; letter-spacing: 0; }

.monitor { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); width: 42%; max-width: 330px; z-index: 0; }
.screen {
  display: grid; grid-template-columns: 26% 1fr;
  aspect-ratio: 16 / 10.5;
  border: 10px solid #1e2533; border-radius: 12px; background: #fff; overflow: hidden;
  box-shadow: 0 18px 34px rgba(15,35,80,.18);
}
.sb { background: #f1f4f9; padding: 8px 6px; display: flex; flex-direction: column; gap: 9px; }
.sb-logo { background: var(--navy); color: #fff; font-size: 10px; font-weight: 700; padding: 5px 4px; border-radius: 3px; margin: -8px -6px 6px; text-align: center; }
.sb i { display: block; height: 7px; width: 60%; margin-left: 8px; background: #c3cddc; border-radius: 3px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; align-content: center; }
.tiles span { aspect-ratio: 1; display: grid; place-items: center; background: #eef3fb; border-radius: 8px; color: var(--blue); }
.tiles span:first-child, .tiles span:nth-child(4) { color: var(--navy); }
.tiles svg { width: 52%; height: 52%; fill: currentColor; }
.stand { width: 26%; height: 26px; margin: 0 auto; background: linear-gradient(#cfd6e1, #aab4c3); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; font-weight: 700; color: var(--blue); margin-bottom: 14px; }
.eyebrow.light { color: #8fb4ff; }
.section h2 { font-size: clamp(32px, 3.2vw, 48px); font-weight: 800; }
.section-head p, .about p, .contact p { font-size: 19px; margin-top: 18px; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: 0 2px 8px rgba(15,35,80,.04);
  scroll-margin-top: 130px; transition: box-shadow .25s, transform .25s;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service .icon { width: 54px; height: 54px; border-radius: 12px; background: #eaf1ff; color: var(--blue); display: grid; place-items: center; margin-bottom: 22px; }
.service .icon svg { width: 28px; height: 28px; fill: currentColor; }
.service h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.service p { margin: 0 0 16px; }
.service ul { margin: 0; padding-left: 20px; }
.service li { margin: 5px 0; }
.service li::marker { color: var(--blue); }
.chips { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.service-feature { background: linear-gradient(150deg, #0b1f4d, #123a8a); border: 0; color: #d9e3f7; }
.service-feature h3 { color: #fff; }
.service-feature .icon { background: rgba(255,255,255,.12); color: #fff; }
.service-feature strong { color: #fff; }
.text-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 20px; color: #fff; font-weight: 700; text-decoration: none; }
.text-link svg { width: 18px; height: 18px; }
.text-link:hover { text-decoration: underline; }

.section-dark { background: radial-gradient(90% 120% at 100% 0%, #173f99 0%, var(--navy) 55%); color: #cfdbf3; }
.section-dark h2 { color: #fff; }
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.facts li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 24px; }
.facts strong { display: block; color: #fff; font-size: 20px; margin-bottom: 4px; }
.facts span { font-size: 15px; }

.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
.contact-lines a { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 22px; font-weight: 700; color: var(--ink); text-decoration: none; }
.contact-lines svg { width: 24px; height: 24px; color: var(--blue); }
.contact-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: grid; gap: 18px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  border: 1px solid #ccd6e6; border-radius: 8px; padding: 12px 14px; background: #fff;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid rgba(20,99,243,.35); border-color: var(--blue); }
.contact-form .btn { justify-self: start; font-size: 18px; }
.hidden { display: none; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 15px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; }
  .card-shielding { grid-row: auto; min-height: 640px; }
  .card-rso, .card-upthera { min-height: 380px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav { height: 84px; }
  .logo-script { font-size: 40px; }
  .logo-word { font-size: 24px; }
  .logo-swoosh { width: 220px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; box-shadow: 0 12px 20px rgba(15,35,80,.08);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav-links a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .site-header.open .nav-links { max-height: 300px; }
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 28px); }
  .card-body, .card-shielding .card-body { padding: 32px 26px; }
  .card-shielding { min-height: 700px; }
  .blueprint { width: 150%; right: -30%; bottom: -4%; }
  .card p { font-size: 18px; }
  .btn { font-size: 17px; padding: 15px 22px; }
  .rso-art { opacity: .35; width: 70%; }
  .monitor { opacity: .3; width: 60%; right: -20px; }
  .service-grid, .facts, .contact-form .row { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .logo-script { font-size: 32px; }
  .logo-word { font-size: 19px; }
  .logo-swoosh { width: 170px; }
}

/* keep right-card text clear of illustrations */
.card-rso .card-body, .card-upthera .card-body { max-width: 60%; }
.rso-art { width: 42%; }
.monitor { width: 36%; }
@media (max-width: 700px) {
  .card-rso .card-body, .card-upthera .card-body { max-width: 100%; }
}
.contact > *, .about > * { min-width: 0; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-width: 0; }
