@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@500;700;800&family=Cabin:wght@400;600;700&display=swap');

:root {
  --bg: #09111c;
  --navy: #132338;
  --line: #2a4b73;
  --cyan: #58d7ff;
  --coral: #ff7f6f;
  --text: #e7f5ff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Cabin', sans-serif;
  color: var(--text);
  background:
    linear-gradient(160deg, #09111c 0%, #0f192a 55%, #0a1220 100%);
}

.limit {
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 1.1rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 25;
  border-bottom: 1px solid rgba(88,215,255,0.22);
  background: rgba(9,17,28,0.92);
}

.row {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand {
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
}

.brand img { width: 34px; height: 34px; }

.flex { flex: 1; }

.menu-button {
  display: none;
  border: 1px solid rgba(88,215,255,0.38);
  background: #132338;
  color: var(--text);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.35rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.45rem 0.68rem;
  border-radius: 8px;
}

nav a:hover { background: rgba(255,127,111,0.16); }

.hero {
  padding: 2.4rem 0 1.1rem;
}

.hero-panel {
  border: 1px solid rgba(88,215,255,0.24);
  border-radius: 20px;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(19,35,56,0.95) 0%, rgba(12,26,42,0.95) 100%);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: '';
  position: absolute;
  right: -110px;
  top: -80px;
  width: 320px;
  height: 320px;
  background: linear-gradient(130deg, rgba(88,215,255,0.25), rgba(255,127,111,0.24));
  transform: rotate(25deg);
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
}

.hero h1 {
  margin: 0;
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(2rem, 4.9vw, 3.6rem);
}

.tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tags span {
  border: 1px solid rgba(88,215,255,0.3);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  background: rgba(11,21,34,0.72);
  font-weight: 700;
}

.main {
  display: grid;
  grid-template-columns: 1.6fr 0.85fr;
  gap: 1rem;
  padding-bottom: 2.4rem;
}

.stage {
  border: 1px solid rgba(88,215,255,0.25);
  border-radius: 18px;
  background: #050b13;
  padding: 0.72rem;
}

.stage iframe {
  width: 100%;
  min-height: 680px;
  border: 0;
  border-radius: 12px;
}

.rail {
  display: grid;
  gap: 0.8rem;
}

.module {
  border: 1px solid rgba(88,215,255,0.24);
  border-radius: 14px;
  background: rgba(19,35,56,0.9);
  padding: 0.95rem;
}

.module h2 {
  margin: 0 0 0.4rem;
  font-size: 1.06rem;
  color: var(--cyan);
}

.doc {
  padding: 2rem 0 2.9rem;
}

.paper {
  max-width: 980px;
  border: 1px solid rgba(88,215,255,0.24);
  border-radius: 18px;
  background: rgba(19,35,56,0.92);
  padding: 1.35rem;
}

.paper h1 {
  margin-top: 0;
  font-family: 'Exo 2', sans-serif;
  font-size: 2rem;
}

footer { border-top: 1px solid rgba(88,215,255,0.21); }

.foot {
  padding: 1rem 0 1.45rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.foot a { color: var(--cyan); }

.agegate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2,8,13,0.88);
  padding: 1rem;
}

.agegate.hide { display: none; }

.agebox {
  width: min(520px, 100%);
  border: 1px solid rgba(88,215,255,0.28);
  border-radius: 16px;
  background: #14263e;
  padding: 1.1rem;
}

.actions {
  margin-top: 0.82rem;
  display: flex;
  gap: 0.6rem;
}

.actions button {
  border: 0;
  border-radius: 8px;
  padding: 0.54rem 0.8rem;
  font-weight: 700;
}

.actions .ok { background: var(--cyan); color: #071723; }
.actions .stop { background: #3a5677; color: #e7f5ff; }

@media (max-width: 980px) {
  .main { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .menu-button { display: inline-flex; }
  .row { flex-wrap: wrap; }
  nav {
    display: none;
    width: 100%;
    border-top: 1px solid rgba(88,215,255,0.22);
    padding-top: 0.5rem;
  }
  nav.reveal { display: block; }
  nav ul { flex-direction: column; }
  .stage iframe { min-height: 470px; }
}