:root {
  --bg: #080d14;
  --bg-soft: #0d1420;
  --surface: #101826;
  --surface-2: #152233;
  --line: rgba(151, 178, 216, 0.16);
  --text: #eef4ff;
  --muted: #a7b5cb;
  --accent: #64dcc8;
  --accent-soft: #88cfff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: min(1140px, calc(100% - 2rem));
  --shadow: 0 26px 60px rgba(2, 6, 11, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at 14% 10%,
      rgba(136, 207, 255, 0.12),
      transparent 26%
    ),
    radial-gradient(
      circle at 86% 8%,
      rgba(100, 220, 200, 0.1),
      transparent 20%
    ),
    linear-gradient(180deg, #050810 0%, #080d14 38%, #0c131d 100%);
  line-height: 1.6;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.topbar {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0.9rem auto 0;
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(10, 15, 24, 0.76);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-logo {
  display: block;
  width: auto;
  height: 15vh;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

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

.btn-primary {
  color: #07131b;
  background: linear-gradient(135deg, var(--accent), #a6ece0);
}

.btn-secondary {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.hero {
  width: var(--container);
  margin: 0 auto;
  padding: 15vh 0;
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 2rem;
  justify-items: stretch;
  text-align: left;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-soft);
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
  transition:
    color 220ms ease,
    transform 220ms ease,
    text-shadow 220ms ease;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.95;
  animation: titleIntro 1s cubic-bezier(0.2, 0.85, 0.2, 1) both;
  display: inline-block;
  text-align: left;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  animation: titleIntro 1s cubic-bezier(0.2, 0.85, 0.2, 1) 120ms both;
}

h3 {
  animation: titleIntro 0.9s cubic-bezier(0.2, 0.85, 0.2, 1) 180ms both;
}

h1:hover,
h2:hover,
h3:hover {
  color: #ffffff;
  transform: none;
  text-shadow: 0 0 24px rgba(100, 220, 200, 0.22);
}

.lead {
  margin: 1rem auto 0;
  color: var(--muted);
  max-width: 48ch;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-copy {
  width: 100%;
  display: block;
}

.hero-copy .lead {
  margin-inline: 0;
}

.hero-mock {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 1rem;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(141, 223, 239, 0.14),
      transparent 28%
    ),
    linear-gradient(180deg, #111b2a, #101927);
  box-shadow: var(--shadow);
  max-width: min(460px, 100%);
}

.mock-screen {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1rem;
  min-height: auto;
  display: grid;
  place-items: center;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
}

.hero-main-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(70vh, 720px);
  border-radius: 16px;
  object-fit: contain;
}

.mock-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.chip {
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem;
  color: var(--muted);
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.8rem;
  margin-top: 0.6rem;
  background: rgba(12, 19, 30, 0.7);
}

.panel strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.94rem;
}

.panel span {
  color: var(--muted);
  font-size: 0.86rem;
}

section {
  width: var(--container);
  margin-inline: auto;
  height: 100vh;
  padding: 15vh 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cards {
  width: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  min-height: 190px;
}

.card p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.marquee {
  width: 100%;
  margin: 0;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background: rgba(8, 13, 20, 0.45);
}

.marquee-track {
  display: flex;
  gap: 1.8rem;
  width: max-content;
  padding: 0.85rem 0;
  animation: marqueeSlide 22s linear infinite;
}

.marquee span {
  white-space: nowrap;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9d8ee;
}

.gallery-wrap {
  width: 100%;
  height: 70vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.image-carousel {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    rgba(16, 24, 38, 0.8),
    rgba(16, 27, 42, 0.72)
  );
  box-shadow: var(--shadow);
}

.image-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-image {
  flex: 0 0 auto;
  width: 100%;
  max-height: 100%;
  height: 100%;
  border-radius: 0;
  border: 0;
  background: #0d1623;
  object-fit: contain;
  object-position: center;
  scroll-snap-align: start;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 13, 20, 0.7);
  color: #eaf2ff;
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(10px);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.carousel-nav:hover {
  background: rgba(100, 220, 200, 0.18);
  border-color: rgba(136, 207, 255, 0.45);
}

.carousel-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.carousel-nav-prev {
  left: 0.6rem;
}

.carousel-nav-next {
  right: 0.6rem;
}

.contact {
  width: 100%;
  margin: 0;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #122031, #101b2a);
  text-align: center;
}

.contact p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.footer-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes marqueeSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes titleIntro {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    color: var(--muted);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    color: var(--text);
    filter: blur(0);
  }
}

.hero-title {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.18em;
  justify-content: flex-start;
  align-items: baseline;
  text-align: left;
}

.hero-title .word {
  display: inline-block;
  transform-origin: center;
  animation: wordPulse 3.4s ease-in-out infinite;
  animation-delay: calc(var(--word-index) * 120ms);
  cursor: default;
  will-change: transform, color;
}

.hero-title .word:nth-child(odd) {
  animation-name: wordPulseAlt;
}

.hero-title.is-hovered .word {
  animation-duration: 1.8s;
}

.hero-title .word:hover {
  transform: scale(1.2);
  color: #ffffff;
  text-shadow: 0 0 26px rgba(100, 220, 200, 0.24);
}

.hero-title .space {
  width: 0.38em;
}

@keyframes wordPulse {
  0%,
  100% {
    color: #eef4ff;
    transform: scale(1);
    text-shadow: 0 0 0 rgba(100, 220, 200, 0);
  }
  25% {
    color: #7fe6c7;
    transform: scale(1.05);
    text-shadow: 0 0 22px rgba(127, 230, 199, 0.16);
  }
  50% {
    color: #8dc6ff;
    transform: scale(1.08);
    text-shadow: 0 0 22px rgba(141, 198, 255, 0.18);
  }
  75% {
    color: #9be8ff;
    transform: scale(1.02);
    text-shadow: 0 0 22px rgba(155, 232, 255, 0.16);
  }
}

@keyframes wordPulseAlt {
  0%,
  100% {
    color: #eef4ff;
    transform: scale(1);
    text-shadow: 0 0 0 rgba(136, 207, 255, 0);
  }
  25% {
    color: #9be8ff;
    transform: scale(1.05);
    text-shadow: 0 0 22px rgba(155, 232, 255, 0.16);
  }
  50% {
    color: #64dcc8;
    transform: scale(1.07);
    text-shadow: 0 0 22px rgba(100, 220, 200, 0.18);
  }
  75% {
    color: #7fe6c7;
    transform: scale(1.02);
    text-shadow: 0 0 22px rgba(127, 230, 199, 0.16);
  }
}

@media (max-width: 980px) {
  .hero {
    margin-top: 0;
    grid-template-columns: 1fr;
    height: 100vh;
    padding: 14vh 0;
  }

  .hero-copy {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .topbar {
    border-radius: 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .nav {
    flex-wrap: wrap;
  }

  .brand-logo {
    height: 38px;
    max-width: 170px;
  }

  section {
    padding: 14vh 0;
  }

  .gallery-wrap {
    height: 70vh;
  }

  .carousel-image {
    width: 100%;
  }
}

@media (max-width: 620px) {
  :root {
    --container: min(1120px, calc(100% - 1rem));
  }

  .topbar {
    padding: 0.8rem 0.9rem;
  }

  .brand-logo {
    height: 34px;
    max-width: 150px;
  }

  section {
    padding: 13vh 0;
  }

  .gallery-wrap {
    height: 70vh;
  }

  .carousel-image {
    width: 100%;
  }

  .carousel-nav {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .reveal {
    transition: none;
  }
}
