:root {
  color-scheme: dark;
  --background: #000000;
  --foreground: #f4f6fb;
  --card: rgba(28, 32, 44, 0.4);
  --card-solid: #1c2030;
  --muted-foreground: #8b93a8;
  --primary: #6b8cff;
  --primary-soft: rgba(107, 140, 255, 0.3);
  --border: rgba(120, 130, 160, 0.35);
  --font-sans: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-root {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.noc-background {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.noc-grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(to right, rgba(107, 140, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(107, 140, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}

.noc-glow {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background: radial-gradient(
    ellipse 60% 50% at 50% 0%,
    rgba(107, 140, 255, 0.18),
    transparent 70%
  );
}

.noc-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 100% 100% at 50% 30%,
    transparent 55%,
    rgba(0, 0, 0, 0.9)
  );
}

.page-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.lang-switcher {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(28, 32, 44, 0.55);
  color: var(--muted-foreground);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  color: var(--foreground);
  border-color: rgba(107, 140, 255, 0.45);
  outline: none;
}

.lang-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.lang-toggle-label {
  color: inherit;
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(12, 14, 20, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.lang-menu.is-open {
  display: block;
}

.lang-menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-foreground);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.lang-menu button:hover,
.lang-menu button.is-active {
  background: rgba(107, 140, 255, 0.12);
  color: var(--foreground);
}

body[data-lang="zh-Hant"] {
  font-family: "Noto Sans TC", "Inter", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

body[data-lang="zh-Hans"] {
  font-family: "Noto Sans SC", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body[data-lang="ko"] {
  font-family: "Noto Sans KR", "Inter", "Apple SD Gothic Neo", sans-serif;
}

body[data-lang="ja"] {
  font-family: "Noto Sans JP", "Inter", "Hiragino Sans", sans-serif;
}

body[data-lang="th"] {
  font-family: "Noto Sans Thai", "Inter", sans-serif;
}

.brand-lockup {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-accent {
  color: var(--primary);
}

.brand-sub {
  display: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-foreground);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.env-pill {
  padding: 6px 12px;
  border: 1px solid rgba(107, 140, 255, 0.35);
  border-radius: 999px;
  background: rgba(107, 140, 255, 0.08);
  color: #c8d4ff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-foreground);
}

.header-nav a {
  text-decoration: none;
  transition: color 160ms ease;
}

.header-nav a:hover {
  color: var(--foreground);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
  padding: 72px 0 88px;
}

.hero {
  width: 100%;
  max-width: 1080px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.hero-visual {
  margin: 0;
  width: 100%;
}

.visual-frame,
.screenshot-frame,
.product-thumb {
  overflow: hidden;
  border: 1px solid rgba(107, 140, 255, 0.35);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(107, 140, 255, 0.08) inset;
}

.visual-frame {
  border-radius: 14px;
}

.hero-art-frame {
  aspect-ratio: 16 / 9;
}

.hero-art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.visual-frame img,
.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.product-thumb {
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  border-color: rgba(107, 140, 255, 0.28);
}

.product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.product-thumb-dev {
  border-color: rgba(160, 170, 190, 0.35);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.screenshot-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(28, 32, 44, 0.35);
  backdrop-filter: blur(8px);
}

.screenshot-card h3 {
  margin: 14px 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
}

.screenshot-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.research-card-live {
  border-color: rgba(107, 140, 255, 0.28);
}

.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(28, 32, 44, 0.5);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}

.hero h1,
.hero-headline {
  margin: 0;
}

.hero-headline {
  max-width: 34rem;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--foreground);
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 500;
  color: var(--muted-foreground);
}

.lead {
  max-width: 36rem;
  margin: 0;
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.65;
  color: var(--muted-foreground);
}

.lead strong {
  color: var(--foreground);
  font-weight: 600;
}

.content-section {
  width: 100%;
  max-width: 980px;
}

.section-head {
  margin-bottom: 28px;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section-lead {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  backdrop-filter: blur(8px);
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-card-live {
  border-color: rgba(107, 140, 255, 0.35);
}

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.product-top h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-live {
  border: 1px solid rgba(107, 140, 255, 0.4);
  background: rgba(107, 140, 255, 0.12);
  color: #c8d4ff;
}

.status-dev {
  border: 1px solid rgba(160, 170, 190, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-foreground);
}

.product-summary {
  margin: 0 0 16px;
  min-height: 4.95rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.feature-list {
  flex: 1;
  margin: 0 0 16px;
  padding-left: 1.1rem;
  color: var(--foreground);
  font-size: 0.875rem;
  line-height: 1.7;
}

.feature-list li {
  margin-bottom: 6px;
}

.feature-list li:last-child {
  margin-bottom: 0;
}

.product-footnote {
  margin: 0;
  margin-top: auto;
  min-height: 2.75rem;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.research-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.research-card {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(28, 32, 44, 0.35);
  backdrop-filter: blur(8px);
  transition: border-color 160ms ease;
}

.research-card:hover {
  border-color: rgba(107, 140, 255, 0.35);
}

.research-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.research-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tech-stack span {
  padding: 4px 12px;
  border: 1px solid var(--primary-soft);
  border-radius: 999px;
  background: rgba(28, 32, 44, 0.5);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-foreground);
  transition: border-color 160ms ease, color 160ms ease;
}

.tech-stack span:hover {
  border-color: rgba(107, 140, 255, 0.6);
  color: var(--foreground);
}

.product-stack {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  min-height: 3.25rem;
  margin-bottom: 16px;
}

.product-stack span {
  padding: 3px 10px;
  border: 1px solid var(--primary-soft);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--muted-foreground);
}

.product-card-dev .product-stack span {
  border-color: rgba(160, 170, 190, 0.3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  border: 1px solid rgba(107, 140, 255, 0.45);
  background: linear-gradient(135deg, #5b79ff, #6b8cff);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(91, 121, 255, 0.25);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(28, 32, 44, 0.5);
  color: var(--foreground);
}

.pillar-grid {
  display: grid;
  width: 100%;
  max-width: 980px;
  grid-template-columns: 1fr;
  gap: 16px;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  backdrop-filter: blur(8px);
  transition: border-color 160ms ease;
}

.pillar-card:hover {
  border-color: rgba(107, 140, 255, 0.4);
}

.pillar-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.pillar-icon {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted-foreground);
  transition: color 160ms ease;
}

.pillar-icon svg {
  width: 16px;
  height: 16px;
}

.pillar-card:hover .pillar-icon {
  color: var(--primary);
}

.pillar-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.pillar-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pillar-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.status-strip {
  display: grid;
  width: 100%;
  max-width: 980px;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(28, 32, 44, 0.35);
  backdrop-filter: blur(8px);
}

.status-label {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.status-value {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.portal-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 0 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-foreground);
  text-align: center;
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-use {
  color: var(--muted-foreground);
}

.footer-contact {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted-foreground);
}

.footer-contact a {
  margin-left: 0.35em;
  color: var(--primary);
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: #c8d4ff;
  text-decoration: underline;
  outline: none;
}

.footer-copy {
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .brand-sub {
    display: inline;
  }

  .header-nav {
    display: flex;
  }

  .portal-footer {
    flex-direction: row;
    align-items: flex-end;
    text-align: left;
  }

  .footer-main {
    align-items: flex-start;
    text-align: left;
  }

  .footer-copy {
    white-space: nowrap;
  }

  .status-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .hero {
    max-width: 1120px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 36px;
    align-items: center;
    text-align: left;
  }

  .hero-copy {
    align-items: flex-start;
    text-align: left;
  }

  .hero-headline {
    max-width: 22rem;
  }

  .hero .lead {
    max-width: 24rem;
  }

  .hero-visual {
    width: 100%;
    max-width: 460px;
    justify-self: end;
  }

  .hero-art-frame {
    aspect-ratio: 16 / 9;
  }

  .hero-art-frame img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .hero-layout {
    gap: 40px;
  }

  .hero-visual {
    max-width: 500px;
  }

  .hero-headline {
    max-width: 24rem;
  }

  .hero .lead {
    max-width: 26rem;
  }

  .pillar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .page-shell {
    width: min(100% - 24px, 1120px);
  }

  main {
    padding-top: 48px;
    padding-bottom: 64px;
    gap: 40px;
  }

  .btn {
    width: 100%;
  }
}
