:root {
  --accent: #0b69ff;
  --bg: #050b16;
  --panel: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: #fff;
  background:
    radial-gradient(circle at 78% 30%, color-mix(in srgb, var(--accent), transparent 68%), transparent 26rem),
    linear-gradient(135deg, var(--bg), #07111f 72%);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

.theme-vehicle { --accent: #13b95f; --bg: #061b16; }
.theme-biometric { --accent: #20c9ff; --bg: #04101d; }
.theme-software { --accent: #8d7dff; --bg: #08071b; }
.theme-support { --accent: #20d9ff; --bg: #04111d; }
.theme-media { --accent: #36d1c4; --bg: #041817; }

.template-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 16px clamp(22px, 5vw, 76px);
  background: rgba(3, 8, 18, 0.84);
  backdrop-filter: blur(14px);
}

.template-header strong {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 900;
}

.template-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.template-brand-symbol {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
}

.template-brand-symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent), transparent 62%));
}

.template-brand-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.template-brand-text strong {
  color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  font-weight: 900;
  line-height: 0.9;
  white-space: nowrap;
}

.template-brand-text strong span {
  color: #0b69ff;
}

.template-brand-text small {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  white-space: nowrap;
}

.template-header nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  font-weight: 800;
}

main {
  padding: clamp(34px, 6vw, 78px) clamp(22px, 5vw, 76px);
}

.hero,
.dashboard,
.support {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 6vw, 86px);
  min-height: calc(100vh - 230px);
}

.support {
  grid-template-columns: minmax(0, 0.78fr) minmax(260px, 0.72fr);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 5.4vw, 5.4rem);
  font-weight: 900;
  line-height: 0.96;
}

.automation-title {
  max-width: 620px;
  font-size: clamp(2.2rem, 4.1vw, 4.15rem);
}

p {
  max-width: 620px;
  color: #eaf3ff;
  font-size: clamp(1rem, 1.45vw, 1.24rem);
  font-weight: 600;
  line-height: 1.48;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 12px;
  border-radius: 8px;
  padding: 0 22px;
  color: #fff;
  background: var(--accent);
  font-weight: 900;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--accent), transparent 68%);
}

.theme-vehicle .button {
  background: #0a74d6;
  box-shadow: 0 16px 34px rgba(10, 116, 214, 0.32);
}

.hero img {
  width: 100%;
  max-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.software-hero-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.cards article,
.board,
.support li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(12px);
}

.cards article {
  min-height: 130px;
  padding: 22px;
}

.cards h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 900;
}

.cards p {
  margin: 0;
  font-size: 0.96rem;
}

.social-galleries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.gallery-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
  backdrop-filter: blur(12px);
}

.gallery-panel h2 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  font-weight: 900;
}

.gallery-panel p {
  margin: 0;
  font-size: 0.95rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  min-height: 190px;
}

.gallery-grid img,
.gallery-grid video {
  width: 100%;
  height: 100%;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  object-fit: cover;
}

.gallery-grid img:first-child {
  grid-row: span 2;
}

.template-media-showcase {
  margin-top: 42px;
}

.template-media-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.78fr);
  align-items: end;
  gap: clamp(24px, 6vw, 76px);
  margin-bottom: 18px;
}

.template-media-heading h2 {
  max-width: 650px;
  margin-bottom: 0;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.08;
}

.template-media-heading > p {
  margin: 0 0 8px;
  font-size: 1rem;
}

.template-media-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  border: 1px solid var(--line);
  padding: 14px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(3, 8, 16, 0.98), rgba(4, 35, 52, 0.98)),
    linear-gradient(rgba(54, 209, 196, 0.08) 1px, transparent 1px);
  background-size: auto, 44px 44px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}

.template-media-screen {
  position: relative;
  height: 420px;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #030812;
}

.template-media-screen img,
.template-media-screen video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.template-media-screen img[hidden],
.template-media-screen video[hidden] {
  display: none;
}

.template-media-screen video {
  background: #000;
}

.template-media-shell.is-contain-active .template-media-screen img,
.template-media-shell.is-contain-active .template-media-screen video {
  object-fit: contain;
}

.template-media-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  max-width: 560px;
  border: 1px solid rgba(54, 209, 196, 0.28);
  padding: 16px 18px;
  background: rgba(3, 8, 16, 0.82);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.template-media-caption span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-media-caption h3 {
  margin-bottom: 6px;
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  font-weight: 900;
  line-height: 1.05;
}

.template-media-caption p {
  margin: 0;
  color: #e9f3ff;
  font-size: 0.95rem;
  line-height: 1.45;
}

.template-media-shell.is-video-active .template-media-caption,
.template-media-shell.is-caption-hidden .template-media-caption {
  display: none;
}

.template-fullscreen-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  color: #fff;
  background: rgba(3, 8, 16, 0.72);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.template-fullscreen-button:hover,
.template-fullscreen-button:focus-visible {
  background: rgba(54, 209, 196, 0.22);
  outline: none;
}

.template-fullscreen-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.template-fullscreen-button[hidden] {
  display: none;
}

.template-media-screen img:fullscreen {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: #000;
}

.template-media-side {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  min-width: 0;
}

.template-media-actions {
  display: grid;
  grid-template-columns: 48px 48px;
  gap: 10px;
}

.template-media-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(54, 209, 196, 0.32);
  border-radius: 8px;
  color: #fff;
  background: rgba(54, 209, 196, 0.1);
  cursor: pointer;
}

.template-media-button:hover,
.template-media-button:focus-visible {
  background: rgba(54, 209, 196, 0.2);
  outline: none;
}

.template-media-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.template-media-track {
  display: grid;
  gap: 10px;
  align-content: start;
}

.template-media-thumb {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid rgba(54, 209, 196, 0.2);
  border-radius: 8px;
  padding: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  text-align: left;
}

.template-media-thumb.is-active,
.template-media-thumb:hover,
.template-media-thumb:focus-visible {
  border-color: rgba(54, 209, 196, 0.74);
  background: rgba(54, 209, 196, 0.14);
  outline: none;
}

.template-media-thumb img {
  width: 92px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
}

.template-media-thumb strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.15;
}

.template-media-thumb span span {
  color: #b7eefa;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  min-height: 430px;
  padding: 18px;
}

.board span,
.board b {
  display: block;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent), transparent 66%);
}

.board b {
  grid-column: span 3;
  min-height: 48px;
}

.support ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.support li {
  padding: 22px;
}

.support b {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.support span {
  color: #d9e8ff;
  font-weight: 700;
}

.support-media {
  justify-self: end;
  width: min(100%, 620px);
  aspect-ratio: 16 / 9;
  max-height: 380px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

footer {
  padding: 0 clamp(22px, 5vw, 76px) 34px;
  color: #d9e8ff;
  font-weight: 800;
}

@media (max-width: 820px) {
  .template-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .template-header nav {
    flex-wrap: wrap;
  }

  .template-brand-text small {
    white-space: normal;
  }

  .hero,
  .dashboard,
  .support {
    grid-template-columns: 1fr;
  }

  .support-media {
    justify-self: stretch;
    width: 100%;
    max-height: 280px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .social-galleries {
    grid-template-columns: 1fr;
  }

  .template-media-heading,
  .template-media-shell {
    grid-template-columns: 1fr;
  }

  .template-media-actions {
    grid-template-columns: 48px 48px;
  }
}

@media (max-width: 620px) {
  .template-media-screen,
  .template-media-screen img,
  .template-media-screen video {
    height: 280px;
    min-height: 0;
  }

  .template-media-caption {
    position: static;
    max-width: none;
    border-inline: 0;
    border-bottom: 0;
  }

  .template-media-actions {
    grid-template-columns: 1fr 1fr;
  }

  .template-media-thumb {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .template-media-thumb img {
    width: 82px;
    height: 54px;
  }
}
