/* CSS Variables */
:root {
  --mars: #c4521a;
  --mars-dark: #6e2205;
  --dust: #eda06a;
  --sand: #f5dfc0;
  --void: #000005;
  --void-2: #080308;
  --copper: #c07a3a;
  --glow: #ff7030;
  --silver: #c8c8d4;
  --portal-blue: #4fc3f7;
  --portal-purple: #9c27b0;
  --text-main: #f2e9de;
  --text-dim: #aa9878;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Body */
body {
  background: #000005;
  color: var(--text-main);
  font-family: 'Crimson Pro', Georgia, serif;
  overflow-x: hidden;
  cursor: default;
}

/* Stars background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 20%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 35%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 90%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 10%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 75%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 50%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 45%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 38% 12%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 77% 55%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 70%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 38%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 88%, rgba(255,255,255,0.5) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Language toggle */
.lang-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 12px 32px;
  background: rgba(10,6,8,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,115,51,0.2);
  gap: 8px;
}

.lang-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-right: 8px;
}

.lang-btn {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding: 5px 14px;
  border: 1px solid rgba(184,115,51,0.4);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.lang-btn.active, .lang-btn:hover {
  border-color: var(--glow);
  color: var(--glow);
  background: rgba(255,107,53,0.08);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 60px;
  overflow: hidden;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 50% at 50% 100%, rgba(110,34,5,0.6) 0%, transparent 65%),
    radial-gradient(ellipse 50% 25% at 50% 85%, rgba(196,82,26,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 30% 20% at 15% 55%, rgba(196,82,26,0.08) 0%, transparent 60%);
  z-index: -1;
}

/* Animated planet */
.planet {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  overflow: hidden;
  z-index: -1;
  mix-blend-mode: screen;
  animation: planetPulse 10s ease-in-out infinite;
  filter:
    drop-shadow(0 0 50px rgba(210,90,30,0.7))
    drop-shadow(0 0 120px rgba(130,45,8,0.5));
}

.planet-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 165%;
  height: 165%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

@keyframes planetPulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 50px rgba(210,90,30,0.7))
      drop-shadow(0 0 120px rgba(130,45,8,0.5));
  }
  50% {
    filter:
      drop-shadow(0 0 70px rgba(240,110,40,0.85))
      drop-shadow(0 0 160px rgba(160,60,10,0.65));
  }
}

/* Hero content */
.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 20px;
  animation: fadeUp 1s ease both;
  text-shadow: 0 0 12px rgba(0,0,0,0.9), 0 2px 8px rgba(0,0,0,0.8);
  text-align: center;
  width: 100%;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(42px, 8vw, 96px);
  font-weight: 900;
  text-align: center;
  line-height: 1;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #f5dfc0 0%, #ff7030 35%, #c4521a 65%, #6e2205 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 1s 0.15s ease both;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.9)) drop-shadow(0 0 30px rgba(193,68,14,0.6));
}

.hero-sub {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(16px, 2.5vw, 22px);
  font-style: italic;
  color: var(--sand);
  text-align: center;
  margin-top: 16px;
  max-width: 560px;
  line-height: 1.6;
  animation: fadeUp 1s 0.3s ease both;
  text-shadow: 0 0 16px rgba(0,0,0,0.95), 0 2px 8px rgba(0,0,0,0.85);
}

.hero-cats {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  animation: fadeUp 1s 0.45s ease both;
  position: relative;
  z-index: 2;
}

.hero-cat-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--copper);
  box-shadow: 0 0 20px rgba(193,68,14,0.5), 0 0 60px rgba(122,42,8,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-cat-img:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 0 30px rgba(255,107,53,0.7), 0 0 80px rgba(122,42,8,0.5);
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  animation: fadeUp 1s 0.6s ease both;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Buttons */
.btn-primary {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  background: linear-gradient(135deg, #c4521a, #6e2205);
  border: none;
  color: var(--sand);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e06020, #9a3810);
  box-shadow: 0 0 30px rgba(193,68,14,0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--copper);
  color: var(--dust);
  cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  text-shadow: 0 0 12px rgba(237,160,106,0.8), 0 1px 8px rgba(0,0,0,0.9);
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.8));
}

.btn-secondary:hover {
  border-color: var(--glow);
  color: var(--glow);
  background: rgba(255,112,48,0.06);
  text-shadow: 0 0 16px rgba(255,112,48,0.9);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Boosty banner */
.boosty-banner {
  position: relative;
  z-index: 1;
  background: rgba(18,13,15,0.9);
  border-top: 1px solid rgba(184,115,51,0.3);
  border-bottom: 1px solid rgba(184,115,51,0.3);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.boosty-text {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.boosty-link {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--glow);
  text-decoration: none;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,107,53,0.3);
  transition: border-color 0.2s;
}

.boosty-link:hover { border-color: var(--glow); }

.boosty-badge {
  background: linear-gradient(135deg, #ff6b35, #c1440e);
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  letter-spacing: 2px;
}

/* Section generic */
section {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(184,115,51,0.5), transparent);
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--sand);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text p {
  font-size: 18px;
  line-height: 1.9;
  color: var(--text-main);
  margin-bottom: 16px;
}

.about-text p em {
  color: var(--dust);
  font-style: italic;
}

.about-img-stack {
  position: relative;
  height: 380px;
}

.about-img-stack img {
  position: absolute;
  border: 2px solid rgba(184,115,51,0.4);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  object-fit: cover;
}

.about-img-stack img:nth-child(1) {
  width: 200px; height: 260px;
  top: 0; left: 0;
  transform: rotate(-3deg);
}

.about-img-stack img:nth-child(2) {
  width: 200px; height: 260px;
  top: 60px; right: 0;
  transform: rotate(2deg);
}

.about-img-stack img:nth-child(3) {
  width: 180px; height: 180px;
  bottom: 0; left: 50%;
  transform: translateX(-50%) rotate(-1deg);
}

/* Posts preview */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.post-card {
  background: rgba(18,13,15,0.8);
  border: 1px solid rgba(184,115,51,0.2);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-card:hover {
  border-color: rgba(255,107,53,0.5);
  transform: translateY(-4px);
}

.post-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: saturate(0.9);
  transition: filter 0.3s;
}

.post-card:hover .post-card-img { filter: saturate(1.2); }

.posts-grid .post-card:nth-child(1) .post-card-img,
.posts-grid .post-card:nth-child(2) .post-card-img {
  object-position: top;
}

.post-card-body {
  padding: 20px;
}

.post-tag {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 8px;
}

.post-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--sand);
  margin-bottom: 10px;
  line-height: 1.4;
}

.post-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}

.post-lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--portal-blue);
  opacity: 0.8;
}

/* Subscriptions */
.subs-section {
  background: rgba(12,8,10,0.6);
  border-top: 1px solid rgba(184,115,51,0.15);
  border-bottom: 1px solid rgba(184,115,51,0.15);
  padding: 80px 24px;
}

.subs-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.subs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.sub-card {
  background: rgba(18,13,15,0.9);
  border: 1px solid rgba(184,115,51,0.25);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.sub-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.sub-card.tier1::before {
  background: linear-gradient(90deg, var(--copper), var(--mars));
}

.sub-card.tier2::before {
  background: linear-gradient(90deg, var(--portal-blue), var(--portal-purple));
}

.sub-card:hover {
  border-color: rgba(255,107,53,0.4);
}

.sub-tier-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(184,115,51,0.4);
  margin-bottom: 20px;
}

.sub-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--sand);
  margin-bottom: 6px;
}

.sub-price {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--copper);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.sub-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.sub-features {
  list-style: none;
  margin-bottom: 28px;
}

.sub-features li {
  font-size: 15px;
  color: var(--text-main);
  padding: 6px 0;
  border-bottom: 1px solid rgba(184,115,51,0.1);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.sub-features li::before {
  content: '◈';
  color: var(--copper);
  font-size: 11px;
  margin-top: 3px;
  flex-shrink: 0;
}

.sub-card.tier2 .sub-features li::before {
  color: var(--portal-blue);
}

/* Portal visual divider */
.portal-divider {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  height: 200px;
}

.portal-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid rgba(79,195,247,0.4);
  position: absolute;
  box-shadow: 0 0 40px rgba(79,195,247,0.2), inset 0 0 40px rgba(79,195,247,0.1);
  animation: portalSpin 12s linear infinite;
}

.portal-ring:nth-child(2) {
  width: 110px; height: 110px;
  border-color: rgba(156,39,176,0.4);
  box-shadow: 0 0 30px rgba(156,39,176,0.2), inset 0 0 30px rgba(156,39,176,0.1);
  animation-duration: 8s;
  animation-direction: reverse;
}

.portal-ring:nth-child(3) {
  width: 80px; height: 80px;
  border-color: rgba(255,107,53,0.5);
  animation-duration: 5s;
}

@keyframes portalSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.portal-core {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,195,247,0.8), rgba(156,39,176,0.4));
  box-shadow: 0 0 20px rgba(79,195,247,0.6);
  animation: corePulse 3s ease-in-out infinite;
  z-index: 2;
}

@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

/* Content types */
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 32px;
  background: rgba(184,115,51,0.1);
}

.content-item {
  background: rgba(12,8,10,0.9);
  padding: 32px 24px;
  text-align: center;
}

.content-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.content-item-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--sand);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.content-item-text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  background: rgba(8,5,6,0.95);
  border-top: 1px solid rgba(184,115,51,0.2);
  padding: 40px 24px;
  text-align: center;
}

.footer-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #f5dfc0, #c4521a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.footer-text {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.footer-link {
  color: var(--glow);
  text-decoration: none;
}

.footer-copy {
  margin-top: 24px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(168,152,128,0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-img-stack { height: 240px; display: none; }
  .subs-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .hero-cats { gap: 12px; }
  .hero-cat-img { width: 80px; height: 80px; }
  .planet { width: 380px; height: 380px; bottom: -40px; }
}

/* Language switching */
[data-lang="ru"] { display: none; }
body.ru [data-lang="ru"] { display: block; }
body.ru [data-lang="en"] { display: none; }
body.ru [data-lang-inline="ru"] { display: inline; }
body.ru [data-lang-inline="en"] { display: none; }
[data-lang-inline="ru"] { display: none; }
