@font-face {
  font-family: "Jost";
  src: url("/assets/jost.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}

:root {
  --black: #020405;
  --surface: #111315;
  --cyan: #149ce5;
  --deep-cyan: #004d67;
  --white: #f7f8fa;
  --muted: #a6b0b7;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--black); }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Jost", system-ui, sans-serif;
  line-height: 1.5;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 16px;
  background: var(--cyan);
  color: #00131d;
  font-weight: 700;
}

.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px clamp(24px, 4.25vw, 64px);
  background: rgba(18, 20, 21, .94);
  backdrop-filter: blur(18px) saturate(140%);
  transition: min-height .25s ease, background .25s ease;
}

.site-header.compact { min-height: 74px; background: rgba(6, 8, 9, .97); }
.brand img { width: 205px; height: auto; }
.main-menu { display: flex; align-items: center; gap: clamp(22px, 3.2vw, 52px); }
.main-menu > a, .nav-group > button {
  position: relative;
  border: 0;
  padding: 20px 0;
  color: #1f9ee7;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}

.main-menu > a::after, .nav-group > button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 1px;
  transform: scaleX(0);
  background: #6dc9ff;
  transition: transform .2s ease;
}

.main-menu > a:hover::after, .main-menu > a:focus-visible::after, .main-menu > a.active::after,
.nav-group > button:hover::after, .nav-group > button:focus-visible::after { transform: scaleX(1); }
.nav-group { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% - 5px);
  left: -24px;
  width: 230px;
  padding: 10px;
  border: 1px solid rgba(74, 187, 247, .28);
  background: rgba(7, 11, 13, .98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .18s ease;
}

.dropdown a { display: block; padding: 11px 13px; color: #d7eaf5; }
.dropdown a:hover, .dropdown a:focus-visible { background: #05334a; color: #fff; }
.nav-group:hover .dropdown, .nav-group.open .dropdown, .nav-group:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 90svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero > video, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero > video { object-fit: cover; }
.hero-shade { background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 5, 8, .42)); }
.hero-content { position: relative; z-index: 1; display: grid; justify-items: center; margin-top: 72px; text-align: center; text-shadow: 0 2px 18px rgba(0,0,0,.65); }
.hero-content img { width: clamp(175px, 19vw, 270px); }
.hero h1 { margin: -6px 0 0; font-size: clamp(36px, 4.25vw, 64px); line-height: 1.18; }
.hero h1 strong, .hero h1 span { display: block; }
.hero h1 strong { font-weight: 800; }
.hero h1 span { margin-top: 20px; font-weight: 400; letter-spacing: .015em; }

.catalog-section { background: #000; }
.section-title {
  margin: 0 0 64px;
  padding: 19px 24px 23px;
  background: var(--deep-cyan);
  text-align: center;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.2;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 80px) clamp(30px, 5.5vw, 80px);
  padding: 0 clamp(18px, 1.3vw, 28px) 48px;
}

.media-card { overflow: hidden; background: #04131c; box-shadow: 0 0 0 1px rgba(30, 167, 231, .08); }
.media-card img { width: 100%; height: auto; transition: transform .45s ease, filter .45s ease; }
.media-card:hover img, .media-card:focus-visible img { transform: scale(1.025); filter: brightness(1.08); }
.featured-grid { padding-bottom: 74px; }

.prefab {
  position: relative;
  min-height: min(720px, 82svh);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.prefab-media, .prefab-media::after { position: absolute; inset: 0; }
.prefab-media video { width: 100%; height: 100%; object-fit: cover; }
.prefab-media::after { content: ""; background: rgba(0, 6, 10, .62); }
.prefab-content { position: relative; z-index: 1; max-width: 800px; padding: 80px 24px; text-align: center; }
.eyebrow { margin: 0 0 16px; color: #78d1ff; font-size: 20px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.prefab h2 { margin: 0; font-size: clamp(42px, 6vw, 84px); line-height: 1; }
.prefab-content > p:not(.eyebrow) { max-width: 650px; margin: 26px auto 34px; color: #d6dde1; font-size: 20px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 28px; border: 1px solid #5bc4f7; color: #fff; background: rgba(0, 85, 124, .45); font-weight: 700; transition: .2s ease; }
.button:hover, .button:focus-visible { background: #0b89c5; }

.site-footer {
  display: grid;
  grid-template-columns: 1.35fr .8fr 1fr;
  gap: 50px;
  padding: 64px clamp(24px, 5vw, 80px) 28px;
  border-top: 1px solid #0c668f;
  background: #101214;
  color: var(--muted);
}

.footer-brand img { width: 260px; }
.site-footer h2 { margin: 0 0 15px; color: #fff; font-size: 19px; }
.site-footer a, .site-footer div > p { display: block; margin: 8px 0; }
.site-footer a:hover, .site-footer a:focus-visible { color: #42b9f4; }
.copyright { grid-column: 1 / -1; margin: 26px 0 0; padding-top: 22px; border-top: 1px solid #262a2d; font-size: 13px; }

:focus-visible { outline: 2px solid #65caff; outline-offset: 4px; }

@media (max-width: 900px) {
  .site-header { min-height: 78px; padding: 12px 20px; }
  .brand img { width: 175px; }
  .menu-toggle { display: grid; gap: 5px; width: 44px; height: 44px; place-content: center; border: 0; color: #fff; background: transparent; cursor: pointer; }
  .menu-toggle span { display: block; width: 25px; height: 2px; background: #31b7ff; transition: .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-menu { position: fixed; inset: 78px 0 auto; display: none; align-items: stretch; gap: 0; max-height: calc(100svh - 78px); padding: 12px 22px 24px; overflow-y: auto; background: rgba(5, 8, 9, .985); }
  .main-menu.open { display: block; }
  .main-menu > a, .nav-group > button { display: block; width: 100%; padding: 15px 4px; text-align: left; }
  .dropdown { position: static; display: none; width: 100%; border: 0; padding: 0 0 8px 12px; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: transparent; }
  .nav-group.open .dropdown { display: block; }
  .hero-content { margin-top: 50px; }
  .hero h1 span { margin-top: 12px; }
  .card-grid { gap: 24px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .hero { min-height: 84svh; }
  .hero-content img { width: 150px; }
  .hero h1 { font-size: clamp(30px, 9.2vw, 44px); }
  .section-title { margin-bottom: 30px; padding-block: 18px; }
  .card-grid { grid-template-columns: 1fr; padding-inline: 12px; }
  .prefab { min-height: 620px; }
  .site-footer { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
}

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

/* Independent catalog and contact routes */
.detail-page { min-height: 100vh; }
.detail-page .site-header { position: fixed; }

.detail-hero {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: end;
  padding: 180px clamp(24px, 7vw, 110px) clamp(70px, 9vw, 130px);
  isolation: isolate;
  overflow: hidden;
  background: #061018;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--detail-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 4, 7, .96) 0%, rgba(0, 6, 10, .8) 43%, rgba(0, 5, 9, .14) 76%), linear-gradient(0deg, rgba(0, 3, 5, .88), transparent 55%);
}

.detail-hero-content { width: min(760px, 100%); }
.breadcrumb { display: inline-flex; margin-bottom: 38px; color: #8e9aa1; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumb:hover, .breadcrumb:focus-visible { color: #66ccff; }
.detail-hero .eyebrow { margin-bottom: 20px; }
.detail-hero h1 { margin: 0; max-width: 900px; font-size: clamp(44px, 6.2vw, 92px); line-height: .98; letter-spacing: -.035em; }
.detail-hero-content > p:not(.eyebrow) { max-width: 680px; margin: 28px 0 34px; color: #d7e0e5; font-size: clamp(18px, 1.55vw, 23px); }

.detail-section { padding: clamp(80px, 10vw, 150px) clamp(22px, 6vw, 92px); background: #020405; }
.detail-section > .eyebrow { margin-bottom: 15px; }
.detail-section > h2, .contact-panel h2 { max-width: 850px; margin: 0 0 55px; font-size: clamp(38px, 5vw, 72px); line-height: 1; letter-spacing: -.03em; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.detail-card { position: relative; min-height: 440px; display: flex; flex-direction: column; justify-content: end; overflow: hidden; padding: 28px; background: #06141b; isolation: isolate; }
.detail-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 5, 8, .98), rgba(0, 5, 8, .05) 65%); }
.detail-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.detail-card:hover img, .detail-card:focus-visible img { transform: scale(1.04); }
.detail-card span { font-size: clamp(25px, 2.3vw, 36px); font-weight: 700; line-height: 1.08; }
.detail-card small { max-width: 470px; margin-top: 12px; color: #bbc6cc; font-size: 16px; }

.detail-features { background: linear-gradient(135deg, #03141d, #020405 55%); }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #20576e; }
.feature-list article { min-height: 270px; padding: 34px 32px; border-right: 1px solid #20576e; }
.feature-list article:last-child { border-right: 0; }
.feature-list strong { color: #2db8fa; font-size: 14px; letter-spacing: .12em; }
.feature-list h3 { margin: 56px 0 10px; font-size: 27px; }
.feature-list p { margin: 0; color: #aebcc4; }

.contact-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(45px, 8vw, 130px); padding: clamp(90px, 11vw, 160px) clamp(24px, 7vw, 110px); background: linear-gradient(140deg, #003a52, #061118 60%, #020405); }
.contact-panel > div > p:not(.eyebrow) { max-width: 600px; color: #bdcbd2; font-size: 19px; }
.contact-links { border-top: 1px solid rgba(105, 205, 255, .42); }
.contact-links > * { display: grid; gap: 6px; margin: 0; padding: 24px 0; border-bottom: 1px solid rgba(105, 205, 255, .25); }
.contact-links span { color: #69cbfa; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.contact-links strong { font-size: 20px; font-weight: 500; }
.contact-links a:hover strong { color: #61c9ff; }

.detail-cta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; padding: 55px clamp(24px, 7vw, 110px); background: #07536f; }
.detail-cta img { width: 90px; }
.detail-cta .eyebrow { margin: 0 0 4px; color: #a6e2ff; }
.detail-cta h2 { margin: 0; font-size: clamp(34px, 4vw, 58px); line-height: 1; }
.compact-footer { padding-top: 50px; }

@media (max-width: 900px) {
  .detail-hero { min-height: 700px; padding-top: 150px; }
  .detail-grid, .feature-list { grid-template-columns: 1fr; }
  .detail-card { min-height: 390px; }
  .feature-list article { min-height: auto; border-right: 0; border-bottom: 1px solid #20576e; }
  .feature-list h3 { margin-top: 28px; }
  .contact-panel { grid-template-columns: 1fr; }
  .detail-cta { grid-template-columns: auto 1fr; }
  .detail-cta .button { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .detail-hero { min-height: 650px; padding: 135px 22px 65px; }
  .detail-hero::after { background: linear-gradient(0deg, rgba(0, 4, 7, .98) 0%, rgba(0, 5, 8, .62) 70%, rgba(0, 0, 0, .4)); }
  .detail-hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .detail-section > h2, .contact-panel h2 { margin-bottom: 38px; }
  .detail-card { min-height: 340px; padding: 22px; }
  .detail-cta { grid-template-columns: 1fr; text-align: center; }
  .detail-cta img { margin: 0 auto; }
}
