/* DB Resilience v20 — editorial motion layer
   Original design system built on the v19 production baseline.
   No third-party CSS or copied site code. */

:root {
  --v20-surface: rgba(7, 19, 32, .76);
  --v20-surface-strong: rgba(9, 24, 40, .94);
  --v20-line: rgba(130, 207, 243, .16);
  --v20-line-strong: rgba(100, 219, 255, .38);
  --v20-glow: rgba(47, 200, 255, .15);
  --v20-green: #66e0ae;
  --v20-cyan: #65d7ff;
  --v20-white: #f5fbff;
  --v20-radius-xl: 34px;
  --v20-radius-lg: 24px;
  --v20-ease: cubic-bezier(.2,.8,.2,1);
}

html { scroll-behavior: smooth; }

body {
  overflow-x: hidden;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(107, 190, 229, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 190, 229, .035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.78) 35%, transparent 92%);
}

.scroll-progress-v20 {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--v20-cyan), var(--v20-green));
  box-shadow: 0 0 18px rgba(101, 215, 255, .48);
  pointer-events: none;
}

.site-header {
  border-bottom-color: rgba(111, 190, 226, .12);
  background: rgba(4, 12, 22, .72);
  backdrop-filter: blur(20px) saturate(140%);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.site-header.v20-scrolled {
  background: rgba(4, 12, 22, .92);
  border-bottom-color: rgba(111, 190, 226, .2);
  box-shadow: 0 16px 46px rgba(0, 0, 0, .18);
}

.nav { min-height: 74px; }

.brand-mark {
  box-shadow: inset 0 0 0 1px rgba(127, 220, 255, .2), 0 10px 32px rgba(0,0,0,.18);
}

.nav-links a {
  position: relative;
  transition: color .2s ease, transform .2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 1px;
  background: var(--v20-cyan);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform .25s var(--v20-ease);
}

.nav-links a:hover::after,
.nav-links a.v20-active::after { transform: scaleX(1); }
.nav-links a.v20-active { color: #fff; }

.hero {
  position: relative;
  min-height: min(900px, calc(100vh - 32px));
  padding-top: clamp(96px, 10vw, 150px);
  padding-bottom: clamp(80px, 9vw, 140px);
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(390px, .84fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.hero::before {
  content: "";
  position: absolute;
  width: min(68vw, 980px);
  height: min(68vw, 980px);
  left: -35vw;
  top: -18vw;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48, 192, 255, .12), rgba(45, 123, 207, .04) 38%, transparent 69%);
  filter: blur(10px);
}

.hero-copy { position: relative; z-index: 2; }

.owner-signature {
  margin-bottom: clamp(24px, 3vw, 42px);
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(112, 203, 242, .17);
  border-radius: 999px;
  background: rgba(8, 24, 39, .58);
  backdrop-filter: blur(10px);
}

.hero h1 {
  max-width: 9.5ch;
  margin: 0;
  font-size: clamp(4.2rem, 7.3vw, 7.9rem);
  line-height: .88;
  letter-spacing: -.065em;
  font-weight: 790;
  text-wrap: balance;
}

.hero h1 > span {
  display: block;
  transform: translateZ(0);
}

.hero-enterprise { color: #f5fbff; }
.hero-cloud,
.hero-resilience {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-size: 180% 100%;
}

.hero-cloud {
  background-image: linear-gradient(90deg, #f6fbff 0%, #76d9ff 48%, #75a8ff 100%);
}

.hero-resilience {
  background-image: linear-gradient(90deg, #6bd8ff 0%, #64dfae 60%, #b3f4d7 100%);
}

.v20-ready .hero h1 > span {
  opacity: 0;
  transform: translateY(34px);
  animation: v20HeroReveal .85s var(--v20-ease) forwards;
}
.v20-ready .hero h1 > span:nth-child(2) { animation-delay: .11s; }
.v20-ready .hero h1 > span:nth-child(3) { animation-delay: .22s; }

@keyframes v20HeroReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-text {
  max-width: 760px;
  margin-top: clamp(28px, 4vw, 46px);
  font-size: clamp(1.08rem, 1.55vw, 1.34rem);
  line-height: 1.72;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .button {
  min-height: 50px;
  padding-inline: 20px;
  border-radius: 999px;
}

.platform-strip {
  position: relative;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid rgba(125, 201, 234, .16);
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.platform-strip span {
  border-radius: 999px;
  background: rgba(9, 27, 44, .58);
  backdrop-filter: blur(9px);
}

.hero-architecture {
  position: relative;
  overflow: hidden;
  border-radius: var(--v20-radius-xl);
  border: 1px solid rgba(114, 206, 245, .2);
  background:
    linear-gradient(155deg, rgba(14, 38, 61, .96), rgba(5, 15, 27, .94) 58%),
    rgba(5, 15, 27, .94);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255,255,255,.035);
  transform: perspective(1000px) rotateY(-2.5deg) rotateX(1deg);
  transition: transform .45s var(--v20-ease), border-color .35s ease, box-shadow .35s ease;
}

.hero-architecture::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(105, 212, 255, .055) 50%, transparent 50.2%),
    linear-gradient(transparent 0 49.8%, rgba(105, 212, 255, .045) 50%, transparent 50.2%);
  background-size: 46px 46px;
  opacity: .56;
}

.hero-architecture::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 214, 255, .2), transparent 68%);
  filter: blur(7px);
}

.hero-architecture:hover {
  border-color: rgba(105, 216, 255, .34);
  box-shadow: 0 48px 100px rgba(0,0,0,.4), 0 0 70px rgba(49, 194, 255, .09);
}

.arch-node,
.arch-control,
.arch-focus {
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
}

.stats {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top-color: rgba(123, 201, 236, .18);
  border-bottom-color: rgba(123, 201, 236, .18);
  background: transparent;
  box-shadow: none;
}

.stats article {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stats strong {
  font-size: clamp(2rem, 3vw, 3.1rem);
  letter-spacing: -.045em;
}

.section {
  position: relative;
  padding-top: clamp(96px, 10vw, 160px);
  padding-bottom: clamp(96px, 10vw, 160px);
}

.section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1120px, calc(100% - 48px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(110, 197, 235, .18) 16%, rgba(110, 197, 235, .18) 84%, transparent);
  pointer-events: none;
}

.section-heading { margin-bottom: clamp(44px, 6vw, 78px); }

.section-heading .eyebrow,
.contact-intro .eyebrow,
.pricing-kicker,
.service-cta-label {
  letter-spacing: .14em;
}

.section-heading h2,
.contact-intro h2 {
  max-width: 17ch;
  margin-top: 14px;
  font-size: clamp(2.75rem, 5.3vw, 5.7rem);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.section-heading > p:last-child,
.contact-intro > p:not(.eyebrow) {
  max-width: 760px;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.75;
}

.command-layout,
.intelligence-panel,
.cost-analysis,
.card,
.linux-terminal-shell,
.cloud-panel,
.service-card,
.pricing-card,
.contact-card,
.safety-grid article {
  transform: translateZ(0);
}

.command-panel,
.intelligence-panel,
.linux-console-card,
.cloud-panel,
.service-card,
.pricing-card,
.contact-card,
.safety-grid article {
  border-color: rgba(117, 201, 236, .15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 22px 55px rgba(0,0,0,.12);
}

.service-card,
.pricing-card,
.contact-card,
.safety-grid article,
.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--v20-radius-lg);
  transition: transform .32s var(--v20-ease), border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

.service-card::before,
.pricing-card::before,
.contact-card::before,
.safety-grid article::before,
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 213, 255, .52), transparent);
  opacity: .42;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover,
  .pricing-card:hover,
  .contact-card:hover,
  .safety-grid article:hover,
  .card:hover {
    transform: translateY(-7px);
    border-color: rgba(100, 211, 255, .32);
    box-shadow: 0 28px 70px rgba(0,0,0,.25), 0 0 48px rgba(53, 199, 255, .055);
  }
}

.service-grid {
  gap: 16px;
}

.service-card {
  min-height: 255px;
  padding: clamp(24px, 2.5vw, 34px);
  background: linear-gradient(155deg, rgba(12, 32, 51, .78), rgba(7, 19, 32, .82));
}

.service-code {
  font-size: 2.1rem;
  opacity: .34;
  letter-spacing: -.04em;
}

.service-card h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.pricing-grid { gap: 16px; }
.pricing-card { min-height: 100%; }
.pricing-card.featured {
  border-color: rgba(96, 218, 255, .34);
  background: linear-gradient(155deg, rgba(15, 48, 70, .88), rgba(8, 25, 41, .94));
}
.pricing-card.capacity-card {
  background: linear-gradient(155deg, rgba(44, 16, 25, .4), rgba(8, 20, 32, .93) 58%);
  border-color: rgba(255, 94, 108, .22);
}

.capacity-badge {
  box-shadow: 0 0 0 1px rgba(255,255,255,.02), 0 0 26px rgba(255, 70, 86, .08);
}

.contact-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 25%, rgba(62, 203, 255, .09), transparent 28rem),
    linear-gradient(180deg, rgba(6,17,29,.16), rgba(7,18,30,.56));
}

.contact-layout { gap: clamp(42px, 7vw, 100px); }
.contact-email {
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  word-break: break-word;
}

.engineering-rail {
  border-color: rgba(115, 201, 238, .14);
  background: rgba(7, 20, 33, .68);
  backdrop-filter: blur(20px) saturate(130%);
  box-shadow: 0 22px 55px rgba(0,0,0,.18);
}

.engineering-rail > a {
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.engineering-rail > a:hover { transform: translateX(3px); }

.student-rail-banner {
  position: relative;
  overflow: hidden;
}
.student-rail-banner::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -42px;
  bottom: -46px;
  border-radius: 50%;
  background: rgba(76, 218, 168, .08);
  filter: blur(4px);
}

.reveal-v20 {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .78s var(--v20-ease), transform .78s var(--v20-ease);
}
.reveal-v20.v20-visible { opacity: 1; transform: translateY(0); }

.v20-depth {
  transition: transform .18s ease-out;
  will-change: transform;
}

.footer {
  border-top-color: rgba(119, 199, 234, .16);
  background: rgba(3, 10, 18, .82);
  backdrop-filter: blur(14px);
}

:root[data-theme="light"] {
  --v20-surface: rgba(255,255,255,.76);
  --v20-surface-strong: rgba(255,255,255,.94);
  --v20-line: rgba(32, 101, 137, .15);
  --v20-line-strong: rgba(0, 126, 174, .32);
}

:root[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(22, 103, 143, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 103, 143, .045) 1px, transparent 1px);
}

:root[data-theme="light"] .site-header,
:root[data-theme="light"] .site-header.v20-scrolled {
  background: rgba(248, 251, 253, .9);
}

:root[data-theme="light"] .owner-signature,
:root[data-theme="light"] .platform-strip span,
:root[data-theme="light"] .engineering-rail {
  background: rgba(255,255,255,.76);
}

:root[data-theme="light"] .hero-enterprise { color: #102536; }
:root[data-theme="light"] .hero-cloud {
  background-image: linear-gradient(90deg, #102536 0%, #007eae 50%, #405dc4 100%);
}
:root[data-theme="light"] .hero-resilience {
  background-image: linear-gradient(90deg, #007eae 0%, #087b59 68%, #176746 100%);
}

:root[data-theme="light"] .hero-architecture {
  background: linear-gradient(155deg, rgba(255,255,255,.97), rgba(237,246,251,.96));
  box-shadow: 0 38px 80px rgba(30, 73, 98, .13), inset 0 1px 0 rgba(255,255,255,.72);
}

:root[data-theme="light"] .service-card {
  background: linear-gradient(155deg, rgba(255,255,255,.94), rgba(241,247,250,.9));
}
:root[data-theme="light"] .pricing-card.featured {
  background: linear-gradient(155deg, rgba(238,250,255,.98), rgba(255,255,255,.96));
}
:root[data-theme="light"] .pricing-card.capacity-card {
  background: linear-gradient(155deg, rgba(255, 244, 246, .96), rgba(255,255,255,.96));
}
:root[data-theme="light"] .contact-section {
  background:
    radial-gradient(circle at 78% 25%, rgba(0, 126, 174, .08), transparent 28rem),
    linear-gradient(180deg, rgba(244,249,252,.45), rgba(235,244,248,.76));
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 118px;
  }
  .hero h1 { max-width: 10.5ch; }
  .hero-architecture {
    max-width: 880px;
    transform: none !important;
  }
}

@media (max-width: 860px) {
  .hero { padding-top: 100px; gap: 48px; }
  .hero h1 { font-size: clamp(3.55rem, 12vw, 6rem); }
  .section { padding-block: 92px; }
  .section-heading h2,
  .contact-intro h2 { font-size: clamp(2.65rem, 8vw, 4.6rem); }
  .nav-links a::after { display: none; }
  .service-card { min-height: auto; }
}

@media (max-width: 600px) {
  body::before { background-size: 38px 38px; }
  .hero { padding-top: 82px; padding-bottom: 72px; }
  .hero h1 {
    max-width: 100%;
    font-size: clamp(3.05rem, 15vw, 4.65rem);
    line-height: .92;
    letter-spacing: -.055em;
  }
  .hero-text { font-size: 1rem; line-height: 1.68; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; justify-content: center; }
  .hero-architecture { border-radius: 24px; }
  .platform-strip { gap: 7px; }
  .platform-strip span { font-size: 11px; }
  .section { padding-block: 76px; }
  .section::before { width: calc(100% - 28px); }
  .section-heading { margin-bottom: 40px; }
  .section-heading h2,
  .contact-intro h2 {
    max-width: 100%;
    font-size: clamp(2.35rem, 11.5vw, 3.7rem);
    line-height: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .v20-ready .hero h1 > span { animation: none; opacity: 1; transform: none; }
  .reveal-v20 { opacity: 1; transform: none; transition: none; }
  .v20-depth { transform: none !important; }
  .scroll-progress-v20 { transition: none; }
}

/* DB Resilience v20.1 — desktop hero fit correction after Cloudflare preview */
@media (min-width: 1181px) {
  .hero {
    min-height: auto;
    padding-top: clamp(78px, 6.2vw, 104px);
    padding-bottom: clamp(72px, 5.5vw, 94px);
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
    gap: clamp(42px, 4.5vw, 72px);
  }

  .owner-signature {
    margin-bottom: clamp(20px, 2vw, 30px);
  }

  .hero h1 {
    max-width: 10.6ch;
    font-size: clamp(4.15rem, 5.15vw, 5.8rem);
    line-height: .91;
    letter-spacing: -.058em;
  }

  .hero-text {
    margin-top: clamp(22px, 2.6vw, 34px);
    font-size: clamp(1.02rem, 1.18vw, 1.18rem);
    line-height: 1.64;
  }

  .hero-actions {
    margin-top: 26px;
  }
}
