:root {
  --font-h: 'Unbounded', sans-serif;
  --font-b: 'Manrope', sans-serif;
  --font-m: 'IBM Plex Mono', monospace;
  --section-y: 120px;
}

body {
  font-family: var(--font-b);
}

html,
body {
  overflow-x: clip;
}

h1,
h2,
h3,
.hero-title,
.section-title,
.cta-content h2,
.cap-card h3,
.product-card h3,
.project-card h3,
.step-card h3 {
  letter-spacing: 0;
}

.hero-title {
  max-width: 880px;
  font-size: 4.18rem;
  line-height: 0.98;
}

.section-title {
  font-size: 3.35rem;
  line-height: 1.08;
}

.cta-content h2 {
  font-size: 3.3rem;
  line-height: 1.08;
}

section {
  padding: var(--section-y) 0;
  scroll-margin-top: 72px;
}

.section-header {
  margin-bottom: 52px;
}

.section-desc {
  max-width: 720px;
}

.hero-badge,
.section-tag {
  border-radius: 999px;
}

.transform-card,
.cap-card,
.product-card,
.project-card,
.step-card,
.pt-card,
.security-console,
.sec-item,
.cta-content,
.terminal-window,
.mission-map {
  border-radius: 8px;
}

.capabilities-grid,
.products-grid,
.projects-grid {
  gap: 20px;
}

.cap-card {
  min-height: 232px;
  padding: 30px;
}

.trajectory-section .section-header {
  margin-bottom: 48px;
}

.step-card {
  min-height: 268px;
}

.portfolio-strip {
  grid-template-columns: 1fr;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 24px;
}

.footer-links a {
  color: var(--soft);
  font-size: 0.84rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.chat-note {
  padding: 9px 18px 0;
  color: var(--dim);
  font-size: 0.68rem;
  line-height: 1.4;
}

.chat-close,
.chat-send,
.mobile-close {
  border-radius: 8px;
}

.mobile-orbit-scene {
  display: none;
}

@media (max-width: 1100px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .section-title,
  .cta-content h2 {
    font-size: 2.85rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-y: 76px;
  }

  .container,
  .hero,
  .nav-container {
    width: calc(100% - 40px);
  }

  .nav-container {
    height: 68px;
  }

  .nav-logo img {
    height: 42px;
  }

  .orbit-deco {
    display: none;
  }

  .mobile-orbit-scene {
    display: block;
    position: absolute;
    top: 54px;
    right: 0;
    left: 0;
    width: 100%;
    height: 500px;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.74;
    mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  }

  .mobile-orbit-glow {
    position: absolute;
    top: 118px;
    right: -100px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 92, 13, 0.32), rgba(255, 106, 0, 0.08) 48%, transparent 70%);
    filter: blur(18px);
    animation: mobileSignalGlow 6s ease-in-out infinite;
  }

  .mobile-mars {
    position: absolute;
    top: 154px;
    right: -64px;
    z-index: 2;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 31% 24%, rgba(255, 226, 179, 0.62) 0 3%, transparent 13%),
      radial-gradient(ellipse at 68% 31%, rgba(87, 26, 16, 0.62) 0 11%, transparent 27%),
      radial-gradient(ellipse at 42% 67%, rgba(111, 33, 19, 0.72) 0 12%, transparent 31%),
      radial-gradient(circle at 36% 38%, #e87332 0%, #a93f22 42%, #5d2118 72%, #1b1012 100%);
    box-shadow:
      inset -42px -25px 52px rgba(0, 0, 0, 0.76),
      inset 18px 14px 24px rgba(255, 206, 134, 0.18),
      0 0 48px rgba(255, 106, 0, 0.28);
    animation: mobileMarsFloat 8s ease-in-out infinite;
  }

  .mobile-ring {
    position: absolute;
    top: 209px;
    right: -132px;
    width: 318px;
    height: 84px;
    border-radius: 50%;
    transform: rotate(-16deg);
  }

  .ring-back {
    z-index: 1;
    border: 1px solid rgba(255, 177, 105, 0.46);
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.18);
  }

  .ring-front {
    z-index: 3;
    border: 2px solid transparent;
    border-bottom-color: rgba(255, 190, 126, 0.78);
    filter: drop-shadow(0 3px 7px rgba(255, 106, 0, 0.36));
  }

  .mobile-orbit-plane {
    position: absolute;
    top: 190px;
    right: -144px;
    z-index: 4;
    width: 348px;
    height: 118px;
    transform: rotate(-16deg) scaleY(0.72);
  }

  .mobile-orbit-runner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: mobileSatelliteOrbit 12s linear infinite;
  }

  .mobile-satellite {
    position: absolute;
    top: 50%;
    left: -4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #61e6ff;
    box-shadow: 0 0 8px #61e6ff, 0 0 22px rgba(97, 230, 255, 0.72);
    transform: scaleY(1.38);
  }

  .mobile-signal {
    position: absolute;
    top: 93px;
    right: -108px;
    width: 140px;
    height: 140px;
    z-index: 1;
  }

  .mobile-signal span {
    position: absolute;
    inset: 48%;
    border: 1px solid rgba(97, 230, 255, 0.46);
    border-radius: 50%;
    opacity: 0;
    animation: mobileSignal 4.8s ease-out infinite;
  }

  .mobile-signal span:nth-child(2) {
    animation-delay: 1.6s;
  }

  .mobile-signal span:nth-child(3) {
    animation-delay: 3.2s;
  }

  .hero {
    min-height: min(760px, 100svh);
    padding: 118px 0 70px;
    text-align: left;
    gap: 0;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    margin: 0;
  }

  .hero-visual {
    display: none;
  }

  .hero-title {
    max-width: 350px;
    margin: 24px 0 22px;
    font-size: 1.84rem;
    line-height: 1.02;
  }

  .hero-subtitle {
    max-width: 350px;
    color: #d2d8e2;
    font-size: 1rem;
    line-height: 1.68;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 28px;
  }

  .hero-actions .btn,
  .hero-actions button {
    width: 100%;
  }

  .hero-stats {
    width: 100%;
    margin-top: 32px;
    padding: 14px;
    gap: 10px;
    border-radius: 8px;
  }

  .stat-number {
    font-size: 1.38rem;
  }

  .section-header,
  .align-left {
    margin-bottom: 32px;
    text-align: left;
  }

  .align-left .section-desc,
  .section-desc {
    margin-left: 0;
  }

  .section-title,
  .cta-content h2 {
    font-size: 2.12rem;
    line-height: 1.14;
  }

  .section-desc {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .split-layout {
    gap: 42px;
  }

  .mission-map {
    height: 360px;
  }

  .transform-grid,
  .capabilities-grid,
  .products-grid,
  .projects-grid,
  .trajectory-line,
  .portfolio-strip,
  .console-grid {
    gap: 14px;
  }

  .transform-card,
  .cap-card,
  .product-card,
  .step-card,
  .project-card-body {
    padding: 24px;
  }

  .cap-card,
  .product-card,
  .step-card {
    min-height: 0;
  }

  .transform-arrow {
    width: 46px;
    height: 46px;
  }

  .trajectory-line::before {
    display: none;
  }

  .step-card span {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
  }

  .project-card-img {
    height: 210px;
  }

  .pt-card {
    padding: 22px;
  }

  .console-grid {
    padding: 14px;
  }

  .sec-item {
    padding: 18px;
  }

  .cta-content {
    padding: 34px 22px;
    text-align: left;
  }

  .cta-content .hero-actions {
    justify-content: stretch;
  }

  .footer {
    padding: 48px 0;
  }

  .footer-links {
    gap: 14px 20px;
    flex-wrap: wrap;
  }

  .chat-panel {
    border-radius: 0;
  }

  .chat-header-sub {
    max-width: 220px;
    line-height: 1.3;
  }
}

@media (max-width: 390px) {
  .hero-title {
    max-width: 320px;
    font-size: 1.82rem;
  }

  .hero-badge {
    max-width: 290px;
    font-size: 0.7rem;
  }

}

@keyframes mobileSatelliteOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes mobileMarsFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

@keyframes mobileSignal {
  0% {
    inset: 48%;
    opacity: 0;
  }

  12% {
    opacity: 0.8;
  }

  72%,
  100% {
    inset: 0;
    opacity: 0;
  }
}

@keyframes mobileSignalGlow {
  0%,
  100% {
    opacity: 0.56;
  }

  50% {
    opacity: 0.92;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-mars,
  .mobile-orbit-runner,
  .mobile-signal span,
  .mobile-orbit-glow {
    animation: none;
  }
}
