/* Single-page DPlexBio site (index2.html) */
:root {
  --ink: #102033;
  --muted: #5e6d7c;
  --blue: #096bd8;
  --sky: #28a5ff;
  --navy: #071b31;
  --navy-2: #0b2c47;
  --pale: #f3f8fc;
  --line: #dbe7f0;
  --nav-h: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.55 Inter, Arial, Helvetica, sans-serif;
}

img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(30px, 4vw, 43px); letter-spacing: -.04em; }
h3 { font-size: 19px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--muted); margin-top: .6em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.center { text-align: center; max-width: 820px; margin: 0 auto 48px; }
section { padding: 96px 0; }
.pale { background: var(--pale); }

.eyebrow, .kicker, .product-name, .card__tag, .compare__label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.term { text-transform: none; }
.sub { font-size: 18px; color: var(--muted); }
.lead { font-size: 23px; color: #354b61; }
.small { font-size: 14px; color: var(--muted); }
.quote { font-size: 25px; font-weight: 800; color: var(--blue); }

/* Dark sections */
.dark { background: var(--navy); color: #fff; }
.dark .sub, .dark p { color: #bfd0e0; }
.dark h2, .dark h3 { color: #fff; }
.dark .kicker { color: var(--sky); }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #edf1f5;
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  margin: 0;
}
.brand img { height: 48px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--blue); border-bottom-color: var(--blue); }
.nav__links .nav__pill { background: var(--blue); color: #fff; border: 0; border-radius: 8px; padding: 11px 18px; }
.nav__links .nav__pill:hover, .nav__links .nav__pill.is-active { color: #fff; background: #0863c7; }
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #d4e2ee;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(120deg, #fff 0%, #f8fbfe 58%, #edf7ff 100%);
  padding: 72px 0 96px;
}
.hero__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -.045em; line-height: .98; margin: 8px 0 24px; }
.hero__img { border-radius: 16px; box-shadow: 0 24px 60px rgba(15, 52, 86, .18); }

/* Paradigm shift comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.compare > div { border-top: 1px solid #23476b; padding-top: 24px; }
.compare__label { color: #8fa9c2; }
.compare__label--accent { color: var(--sky); }
.compare__idea { font-size: 20px; color: #fff !important; margin-top: 20px; }
.manifesto { text-align: center; font-size: 25px; font-weight: 700; color: #fff !important; margin: 0; }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid #e5edf5; border-radius: 12px; padding: 24px; }
.pale .card { box-shadow: 0 3px 10px rgba(20, 60, 90, .04); }
.card p:last-child { margin-bottom: 0; }
.card__img { display: block; width: 100%; border-radius: 8px; margin: 12px 0 18px; }
.card--icon svg {
  width: 48px;
  height: 48px;
  padding: 10px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #e8f4ff;
  color: #126bc7;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Figures */
.figure-wide { display: block; width: 100%; border-radius: 12px; }
.figure { display: block; width: 100%; border-radius: 12px; box-shadow: 0 20px 52px rgba(15, 52, 86, .12); }
.figure--flat { box-shadow: none; }
.svg-figure svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 15px 30px rgba(24, 55, 85, .09)); }
/* Card variant: the panel stretches to the row height; the drawing is centered inside */
.svg-figure--card {
  align-self: stretch;
  display: grid;
  place-items: center;
  border: 1px solid #d0e3f2;
  border-radius: 16px;
  background: linear-gradient(to bottom right, #f3f9ff, #e5f1fd);
  box-shadow: 0 15px 30px rgba(24, 55, 85, .09);
}
.svg-figure--card svg { filter: none; }
.svg-figure--card .svg-bg { display: none; }
[data-zoom] { cursor: zoom-in; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--top { margin-bottom: 40px; }

.callout {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 16px 20px;
  border-left: 3px solid var(--sky);
  background: #0b2135;
}
.callout b { color: #fff; }

.arrow-link { font-weight: 700; text-decoration: none; }
.arrow-link::after { content: " →"; }

.result { text-align: center; font-size: 22px; font-weight: 700; color: var(--blue); margin: 40px 0 0; }

/* Speed graphic (AI enhancement) */
.speed {
  height: 140px;
  margin: 12px 0 18px;
  border-radius: 12px;
  background: var(--navy-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.speed span { font-size: 40px; color: #66c4ec; }
.speed i {
  width: 104px;
  height: 92px;
  background-color: #0a2035;
  background-image:
    radial-gradient(circle at 30% 40%, #80d9ef 0 6px, transparent 8px),
    radial-gradient(circle at 68% 25%, #80d9ef 0 8px, transparent 10px),
    radial-gradient(circle at 65% 75%, #80d9ef 0 11px, transparent 13px),
    radial-gradient(circle at 20% 78%, #80d9ef 0 5px, transparent 7px);
}
.speed__noisy { filter: blur(4px) brightness(.68); }
.speed__clear { box-shadow: inset 0 0 0 1px #4b7e99; }

/* Video placeholder */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid #23476b;
  background-color: var(--navy-2);
  background-image:
    radial-gradient(circle at 18% 30%, rgba(128, 217, 239, .55) 0 14px, transparent 16px),
    radial-gradient(circle at 34% 72%, rgba(128, 217, 239, .35) 0 24px, transparent 26px),
    radial-gradient(circle at 72% 24%, rgba(128, 217, 239, .4) 0 20px, transparent 22px),
    radial-gradient(circle at 84% 70%, rgba(128, 217, 239, .3) 0 32px, transparent 34px),
    radial-gradient(circle at 56% 86%, rgba(128, 217, 239, .45) 0 9px, transparent 11px),
    linear-gradient(135deg, #0b2c47, #071b31);
}
.video iframe,
.video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.video__play {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.video__play::after {
  content: "";
  display: block;
  margin: 24px 0 0 31px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent var(--blue);
}
.video__label {
  position: absolute;
  left: 18px;
  bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* Cards with a top image */
.card--media { display: flex; flex-direction: column; }
.card__media { position: relative; margin: -24px -24px 20px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 12px 12px 0 0; background: #fff; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--contain img { object-fit: contain; padding: 12px; }
.mock-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(7, 27, 49, .8);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; align-self: flex-start; margin-top: auto; }
.buttons--left { justify-content: flex-start; }

/* Applications radial diagram */
.radial { max-width: 920px; margin: 0 auto; }
.radial svg { display: block; width: 100%; height: auto; }
.radialMobile { display: none !important; }

/* Products */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.stats div { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.stats strong { display: block; font-size: 22px; color: var(--blue); }
.stats span { font-size: 13px; color: var(--muted); }
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.panels figure { background: #fff; border: 1px solid #e5edf5; border-radius: 12px; padding: 14px; }
.panels figcaption { margin: 0 0 10px; font-weight: 700; color: var(--ink); }
.panels img { display: block; width: 100%; height: 260px; object-fit: contain; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span { background: #e8f4ff; color: #0b5caa; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.details { padding-left: 20px; }
.details li { margin-bottom: 8px; }

/* Company */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid #23476b; }
.timeline li { position: relative; padding: 0 0 28px 28px; color: #bfd0e0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sky);
}
.timeline b { display: block; color: #fff; font-size: 18px; }

.cta { background: linear-gradient(120deg, #086fd8, #063d80); color: #fff; }
.cta h2 { color: #fff; }
.cta .sub { color: #d6e6f7; }
.cta .center { margin-bottom: 0; }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 0; }
.btn {
  display: inline-block;
  padding: 13px 20px;
  border: 1px solid #fff;
  border-radius: 8px;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}
.btn--light { background: #fff; color: #0863bd; }

/* Footer */
.footer { background: #071525; color: #b9cbe0; padding: 56px 0; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer a { display: block; color: #b9cbe0; text-decoration: none; margin-bottom: 6px; }
.footer a:hover { color: #fff; }
.footer b { color: #fff; }
.footer address { font-style: normal; }
.brand--footer { color: #fff; margin-bottom: 14px; }
.brand--footer img { height: 40px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(4, 14, 26, .85); }
.lightbox img { display: block; max-width: 94vw; max-height: 92vh; border-radius: 8px; background: #fff; }
.lightbox__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* Tablet and phone */
@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  section { padding: 64px 0; }
  .wrap { padding: 0 20px; }
  .brand img { height: 38px; }
  .brand { font-size: 21px; }
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 20px;
    background: #fff;
    box-shadow: 0 15px 25px rgba(16, 45, 74, .15);
  }
  .nav__links.is-open { display: flex; }
  .nav__links .nav__pill { text-align: center; margin-top: 8px; }
  .hero { padding: 48px 0 64px; }
  .hero__grid, .split, .compare, .cards--2, .cards--3 { grid-template-columns: 1fr; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .radialDesktop { display: none !important; }
  .radialMobile { display: block !important; max-width: 600px; margin: 0 auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .cards--4, .stats, .panels { grid-template-columns: 1fr; }
  .lead { font-size: 20px; }
  .buttons .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
