:root {
  --ink: #edf5ff;
  --muted: #9fb0c1;
  --navy-950: #03070d;
  --navy-900: #07101b;
  --navy-800: #0c1927;
  --navy-700: #11253a;
  --blue: #1598ff;
  --blue-deep: #0b68cf;
  --cyan: #65ccff;
  --green: #46d59a;
  --line: rgba(255, 255, 255, 0.11);
  --panel: rgba(255, 255, 255, 0.045);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 7%, rgba(21, 152, 255, 0.16), transparent 27rem),
    radial-gradient(circle at 8% 38%, rgba(21, 152, 255, 0.07), transparent 22rem),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 42%, #091522 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; padding: 0.75rem 1rem; background: white; color: #07101b; border-radius: 10px; }
.skip-link:focus { top: 1rem; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 13, 0.88);
  backdrop-filter: blur(18px);
}
.nav-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: 0.05em; white-space: nowrap; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(101, 204, 255, 0.35);
  border-radius: 13px;
  color: white;
  background: linear-gradient(145deg, var(--blue), #173e72);
  box-shadow: 0 0 28px rgba(21, 152, 255, 0.26);
  font-size: 1.3rem;
}
.brand small { display: block; color: var(--muted); font-size: 0.62rem; letter-spacing: 0.17em; line-height: 1.2; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 0.88rem; }
.nav-links > a { color: #dce8f4; padding-block: 0.6rem; }
.nav-links > a:hover, .nav-links > a[aria-current="page"] { color: var(--cyan); }
.nav-toggle { display: none; color: white; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 0.65rem 0.75rem; cursor: pointer; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.15;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: white; box-shadow: 0 12px 32px rgba(21, 152, 255, 0.23); }
.btn-secondary { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.03); }
.btn-secondary:hover { color: var(--cyan); border-color: var(--cyan); }

.hero { padding: 86px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--cyan); font-size: 0.77rem; font-weight: 900; letter-spacing: 0.17em; text-transform: uppercase; }
h1, h2, h3 { text-wrap: balance; }
h1 { margin: 14px 0 20px; font-size: clamp(3rem, 6.5vw, 5.3rem); line-height: 0.98; letter-spacing: -0.045em; }
h1 span, .accent { color: var(--blue); }
.page-hero h1 { max-width: 950px; font-size: clamp(2.8rem, 5.6vw, 4.8rem); }
.lead { max-width: 760px; margin: 0; color: #c5d2de; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trustline { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 28px; color: var(--muted); font-size: 0.84rem; }
.trustline span::before { content: "✓"; color: var(--green); margin-right: 7px; font-weight: 900; }
.hero-card { position: relative; overflow: hidden; padding: 16px; border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)); box-shadow: var(--shadow); }
.hero-card img { width: 100%; border-radius: 20px; }
.hero-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; bottom: -140px; border-radius: 50%; background: rgba(21,152,255,0.17); filter: blur(26px); pointer-events: none; }

section { padding: 76px 0; }
.section-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(21,152,255,0.065), rgba(255,255,255,0.018), rgba(21,152,255,0.065)); }
.section-heading { max-width: 780px; margin-bottom: 34px; }
.section-heading h2 { margin: 8px 0 13px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.06; letter-spacing: -0.025em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.07rem; }
.centered { text-align: center; margin-inline: auto; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,0.047), rgba(255,255,255,0.017)); box-shadow: 0 10px 32px rgba(0,0,0,0.2); }
.card-link { transition: transform 0.2s ease, border-color 0.2s ease; }
.card-link:hover { transform: translateY(-5px); border-color: rgba(101,204,255,0.55); }
.service-number { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 19px; border: 1px solid rgba(21,152,255,0.3); border-radius: 14px; background: rgba(21,152,255,0.12); color: var(--cyan); font-weight: 900; letter-spacing: 0.08em; }
.card h3 { margin: 0 0 10px; font-size: 1.2rem; line-height: 1.25; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 0.93rem; }
.card ul, .check-list { margin: 14px 0 0; padding: 0; list-style: none; color: #ccd8e4; }
.card li, .check-list li { position: relative; padding-left: 1.35rem; margin: 0.55rem 0; }
.card li::before, .check-list li::before { content: "•"; position: absolute; left: 0; color: var(--blue); font-weight: 900; }
.text-link { display: inline-flex; gap: 7px; align-items: center; margin-top: 10px; color: var(--cyan); font-weight: 800; font-size: 0.9rem; }
.text-link::after { content: "→"; }

.split { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 46px; align-items: start; }
.split-copy h2 { margin: 8px 0 16px; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.08; }
.split-copy p { color: #c5d2de; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.stat strong { display: block; color: var(--blue); font-size: 2.2rem; line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.84rem; }

.process { counter-reset: process; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.process-step { counter-increment: process; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,0.025); }
.process-step::before { content: "0" counter(process); display: block; margin-bottom: 18px; color: var(--blue); font-size: 0.77rem; font-weight: 900; letter-spacing: 0.15em; }
.process-step h3 { margin: 0 0 8px; }
.process-step p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.notice { padding: 25px 28px; border-left: 4px solid var(--blue); border-radius: 0 18px 18px 0; background: rgba(21,152,255,0.08); color: #cbd8e5; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.topic-tags span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #cbd8e5; background: rgba(255,255,255,0.025); font-size: 0.82rem; }

.product-feature { overflow: hidden; }
.product-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: end; margin-bottom: 30px; }
.product-heading h2 { margin: 8px 0 13px; font-size: clamp(2.25rem, 4.7vw, 4rem); line-height: 1.02; letter-spacing: -0.035em; }
.product-heading h2 span { color: var(--blue); }
.product-heading p { max-width: 820px; margin: 0; color: #c5d2de; font-size: 1.06rem; }
.product-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.product-gallery { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 18px; margin-bottom: 20px; }
.product-photo { position: relative; min-height: 510px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(145deg, #f7f9fb, #dbe4eb); box-shadow: var(--shadow); }
.product-photo img { width: 100%; height: 100%; object-fit: contain; }
.product-photo-tall img { object-fit: cover; object-position: center 47%; }
.product-photo-cutout { display: grid; place-items: center; background: radial-gradient(circle at 50% 44%, #ffffff 0 18%, #e6edf2 52%, #cad6df 100%); }
.product-photo-cutout img { width: 88%; height: 88%; }
.product-photo figcaption { position: absolute; left: 16px; bottom: 16px; padding: 9px 13px; border-radius: 999px; color: #07101b; background: rgba(255,255,255,0.9); box-shadow: 0 8px 24px rgba(7,16,27,0.14); font-size: 0.78rem; font-weight: 800; }
.product-details { display: grid; grid-template-columns: 1fr 1fr 1.08fr; gap: 18px; }
.spec-card h3, .product-option-card h3 { margin-top: 10px; }
.spec-list { margin: 19px 0 0; }
.spec-list div { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.spec-list dt { color: var(--muted); font-size: 0.82rem; }
.spec-list dd { margin: 0; color: #e6eff8; font-size: 0.86rem; font-weight: 700; }
.product-option-card { border-color: rgba(21,152,255,0.32); background: radial-gradient(circle at top right, rgba(21,152,255,0.2), transparent 42%), linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)); }
.spec-note { margin-top: 18px !important; padding-top: 16px; border-top: 1px solid var(--line); color: #7f93a6 !important; font-size: 0.78rem !important; }

.cta { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 42px; border: 1px solid rgba(21,152,255,0.27); border-radius: 30px; background: radial-gradient(circle at top right, rgba(21,152,255,0.23), transparent 36%), linear-gradient(135deg, #10263c, #07101a); box-shadow: var(--shadow); }
.cta h2 { margin: 5px 0 9px; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; }
.cta p { margin: 0; color: #b9c8d6; max-width: 760px; }

.contact-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-option { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.contact-option h3 { margin: 0 0 7px; }
.contact-option p { margin: 0 0 12px; color: var(--muted); }
.email-line { word-break: break-word; color: var(--cyan); font-weight: 800; }

footer { padding: 44px 0 54px; color: #8fa1b3; font-size: 0.82rem; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; padding-top: 30px; border-top: 1px solid var(--line); }
.footer-brand { color: #dce8f4; font-weight: 800; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: flex-end; }
.footer-links a:hover { color: var(--cyan); }
.footer-note { grid-column: 1 / -1; max-width: 900px; color: #74889b; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 20px; right: 20px; top: calc(100% + 1px); padding: 18px; flex-direction: column; align-items: stretch; gap: 3px; border: 1px solid var(--line); border-radius: 0 0 18px 18px; background: #07101b; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-card { max-width: 720px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .product-heading { grid-template-columns: 1fr; align-items: start; }
  .product-actions { justify-content: flex-start; }
  .product-details { grid-template-columns: repeat(2, 1fr); }
  .product-option-card { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .hero { padding: 58px 0 44px; }
  section { padding: 58px 0; }
  .grid-4, .grid-3, .grid-2, .stats, .process, .contact-options, .product-gallery, .product-details { grid-template-columns: 1fr; }
  .product-photo { min-height: 390px; }
  .product-option-card { grid-column: auto; }
  .cta { grid-template-columns: 1fr; padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .brand small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Research page additions */
.research-page section[id] { scroll-margin-top: 100px; }
.research-page .card p { font-size: 1rem; }
.author-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 56px; }
.author-identity h2 { margin: 10px 0 12px; font-size: clamp(2.4rem, 4.5vw, 3.5rem); line-height: 1.06; letter-spacing: -.025em; }
.author-role { color: var(--muted); margin: 0; }
.author-fact { border-left: 3px solid var(--blue); padding-left: 20px; margin: 30px 0 18px; }
.author-fact strong { display: block; color: var(--cyan); font-size: 2rem; line-height: 1.2; }
.author-fact span { display: block; color: #c5d2de; margin-top: 6px; }
.author-bio p { color: #c5d2de; margin: 0 0 20px; }
.author-bio .author-intro { color: var(--ink); font-size: 1.25rem; }
.research-page a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 5px; }
@media (max-width: 1040px) { .author-layout { grid-template-columns: 1fr; gap: 32px; } }

/* Shared contact form destination */
#contact-form { scroll-margin-top: 100px; }
.contact-form-section { padding-top: 24px; }
.contact-form-embed { width: 100%; min-width: 0; }
.contact-form-embed iframe { display: block; width: 100%; max-width: 100%; border: 0; }
.form-fallback { color: var(--muted); font-size: 1rem; overflow-wrap: anywhere; }
.form-fallback a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

.author-portrait { width: 100%; max-width: 420px; height: auto; margin: 0 0 28px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
