@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #03050b;
  --panel: #07101d;
  --text: #f7f9ff;
  --muted: #aab7ca;
  --cyan: #22dcff;
  --blue: #168cff;
  --pink: #ed4ddd;
  --orange: #ff9b31;
  --line: rgba(72, 204, 255, .16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  overflow-x: hidden;
}

.ambient-glow {
  position: fixed;
  width: 560px;
  height: 560px;
  right: -180px;
  top: 22vh;
  border-radius: 50%;
  background: rgba(0, 91, 255, .18);
  filter: blur(170px);
  pointer-events: none;
  z-index: -2;
}
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .08;
  background-image:
    linear-gradient(rgba(0,174,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,174,255,.18) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

/* Navigation */
.navbar {
  height: 86px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3,5,11,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(70,190,255,.08);
}
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.brand-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  filter: none;
  transform: none;
  mix-blend-mode: normal;
}
.brand-text strong { display: block; font-size: 20px; letter-spacing: 4px; }
.brand-text small { display: block; margin-top: 2px; font-size: 7px; letter-spacing: 4px; color: var(--cyan); }

nav { display: flex; gap: clamp(18px,3vw,42px); }
nav a { color: #d9e2f4; text-decoration: none; font-size: 14px; font-weight: 600; transition: .25s ease; }
nav a:hover, nav a.active { color: var(--cyan); text-shadow: 0 0 12px rgba(0,180,255,.45); }

.menu-toggle { display: none; }

/* Hero */
.hero {
  min-height: calc(100vh - 86px);
  padding: 50px 6vw 70px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 35px;
  position: relative;
}
.hero-copy { position: relative; z-index: 3; }
.eyebrow {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--cyan);
  border-radius: 30px;
  color: #6cecff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 28px;
  box-shadow: 0 0 14px rgba(0,190,255,.10);
}
h1 {
  font-size: clamp(56px, 7vw, 105px);
  line-height: .9;
  letter-spacing: -5px;
  font-weight: 900;
}
h1 span {
  background: linear-gradient(90deg,#55eaff 0%,#49bfff 35%,#df58e7 70%,#ffad35 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p { max-width: 610px; margin-top: 30px; color: #c4cce0; font-size: 16px; line-height: 1.7; }
.buttons { display: flex; gap: 14px; margin-top: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 25px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  transition: .25s ease;
}
.btn.primary { color: #03101a; background: linear-gradient(110deg,#35eaff,#77dfff); box-shadow: 0 0 20px rgba(0,207,255,.18); }
.btn.secondary { color: white; border: 1px solid rgba(75,212,255,.8); background: rgba(0,90,160,.08); }
.btn:hover { transform: translateY(-3px); }

/* IMPORTANT: only this element displays the large cube.
   No pseudo-elements, backgrounds, duplicates, reflections or shadows use the cube image. */
.hero-visual {
  min-height: 610px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-cube-image {
  width: min(680px, 100%);
  height: auto;
  max-height: 680px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
  filter: none;
  transform: none;
  opacity: 1;
  mix-blend-mode: normal;
}

/* Content */
.section { padding: 125px 8vw; max-width: 1450px; margin: auto; border-top: 1px solid rgba(255,255,255,.04); }
.section-label { color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: 3px; }
.section h2 { margin-top: 20px; font-size: clamp(42px,6vw,80px); line-height: 1; letter-spacing: -3px; }
.section h2 span { color: #39dcff; }
.section-intro, .section > p { max-width: 780px; margin-top: 25px; color: var(--muted); line-height: 1.8; }

.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; margin-top: 42px; }
.about-grid p { color: var(--muted); line-height: 1.8; margin-bottom: 18px; max-width: 700px; }
.about-grid .lead { color: #d9e3f3; font-size: 18px; }
.leadership { display: grid; gap: 15px; }
.leadership article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg,rgba(10,28,55,.65),rgba(4,7,15,.72));
}
.leadership span { color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.leadership h3 { margin-top: 12px; font-size: 23px; }

.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 55px; }
.cards article, .company-grid article {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg,rgba(10,28,55,.72),rgba(4,7,15,.75));
  border-radius: 16px;
  transition: .3s ease;
}
.cards article:hover, .company-grid article:hover { transform: translateY(-6px); border-color: rgba(0,210,255,.6); }
.cards b, .company-grid article > span { color: var(--cyan); font-size: 12px; }
.cards h3, .company-grid h3 { margin-top: 32px; font-size: 21px; }
.cards p, .company-grid p { margin-top: 12px; color: #93a1b7; font-size: 13px; line-height: 1.7; }

.company-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 55px; }
.company-grid article { min-height: 245px; }

.portfolio-panel {
  margin-top: 55px;
  min-height: 270px;
  display: flex;
  align-items: center;
  padding: 45px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 40%,rgba(0,105,255,.20),transparent 30%),
    linear-gradient(135deg,rgba(8,25,48,.75),rgba(3,6,13,.85));
}
.portfolio-panel span { color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: 3px; }
.portfolio-panel h3 { margin-top: 15px; font-size: clamp(28px,4vw,48px); }
.portfolio-panel p { margin-top: 14px; color: var(--muted); line-height: 1.7; }

.contact { text-align: center; }
.contact > p { margin-left: auto; margin-right: auto; }
.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; max-width: 850px; margin: 45px auto 0; }
.contact-grid a {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: white;
  text-decoration: none;
  background: rgba(5,20,38,.65);
  transition: .25s ease;
}
.contact-grid a:hover { border-color: var(--cyan); transform: translateY(-4px); }
.contact-grid span { display: block; color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.contact-grid strong { display: block; margin-top: 10px; font-size: 16px; overflow-wrap: anywhere; }
.contact-button { margin-top: 30px; }

footer {
  padding: 35px 7vw;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #78869d;
}
footer strong { display: block; color: #dceaff; font-size: 12px; letter-spacing: 2px; }
footer div > span { display: block; margin-top: 8px; color: var(--cyan); font-size: 10px; letter-spacing: 3px; }
footer small { align-self: center; }


/* =========================================================
   MOBILE CLEANUP
   Only .hero-cube-image may display the large hero cube.
   ========================================================= */

.hero::before,
.hero::after,
.hero-copy::before,
.hero-copy::after,
.hero-visual::before,
.hero-visual::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
}

.hero,
.hero-copy,
.hero-visual {
  background-image: none !important;
}

@media (max-width: 980px) {
  .hero {
    overflow: hidden;
  }

  .hero > img:not(.hero-cube-image),
  .hero-copy > img:not(.brand-mark),
  .hero-visual > img:not(.hero-cube-image),
  .hero .hero-bg,
  .hero .hero-background,
  .hero .hero-art,
  .hero .background-cube,
  .hero .cube-background {
    display: none !important;
    visibility: hidden !important;
  }

  .hero-cube-image {
    position: relative !important;
    inset: auto !important;
    width: min(88vw, 560px) !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: auto;
    padding: 46px 5vw 55px;
    gap: 12px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-copy h1 {
    position: relative;
    z-index: 4;
  }

  .hero-visual {
    width: 100%;
    min-height: auto !important;
    padding: 0;
    margin-top: 8px;
    overflow: visible;
  }

  .hero-cube-image {
    width: min(94vw, 520px) !important;
    display: block !important;
    margin: 0 auto !important;
  }
}

/* Mobile navigation */
.menu-toggle {
  width: 44px; height: 40px; padding: 8px;
  border: 1px solid rgba(0,210,255,.35);
  border-radius: 8px; background: rgba(0,90,160,.08);
  cursor: pointer; flex-direction: column; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 100%; height: 2px; border-radius: 2px; background: #55e9ff; transition: .25s ease; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .navbar { height: 76px; padding: 0 5vw; }
  .menu-toggle { display: flex; }
  nav {
    position: absolute; top: 76px; right: 5vw; width: min(290px,90vw);
    padding: 14px; flex-direction: column; gap: 4px;
    background: rgba(3,5,11,.98); border: 1px solid var(--line);
    border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.45);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: .25s ease;
  }
  nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  nav a { width: 100%; padding: 13px 14px; border-radius: 7px; }
  nav a:hover, nav a.active { background: rgba(0,170,255,.08); }

  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 70px; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .buttons { justify-content: center; }
  .hero-visual { min-height: 480px; }
  .hero-cube-image { width: min(590px,92vw); }
  .about-grid { grid-template-columns: 1fr; gap: 35px; }
  .cards { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 620px) {
  .brand-mark { width: 32px; height: 32px; }
  .brand-text strong { font-size: 16px; letter-spacing: 3px; }
  .brand-text small { font-size: 6px; letter-spacing: 3px; }
  h1 { font-size: 54px; letter-spacing: -3px; }
  .eyebrow { font-size: 9px; padding: 9px 15px; }
  .buttons { flex-direction: column; }
  .hero-visual { min-height: 360px; }
  .cards, .company-grid, .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 90px 6vw; }
  footer { flex-direction: column; }
}