:root {
  --brand-blue: #2a4ea3;
  --brand-blue-deep: #1f3b85;
  --brand-blue-soft: #eaf1ff;
  --brand-pink: #8e1022;
  --brand-pink-soft: #f8e8ec;
  --topbar-h: 2rem;
  --text: #1f2740;
  --text-sub: #5d6881;
  --line: #cad6ee;
  --bg: #eaf2ff;
  --shadow: 0 14px 32px rgba(10, 20, 40, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  overflow-x: hidden;
  overscroll-behavior-y: contain;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.container { width: min(1240px, 92vw); margin: 0 auto; }

.top-banner {
  position: sticky;
  top: 0;
  z-index: 140;
  background: var(--brand-blue-deep);
  color: #edf4ff;
  font-size: 0.82rem;
  border-bottom: 2px solid var(--brand-pink);
  height: var(--topbar-h);
}

.top-banner .container {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  height: var(--topbar-h);
}

.news-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(248, 251, 255, 0.42);
  background: rgba(13, 20, 72, 0.62);
  border-radius: 999px;
  color: #f2f7ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.13rem 0.56rem;
}

.news-marquee {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  height: 1.16rem;
  display: flex;
  align-items: center;
}

.news-track {
  display: inline-flex;
  width: max-content;
  gap: 1.2rem;
  white-space: nowrap;
  align-items: center;
  animation: news-scroll 32s linear infinite;
  padding-right: 1.2rem;
}

.news-item { color: #f2f6ff; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; }

@keyframes news-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.top-banner a {
  color: #ffdede;
  font-weight: 700;
  text-decoration: none;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 227, 227, 0.4);
  border-radius: 999px;
  padding: 0.11rem 0.54rem;
  background: rgba(142, 32, 44, 0.32);
}

header {
  position: sticky;
  top: var(--topbar-h);
  z-index: 100;
  background: #ffffff;
  border-bottom: 2px solid var(--brand-blue);
}

.nav {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.44rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: inherit;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  line-height: 0;
}

.brand img {
  width: clamp(126px, 14vw, 198px);
  height: auto;
  object-fit: contain;
}

.brand strong {
  display: none;
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 1rem;
  color: #1f2f4d;
  line-height: 1.1;
}

.brand small {
  display: none;
  color: #8f2132;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.28rem;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu::-webkit-scrollbar { display: none; }

.menu a {
  text-decoration: none;
  color: #1f2c41;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.18rem 0.44rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.menu a:hover { border-color: #c6d4ea; background: #f4f8ff; }
.menu a.active { color: #fff; background: var(--brand-blue); border-color: var(--brand-blue-deep); }

.menu-dropdown {
  position: relative;
}

.menu-trigger {
  appearance: none;
  border: 1px solid #cfdbec;
  border-radius: 999px;
  background: #ffffff;
  color: #244673;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: "Noto Sans SC", sans-serif;
  line-height: 1;
  padding: 0.3rem 0.64rem;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.menu-trigger:hover {
  border-color: #9eb6df;
  background: #f5f8ff;
  box-shadow: 0 8px 16px rgba(21, 45, 84, 0.12);
}

.menu > .menu-dropdown:first-of-type .menu-trigger {
  border-color: #dcb9c0;
  background: #fff4f6;
  color: #8f1f2d;
}

.menu > .menu-dropdown:first-of-type .menu-trigger:hover {
  border-color: #cb8f9a;
  background: #ffecef;
}

.menu > .menu-dropdown:first-of-type .menu-trigger.active {
  background: #8f1f2d;
  color: #ffffff;
  border-color: #721925;
}

.menu > .menu-dropdown:nth-of-type(2) .menu-trigger {
  border-color: #b9ccee;
  background: #f3f8ff;
  color: #1f43a7;
}

.menu > .menu-dropdown:nth-of-type(2) .menu-trigger:hover {
  border-color: #8eacdf;
  background: #eaf2ff;
}

.menu > .menu-dropdown:nth-of-type(2) .menu-trigger.active {
  background: #1f43a7;
  color: #ffffff;
  border-color: #19398f;
}

.menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 150;
  min-width: 220px;
  border: 1px solid #d2deef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(10, 20, 40, 0.16);
  padding: 0.3rem;
  display: none !important;
}

.menu-panel a {
  display: block;
  border-radius: 9px;
  padding: 0.3rem 0.42rem;
}

.menu-dropdown:hover .menu-panel,
.menu-dropdown:focus-within .menu-panel {
  display: block !important;
}

.nav-right {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 0.44rem;
}

.nav-right a {
  text-decoration: none;
  color: #32435d;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.34rem 0.58rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.quick-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.24rem;
  margin-right: 0.12rem;
  transform: translateX(-16px);
}

.quick-links a {
  text-decoration: none;
  color: #fff6d6;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.23rem 0.44rem;
  border-radius: 999px;
  border: 1px solid #8d6908;
  background: #a67909;
}

.quick-links a:hover {
  border-color: #735605;
  background: #8f6807;
}

.quick-links a.active {
  color: #fff6d6;
  background: #a67909;
  border-color: #8d6908;
}

.quick-links a.quick-member {
  color: #eff4ff;
  background: #1f4aa3;
  border-color: #1a3f8a;
}

.quick-links a.quick-member:hover {
  background: #1a3f8a;
  border-color: #173879;
}

.quick-links a.quick-admin {
  color: #fff2f2;
  background: #a21f35;
  border-color: #8c1b2f;
}

.quick-links a.quick-admin:hover {
  background: #8d1b2f;
  border-color: #781728;
}

.nav-right .home-link {
  color: #2f466b;
  border-color: #d1ddee;
  background: #f7faff;
}

.hero {
  margin-top: 1rem;
  border: 2px solid var(--brand-blue);
  border-top: 6px solid var(--brand-pink);
  border-radius: 20px;
  background: #f7fbff;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.hero h1 {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
  color: #20314c;
}

.hero p {
  color: #4d6282;
  font-size: 0.96rem;
  max-width: 82ch;
  margin-bottom: 0.65rem;
}

.meta {
  display: flex;
  gap: 0.36rem;
  flex-wrap: wrap;
}

.meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  border: 1px solid #d2deef;
  border-radius: 999px;
  background: #f7faff;
  color: #395c87;
  padding: 0.12rem 0.5rem;
  line-height: 1.2;
}

.section {
  margin-top: 0.95rem;
  border: 2px solid var(--brand-blue);
  border-top: 6px solid var(--brand-pink);
  border-radius: 20px;
  background: #f8fbff;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.section h2 {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 1.4rem;
  color: #22314a;
  margin-bottom: 0.45rem;
}

.section p.lead {
  color: #5b6f8f;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 0.62rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  border: 2px solid #c7d5ef;
  border-radius: 12px;
  background: #fff;
  padding: 0.66rem;
}

.card h3 {
  font-size: 0.95rem;
  color: #23406b;
  margin-bottom: 0.2rem;
}

.card p {
  color: #5f7393;
  font-size: 0.8rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 0.8rem;
  align-items: stretch;
}

.hero-text {
  display: grid;
  gap: 0.5rem;
}

.hero-media {
  position: relative;
  min-height: 280px;
  border: 1px solid #cedaee;
  border-radius: 16px;
  background: #111c3a;
  overflow: hidden;
}

.hero-media .lobster-chip {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(8, 16, 35, 0.66);
  color: #f2f7ff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.12rem 0.45rem;
}

.hero-media .lobster-chip img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.hero-media .enterprise-blue-mark {
  position: absolute;
  right: 33.333%;
  top: 50%;
  transform: translate(50%, -50%);
  z-index: 3;
  width: clamp(78px, 14vw, 132px);
  height: auto;
  opacity: 0.94;
  filter: drop-shadow(0 10px 18px rgba(23, 46, 140, 0.32));
}

.hero-media .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: mediaCycle 16s infinite ease-in-out;
}

.hero-media .slide.s1 { animation-delay: 0s; }
.hero-media .slide.s2 { animation-delay: 4s; }
.hero-media .slide.s3 { animation-delay: 8s; }
.hero-media .slide.s4 { animation-delay: 12s; }

@keyframes mediaCycle {
  0% { opacity: 0; transform: scale(1.02); }
  8% { opacity: 1; transform: scale(1); }
  23% { opacity: 1; transform: scale(1); }
  31% { opacity: 0; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.02); }
}

.media-caption {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.55rem;
  z-index: 3;
  border: 1px solid rgba(140, 176, 236, 0.52);
  border-radius: 10px;
  background: rgba(5, 13, 32, 0.76);
  color: #d9e7ff;
  font-size: 0.72rem;
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  padding: 0.34rem 0.48rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.code-block {
  margin-top: 0.55rem;
  border: 1px solid #cedaea;
  border-radius: 12px;
  background: #0d1732;
  color: #e2ecff;
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  padding: 0.62rem 0.7rem;
  overflow-x: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.62rem;
}

.step-card {
  border: 1px solid #d1ddec;
  border-radius: 12px;
  background: #fff;
  padding: 0.66rem;
}

.step-card .step-no {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #2a2fbc;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.step-card h3 {
  font-size: 0.9rem;
  color: #223f6a;
  margin-bottom: 0.24rem;
}

.step-card p,
.step-card li {
  color: #5f7393;
  font-size: 0.78rem;
}

.step-card ul {
  margin-left: 1rem;
  display: grid;
  gap: 0.2rem;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.62rem;
}

.tier-card {
  border: 1px solid #cfdbec;
  border-radius: 14px;
  background: #fff;
  padding: 0.7rem;
  display: grid;
  gap: 0.3rem;
}

.tier-card.recommended {
  border-color: #2a2fbc;
  box-shadow: 0 10px 22px rgba(42, 47, 188, 0.11);
}

.tier-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.1rem 0.44rem;
  border-radius: 999px;
  border: 1px solid #d2deef;
  background: #f4f8ff;
  color: #355a88;
  font-size: 0.7rem;
  font-weight: 700;
}

.tier-price {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 1.4rem;
  color: #203f6b;
  line-height: 1.1;
}

.tier-price small {
  font-size: 0.78rem;
  color: #5f7393;
}

.tier-card ul {
  margin-left: 1rem;
  display: grid;
  gap: 0.2rem;
}

.tier-card li {
  color: #5f7393;
  font-size: 0.78rem;
}

.note-list {
  margin-left: 1rem;
  display: grid;
  gap: 0.2rem;
}

.note-list li {
  color: #5f7393;
  font-size: 0.8rem;
}

.action-bar {
  margin-top: 0.65rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 0.26rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: "Noto Sans SC", sans-serif;
  cursor: pointer;
}

.action-btn.primary {
  color: #fff4db;
  background: var(--brand-pink);
  border-color: #6d0b1a;
}

.action-btn.secondary {
  color: #f2f6ff;
  background: var(--brand-blue);
  border-color: var(--brand-blue-deep);
}

.table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #bccce8;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 0.7rem;
}

.table th,
.table td {
  border-bottom: 1px solid #dde5f2;
  padding: 0.45rem;
  text-align: left;
  font-size: 0.77rem;
}

.table th {
  background: #2a4ea3;
  color: #eff4ff;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table td { color: #5a7191; }

footer {
  margin-top: 1rem;
  border-top: 1px solid #d7dfea;
  background: #f8fbff;
  padding: 1rem 0 1.25rem;
  color: #5c7192;
  font-size: 0.82rem;
}

.copy {
  width: min(1240px, 92vw);
  margin: 0 auto;
}

@media (max-width: 1120px) {
  .nav {
    grid-template-columns: 1fr;
    gap: 0.52rem;
  }
  .menu {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
  .menu a,
  .menu-trigger {
    font-size: 0.8rem;
  }
  .quick-links {
    width: 100%;
    justify-content: flex-end;
    margin-right: 0;
    transform: none;
  }
  .hero-split,
  .steps,
  .tier-grid,
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero, .section { padding: 0.75rem; }
  .nav-right {
    grid-column: 1 / -1;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .nav-right .home-link { display: none; }
}
