:root {
  --bg: #0b1220;
  --bg-2: #0f1830;
  --fg: #e6ecf8;
  --muted: #a8b8dc;
  --accent: #3aa0ff;
  --accent-2: #8ad0ff;
  --ok: #6bd69e;
  --warn: #ffb357;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Ubuntu,
    Cantarell,
    Inter,
    Arial,
    sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(
      1400px 700px at 80% -10%,
      rgba(58, 160, 255, 0.1),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at 10% 10%,
      rgba(138, 208, 255, 0.08),
      transparent 60%
    ),
    radial-gradient(
      700px 600px at 50% 120%,
      rgba(107, 214, 158, 0.1),
      transparent 60%
    );
  background-attachment: fixed;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  opacity: 0.9;
}

/* Accessibility improvements */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  z-index: 100;
  font-weight: 600;
}

.skip-to-content:focus {
  top: 0;
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: saturate(120%) blur(8px);
  background: rgba(11, 18, 32, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 6px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.3px;
  overflow: visible;
}

.brand img.logo {
  height: 80px;
  max-height: 80px;
  width: auto;
  display: block;
  border: none;
  outline: none;
  background: transparent;
  object-fit: contain;
  clip-path: none;
  -webkit-mask-image: none;
  mask-image: none;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 20px rgba(58, 160, 255, 0.3));
}

.brand img.logo:hover {
  filter: drop-shadow(0 0 30px rgba(58, 160, 255, 0.5));
  transform: scale(1.05);
}

.brand span {
  display: inline-block;
  line-height: 1;
  font-size: 20px;
  margin-left: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--fg);
}

nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav a {
  color: var(--fg);
  opacity: 0.9;
}

nav a.active,
nav a:hover {
  color: var(--accent);
}

.mobile-toggle {
  display: none;
}

/* Hero */
.hero {
  padding: 86px 0 40px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
  margin: 0 0 14px;
}

.hero p {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 760px;
}

.cta {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  background: linear-gradient(
    180deg,
    rgba(58, 160, 255, 0.2),
    rgba(58, 160, 255, 0.12)
  );
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

/* Sections */
section {
  padding: 64px 0;
  position: relative;
}

section .section-title {
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 16px;
}

.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.col-4 {
  grid-column: span 4;
}

.col-6 {
  grid-column: span 6;
}

.col-8 {
  grid-column: span 8;
}

.col-12 {
  grid-column: span 12;
}

/* Project */
.feature {
  display: flex;
  gap: 12px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--accent-2);
  background: rgba(58, 160, 255, 0.06);
}

/* Timeline */
.timeline {
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  margin-left: 10px;
}

.tl-item {
  padding: 10px 0 10px 18px;
}

.tl-item .when {
  font-size: 12px;
  color: var(--muted);
}

/* Footer */
footer {
  padding: 36px 0;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

/* Games, Devlog, Trailers */
.meta {
  font-size: 12px;
  color: var(--muted);
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  margin: 0.15rem 0.25rem 0 0;
  color: var(--accent-2);
  background: rgba(58, 160, 255, 0.06);
}

.game-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.game-card img {
  width: 220px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Landing homepage */
body.landing-home {
  background: #04070c url("/assets/homepage-about-bg.webp?v=20260402") center
    top / cover no-repeat fixed;
  min-height: 100vh;
  position: relative;
}

body.landing-home::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(2, 5, 8, 0.88) 0%,
      rgba(2, 5, 8, 0.46) 42%,
      rgba(2, 5, 8, 0.7) 100%
    ),
    linear-gradient(180deg, rgba(3, 6, 10, 0.16) 0%, rgba(3, 6, 10, 0.42) 100%);
  pointer-events: none;
  z-index: 0;
}

body.landing-home > * {
  position: relative;
  z-index: 1;
}

.landing-header {
  background: rgba(4, 7, 12, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-main {
  min-height: 100vh;
}

.landing-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 140px;
}

.landing-hero-layout {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.landing-about-box {
  width: min(100%, 700px);
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  border-radius: 6px;
  padding: 28px 32px;
  backdrop-filter: blur(8px);
}

.landing-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 10px;
}

.landing-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  color: #fff;
}

.landing-copy {
  margin: 0 0 14px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.landing-copy:last-child {
  margin-bottom: 0;
}

.landing-mini-panel {
  width: min(100%, 700px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 18, 0.6);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.landing-mini-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 4px;
}

.landing-mini-panel p {
  margin: 0;
  color: var(--muted);
}

.landing-footer-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
}

.landing-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.landing-footer-meta,
.landing-email {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.landing-email {
  text-align: right;
  text-decoration: underline;
}

.landing-footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: rgba(10, 14, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-footer-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.landing-site-footer {
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 7, 12, 0.55);
}

.landing-site-footer a {
  color: rgba(255, 255, 255, 0.86);
}

/* 7 Seals page — Cold Symmetry pattern:
   fixed background image, single centered transparent scroll column
   contains all content (title, description, features, trailer, footer). */

body.seven-seals-page {
  background: #05070b url("../hero.webp?v=20260402") center 20% / 100% auto
    no-repeat fixed;
  min-height: 100vh;
}

body.seven-seals-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(4, 6, 9, 0.72) 0%,
      rgba(4, 6, 9, 0.22) 48%,
      rgba(4, 6, 9, 0.64) 100%
    ),
    linear-gradient(180deg, rgba(4, 6, 9, 0.08) 0%, rgba(4, 6, 9, 0.48) 100%);
  pointer-events: none;
  z-index: 0;
}

body.seven-seals-page > * {
  position: relative;
  z-index: 1;
}

.seven-seals-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(6, 8, 12, 0.62);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.seven-seals-main {
  display: flex;
  justify-content: center;
  padding: 80px 24px 0;
}

/* --- Single centered scroll column --- */
.seven-seals-scroll-column {
  width: 100%;
  max-width: 820px;
  background: rgba(5, 7, 11, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 48px 44px 0;
}

.seven-seals-eyebrow,
.seven-seals-section-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.seven-seals-title {
  margin: 10px 0 18px;
  font-size: clamp(52px, 9vw, 102px);
  line-height: 0.95;
  color: #d8b14a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.seven-seals-copy {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 1.28vw, 21px);
  line-height: 1.65;
}

.seven-seals-copy:last-of-type {
  margin-bottom: 0;
}

.seven-seals-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin-top: 32px;
}

.seven-seals-feature h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d8b14a;
  margin: 0 0 4px;
}

.seven-seals-feature p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.seven-seals-trailer-panel {
  margin-top: 40px;
}

.seven-seals-youtube-wrap {
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Footer inside the scroll column */
.seven-seals-column-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-consent {
  z-index: 10000;
}

body.landing-home .cookie-consent {
  display: none !important;
}

/* Loading states */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Social sharing */
.social-share {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
}

.social-btn:hover {
  background: rgba(58, 160, 255, 0.15);
  transform: translateY(-2px);
}

.social-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--fg);
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 18, 32, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  font-size: 14px;
  color: var(--muted);
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

/* Responsive */
@media (max-width: 860px) {
  .grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .col-4 {
    grid-column: span 6;
  }

  .col-6 {
    grid-column: span 6;
  }

  .col-8 {
    grid-column: span 6;
  }

  .hero {
    padding-top: 64px;
  }

  nav ul {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
  }

  .mobile-open nav ul {
    display: flex;
    position: absolute;
    top: 56px;
    left: 10px;
    right: 10px;
    flex-direction: column;
    gap: 8px;
    background: rgba(11, 18, 32, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .brand img.logo {
    height: 60px;
    max-height: 60px;
  }

  .brand span {
    font-size: 16px;
    margin-left: 8px;
  }

  .game-card {
    flex-direction: column;
  }

  .game-card img {
    width: 100%;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-hero {
    padding: 110px 0 150px;
  }

  .landing-about-box {
    padding: 22px 20px;
    border-radius: 16px;
  }
  .seven-seals-main {
    padding: 40px 12px 0;
  }

  .seven-seals-scroll-column {
    padding: 28px 18px 0;
  }

  .landing-footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .seven-seals-column-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .landing-email {
    text-align: center;
  }

  .seven-seals-title {
    font-size: clamp(40px, 14vw, 72px);
  }

  .seven-seals-features {
    grid-template-columns: 1fr;
  }

  .seven-seals-scroll-inner {
    padding: 36px 0 32px;
    gap: 32px;
  }
}

/* Subtle animated lines background */
.ether-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
}

.ether-lines svg {
  position: absolute;
  bottom: -60px;
  left: 0;
  width: 100%;
  height: 280px;
  animation:
    float 8s ease-in-out infinite alternate,
    wave 12s ease-in-out infinite;
}

@keyframes float {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-20px);
  }
}

@keyframes wave {
  0%,
  100% {
    transform: translateX(0) scaleX(1);
  }

  50% {
    transform: translateX(10px) scaleX(1.1);
  }
}
