* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
}

img {
  max-width: 100%;
  display: block;
}

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

html {
  scroll-behavior: smooth;
}

/* Type */
h1,
h2,
h3,
.eyebrow,
.btn,
.cta,
.nav a {
  font-family: "Kode Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
  letter-spacing: 0.02em;
}

h2 {
  text-transform: uppercase !important;
}

/* Layout helpers */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

section {
  padding: 96px 0;
}

.muted {
  color: var(--muted);
}

/* Header, transparent -> solid on scroll */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.hero {
  padding-top: 80px;
  /* prevent hero content from being hidden behind fixed navbar */
}

header.nav-solid {
  background: var(--nav-solid);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

header.scrolled {
  background: rgba(8, 18, 30, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 50% 50%,
    var(--accent),
    var(--accent-2)
  );
  box-shadow: 0 0 24px var(--ring);
}

.links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.links a {
  color: var(--muted);
  font-size: 14px;
}

.links a:hover {
  color: var(--text);
}

.cta {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: #0b1420;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 22px rgba(2, 106, 217, 0.35);
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 30px rgba(2, 106, 217, 0.45);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .bg-wrap {
  position: absolute;
  inset: -20% -10% -10% -10%;
  pointer-events: none;
  background: radial-gradient(
      900px 700px at 20% 80%,
      rgba(2, 106, 217, 0.25),
      transparent 60%
    ),
    radial-gradient(
      800px 600px at 80% 0%,
      rgba(50, 166, 255, 0.22),
      transparent 60%
    ),
    linear-gradient(180deg, #121212 0%, #0e0e0e 100%);
  filter: saturate(130%) brightness(1.1);
  animation: pulseGlow 2.8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    filter: saturate(150%) brightness(1.2) blur(0px);
  }
  50% {
    filter: saturate(180%) brightness(2) blur(6px);
  }
}

.hero-gradient {
  position: absolute;
  width: 500px;
  height: 500px;
  background-image: radial-gradient(
    circle,
    rgba(51, 163, 255, 0.2) 55%,
    transparent 57%
  );
  inset: -20% -10% auto auto;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.hero-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 0 20px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero .h1 {
  text-transform: uppercase;
}

.h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  font-weight: 800;
  opacity: 1;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid var(--accent);
  width: 0.1ch;
  /* ensures immediate visibility */
}

.h2 {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
  font-weight: 800;
  color: #026ad9;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.lead {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 18px);
  max-width: 62ch;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #17181c;
  color: #e8ecef;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  background: #1f2126;
  transform: translateY(-1px);
}

.btn.is-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
}

.hero-card {
  background: radial-gradient(
      900px 450px at 0% 0%,
      rgba(2, 106, 217, 0.22),
      transparent 55%
    ),
    #0f1013;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.hero-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.kpi {
  background: #0f1114;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.kpi .big {
  display: block;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(180deg, #dff0ff, #99ccff 60%, #66b6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kpi span {
  color: var(--muted);
  font-size: 12px;
}

/* Section titles */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(28px, 3.8vw, 48px);
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--accent);
}

/* Split and panels */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

/* image removed as requested */
.panel {
  background: linear-gradient(180deg, #0f1114, #0b0c0f);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

/* Goods */
#goods {
  position: relative;
  overflow: hidden;
  background-color: white;
}

.goods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.good {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0f1114;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-top: 10px;
}

.good::before {
  content: "";
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  max-width: 32px;
  max-height: 32px;
  background-size: contain;
  filter: drop-shadow(0 0 6px var(--ring));
}

.good-image {
  max-width: 32px;
  max-height: 32px;
  margin-right: 12px;
  vertical-align: middle;
  filter: drop-shadow(0 0 6px var(--ring));
}

.good::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  max-width: 32px;
  max-height: 32px;
  background: radial-gradient(circle, rgba(2, 106, 217, 0.14), transparent 60%);
  filter: blur(24px);
  pointer-events: none;
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  place-items: center; /* centers both horizontally and vertically */
}

.contact-grid .panel,
.form-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@media (max-width: 900px) {
  .about-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-layout .panel {
    margin: 0 auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    place-items: center;
  }
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  min-width: 400px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  #about .panel {
    min-width: 320px;
    margin: auto;
    margin-bottom: 30px;
  }
}

input,
textarea {
  width: 100%;
  background: #0b0c0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e9edf0;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease,
    transform 0.1s ease;
}

input:focus,
textarea:focus {
  box-shadow: 0 0 0 4px var(--ring);
  border-color: transparent;
  transform: translateY(-1px);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.btn-submit {
  justify-self: start;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #06121e;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 28px rgba(2, 106, 217, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 36px rgba(2, 106, 217, 0.48);
}

/* FAQs */
#faqs details {
  background: #101114;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}

#faqs summary {
  cursor: pointer;
  padding: 16px 18px;
  list-style: none;
  position: relative;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

#faqs summary::-webkit-details-marker {
  display: none;
}

/* Plus / minus sign moved to right */
#faqs summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #0d0f13;
  color: #b8c3cc;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

#faqs details[open] summary::after {
  content: "-";
  color: #e6f1ff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

#faqs details[open] {
  box-shadow: 0 0 0 2px var(--ring) inset;
}

#faqs p {
  padding: 0 18px 18px;
  color: var(--muted);
  margin: 0;
}

#brand .brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
}

#brand .video-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

#brand .video-frame {
  width: 90%;
  max-width: 600px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  box-sizing: border-box;
  background: radial-gradient(
      800px 500px at 20% 0%,
      rgba(2, 106, 217, 0.16),
      transparent 50%
    ),
    #0f1013;
}

#brand .panel {
  background: #101114;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

#brand .panel p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
  max-width: 95%;
}

#brand .video-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

#brand .video-frame {
  border: none;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  box-sizing: border-box;
  background: radial-gradient(
      800px 500px at 20% 0%,
      rgba(2, 106, 217, 0.16),
      transparent 50%
    ),
    #0f1013;
}

.form-image {
  opacity: 0.68;
  max-height: 400px;
  margin: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  #brand .brand-grid {
    gap: 32px;
  }

  #brand .video-frame {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .hero-gradient {
    position: absolute;
    width: 320px;
    height: 320px;
    background-image: radial-gradient(
      circle,
      rgba(51, 163, 255, 0.2) 55%,
      transparent 57%
    );
    inset: -20% -10% auto auto;
    filter: blur(50px);
  }

  .hero .bg-wrap {
    position: absolute;
    inset: -20% -10% -10% -10%;
    pointer-events: none;
    background: radial-gradient(
        400px 350px at 20% 80%,
        rgba(2, 106, 217, 0.25),
        transparent 60%
      ),
      radial-gradient(
        400px 300px at 80% 0%,
        rgba(50, 166, 255, 0.22),
        transparent 60%
      ),
      linear-gradient(180deg, #121212 0%, #0e0e0e 100%);
    filter: saturate(130%) brightness(1.1);
    animation: pulseGlow 2.8s ease-in-out infinite;
  }

  .hero-cta {
    display: flex;
    flex-direction: column !important;
  }

  .hero-cta :nth-child(2) {
    margin-top: 12px;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section-head .muted {
    order: 2;
    font-size: 18px;
  }

  .section-head h2 {
    order: 1;
  }

  .contact-form {
    min-width: 100px;
    margin: auto;
  }

  .poly-wrapper {
    margin-left: 0 !important;
  }
}

@media (max-width: 900px) {
  #brand .brand-grid {
    grid-template-columns: 1fr;
  }

  #brand .panel {
    padding: 20px;
  }

  #brand .video-wrap {
    justify-content: flex-start;
  }

  #brand .video-frame {
    width: 100%;
    max-width: none;
  }

  /* Disable typing animation on small screens */
  .h1 {
    animation: none !important;
    border-right: none !important;
    width: 100% !important;
    opacity: 1 !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: center !important;
    font-size: clamp(28px, 8vw, 48px) !important;
    line-height: 1.1 !important;
  }

  .hero {
    padding-top: 60px;
  }
}

/* Continuity dividers */
.divider {
  height: 64px;
  background: radial-gradient(
      800px 80px at 50% 0%,
      rgba(2, 106, 217, 0.1),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      transparent,
      rgba(255, 255, 255, 0.02) 40%,
      transparent
    );
  opacity: 0.8;
}

/* Reveal baseline */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.in {
  opacity: 1;
  transform: none;
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .links {
    display: none;
  }

  .burger {
    display: flex;
  }
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.menu-overlay a {
  color: var(--text);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.menu-overlay a:hover {
  color: var(--accent);
  transform: scale(1.05);
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 32px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 1000px) {
}

@media (min-width: 768px) {
  #about .panel {
    width: 66%;
    margin: 0;
    position: relative;
    z-index: 1;
  }

  #about {
    position: relative;
    overflow: hidden;
  }
}

#about {
  position: relative;
  overflow: hidden;
  background: #000;
}

/* Shattered glass effect */
#about .shattered-glass {
  position: absolute;
  right: 40px;
  top: 0;
  width: 40%;
  height: 70%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

#about .shattered-glass::before,
#about .shattered-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  /*   background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  clip-path: polygon(10% 0%, 90% 0%, 100% 40%, 60% 100%, 0% 80%, 0% 20%);
  backdrop-filter: blur(2px);
  transform: rotate(180deg); */
}

#about .shattered-glass::after {
  /*   background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  clip-path: polygon(20% 10%, 100% 0%, 80% 60%, 40% 100%, 0% 90%, 0% 30%);
  transform: rotate(0deg); */
}

@keyframes shimmer {
  0% {
    opacity: 0.2;
    transform: translateX(-10%) rotate(180deg);
  }

  50% {
    opacity: 0.5;
    transform: translateX(10%) rotate(180deg);
  }

  100% {
    opacity: 0.2;
    transform: translateX(-10%) rotate(180deg);
  }
}

#about .shattered-glass::before {
  animation: shimmer 8s infinite ease-in-out;
}

/* Polyhedron styles */
:root {
  --poly-size: 160px;
  --spin-duration: 18s;
  --face-color-1: rgba(2, 106, 217, 0.25);
  --face-color-2: rgba(51, 163, 255, 0.25);
  --face-color-3: rgba(255, 255, 255, 0.08);
}

.about-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.poly-wrapper {
  perspective: 800px;
  width: var(--poly-size);
  height: var(--poly-size);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -40px;
}

.polyhedron {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: spin var(--spin-duration) linear infinite;
}

@keyframes spin {
  from {
    transform: rotateX(0deg) rotateY(0deg);
  }

  to {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

.face {
  position: absolute;
  width: 60%;
  height: 60%;
  background: linear-gradient(135deg, var(--face-color-1), var(--face-color-2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(2, 106, 217, 0.15);
  opacity: 0.9;
}

.f1 {
  transform: rotate3d(1, 1, 0, 25deg) translate3d(0, 0, 80px);
}

.f2 {
  transform: rotate3d(0, 1, 1, 60deg) translate3d(40px, 0, 60px);
}

.f3 {
  transform: rotate3d(1, 0, 1, 120deg) translate3d(-40px, 20px, 70px);
}

.f4 {
  transform: rotate3d(1, 1, 1, 180deg) translate3d(0, -40px, 50px);
}

.f5 {
  transform: rotate3d(0, 1, 0, 90deg) translate3d(60px, 40px, 40px);
}

.f6 {
  transform: rotate3d(1, 0, 0, 45deg) translate3d(-60px, -20px, 60px);
}

.f7 {
  transform: rotate3d(0, 1, 1, 135deg) translate3d(20px, 60px, 30px);
}

.f8 {
  transform: rotate3d(1, 1, 0, 210deg) translate3d(-20px, -60px, 40px);
}

.f9 {
  transform: rotate3d(1, 0, 1, 270deg) translate3d(0, 40px, 50px);
}

.f10 {
  transform: rotate3d(0, 1, 0, 300deg) translate3d(30px, -30px, 60px);
}

.polyhedron:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(51, 163, 255, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .polyhedron {
    animation: none;
  }
}

@media (max-width: 900px) {
  .about-layout {
    flex-direction: column;
    align-items: center;
  }

  .poly-wrapper {
    margin-top: 40px;
  }
}

[id] {
  scroll-margin-top: 20px;
}

.hero {
  min-height: 50vh;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
