/* MAX 300 LINES — base.css */
:root {
  --bg: #020d1a;
  --accent: #00e5ff;
  --violet: #1a0a3a;
  --text: #f4fbff;
  --muted: rgba(233, 246, 255, 0.78);
  --border: rgba(0, 229, 255, 0.26);
  --card: rgba(4, 19, 35, 0.72);
  --shadow: 0 0 30px rgba(0, 229, 255, 0.14);
  --shadow-strong: 0 0 26px rgba(0, 229, 255, 0.34), 0 0 70px rgba(0, 229, 255, 0.16);
  --radius: 24px;
  --logo-yellow: #f8d900;
  --logo-gold-grad: linear-gradient(to bottom, #ffc837 0%, #ff8008 50%, #ce6104 100%);
  --logo-cyan-grad: linear-gradient(to bottom, #e0f7fa 0%, #4dd0e1 50%, #00818f 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  min-height: 100vh;
  min-width: 320px;
  color: var(--text);
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 229, 255, 0.12), transparent 24%),
    radial-gradient(circle at 80% 15%, rgba(26, 10, 58, 0.92), transparent 28%),
    linear-gradient(180deg, #020d1a 0%, #041427 40%, #020d1a 100%);
  overflow-x: hidden;
}

body.is-preloading,
body.is-transitioning {
  overflow: hidden;
}

body.is-preloading .page-shell,
body.is-transitioning .page-shell {
  opacity: 0;
  transform: translateY(18px);
}

body.is-ready .page-shell {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.site-loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 229, 255, 0.12), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(26, 10, 58, 0.78), transparent 28%),
    linear-gradient(180deg, rgba(2, 13, 26, 0.98) 0%, rgba(1, 8, 16, 0.99) 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 2500;
}

body.is-preloading .site-loader,
body.is-transitioning .site-loader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-loader__core {
  width: min(420px, 100%);
  padding: 28px 24px;
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 26px;
  background: rgba(3, 14, 26, 0.72);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 32px rgba(0, 229, 255, 0.08);
  text-align: center;
  backdrop-filter: blur(14px);
}

.site-loader__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  margin-bottom: 18px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.site-loader__brand .logo-gold {
  background: var(--logo-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.site-loader__brand .logo-cyan {
  background: var(--logo-cyan-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.site-loader__brand .logo-gold:last-child {
  margin-left: 0.2em;
  margin-right: 0.22em;
}

.site-loader__bar {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.site-loader__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 35%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.2), #00e5ff, rgba(132, 246, 255, 0.8));
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
  animation: loaderSlide 1.25s ease-in-out infinite;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #e8fbff;
  color: #04111d;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
  z-index: 2000;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tags-container {
  margin-top: 32px;
}

.tag-group-title {
  margin: 0 0 14px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 244, 248, 0.92);
}

.categories-title {
  margin-top: 24px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.tag-badge {
  padding: 6px 14px;
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #e2f9ff;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  line-height: 1.4;
}

.tag-badge:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.2);
  transform: translateY(-2px);
  color: #fff;
}

.screenshot-card {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.1);
  cursor: pointer;
}

.screenshot-card:hover {
  transform: scale(1.05) translateY(-5px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 15px 30px rgba(0, 229, 255, 0.15);
}

.screenshot-card img {
  cursor: zoom-in;
  transition: opacity 0.3s ease;
}

.screenshot-card:hover img {
  opacity: 0.85;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.08), transparent 80%);
  pointer-events: none;
  z-index: -2;
}

.bubble {
  position: fixed;
  bottom: -50px;
  background: rgba(0, 200, 255, 0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: rise 12s infinite ease-in;
}

@keyframes rise {
  0% { transform: translateY(0) scale(0.5); opacity: 0.6; }
  100% { transform: translateY(-120vh) scale(1.2); opacity: 0; }
}

@keyframes loaderSlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

a {
  color: inherit;
}

section:not(.hero) {
  position: relative;
  padding: 96px 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-shell > main {
  flex: 1 0 auto;
}

#main-content {
  display: flex;
  flex-direction: column;
}

#hero {
  order: 1;
}

#about {
  order: 2;
}

.media-trailer {
  order: 3;
}

#features {
  order: 4;
}

#media {
  order: 5;
}

#faq {
  order: 6;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.wordmark .logo-gold,
.wordmark-inline .logo-gold {
  background: var(--logo-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.wordmark .logo-gold:last-child,
.wordmark-inline .logo-gold:last-child {
  margin-left: 0.2em;
  margin-right: 0.22em;
}

.wordmark .logo-cyan,
.wordmark-inline .logo-cyan {
  background: var(--logo-cyan-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.wordmark-compact {
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.wordmark-hero {
  font-size: clamp(3.3rem, 10vw, 7rem);
  letter-spacing: 0.04em;
}

.wordmark-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: 0.96em;
  line-height: 1;
  white-space: nowrap;
}

.footer-brand {
  display: flex;
}

.section-title {
  margin: 0 0 16px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.14);
}

.hero-slogan {
  font-family: "Inter", sans-serif;
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(233, 246, 255, 0.96);
  margin-bottom: 24px;
}

.section-copy {
  margin: 0;
  max-width: 60ch;
  color: rgba(233, 246, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.7;
}

.about {
  background:
    radial-gradient(circle at 18% 24%, rgba(0, 229, 255, 0.1), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(26, 10, 58, 0.6), transparent 30%),
    linear-gradient(180deg, rgba(2, 13, 26, 0.82), rgba(2, 13, 26, 0.96));
  background-attachment: fixed;
}

.features {
  background:
    radial-gradient(circle at 14% 20%, rgba(0, 229, 255, 0.08), transparent 20%),
    radial-gradient(circle at 78% 32%, rgba(78, 189, 255, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(3, 20, 42, 0.82), rgba(2, 13, 26, 0.96));
  background-attachment: fixed;
}

.faq {
  background:
    radial-gradient(circle at 76% 22%, rgba(0, 229, 255, 0.08), transparent 20%),
    radial-gradient(circle at 24% 72%, rgba(120, 220, 255, 0.06), transparent 26%),
    linear-gradient(180deg, rgba(2, 13, 26, 0.78), rgba(1, 10, 20, 0.94));
  background-attachment: fixed;
}

.seo-gallery {
  background:
    radial-gradient(circle at 18% 22%, rgba(0, 229, 255, 0.1), transparent 20%),
    radial-gradient(circle at 78% 30%, rgba(120, 220, 255, 0.07), transparent 22%),
    radial-gradient(circle at 52% 88%, rgba(0, 120, 255, 0.08), transparent 26%),
    linear-gradient(145deg, rgba(2, 14, 26, 0.98) 0%, rgba(1, 9, 20, 0.97) 42%, rgba(0, 4, 12, 1) 100%);
  background-attachment: fixed;
}

.download {
  background:
    radial-gradient(circle at 82% 18%, rgba(132, 246, 255, 0.025), transparent 82%),
    radial-gradient(circle at 16% 70%, rgba(0, 229, 255, 0.015), transparent 86%),
    linear-gradient(180deg, rgba(0, 6, 14, 1) 0%, rgba(0, 4, 10, 1) 48%, rgba(0, 2, 6, 1) 100%);
  background-attachment: fixed;
}

#media .section-title:first-of-type,
#media .video-wrapper,
#media #trailer-container {
  display: none;
}

.about-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.capsule-box,
.video-wrapper {
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 20px;
  background: rgba(3, 14, 26, 0.72);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.35);
}

.video-wrapper video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.portrait-card {
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 20px;
  background: rgba(3, 14, 26, 0.72);
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.32);
}

.portrait-card img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.about-copy strong {
  color: var(--accent);
  font-weight: 700;
}

.about-side {
  display: grid;
  gap: 16px;
}

.info-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(0, 229, 255, 0.06), rgba(26, 10, 58, 0.22)),
    var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.info-card__label {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: "Orbitron", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.info-card__value {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(54px);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}

.ambient-orb.one {
  width: 260px;
  height: 260px;
  top: 12%;
  right: 8%;
  background: rgba(0, 229, 255, 0.42);
}

.ambient-orb.two {
  width: 220px;
  height: 220px;
  bottom: 12%;
  left: 8%;
  background: rgba(86, 51, 190, 0.28);
}

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

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

@media (max-width: 1024px), (prefers-reduced-motion: reduce) {
  .about,
  .features,
  .faq,
  .seo-gallery,
  .download {
    background-attachment: scroll;
  }

  .ambient-orb,
  .bubble,
  .hero-bubbles span,
  .hero::after,
  .submersible__trail {
    animation: none !important;
  }

  .site-loader__bar span {
    animation-duration: 1.6s;
  }
}
