@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --c-red: #ff0000;
  --c-pink: #ff1493;
  --c-dark: #261717;
  --c-dark2: #1a0e0e;
  --c-dark3: #0d0707;
  --c-text: #f5e6e6;
  --c-text-dim: #c9a0a0;
  --c-border: rgba(255,20,147,0.35);
  --c-overlay: rgba(38,23,23,0.82);
  --nav-h: 64px;
  --font: 'Roboto', 'Segoe UI', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--c-dark3);
  color: var(--c-text);
  font-family: var(--font);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: var(--nav-h);
  line-height: 1.6;
}

div {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

/* ===== AURORA BACKGROUND ===== */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--c-dark3);
}

.aurora-layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  opacity: 0.55;
}

.aurora-layer.a1 {
  width: 80vw;
  height: 60vh;
  top: -20vh;
  left: -20vw;
  background: radial-gradient(ellipse, #ff0000 0%, #ff1493 45%, transparent 75%);
  animation: aurora-drift1 10s ease-in-out infinite alternate;
}

.aurora-layer.a2 {
  width: 70vw;
  height: 70vh;
  bottom: 10vh;
  right: -15vw;
  background: radial-gradient(ellipse, #ff1493 0%, #ff000088 50%, transparent 80%);
  animation: aurora-drift2 12s ease-in-out infinite alternate;
}

.aurora-layer.a3 {
  width: 60vw;
  height: 50vh;
  top: 30vh;
  left: 20vw;
  background: conic-gradient(from 180deg, #ff000055, #ff149355, #26171755, #ff000055);
  background-size: 200% 200%;
  animation: aurora-drift3 9s ease-in-out infinite alternate;
  opacity: 0.3;
}

@keyframes aurora-drift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, 6vh) scale(1.12); }
}
@keyframes aurora-drift2 {
  0%   { transform: translate(0, 0) scale(1.05); }
  100% { transform: translate(-6vw, -8vh) scale(1); }
}
@keyframes aurora-drift3 {
  0%   { transform: rotate(0deg) scale(1); opacity: 0.25; }
  100% { transform: rotate(15deg) scale(1.2); opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-layer { animation: none !important; }
  * { transition: none !important; }
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(38,23,23,0.92);
  border-top: 1px solid var(--c-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
  padding: 4px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 0;
}

.brand-text-icon {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-red);
  letter-spacing: 0.05em;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--c-red);
}

/* ===== HAMBURGER / DETAILS NAV ===== */
.nav-details {
  position: static;
}

.nav-details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1.5px solid var(--c-border);
  background: transparent;
  user-select: none;
  transition: border-color 0.2s;
}

.nav-details > summary::-webkit-details-marker { display: none; }
.nav-details > summary::marker { display: none; }

.nav-details > summary:hover {
  border-color: var(--c-pink);
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-text);
  transition: background 0.2s;
}

.nav-details[open] > summary .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  transition: transform 0.2s, background 0.2s;
}
.nav-details[open] > summary .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-details[open] > summary .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  transition: transform 0.2s, background 0.2s;
}

/* ===== FULLSCREEN OVERLAY ===== */
.fullscreen-overlay {
  position: fixed;
  inset: 0;
  bottom: var(--nav-h);
  z-index: 999;
  background: rgba(13,7,7,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: overlay-in 0.25s ease;
}

@keyframes overlay-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.overlay-inner {
  text-align: center;
  padding: 40px 24px;
  width: 100%;
  max-width: 500px;
}

.overlay-brand {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-red);
  letter-spacing: 0.08em;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.overlay-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overlay-menu li {
  border-bottom: 1px solid rgba(255,20,147,0.15);
}

.overlay-menu li:first-child {
  border-top: 1px solid rgba(255,20,147,0.15);
}

.nav-link {
  display: block;
  padding: 14px 20px;
  color: var(--c-text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color 0.18s, background 0.18s;
  min-height: 48px;
  line-height: 1.4;
}

.nav-link:hover {
  color: var(--c-pink);
  background: rgba(255,20,147,0.08);
}

.overlay-tagline {
  color: var(--c-text-dim);
  font-size: 14px;
  line-height: 1.5;
}

/* ===== LAYOUT WRAPPERS ===== */
main {
  position: relative;
  z-index: 1;
}

article {
  width: 100%;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(38,23,23,0.88) 0%,
    rgba(255,0,0,0.18) 50%,
    rgba(255,20,147,0.12) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 32px 80px;
  max-width: 700px;
  text-align: left;
}

.hero-h1 {
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero-sub {
  font-size: clamp(15px, 2.5vw, 20px);
  color: var(--c-text-dim);
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 540px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--c-red), var(--c-pink));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 0;
  transition: filter 0.2s, transform 0.15s;
  min-height: 48px;
  line-height: 1.4;
}

.hero-cta:hover {
  filter: brightness(1.18) saturate(1.2);
  transform: translateY(-2px);
}

/* ===== CONTENT WITH ASIDE ===== */
.content-sections {
  position: relative;
  z-index: 1;
  padding: 48px 0 40px;
}

.content-with-aside {
  display: flex;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: flex-start;
}

.main-content {
  flex: 1 1 0;
  min-width: 0;
}

/* ===== CONTENT TYPOGRAPHY ===== */
.main-content h2 {
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 700;
  color: var(--c-red);
  margin: 40px 0 8px;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.main-content h2 + hr,
.main-content h3 + hr {
  border: none;
  border-top: 1.5px solid var(--c-border);
  margin: 0 0 20px;
}

.main-content h3 {
  font-size: clamp(17px, 2.8vw, 22px);
  font-weight: 700;
  color: var(--c-pink);
  margin: 28px 0 6px;
  letter-spacing: 0.02em;
}

.main-content h4 {
  font-size: 17px;
  font-weight: 500;
  color: var(--c-text);
  margin: 20px 0 6px;
}

.main-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text-dim);
  margin-bottom: 16px;
}

.main-content a {
  color: var(--c-pink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s;
}

.main-content a:hover {
  color: var(--c-red);
}

.main-content ul, .main-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
  color: var(--c-text-dim);
  line-height: 1.75;
}

.main-content li {
  margin-bottom: 6px;
}

.main-content div {
  padding: 20px 0 8px;
  border-bottom: 1px solid rgba(255,20,147,0.1);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.main-content div:last-child {
  border-bottom: none;
}

.main-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 15px;
}

.main-content th {
  background: rgba(255,0,0,0.15);
  color: var(--c-red);
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  text-align: left;
  font-weight: 700;
}

.main-content td {
  padding: 9px 12px;
  border: 1px solid rgba(255,20,147,0.15);
  color: var(--c-text-dim);
}

.main-content tr:hover td {
  background: rgba(255,20,147,0.06);
}

/* ===== ASIDE ===== */
.side-panel {
  flex: 0 0 240px;
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.aside-block {
  border: 1.5px solid var(--c-border);
  padding: 20px;
  background: rgba(38,23,23,0.6);
  backdrop-filter: blur(8px);
}

.aside-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-red);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.aside-block hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 0 0 14px;
}

.aside-nav-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-link {
  display: block;
  padding: 8px 0;
  color: var(--c-text-dim);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,20,147,0.1);
  transition: color 0.18s, padding-left 0.18s;
  min-height: 40px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.aside-link:hover {
  color: var(--c-pink);
  padding-left: 8px;
}

.aside-notice p {
  font-size: 13px;
  color: var(--c-text-dim);
  line-height: 1.6;
  margin-bottom: 6px;
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  z-index: 1;
  background: rgba(13,7,7,0.96);
  border-top: 1px solid var(--c-border);
  padding: 40px 24px 16px;
}

.footer-inner {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 28px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1 1 200px;
}

.footer-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-red);
  letter-spacing: 0.06em;
}

.footer-desc {
  font-size: 14px;
  color: var(--c-text-dim);
  line-height: 1.6;
}

.footer-host {
  font-size: 12px;
  color: rgba(201,160,160,0.5);
  letter-spacing: 0.04em;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.footer-link {
  display: block;
  padding: 8px 0;
  color: var(--c-text-dim);
  font-size: 14px;
  text-decoration: none;
  min-height: 40px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  transition: color 0.18s;
}

.footer-link:hover {
  color: var(--c-pink);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,20,147,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.copyright {
  font-size: 13px;
  color: rgba(201,160,160,0.6);
}

.footer-note {
  font-size: 13px;
  color: rgba(201,160,160,0.4);
}

/* ===== HR GLOBAL ===== */
hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 16px 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
  background: var(--c-dark3);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--c-red), var(--c-pink));
  border-radius: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .content-with-aside {
    flex-direction: column;
  }
  .side-panel {
    flex: none;
    width: 100%;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .aside-block {
    flex: 1 1 200px;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding: 40px 20px 70px;
  }
  .hero-h1 {
    font-size: 26px;
  }
  .content-with-aside {
    padding: 0 16px;
  }
  .content-sections {
    padding: 32px 0 24px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .side-panel {
    flex-direction: column;
  }
  .overlay-brand {
    font-size: 22px;
  }
  .nav-link {
    font-size: 16px;
  }
}

@media (max-width: 375px) {
  .hero-content {
    padding: 32px 16px 60px;
  }
  .bottom-nav-inner {
    padding: 0 12px;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
