:root {
  --tm-blue: #6298e0;
  --tm-grey: #2e3034;
  --frost: rgba(46, 48, 52, 0.7);
  --frost-border: rgba(255, 255, 255, 0.15);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: #f0f1f3;
  line-height: 1.6;
  position: relative;
  min-height: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("space.png") center/cover no-repeat;
  filter: brightness(0.5) saturate(0.8);
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: -1;
}

.navbar {
  background: rgba(46, 48, 52, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.6em 1em;
  border-bottom: 1px solid var(--frost-border);
}
.navbar ul {
  display: flex;
  justify-content: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}
.navbar a:hover {
  opacity: 0.85;
}

.site-hero {
  text-align: center;
  padding: 100px 20px;
  color: #fff;
  background: rgba(46, 48, 52, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--frost-border);
}
.site-hero h1 {
  font-size: 3rem;
  margin: 0;
}
.site-hero p {
  font-size: 1.2rem;
  color: #dce0e4;
  margin: 16px 0 32px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 28px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--tm-blue);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}
.btn-outline:hover {
  background: #ffffff22;
}

.glass {
  background: var(--frost);
  border: 1px solid var(--frost-border);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.glass h2 {
  color: #fff;
  text-align: center;
  margin: 0 0 24px;
  font-size: 1.9rem;
}

.section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}
.lead {
  max-width: 800px;
  margin: 0 auto 2em;
  text-align: center;
  color: #e2e5e8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.stat {
  background: var(--frost);
  border: 1px solid var(--frost-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(14px);
}
.stat h3 {
  color: var(--tm-blue);
  font-size: 2rem;
  margin-bottom: 10px;
}
.stat p {
  color: #e0e3e6;
}

#industries .features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
#industries .feature-card {
  background: var(--frost);
  border: 1px solid var(--frost-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: #f0f1f3;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#industries .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
#industries .feature-card h3 {
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 700;
}
#industries .feature-card p {
  color: #d8dade;
  font-size: 0.95rem;
  line-height: 1.5;
}
@media (max-width: 900px) {
  #industries .features {
    grid-template-columns: 1fr;
  }
}

.features-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .features-2x2 {
    grid-template-columns: 1fr;
  }
}

.media-bg * {
  position: relative;
  z-index: 1;
}
.media-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) brightness(0.7);
}
.media-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

.horizon-bg::before {
  background-image: url("Horizon.jpg");
}
.greenline-bg::before {
  background-image: url("GreenLine.jpg");
}
.predictor-bg::before {
  background-image: url("Predictor.jpg");
}
.integrator-bg::before {
  background-image: url("Integrator.jpg");
}

.media-bg {
  background: var(--frost);
  border: 1px solid var(--frost-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: #f0f1f3;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.media-bg:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.media-bg h3 {
  color: #fff;
  margin-bottom: 10px;
}
.media-bg p {
  color: #d8dade;
}

.responsive-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--frost-border);
  background: var(--frost);
  backdrop-filter: blur(14px);
}
.responsive-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
}

footer {
  background: rgba(46, 48, 52, 0.8);
  color: #bbb;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  backdrop-filter: blur(14px);
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

@media (max-width: 700px) {
  .navbar ul {
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
  }
  .site-hero {
    padding: 80px 16px;
  }
  .site-hero h1 {
    font-size: 2.2rem;
  }
  .glass {
    padding: 20px;
  }
}
#contact .glass.center {
  display: flex;
  justify-content: center;
  align-items: center;
}
footer a:hover {
  color: #fff;
  text-decoration: underline;
}
