@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600&family=Inter:wght@400;600;900&display=swap');

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

html {
  background: #050505;
}

body {
  min-height: 100vh;
  background: #050505;
  color: #ffffff;
  font-family: "Inter", Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  padding-bottom: 6rem;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.main-container {
  width: 100%;
  max-width: 1100px;
  margin-top: 4vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.home-container {
  height: 100%;
  justify-content: center;
  margin-top: 0;
}

.top-branding {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.company-logo {
  height: clamp(60px, 8vh, 120px);
  width: auto;
  object-fit: contain;
}

.page-title-logo {
  margin-left: auto;
  height: clamp(42px, 6vh, 72px);
  width: auto;
  object-fit: contain;
  opacity: 0.95;
}

.page-title {
  margin-left: auto;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.82;
}

.side-menu {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
  z-index: 101;
}

.menu-item {
  position: relative;
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  font-size: 1rem;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: color 0.3s;
  text-align: right;
}

.menu-label,
.card-link-copy,
.arrow-copy,
.link-label,
.back-link-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.18rem;
  line-height: 1.05;
}

.menu-label-ja,
.card-link-ja,
.arrow-copy-ja,
.link-label-ja,
.back-link-ja,
.btn-ja {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: none;
  opacity: 0.82;
}

.menu-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #b817e3;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: -1;
}

.menu-item:hover::before,
.menu-item.active::before {
  transform: scaleX(1);
}

.mobile-menu-button,
.mobile-menu-modal {
  display: none;
}

.card-wrapper {
  perspective: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.home-card,
.content-card,
.news-card {
  background: #111111;
  color: #ffffff;
  border-radius: 24px;
  padding: clamp(1.5rem, 4vh, 2.5rem) clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  transform-style: preserve-3d;
  transition: transform 0.1s ease, background-color 0.4s ease;
  will-change: transform;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.home-card {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: #ff0000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 60px rgba(255, 0, 0, 0.4);
}

.home-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180%;
  height: 180%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, #003cff 0%, #0028a8 25%, transparent 60%);
  z-index: -1;
  animation: pulse-glow 4s infinite alternate ease-in-out;
  pointer-events: none;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}

.btn {
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  line-height: 1.05;
}

.btn:hover {
  background: #000000;
  transform: translateY(-2px);
}

.home-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.05;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.home-cta:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.42);
  border-color: rgba(255, 255, 255, 0.42);
}

.home-cta-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.18rem;
}

.home-cta-ja {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: none;
  opacity: 0.82;
}

.home-cta .arrow-pill {
  width: 38px;
  height: 38px;
}

.home-cta:hover .arrow-pill {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  transform: translateX(2px);
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2rem;
  transform: translateZ(30px);
  margin-bottom: 0;
  padding-bottom: 1rem;
}

.main-logo-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  object-fit: contain;
}

.bio-text {
  max-width: 600px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  text-transform: uppercase;
  font-weight: 600;
}

.content-card,
.news-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.content-card.is-expanded {
  background: #f3efe8 !important;
  color: #1f1b18;
}

.product-content-card.is-expanded {
  min-height: auto;
  height: auto;
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
  border-radius: 24px;
  transition: background 0.4s ease;
}

.content-card.is-expanded .card-overlay {
  background: rgba(243, 239, 232, 0);
}

.card-front {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 0.4s ease;
  transform: translateZ(30px);
}

.news-card .card-front {
  align-items: flex-start;
  text-align: left;
  padding-right: 8rem;
}

.front-copy {
  max-width: 38rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-heading {
  max-width: 13ch;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.news-card .hero-heading {
  max-width: 11ch;
}

.hero-subheading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.9;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.headline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.card-back {
  position: absolute;
  inset: 0;
  padding: clamp(1.5rem, 4vh, 2.5rem) clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  transform: translateZ(20px);
}

.content-card.is-expanded .card-front {
  opacity: 0;
  pointer-events: none;
}

.content-card.is-expanded .card-back {
  opacity: 1;
  pointer-events: auto;
}

.product-content-card.is-expanded .card-front {
  display: none;
}

.product-content-card.is-expanded .card-back {
  position: relative;
  inset: auto;
  width: 100%;
  min-height: 400px;
  padding: clamp(1.5rem, 4vh, 2.5rem) clamp(1.5rem, 4vw, 3rem) clamp(5rem, 8vh, 6rem);
}

.back-copy {
  flex: 1;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.back-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31, 27, 24, 0.62);
}

.back-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
  font-weight: 900;
  color: #1f1b18;
}

.back-text {
  font-size: 1rem;
  line-height: 1.75;
  color: #1f1b18;
}

.back-text .highlight,
.article-body .highlight {
  color: #b817e3;
  font-weight: 600;
}

.back-image {
  flex: 0 0 38%;
  display: flex;
  justify-content: flex-end;
}

.back-image-frame {
  width: min(100%, 340px);
  min-height: 260px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toggle-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  z-index: 10;
}

.toggle-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: scale(1.1);
}

.close-btn {
  display: none;
  font-size: 1.2rem;
}

.content-card.is-expanded .expand-btn {
  display: none;
}

.content-card.is-expanded .close-btn {
  display: flex;
  color: #1f1b18;
  border-color: rgba(31, 27, 24, 0.2);
}

.card-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 10;
  transition: color 0.25s ease, transform 0.25s ease;
}

.card-link {
  position: absolute;
  right: 24px;
  bottom: 24px;
}

.card-link:hover {
  transform: translateX(4px);
}

.arrow-pill {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.card-link:hover .arrow-pill,
.gateway-card:hover .arrow-pill {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  transform: translateX(2px);
}

.arrow-pill svg,
.icon-wrap svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.intro-copy {
  max-width: 42rem;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.76);
}

.card-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  perspective: 1000px;
}

.gateway-card {
  position: relative;
  min-height: 360px;
  padding: clamp(1.5rem, 4vh, 2.4rem) clamp(1.5rem, 4vw, 2.6rem);
  border-radius: 28px;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background-color: #151515;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  transform-style: preserve-3d;
  transition: transform 0.1s ease, box-shadow 0.25s ease;
  will-change: transform;
  align-items: center;
  text-align: center;
}

.gateway-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180%;
  height: 180%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.5) 16%, transparent 58%);
  z-index: 0;
  animation: pulse-glow 4s infinite alternate ease-in-out;
  pointer-events: none;
}

.gateway-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.32));
  z-index: 0;
  pointer-events: none;
}

.gateway-card--test {
  background-color: #c91d1d;
}

.gateway-card--test::before {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.52) 16%, rgba(255, 80, 80, 0.36) 34%, transparent 60%);
}

.gateway-card--protect {
  background-color: #1840d8;
}

.gateway-card--protect::before {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.52) 16%, rgba(95, 150, 255, 0.36) 34%, transparent 60%);
}

.card-body,
.card-foot {
  position: relative;
  z-index: 1;
  transform: translateZ(28px);
}

.card-body {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 20rem;
  margin: auto;
}

.card-title {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.94;
  font-weight: 900;
  text-transform: uppercase;
}

.card-foot {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-text {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.25;
  font-weight: 900;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.contact-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  min-width: 88px;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.25s ease, color 0.25s ease;
}

.contact-link:hover {
  transform: translateY(-3px);
  color: #b817e3;
}

.icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.contact-link:hover .icon-wrap {
  background: #ffffff;
  color: #000000;
  transform: scale(1.05);
}

.article-main {
  width: 100%;
  max-width: 760px;
}

.article-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1rem;
}

.article-title {
  max-width: 12ch;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 0.98;
  margin-bottom: 1.5rem;
}

.article-dek {
  max-width: 42rem;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.75rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.article-hero {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: #111111;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.article-body {
  max-width: 44rem;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #f1f1f1;
}

.article-body p + p,
.article-body p + h2,
.article-body h2 + p {
  margin-top: 1.4rem;
}

.article-body h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.15;
  font-weight: 900;
  color: #ffffff;
}

.article-body blockquote {
  margin-top: 2rem;
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-left: 2px solid #b817e3;
  font-size: 1.2rem;
  line-height: 1.6;
}

.back-link {
  margin-top: 2rem;
}

.news-crawl-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background-color: #b817e3;
  color: #ffffff;
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
  z-index: 100;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
}

.news-crawl-text {
  display: inline-block;
  padding-left: 100vw;
  animation: crawl 20s linear infinite;
}

.crawl-separator {
  margin: 0 2rem;
  opacity: 0.5;
}

.plain-page {
  max-width: 760px;
}

.plain-page h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

@keyframes pulse-glow {
  0% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
}

@keyframes crawl {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

.admin-body {
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  min-height: 100vh;
  background: #0b0b0d;
}

.admin-nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  padding: 24px;
  background: #151519;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-nav strong {
  margin-bottom: 16px;
}

.admin-nav a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
}

.admin-nav a:hover {
  background: rgba(184, 23, 227, 0.22);
  color: #ffffff;
}

.admin-main {
  width: calc(100% - 230px);
  margin-left: 230px;
  padding: 32px;
}

.admin-main h1 {
  margin-bottom: 20px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-card,
.admin-panel,
.asset-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #151519;
  border-radius: 8px;
}

.admin-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-card strong {
  font-size: 2rem;
}

.admin-panel {
  padding: 20px;
  margin-bottom: 20px;
}

.admin-panel h2 {
  margin-bottom: 14px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-actions a,
.admin-form button,
.admin-row-actions button {
  color: #ffffff;
  background: #b817e3;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}

.admin-actions a span {
  opacity: 0.68;
  margin-left: 6px;
}

.admin-form {
  display: grid;
  gap: 14px;
  max-width: 900px;
}

.login-form {
  width: min(420px, calc(100vw - 32px));
  margin: auto;
  padding: 24px;
  background: #151519;
  border-radius: 8px;
}

.admin-form label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.76);
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  color: #ffffff;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 10px;
  font: inherit;
}

.admin-form textarea {
  resize: vertical;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-row-actions a {
  color: #ffffff;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.admin-row-actions form {
  display: inline;
}

.admin-row-actions button {
  background: #7a1020;
  padding: 8px 10px;
}

.admin-alert,
.admin-success {
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.admin-alert {
  background: rgba(150, 24, 40, 0.32);
}

.admin-success {
  background: rgba(22, 120, 68, 0.32);
}

.admin-muted {
  color: rgba(255, 255, 255, 0.6);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.asset-card {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.asset-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #050505;
  border-radius: 6px;
}

.asset-card code {
  color: rgba(255, 255, 255, 0.62);
  word-break: break-all;
}

.setup-body {
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.setup-panel {
  width: min(820px, 100%);
  background: #151519;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 28px;
}

.setup-panel h1 {
  margin-bottom: 10px;
}

.setup-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.setup-list section {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.setup-ok {
  background: rgba(22, 120, 68, 0.22);
}

.setup-bad {
  background: rgba(150, 24, 40, 0.28);
}

.setup-note {
  color: rgba(255, 255, 255, 0.68);
}

.page-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.page-picker a {
  display: grid;
  gap: 6px;
  padding: 14px;
  color: #ffffff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.page-picker a:hover {
  border-color: #b817e3;
}

.page-picker span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
}

.asset-preview {
  width: 96px;
  height: 72px;
  object-fit: contain;
  background: #050505;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-published {
  background: rgba(22, 120, 68, 0.3);
  color: #9df0bd;
}

.status-draft {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.76);
}

.status-archived {
  background: rgba(150, 24, 40, 0.3);
  color: #ffb7c1;
}

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

  .gateway-card {
    min-height: 320px;
  }

  .side-menu {
    display: none;
  }

  .mobile-menu-button {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 150;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(5, 5, 5, 0.72);
    color: #ffffff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    backdrop-filter: blur(10px);
    cursor: pointer;
  }

  .mobile-menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-menu-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  .mobile-menu-modal.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
  }

  .mobile-menu-panel {
    position: absolute;
    inset: 0;
    min-height: 100dvh;
    padding: 78px 24px 34px;
    background: #050505;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
  }

  .mobile-menu-links {
    display: grid;
    gap: 14px;
  }

  .mobile-menu-link {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: clamp(2rem, 11vw, 3.8rem);
    line-height: 0.95;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-menu-link span:last-child {
    font-size: 0.8rem;
    line-height: 1;
    letter-spacing: 0.08em;
    opacity: 0.74;
  }

  .mobile-menu-link.active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 18px;
    bottom: 18px;
    width: 4px;
    background: #b817e3;
    border-radius: 999px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 1rem;
    padding-bottom: 5.5rem;
    align-items: flex-start;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  .main-container {
    margin-top: 0;
    gap: 1.4rem;
  }

  .top-branding {
    align-items: flex-start;
    padding-right: 58px;
  }

  .page-title-logo {
    height: 42px;
  }

  .company-logo {
    height: clamp(52px, 12vw, 84px);
  }

  .home-card,
  .content-card,
  .news-card {
    min-height: min(560px, calc(100dvh - 190px));
    border-radius: 18px;
    padding: 1.25rem;
  }

  .content-card.is-expanded {
    min-height: 0;
    height: auto;
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
  }

  .content-card.is-expanded .card-front {
    display: none;
  }

  .content-card.is-expanded .card-back {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 0;
    padding: 1.5rem 1.25rem 5rem;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.5rem;
    text-align: left;
    transform: none;
  }

  .card-header,
  .card-back {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .btn {
    width: 100%;
    min-height: 42px;
  }

  .home-cta {
    width: 100%;
    justify-content: space-between;
  }

  .news-card .card-front {
    padding-right: 0;
    align-items: flex-start;
    text-align: left;
  }

  .hero-heading {
    max-width: 12ch;
    font-size: clamp(1.8rem, 11vw, 3.2rem);
  }

  .card-link {
    position: static;
    margin-top: 1.5rem;
    justify-content: center;
  }

  .back-copy {
    max-width: none;
    align-items: flex-start;
  }

  .back-image {
    flex-basis: auto;
    width: 100%;
    justify-content: center;
  }

  .back-image-frame {
    width: min(100%, 320px);
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .card-grid {
    gap: 1rem;
  }

  .gateway-card {
    min-height: 280px;
    border-radius: 20px;
  }

  .card-title {
    font-size: clamp(2.2rem, 13vw, 3.8rem);
  }

  .article-title {
    max-width: none;
    font-size: clamp(2.2rem, 13vw, 4rem);
  }

  .article-meta {
    gap: 0.75rem 1rem;
  }

  .contact-links {
    gap: 1rem;
  }

  .news-crawl-container {
    font-size: 0.72rem;
  }

  .admin-nav {
    position: static;
    width: 100%;
  }

  .admin-main {
    width: 100%;
    margin-left: 0;
    padding: 18px;
  }
}
