@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Inter:wght@300;400;600;800&display=swap');

@font-face {
  font-family: 'Moderniz';
  src: url('../Moderniz.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg: #090a0f;
  --panel: #11131a;
  --border: #222633;
  --accent: #3a86ff;
  --accent-glow: rgba(58, 134, 255, 0.4);
  --text: #ffffff;
  --muted: #8b92a5;
  --mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overscroll-behavior: none;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overscroll-behavior: none;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.moderniz-text {
  font-family: 'Moderniz', 'Inter', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: 100px;
  background: rgba(9, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 8vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.toggle span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.toggle span:nth-child(2) {
  opacity: 0;
}

.hamburger.toggle span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

nav a:not(.logo) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-family: var(--mono);
  text-transform: uppercase;
  font-weight: 700;
  margin-left: 2rem;
  transition: 0.3s;
}

nav a:not(.logo):hover,
nav a:not(.logo).active {
  color: var(--accent);
}

.logo img {
  height: 80px;
  width: auto;
}

main {
  padding-top: 100px;
  flex: 1 0 auto;
}

/* Sections & Typography */
section {
  padding: 6rem 8vw;
  max-width: 1400px;
  margin: 0 auto;
}

.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  background: radial-gradient(circle at 100% 50%, rgba(58, 134, 255, 0.05) 0%, transparent 50%);
}

.hero.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
}

.hero img.hero-model {
  width: 100%;
  max-width: 500px;
  opacity: 0.9;
  filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.8));
  margin: 0 auto;
  display: block;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero .lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 650px;
  margin-bottom: 2.5rem;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.subtitle {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.5rem;
}

/* Grids & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 2.5rem;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  border-color: #383e52;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: #ff6842;
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  border-color: var(--border);
  background: var(--panel);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--text);
  background: white;
  color: black;
}

.buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Data Table / Specs */
.tech-spec {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  align-items: center;
}

.tech-spec:last-child {
  border: none;
}

.tech-spec .label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.tech-spec .val {
  font-weight: 400;
  text-align: right;
  width: 65%;
  font-size: 0.95rem;
}

/* Images overlay */
.tech-image {
  width: 100%;
  max-width: 800px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  display: block;
  margin: 2rem auto;
}

.img-fluid {
  width: 100%;
  height: auto;
}

/* Footer */
footer,
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 4rem 8vw;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand img {
  width: 220px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--mono);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.footer-links a,
.footer-contact a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--accent);
}

.logo-marquee {
  border-top: 1px solid var(--border);
  background: var(--panel);
  padding: 1.5rem 0;
  overflow: hidden;
  flex-shrink: 0;
}

.marquee-track {
  display: flex;
  animation: scroll 25s linear infinite;
}

.marquee-track img {
  height: 30px;
  margin: 0 4rem;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: 0.3s;
}

.marquee-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {

  nav {
    padding: 0 5vw;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    background: rgba(9, 10, 15, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 2rem;
    transform: translateY(-200%);
    transition: transform 0.4s ease-in-out;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }

  .nav-links.nav-active {
    transform: translateY(0);
  }

  .hero.grid-2,
  .grid-2 {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  nav a:not(.logo) {
    margin-left: 0;
    font-size: 1.1rem;
  }

  .tech-spec {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .tech-spec .val {
    width: 100%;
    text-align: left;
  }
}