/* ============================================
   NAVITOPIA — styles.css
   Calm precision. No glow. No bloom.
   The 3-D terrain is the spectacle — the UI
   steps back and lets it breathe.
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* Background */
  --bg:         #050508;
  /* Brand accents */
  --accent:        #c8ff00;
  --accent-blue:   #4d7fff;
  --accent-violet: #bc70ff;

  /* Typography */
  --white:  #f0f4ff;
  --muted:  #97a5c2;

  /* Structure */
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.13);
  --border-glow:  rgba(200, 255, 0, 0.22);
  --press-frame: rgba(240, 244, 255, 0.12);
  --press-frame-strong: rgba(200, 255, 0, 0.24);
  --press-glow: rgba(200, 255, 0, 0.08);
  --radius-card:  14px;
  --radius-btn:   8px;

  /* Fonts */
  --font-display: "Avenir Next", "Segoe UI", "Helvetica Neue", "Arial", sans-serif;
  --font-heading: "Avenir Next", "Segoe UI", "Helvetica Neue", "Arial", sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", "Arial", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Menlo", "Monaco", "Consolas", "Liberation Mono", monospace;

  --nav-height:  64px;
  --max-width:   1200px;
  --transition:  0.22s ease;
  --transition-slow: 0.45s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
html[lang='ja'] {
  --font-display: "Hiragino Sans", "Yu Gothic", "Meiryo", "MS PGothic", sans-serif;
  --font-heading: "Hiragino Sans", "Yu Gothic", "Meiryo", "MS PGothic", sans-serif;
  --font-body: "Hiragino Sans", "Yu Gothic", "Meiryo", "MS PGothic", sans-serif;
}
body {
  background:
    radial-gradient(circle at 14% 10%, rgba(77, 127, 255, 0.14) 0, rgba(77, 127, 255, 0.05) 16%, transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(188, 112, 255, 0.10) 0, rgba(188, 112, 255, 0.04) 14%, transparent 30%),
    linear-gradient(180deg, #02030a 0%, #040812 38%, #03050d 100%);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 450;
  line-height: 1.68;
  letter-spacing: 0.005em;
  font-kerning: normal;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Custom Cursor ---- */
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }
}
.cursor-dot {
  position: fixed;
  z-index: 99999;
  top: 0; left: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  will-change: transform;
}
.cursor-ring {
  position: fixed;
  z-index: 99998;
  top: 0; left: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(200, 255, 0, 0.45);
  pointer-events: none;
  opacity: 0;
  transition:
    width 0.28s cubic-bezier(0.34, 1.5, 0.64, 1),
    height 0.28s cubic-bezier(0.34, 1.5, 0.64, 1),
    background 0.28s ease,
    border-color 0.28s ease,
    opacity 0.3s;
  will-change: transform;
}
.cursor-ring.cursor-large {
  width: 56px; height: 56px;
  border-color: rgba(200, 255, 0, 0.7);
  background: rgba(200, 255, 0, 0.04);
}
.page-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}
.page-shell::before,
.page-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.page-shell::before {
  z-index: -2;
  background:
    radial-gradient(circle at 12% 12%, rgba(77, 112, 242, 0.16) 0, rgba(77, 112, 242, 0.06) 18%, transparent 34%),
    radial-gradient(circle at 88% 28%, rgba(159, 96, 255, 0.10) 0, rgba(159, 96, 255, 0.04) 14%, transparent 32%),
    radial-gradient(circle at 50% 72%, rgba(200, 255, 0, 0.05) 0, rgba(200, 255, 0, 0.02) 14%, transparent 28%);
}
.page-shell::after {
  z-index: -1;
  opacity: 0.55;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.015) 8%, transparent 22%),
    linear-gradient(180deg, rgba(6, 8, 14, 0) 0%, rgba(6, 8, 14, 0.24) 36%, rgba(5, 7, 12, 0.56) 100%);
}
body.is-showcase-preview-open {
  overflow: hidden;
}
body.is-mobile-menu-open {
  overflow: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ---- Selection ---- */
::selection { background: var(--accent); color: #000; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  overflow: hidden;
  border: 1px solid transparent;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  pointer-events: none;
}
.btn-primary:hover {
  background: #d4ff26;
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px rgba(200, 255, 0, 0.28),
    0 2px 8px rgba(200, 255, 0, 0.18);
}
.btn-primary:hover::before {
  animation: btnShimmer 0.65s ease forwards;
}
.btn-primary:active { transform: translateY(0); }
@keyframes btnShimmer {
  0%   { left: -80%; opacity: 0; }
  20%  { opacity: 1; }
  100% { left: 140%; opacity: 0; }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(200, 255, 0, 0.4);
}
.btn-outline:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(200, 255, 0, 0.22),
    0 2px 8px rgba(200, 255, 0, 0.14);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--white);
  border-color: var(--border-hover);
}

.btn-sm  { padding: 8px 16px;   font-size: 0.8125rem; }
.btn-lg  { padding: 16px 32px;  font-size: 1.0625rem; }

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.56;
  pointer-events: none;
  transform: none;
}

.btn-primary:disabled,
.btn-primary[aria-disabled="true"] {
  background: rgba(200, 255, 0, 0.46);
  color: rgba(0, 0, 0, 0.78);
}

/* ---- Press Feedback ---- */
.nav-logo,
.nav-links a,
.locale-option,
.btn,
.app-mockup-link,
.contact-email-link,
.footer-wordmark,
.footer-col a {
  position: relative;
  isolation: isolate;
}

.nav-logo,
.nav-links a,
.contact-email-link,
.footer-wordmark,
.footer-col a {
  display: inline-flex;
  align-items: center;
}

.nav-logo {
  --press-radius: 16px;
  padding: 8px 12px;
  margin: -8px -12px;
}

.nav-links a,
.footer-col a {
  --press-radius: 999px;
  padding: 6px 10px;
  margin: -6px -10px;
}

.locale-option {
  --press-radius: 999px;
}

.btn {
  --press-radius: var(--radius-btn);
}

.app-mockup-link {
  --press-radius: 18px;
}

.contact-email-link {
  --press-radius: 18px;
  padding: 8px 14px;
  margin: -8px -14px;
}

.footer-wordmark {
  --press-radius: 22px;
  padding: 8px 12px;
  margin: -8px -12px;
}

.nav-logo::after,
.nav-links a::after,
.locale-option::after,
.btn::after,
.app-mockup-link::after,
.contact-email-link::after,
.footer-wordmark::after,
.footer-col a::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--press-radius, 14px) + 4px);
  border: 1px solid transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn::after {
  inset: 2px;
  border-radius: calc(var(--press-radius) - 2px);
}

.nav-logo::after,
.footer-wordmark::after {
  content: none;
}

.nav-logo:hover::after,
.nav-links a:hover::after,
.locale-option:hover::after,
.btn:hover::after,
.app-mockup-link:hover::after,
.contact-email-link:hover::after,
.footer-wordmark:hover::after,
.footer-col a:hover::after,
.nav-logo:focus-visible::after,
.nav-links a:focus-visible::after,
.locale-option:focus-visible::after,
.btn:focus-visible::after,
.app-mockup-link:focus-visible::after,
.contact-email-link:focus-visible::after,
.footer-wordmark:focus-visible::after,
.footer-col a:focus-visible::after,
.nav-logo:active::after,
.nav-links a:active::after,
.locale-option:active::after,
.btn:active::after,
.app-mockup-link:active::after,
.contact-email-link:active::after,
.footer-wordmark:active::after,
.footer-col a:active::after {
  opacity: 1;
  border-color: var(--press-frame);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 0 24px var(--press-glow);
}

.nav-logo:active::after,
.nav-links a:active::after,
.locale-option:active::after,
.btn:active::after,
.app-mockup-link:active::after,
.contact-email-link:active::after,
.footer-wordmark:active::after,
.footer-col a:active::after {
  border-color: var(--press-frame-strong);
  box-shadow:
    0 0 0 1px rgba(200,255,0,0.12),
    0 0 32px rgba(200,255,0,0.10);
}

.nav-logo:active,
.nav-links a:active,
.locale-option:active,
.contact-email-link:active,
.footer-wordmark:active,
.footer-col a:active {
  transform: translateY(1px) scale(0.99);
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
  border-bottom: 1px solid transparent;
}
.nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 255, 0, 0.35) 25%,
    rgba(77, 127, 255, 0.25) 55%,
    rgba(188, 112, 255, 0.2) 78%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.nav.scrolled,
.nav.menu-open {
  background: rgba(5, 5, 10, 0.86);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 32px rgba(0,0,0,0.4);
}
.nav.scrolled::after,
.nav.menu-open::after {
  opacity: 1;
  animation: navBorderPulse 5s ease-in-out infinite alternate;
}
@keyframes navBorderPulse {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}
.nav-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  min-width: 0;
  justify-self: start;
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.035em;
  line-height: 1;
  transition: opacity var(--transition), transform var(--transition);
}
.nav-logo:hover { opacity: 0.75; }

/* ---- Wordmark — no glow anywhere ---- */
.wordmark-nav  { color: var(--accent); }
.wordmark-topia { color: rgba(228, 236, 244, 0.85); }

.nav-links {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--transition), transform var(--transition);
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  min-width: 0;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.locale-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.locale-option {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 7px 10px;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}
.locale-option:hover {
  color: var(--white);
}
.locale-option.active {
  background: rgba(200, 255, 0, 0.16);
  color: var(--white);
}
.nav-menu-toggle,
.nav-mobile-backdrop,
.mobile-menu {
  display: none;
}
.nav-menu-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  color: var(--white);
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.nav-menu-toggle:hover {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07);
}
.nav-menu-toggle:active {
  transform: translateY(1px) scale(0.99);
}
.nav-menu-toggle span {
  position: absolute;
  width: 16px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-menu-toggle span:nth-child(1) { transform: translateY(-5px); }
.nav-menu-toggle span:nth-child(2) { transform: translateY(0); }
.nav-menu-toggle span:nth-child(3) { transform: translateY(5px); }
.nav.menu-open .nav-menu-toggle span:nth-child(1) { transform: rotate(45deg); }
.nav.menu-open .nav-menu-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-menu-toggle span:nth-child(3) { transform: rotate(-45deg); }
.nav-mobile-backdrop {
  position: fixed;
  inset: var(--nav-height) 0 0;
  background: rgba(2, 4, 10, 0.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.nav-mobile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu {
  position: fixed;
  top: calc(var(--nav-height) + 10px);
  left: 16px;
  right: 16px;
  z-index: 101;
  width: min(calc(100% - 32px), 28rem);
  margin-left: auto;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(11, 14, 24, 0.98) 0%, rgba(7, 10, 18, 0.98) 100%);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu-links {
  display: grid;
  gap: 4px;
}
.mobile-menu-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(238, 243, 250, 0.94);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu-links a:last-child {
  border-bottom: none;
}
.mobile-menu-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu-action {
  width: 100%;
  justify-content: center;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: calc(100vh - 52px);
  min-height: calc(100svh - 52px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-height) + 8px) 48px 42px;
  background:
    radial-gradient(circle at 18% 18%, rgba(84, 124, 255, 0.22) 0, rgba(84, 124, 255, 0.08) 20%, transparent 42%),
    radial-gradient(circle at 78% 22%, rgba(200, 255, 0, 0.08) 0, rgba(200, 255, 0, 0.03) 16%, transparent 32%),
    radial-gradient(circle at 52% 68%, rgba(130, 70, 255, 0.12) 0, rgba(130, 70, 255, 0.04) 24%, transparent 46%),
    linear-gradient(180deg, #03040a 0%, #060914 42%, #090d17 68%, #05070d 100%);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.02) 10%, rgba(255,255,255,0) 28%),
    radial-gradient(circle at 24% 76%, rgba(255,255,255,0.05) 0, rgba(255,255,255,0) 24%),
    linear-gradient(180deg, rgba(3, 5, 10, 0.1) 0%, rgba(3, 5, 10, 0) 30%, rgba(3, 5, 10, 0.32) 100%);
  opacity: 0.9;
}

.hero::after {
  z-index: 2;
  background:
    radial-gradient(circle at 50% 50%, rgba(9, 12, 20, 0) 44%, rgba(5, 7, 12, 0.34) 76%, rgba(4, 6, 10, 0.82) 100%),
    linear-gradient(90deg, rgba(4, 6, 10, 0.55) 0%, rgba(4, 6, 10, 0.08) 20%, rgba(4, 6, 10, 0.08) 80%, rgba(4, 6, 10, 0.58) 100%);
}

.hero-galaxy {
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  filter: saturate(1.1);
}

.hero-nebula {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(48px);
  opacity: 0.7;
}

.hero-nebula-a {
  width: min(52vw, 700px);
  height: min(52vw, 700px);
  top: -8%;
  left: -8%;
  background:
    radial-gradient(circle at 35% 38%, rgba(77, 127, 255, 0.75) 0, rgba(77, 127, 255, 0.32) 18%, rgba(40, 80, 200, 0.14) 40%, rgba(5, 7, 15, 0) 72%);
  animation: nebulaDriftA 18s ease-in-out infinite alternate;
}

.hero-nebula-b {
  width: min(44vw, 580px);
  height: min(44vw, 580px);
  top: 8%;
  right: -6%;
  background:
    radial-gradient(circle at 45% 40%, rgba(200, 255, 0, 0.22) 0, rgba(160, 199, 0, 0.10) 18%, rgba(18, 28, 9, 0) 56%),
    radial-gradient(circle at 54% 58%, rgba(188, 112, 255, 0.38) 0, rgba(89, 46, 160, 0.16) 26%, rgba(5, 7, 15, 0) 70%);
  animation: nebulaDriftB 22s ease-in-out infinite alternate;
}

.hero-nebula-c {
  width: min(50vw, 680px);
  height: min(50vw, 680px);
  bottom: -18%;
  left: 24%;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.16) 0, rgba(100, 130, 255, 0.22) 12%, rgba(56, 78, 200, 0.12) 34%, rgba(5, 8, 18, 0) 68%);
  opacity: 0.6;
  animation: nebulaDriftC 26s ease-in-out infinite alternate;
}

.hero-nebula-d {
  width: min(36vw, 480px);
  height: min(36vw, 480px);
  top: 40%;
  left: 42%;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.12) 0, rgba(0, 180, 220, 0.06) 22%, rgba(5, 8, 18, 0) 58%);
  opacity: 0.45;
  filter: blur(60px);
  animation: nebulaDriftA 32s ease-in-out infinite alternate-reverse;
  pointer-events: none;
  border-radius: 999px;
  mix-blend-mode: screen;
}

.hero-orbit {
  position: absolute;
  width: min(44vw, 600px);
  height: min(44vw, 600px);
  right: 6%;
  top: 8%;
  border-radius: 50%;
  border: 1px solid rgba(200, 255, 0, 0.06);
  box-shadow:
    0 0 0 28px rgba(200, 255, 0, 0.015) inset,
    0 0 0 70px rgba(77, 127, 255, 0.008) inset;
  opacity: 0.5;
  transform: none;
}

.hero-orbit-2 {
  position: absolute;
  width: min(60vw, 820px);
  height: min(60vw, 820px);
  right: -2%;
  top: 1%;
  border-radius: 50%;
  border: 1px solid rgba(77, 127, 255, 0.04);
  opacity: 0.3;
  transform: none;
  pointer-events: none;
}

#space-canvas,
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
}

/* Meteor overlay: sits on top of particles, intercepts clicks in hero */
#meteor-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  cursor: crosshair;
}

.hero-content {
  position: relative;
  z-index: 3;
  pointer-events: none;
  /* Split layout: text left, mockup right */
  display: flex;
  align-items: center;
  gap: 52px;
  width: 100%;
  max-width: 1220px;
  padding: 0 0 8px;
}
/* Re-enable pointer events for interactive children */
.hero-content .btn,
.hero-content a {
  pointer-events: auto;
}

/* ── Hero text (left column) ──────────────────────────────────────────── */
.hero-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.hero-text .hero-subtitle { margin-left: 0; margin-right: 0; text-align: left; }
.hero-text .hero-actions { justify-content: flex-start; }

/* ── Hero visual (right column — app mockup) ──────────────────────────── */
.hero-visual {
  flex: 0 0 520px;
  max-width: 520px;
  position: relative;
  pointer-events: auto;
  isolation: isolate;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -20%;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  background:
    radial-gradient(circle at center, rgba(200,255,0,0.40) 0 7%, rgba(200,255,0,0.14) 8%, rgba(0,0,0,0) 24%),
    radial-gradient(circle at center, rgba(8,10,14,0.00) 0 18%, rgba(8,10,14,0.78) 40%, rgba(8,10,14,0.00) 62%);
  transform: scale(0.7);
}
.hero-visual-glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse 70% 60% at 50% 55%, rgba(200, 255, 0, 0.06) 0%, rgba(77, 127, 255, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(24px);
  animation: visualGlowPulse 6s ease-in-out infinite alternate;
}
@keyframes visualGlowPulse {
  0%   { opacity: 0.7; transform: scale(0.96); }
  100% { opacity: 1;   transform: scale(1.04); }
}

/* macOS-style window frame */
.app-mockup {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
  /* Window border */
  border: 1px solid rgba(255,255,255,0.10);
  background: #1c1c20;
  /* Deep shadow for floating effect */
  box-shadow:
    0 2px 0 rgba(255,255,255,0.04) inset,
    0 0 0 1px rgba(0,0,0,0.6),
    0 40px 100px rgba(0,0,0,0.85),
    0 12px 40px rgba(200,255,0,0.04);
  /* 3-D tilt — slight perspective angle */
  transform: translateY(0);
  transition: transform 0.7s cubic-bezier(0.34, 1.2, 0.64, 1),
              box-shadow 0.7s ease;
  animation: floatMockup 5s ease-in-out infinite;
  will-change: transform;
}
.app-mockup::before,
.app-mockup::after {
  content: '';
  position: absolute;
  pointer-events: none;
  opacity: 0;
}
.app-mockup::before {
  inset: -1px;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from 0deg,
    rgba(255,255,255,0) 0deg,
    rgba(255,255,255,0) 248deg,
    rgba(255,255,255,0.24) 286deg,
    rgba(200,255,0,0.92) 314deg,
    rgba(255,255,255,0.32) 334deg,
    rgba(255,255,255,0) 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 10px rgba(200,255,0,0.12));
}
.app-mockup::after {
  inset: -18%;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 20%,
    rgba(255,255,255,0.08) 42%,
    rgba(200,255,0,0.14) 50%,
    rgba(255,255,255,0.08) 58%,
    rgba(255,255,255,0) 80%
  );
  transform: translateX(-100%);
  filter: blur(8px);
  mix-blend-mode: screen;
}
.app-mockup-link {
  display: block;
  cursor: pointer;
}
.app-mockup-link:focus-visible {
  outline: none;
}
.hero-visual:hover .app-mockup {
  transform: translateY(-10px);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.06) inset,
    0 0 0 1px rgba(200,255,0,0.15),
    0 60px 120px rgba(0,0,0,0.9),
    0 16px 60px rgba(200,255,0,0.06);
  animation-play-state: paused;
}
.hero-visual:hover .app-mockup::before {
  opacity: 1;
  animation: mockupEdgeFlow 1.8s linear infinite;
}
.hero-visual:hover .app-mockup::after {
  opacity: 1;
  animation: mockupLightSweep 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}
@keyframes floatMockup {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-10px); }
}
@keyframes mockupEdgeFlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes mockupLightSweep {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  18% {
    opacity: 0.85;
  }
  58% {
    opacity: 0.32;
  }
  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}
.app-titlebar {
  background: #242428;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(0,0,0,0.45);
  user-select: none;
}
.app-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.app-titlebar-label {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.04em;
  margin-right: 30px; /* balance dots */
}
.app-screenshot {
  width: 100%;
  display: block;
  /* Crisp, no distortion */
  image-rendering: -webkit-optimize-contrast;
}

/* Ground reflection under the mockup */
.app-mockup-reflection {
  position: absolute;
  bottom: -50px;
  left: 5%;
  right: 5%;
  height: 60px;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(200,255,0,0.06), transparent 80%);
  pointer-events: none;
  filter: blur(8px);
}

/* ════════════════════════════════════════════════════════════════════════
   APP SHOWCASE SECTION
   ════════════════════════════════════════════════════════════════════════ */
.showcase-section {
  background:
    radial-gradient(circle at 22% 18%, rgba(86, 122, 255, 0.10) 0, rgba(86, 122, 255, 0.03) 22%, transparent 42%),
    radial-gradient(circle at 78% 68%, rgba(188, 112, 255, 0.08) 0, rgba(188, 112, 255, 0.03) 20%, transparent 40%),
    linear-gradient(180deg, rgba(5, 8, 15, 0.96) 0%, rgba(7, 10, 18, 0.98) 48%, rgba(5, 8, 15, 0.96) 100%);
  overflow: visible;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: end;
  padding-bottom: 8px;
}

.showcase-card {
  position: relative;
  --card-direction: 0;
  --card-distance: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
  aspect-ratio: 16/10;
  background: #080b14;
  transition:
    transform    0.7s  cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow   0.7s  ease,
    border-color 0.4s  ease,
    opacity      0.55s ease,
    filter       0.55s ease;
  will-change: transform, opacity, filter;
  transform-origin: center center;
}

/* ── Card staging ────────────────────────────────────────────────────── */
.showcase-card.is-idle {
  transform:
    translate3d(
      calc(var(--card-direction) * -10px),
      calc(14px + (var(--card-distance) * 8px)),
      0
    )
    scale(calc(0.985 - (var(--card-distance) * 0.05)));
  opacity: calc(0.92 - (var(--card-distance) * 0.12));
  z-index: 1;
}

.showcase-card.is-idle:hover {
  transform:
    translate3d(calc(var(--card-direction) * -4px), 2px, 0)
    scale(0.995) !important;
  box-shadow: 0 36px 80px rgba(0,0,0,0.70), 0 0 0 1px rgba(200,255,0,0.18);
  border-color: rgba(200,255,0,0.22);
  opacity: 0.98;
  z-index: 3;
}
.showcase-card:focus-visible:not(.active),
.showcase-card:active:not(.active) {
  outline: none;
  border-color: rgba(200,255,0,0.34);
  box-shadow:
    0 34px 76px rgba(0,0,0,0.72),
    0 0 0 1px rgba(200,255,0,0.22),
    0 0 0 6px rgba(200,255,0,0.05);
}

.showcase-card.active {
  transform: translate3d(0, -20px, 0) scale(1.08) !important;
  box-shadow:
    0 70px 140px rgba(0,0,0,0.9),
    0 0 0 1.5px var(--accent),
    0 0 0 3px rgba(200,255,0,0.12),
    0 0 100px rgba(200,255,0,0.22),
    0 0 200px rgba(200,255,0,0.07);
  border-color: var(--accent) !important;
  z-index: 10 !important;
  opacity: 1 !important;
  cursor: zoom-in;
}

.showcase-card.active img {
  filter: brightness(1.06) saturate(1.08) contrast(1.02) !important;
  transform: scale(1.05);
}

/* ── Click ripple ────────────────────────────────────────────────────── */
.showcase-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(16px + 2px);
  border: 1.5px solid var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: none;
}
.showcase-card.pop::after {
  animation: cardRipple 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes cardRipple {
  0%   { opacity: 0.9; transform: scale(1);    }
  100% { opacity: 0;   transform: scale(1.12); }
}

/* ── Images ──────────────────────────────────────────────────────────── */
.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.6s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.showcase-card.is-idle img {
  filter: brightness(calc(0.88 - (var(--card-distance) * 0.08))) saturate(calc(0.9 - (var(--card-distance) * 0.08)));
  transform: scale(calc(1 + (var(--card-distance) * 0.015)));
}
.showcase-card.is-idle:hover img {
  filter: brightness(0.98) saturate(0.98);
  transform: scale(1.015);
}

/* ── Caption overlay ─────────────────────────────────────────────────── */
.showcase-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px 20px 20px;
  background: linear-gradient(
    to top,
    rgba(4,5,12,0.96) 0%,
    rgba(4,5,12,0.72) 50%,
    transparent 100%
  );
  transform: translateY(8px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
  opacity: 0.76;
}
.showcase-card.is-idle:hover .showcase-card-overlay,
.showcase-card.active .showcase-card-overlay {
  transform: translateY(0);
  opacity: 1;
}

/* Tag as pill */
.showcase-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 7px;
  background: rgba(200,255,0,0.08);
  border: 1px solid rgba(200,255,0,0.22);
  border-radius: 100px;
  padding: 3px 10px 3px 8px;
}
.showcase-card-tag::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.showcase-card-desc {
  font-size: 0.9rem;
  color: rgba(220,230,255,0.82);
  font-weight: 500;
  line-height: 1.62;
  letter-spacing: 0.008em;
}

.showcase-preview {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    radial-gradient(circle at 50% 50%, rgba(200,255,0,0.08) 0%, rgba(7,9,15,0) 28%),
    rgba(4, 6, 12, 0.84);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: previewFadeIn 0.22s ease;
}

.showcase-preview-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100vh - 64px);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(180deg, rgba(14, 18, 31, 0.96) 0%, rgba(7, 10, 18, 0.98) 100%);
  box-shadow:
    0 32px 90px rgba(0,0,0,0.6),
    0 0 0 1px rgba(200,255,0,0.06);
  overflow: hidden;
  animation: previewPanelIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-preview-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    linear-gradient(180deg, rgba(14, 18, 31, 0.88) 0%, rgba(7, 10, 18, 0.88) 100%);
  color: rgba(240, 245, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 18px 34px rgba(0,0,0,0.3),
    0 0 0 1px rgba(200,255,0,0.04);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.showcase-preview-nav:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(200,255,0,0.28);
  background:
    linear-gradient(180deg, rgba(16, 21, 36, 0.94) 0%, rgba(8, 12, 21, 0.94) 100%);
  color: var(--white);
  box-shadow:
    0 22px 40px rgba(0,0,0,0.36),
    0 0 28px rgba(200,255,0,0.08);
}

.showcase-preview-nav:active {
  transform: translateY(0) scale(0.98);
}

.showcase-preview-nav svg {
  width: 24px;
  height: 24px;
}

.showcase-preview-nav--prev {
  left: 20px;
}

.showcase-preview-nav--next {
  right: 20px;
}

.showcase-preview-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(7, 10, 18, 0.72);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.showcase-preview-close:hover {
  border-color: rgba(200,255,0,0.32);
  background: rgba(12, 16, 28, 0.9);
  transform: scale(1.04);
}

.showcase-preview-close span {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.showcase-preview-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 220px);
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 0%, transparent 64%),
    #060811;
}

.showcase-preview-meta {
  display: grid;
  gap: 10px;
  padding: 20px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  background:
    linear-gradient(180deg, rgba(8, 11, 20, 0.72) 0%, rgba(7, 9, 16, 0.92) 100%);
}

.showcase-preview-tag {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(200,255,0,0.24);
  background: rgba(200,255,0,0.07);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.showcase-preview-desc {
  font-size: 0.95rem;
  color: rgba(228,236,255,0.84);
  font-weight: 500;
  line-height: 1.72;
  letter-spacing: 0.006em;
}

@keyframes previewFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes previewPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hero headline */
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  font-size: clamp(3rem, 7.2vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  overflow: hidden;
}
.hero-title .line1 {
  display: block;
  font-size: 0.72em;
  background: linear-gradient(180deg, #ffffff 0%, rgba(220, 230, 255, 0.82) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  animation: clipReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.hero-title .line2 {
  display: block;
  background: linear-gradient(135deg, var(--accent) 0%, #b8e800 45%, rgba(200,255,80,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
  animation: clipReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

.hero-title-suffix {
  display: flex;
  width: fit-content;
  align-items: baseline;
  gap: 0.38rem;
  margin-left: 0;
  margin-top: 0.32em;
  font-family: var(--font-body);
  font-size: 0.28em;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(240, 244, 255, 0.72);
  -webkit-text-fill-color: rgba(240, 244, 255, 0.72);
  white-space: nowrap;
}

.hero-title-by {
  color: rgba(240, 244, 255, 0.68);
  -webkit-text-fill-color: rgba(240, 244, 255, 0.68);
}

.hero-title-wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero-title-wordmark .wordmark-nav {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

.hero-title-wordmark .wordmark-topia {
  color: rgba(228, 236, 244, 0.85);
  -webkit-text-fill-color: rgba(228, 236, 244, 0.85);
}

.hero-subtitle {
  font-size: clamp(0.84rem, 1.18vw, 0.92rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 12px;
  line-height: 1.68;
  font-weight: 500;
  letter-spacing: 0.008em;
  white-space: pre-line;
  animation: fadeInUp 0.7s ease 0.22s both;
}

.hero-note {
  position: absolute;
  right: 8px;
  bottom: -70px;
  z-index: 2;
  max-width: 300px;
  color: var(--muted);
  opacity: 0.64;
  font-size: 0.73rem;
  line-height: 1.58;
  letter-spacing: 0.01em;
  text-align: right;
  pointer-events: none;
  animation: fadeInUp 0.7s ease 0.26s both;
}
.hero-note-line {
  display: block;
}
html[lang='ja'] .hero-note {
  max-width: 360px;
  font-size: 0.71rem;
}
html[lang='ja'] .hero-note-line {
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  animation: fadeInUp 0.7s ease 0.32s both;
}

@keyframes nebulaDriftA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(22px, -18px, 0) scale(1.08); }
}

@keyframes nebulaDriftB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-26px, 20px, 0) scale(1.1); }
}

@keyframes nebulaDriftC {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(28px, -12px, 0) scale(1.06); }
}

/* ---- Section Shared ---- */
.section {
  padding: 104px 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.section-advance {
  -webkit-tap-highlight-color: transparent;
}
.section > .container {
  position: relative;
  z-index: 1;
}
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.85;
}
#features::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(82, 122, 255, 0.12) 0, rgba(82, 122, 255, 0.04) 18%, transparent 38%),
    linear-gradient(180deg, rgba(6, 8, 14, 0.08) 0%, rgba(6, 8, 14, 0.18) 100%);
}
#platforms::before {
  background:
    radial-gradient(circle at 84% 24%, rgba(188, 112, 255, 0.10) 0, rgba(188, 112, 255, 0.03) 18%, transparent 36%),
    linear-gradient(180deg, rgba(5, 8, 15, 0.12) 0%, rgba(5, 8, 15, 0.22) 100%);
}
.section-header {
  text-align: center;
  margin-bottom: 68px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.85;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  letter-spacing: -0.035em;
  background: linear-gradient(160deg, #ffffff 0%, rgba(200, 215, 255, 0.88) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.008em;
}

/* ---- Features ---- */
.feature-card {
  min-height: 280px;
  overflow: hidden;
  background:
    var(--feature-card-bg, none),
    linear-gradient(112deg, rgba(5, 8, 18, 0.96) 0%, rgba(5, 8, 18, 0.92) 28%, rgba(5, 8, 18, 0.74) 50%, rgba(5, 8, 18, 0.48) 100%),
    radial-gradient(circle at top right, rgba(77, 127, 255, 0.10) 0, rgba(77, 127, 255, 0.03) 18%, transparent 40%),
    rgba(8, 11, 22, 0.75);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition), transform var(--transition-slow), box-shadow var(--transition-slow);
  cursor: default;
  opacity: 0;
  transform: translateY(24px);
  position: relative;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(4, 7, 16, 0.99) 0%, rgba(4, 7, 16, 0.96) 38%, rgba(4, 7, 16, 0.74) 62%, rgba(4, 7, 16, 0.26) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}
.feature-card.visible {
  animation: cardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.feature-card:hover {
  border-color: rgba(200, 255, 0, 0.22);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 0 0 1px rgba(200, 255, 0, 0.07),
    0 0 60px rgba(200, 255, 0, 0.04);
  transform: translateY(-6px);
}
.feature-card[data-pressable]:active {
  border-color: rgba(200, 255, 0, 0.28);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(200, 255, 0, 0.12),
    0 0 0 6px rgba(200, 255, 0, 0.04);
  transform: translateY(-2px) scale(0.996);
}
/* Light sweep on hover */
.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  pointer-events: none;
  opacity: 0;
}
.feature-card:hover::after {
  animation: cardSweep 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(200, 255, 0, 0.06);
  border-radius: 10px;
  border: 1px solid rgba(200, 255, 0, 0.14);
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card:hover .feature-icon {
  background: rgba(200, 255, 0, 0.10);
  border-color: rgba(200, 255, 0, 0.28);
  transform: scale(1.1);
  animation: iconGlow 1.8s ease-in-out infinite;
}
.feature-card:hover .feature-icon svg { transform: scale(1.08); }
.feature-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.22;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.022em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.38);
}
.feature-desc {
  font-size: 0.915rem;
  color: rgba(236, 241, 250, 0.9);
  line-height: 1.66;
  font-weight: 500;
  letter-spacing: 0.006em;
  max-width: 31ch;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.34);
}

/* ---- Platforms ---- */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.platform-card {
  background:
    radial-gradient(circle at top center, rgba(188, 112, 255, 0.10) 0, rgba(188, 112, 255, 0.03) 18%, transparent 36%),
    rgba(8, 10, 22, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(24px);
}
.platform-card.visible { animation: cardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.platform-card:hover {
  border-color: rgba(188, 112, 255, 0.32);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 56px rgba(188, 112, 255, 0.05);
  transform: translateY(-4px);
}
.platform-card[data-pressable]:active {
  border-color: rgba(188, 112, 255, 0.4);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(188, 112, 255, 0.16),
    0 0 0 6px rgba(188, 112, 255, 0.04);
  transform: translateY(-1px) scale(0.996);
}
.platform-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0.72;
}
.platform-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}
.platform-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.022em;
}
.platform-desc { font-size: 0.92rem; color: var(--muted); font-weight: 500; margin-bottom: 20px; letter-spacing: 0.006em; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200, 255, 0, 0.05);
  border: 1px solid rgba(200, 255, 0, 0.18);
  border-radius: 100px;
  padding: 4px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.status-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.9;
  animation: badgePulse 2.4s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 0.9; transform: scale(1); box-shadow: none; }
  50%       { opacity: 1; transform: scale(1.4); box-shadow: 0 0 6px rgba(200,255,0,0.7); }
}
.platforms-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(73, 92, 126, 0.42);
  background:
    radial-gradient(circle at 20% 20%, rgba(120, 154, 255, 0.08) 0, rgba(120, 154, 255, 0.03) 16%, transparent 34%),
    linear-gradient(180deg, rgba(13, 17, 30, 0.92) 0%, rgba(10, 13, 24, 0.96) 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}
.platforms-note-main {
  display: block;
}
.platforms-note-caution {
  display: block;
  max-width: 360px;
  margin: 12px auto 0;
  color: var(--muted);
  opacity: 0.64;
  font-size: 0.73rem;
  line-height: 1.58;
  letter-spacing: 0.01em;
  text-align: center;
}
html[lang='ja'] .platforms-note-caution {
  font-size: 0.71rem;
}

/* ---- Contact ---- */
.contact-email-card {
  max-width: 600px;
  margin: 0;
  padding: 32px 34px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(8, 10, 22, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.contact-email-card:hover {
  border-color: rgba(200,255,0,0.15);
  box-shadow:
    0 28px 80px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(240,244,255,0.04),
    0 0 60px rgba(200,255,0,0.03);
}
.contact-email-card[data-pressable]:active {
  border-color: rgba(200,255,0,0.24);
  box-shadow:
    0 18px 46px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(200,255,0,0.12),
    0 0 0 6px rgba(200,255,0,0.04);
  transform: translateY(1px) scale(0.996);
}
.contact-email-label {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.contact-email-link {
  display: inline-block;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  word-break: break-word;
  transition: color var(--transition), opacity var(--transition), transform var(--transition);
}
.contact-email-link:hover {
  color: var(--accent);
}
.contact-email-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}
.contact-email-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: rgba(240,244,255,0.72);
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition), opacity var(--transition);
  opacity: 0.86;
}
.contact-email-copy svg {
  width: 18px;
  height: 18px;
}
.contact-email-copy:hover {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: rgba(240,244,255,0.94);
  opacity: 1;
}
.contact-email-copy.copied {
  border-color: rgba(200,255,0,0.22);
  background: rgba(200,255,0,0.10);
  color: var(--accent);
  opacity: 1;
}
.contact-email-copy:active {
  transform: translateY(1px) scale(0.99);
}
.contact-email-note {
  margin-top: 16px;
  max-width: 34rem;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.74;
  letter-spacing: 0.006em;
  white-space: pre-line;
}

/* ---- Footer ---- */
.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 18% -10%, rgba(200,255,0,0.05) 0%, rgba(200,255,0,0.01) 24%, transparent 54%),
    radial-gradient(circle at 82% 0%, rgba(77,127,255,0.06) 0%, rgba(77,127,255,0.015) 26%, transparent 56%),
    linear-gradient(180deg, rgba(5, 7, 14, 0.98) 0%, rgba(3, 4, 8, 0.99) 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200,255,0,0.12) 18%,
    rgba(255,255,255,0.06) 50%,
    rgba(77,127,255,0.12) 82%,
    transparent 100%
  );
  pointer-events: none;
}
.footer-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 220px;
  background:
    radial-gradient(ellipse 70% 100% at 20% 0%, rgba(200,255,0,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 100% at 80% 0%, rgba(77,127,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.footer-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: end;
  padding: 56px 0 42px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
/* Brand side */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}
.footer-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.55rem);
  letter-spacing: -0.04em;
  line-height: 1;
  transition: opacity 0.2s ease, transform var(--transition);
}
.footer-wordmark:hover { opacity: 0.86; }
.footer-wm-navi {
  background: linear-gradient(135deg, var(--accent) 0%, rgba(180,240,0,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-wm-topia {
  background: linear-gradient(135deg, rgba(240,244,255,0.9) 0%, rgba(160,185,255,0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-tagline {
  margin: 0;
  max-width: 30rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(228,236,244,0.48);
  letter-spacing: 0.01em;
}
/* Nav columns */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  padding-top: 0;
}
.footer-nav a {
  position: relative;
  padding-left: 18px;
  margin-left: 18px;
  font-size: 0.875rem;
  color: rgba(228,236,244,0.58);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease, opacity 0.2s ease;
  display: inline-block;
}
.footer-nav a:first-child {
  margin-left: 0;
  padding-left: 0;
}
.footer-nav a:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  transform: translateY(-50%);
}
.footer-nav a:hover {
  color: var(--white);
  opacity: 1;
}
/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 20px;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.24);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* ---- Keyframe Animations ---- */

/* Classic reveal — kept for compatibility */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Card enter — cinematic: blur + scale + rise */
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.96);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Text clip reveal — slides up from behind a mask */
@keyframes clipReveal {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0% 0);
    transform: translateY(0);
  }
}

/* Light sweep across a card on hover */
@keyframes cardSweep {
  0%   { left: -60%; opacity: 0; }
  15%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

/* Icon glow pulse */
@keyframes iconGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,255,0,0); }
  50%       { box-shadow: 0 0 20px 4px rgba(200,255,0,0.12); }
}

/* ---- Misc Utilities ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Film grain texture — very subtle, adds analog depth */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ════════════════════════════════════════════════════════════════════════
   TICKER MARQUEE
   ════════════════════════════════════════════════════════════════════════ */
.ticker {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  background: linear-gradient(180deg, rgba(6, 8, 14, 0.92) 0%, rgba(4, 6, 11, 0.98) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  user-select: none;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  width: max-content;
  animation: tickerScroll 32s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(200, 215, 255, 0.28);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.ticker-item.ticker-hi {
  color: rgba(200, 255, 0, 0.42);
}
.ticker-wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}
.ticker-sep {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.08);
  font-weight: 300;
  flex-shrink: 0;
  margin: 0 4px;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-visual { flex: 0 0 420px; max-width: 420px; }
  .hero-content { gap: 36px; }
  .hero-orbit {
    width: min(64vw, 420px);
    height: min(64vw, 420px);
    right: 50%;
    top: 6%;
    transform: translateX(46%);
    opacity: 0.26;
  }
}

@media (max-width: 860px) {
  /* Stack hero vertically */
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 0 0;
    gap: 34px;
  }
  .hero-text { text-align: center; }
  .hero-text .hero-subtitle { margin: 0 auto 10px; }
  .hero-text .hero-actions { justify-content: center; }
  .hero-visual { flex: none; width: 100%; max-width: 540px; }
  .hero-note {
    right: 0;
    bottom: -64px;
    max-width: 260px;
  }
  html[lang='ja'] .hero-note {
    max-width: 360px;
  }

  /* Showcase: stack on tablet */
  .showcase-grid { grid-template-columns: 1fr; gap: 16px; }
  .showcase-card.is-idle {
    transform: none;
    opacity: 1;
  }
  .showcase-card.active {
    transform: translateY(-10px) scale(1.02) !important;
  }
}

html[lang='ja'] .hero-title,
html[lang='ja'] .section-title,
html[lang='ja'] .features-big-title,
html[lang='ja'] .contact-heading,
html[lang='ja'] .footer-wordmark,
html[lang='ja'] .platform-name,
html[lang='ja'] .feature-title,
html[lang='ja'] .contact-email-link {
  letter-spacing: -0.02em;
}
html[lang='ja'] .contact-email-link {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", "Arial", sans-serif;
}

html[lang='ja'] .hero-title {
  line-height: 1.08;
}

@media (min-width: 861px) {
  html[lang='en'] .hero-content {
    gap: 40px;
    align-items: flex-end;
  }

  html[lang='en'] .hero-visual {
    flex: 0 0 500px;
    max-width: 500px;
  }

  html[lang='en'] .hero-title {
    font-size: clamp(2.45rem, 3.9vw, 3.2rem);
    line-height: 1.02;
    margin-bottom: 18px;
  }

  html[lang='en'] .hero-title .line2 {
    white-space: nowrap;
  }

  html[lang='en'] .hero-title-suffix {
    gap: 0.3rem;
    margin-left: 0;
    font-size: 0.24em;
    margin-top: 0.28em;
  }

  html[lang='en'] .hero-title-wordmark {
    font-size: 1rem;
  }

  html[lang='en'] .hero-subtitle {
    max-width: 35rem;
    font-size: clamp(0.78rem, 0.94vw, 0.84rem);
    line-height: 1.72;
  }

  html[lang='en'] .hero-note {
    max-width: 392px;
    font-size: 0.67rem;
  }

  html[lang='en'] .hero-note-line {
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .showcase-preview {
    padding: 18px;
  }
  .showcase-preview-panel {
    max-height: calc(100vh - 36px);
    border-radius: 22px;
  }
  .showcase-preview-nav {
    width: 48px;
    height: 48px;
    margin-top: -24px;
  }
  .showcase-preview-nav--prev {
    left: 12px;
  }
  .showcase-preview-nav--next {
    right: 12px;
  }
  .showcase-preview-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }
  .nav-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 0 16px;
  }
  .nav-links { display: none; }
  .nav-logo {
    font-size: 1.05rem;
    letter-spacing: -0.03em;
  }
  .nav-cta { gap: 6px; }
  .nav-desktop-btn { display: none; }
  .nav-mobile-backdrop,
  .mobile-menu { display: block; }
  .nav-menu-toggle { display: inline-flex; }
  .locale-switch { padding: 3px; }
  .locale-option { font-size: 0.62rem; padding: 6px 8px; }
  .platforms-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero-title { font-size: clamp(2.2rem, 9.8vw, 3.2rem); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero-note {
    position: static;
    max-width: 100%;
    margin: 18px 0 0;
    padding-left: 72px;
    text-align: right;
  }
  html[lang='ja'] .hero-note-line {
    white-space: normal;
  }
  .contact-email-card {
    padding: 24px 20px;
  }
  .contact-email-row {
    align-items: flex-start;
    gap: 10px;
  }
  .contact-email-link {
    font-size: clamp(1.12rem, 6.6vw, 1.45rem);
    line-height: 1.2;
  }
  .contact-email-copy {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 72px 0; }
  .hero-galaxy { inset: -18%; }
  .hero-nebula-a,
  .hero-nebula-b,
  .hero-nebula-c {
    filter: blur(36px);
    opacity: 0.55;
  }
  .hero-nebula-a {
    width: 78vw;
    height: 78vw;
    left: -14%;
    top: 0;
  }
  .hero-nebula-b {
    width: 68vw;
    height: 68vw;
    right: -18%;
    top: 18%;
  }
  .hero-nebula-c {
    width: 88vw;
    height: 88vw;
    left: 8%;
    bottom: -18%;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding-bottom: 64px; }
  .mobile-menu {
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    padding: 16px 14px;
    border-radius: 18px;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   REDESIGNED SECTIONS
   ════════════════════════════════════════════════════════════════════════ */

/* ---- Features: Two-column intro header ---- */
.features-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 52px;
}
.features-intro-left .section-label {
  margin-bottom: 14px;
}
.features-big-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  letter-spacing: -0.035em;
  background: linear-gradient(160deg, #ffffff 0%, rgba(200, 220, 255, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.02;
  margin: 0;
}
.features-intro-right {
  flex: 0 0 44%;
  max-width: 460px;
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.82;
  font-weight: 500;
  letter-spacing: 0.008em;
  padding-top: 46px;
}

/* ---- Features: Bento grid ---- */
.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
/* Wide card spans 2 of 3 columns */
.feature-card--wide {
  grid-column: span 2;
  position: relative;
  min-height: 280px;
  cursor: default;
}
/* Accent card (debate) — same row, 1 col */
.feature-card--accent {
  position: relative;
  min-height: 280px;
  background:
    var(--feature-card-bg, none),
    linear-gradient(112deg, rgba(7, 9, 20, 0.96) 0%, rgba(7, 9, 20, 0.9) 24%, rgba(7, 9, 20, 0.72) 50%, rgba(7, 9, 20, 0.44) 100%),
    radial-gradient(circle at top left, rgba(188, 112, 255, 0.10) 0, rgba(188, 112, 255, 0.04) 18%, transparent 40%),
    linear-gradient(180deg, rgba(13, 17, 30, 0.96) 0%, rgba(10, 13, 24, 0.98) 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-color: rgba(100, 80, 160, 0.35);
  cursor: default;
}
.feature-card--accent:hover {
  border-color: rgba(188, 112, 255, 0.36);
}
.feature-card--accent[data-pressable]:active {
  border-color: rgba(188, 112, 255, 0.42);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(188, 112, 255, 0.16),
    0 0 0 6px rgba(188, 112, 255, 0.05);
}

/* Content wrapper inside wide card keeps z-index above the mesh art */
.feature-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: min(100%, 24rem);
  gap: 0;
  padding: 0;
}
.feature-card--wide .feature-card-body {
  width: min(100%, 25rem);
}

/* Number labels */
.feature-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  color: rgba(200, 255, 0, 0.38);
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  display: block;
}
.feature-card--accent .feature-tag {
  color: rgba(188, 112, 255, 0.5);
}

/* Wireframe mesh background art on the wide card */
.feature-card--avatar {
  --feature-card-bg: url('/pic/features/avatar-workspace.png');
  background-position: right center;
}

.feature-card--multi-agent {
  --feature-card-bg: url('/pic/features/multi-agent-conversations.png');
  background-position: center;
}

.feature-card--providers {
  --feature-card-bg: url('/pic/features/provider-control.png');
  background-position: right center;
}

.feature-card--privacy {
  --feature-card-bg: url('/pic/features/privacy-by-default.png');
  background-position: right center;
}

.feature-card--workflows {
  --feature-card-bg: url('/pic/features/agent-workflows.png');
  background-position: center;
}

/* ---- Platform cards: enhanced layout ---- */
.platform-card-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}
.platform-os-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}
.platform-card .platform-icon {
  width: 42px;
  height: 42px;
  margin: 0;
  flex-shrink: 0;
}
.platform-card .platform-icon svg {
  width: 28px;
  height: 28px;
}
.platform-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding: 32px 28px 28px;
  position: relative;
  overflow: hidden;
}
.platform-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 0 var(--radius-card) 0 100%;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-right: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}
.platform-formats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.platform-format {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
}
.platform-card .platform-name {
  text-align: left;
  margin-bottom: 0;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.platform-card .platform-desc {
  text-align: left;
  margin-bottom: 0;
  font-size: 0.875rem;
  letter-spacing: 0.006em;
}
.platform-card .status-badge {
  align-self: flex-start;
}

/* ---- Contact: two-column layout ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: flex-start;
  max-width: 960px;
  margin: 0 auto;
}
.contact-left {
  padding-top: 4px;
}
.contact-left .section-label {
  margin-bottom: 14px;
}
.contact-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.45rem, 5vw, 3.85rem);
  letter-spacing: -0.04em;
  background: linear-gradient(160deg, #ffffff 0%, rgba(200,220,255,0.82) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 0.96;
  margin-bottom: 20px;
}
.contact-tagline {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 500;
  max-width: 280px;
  letter-spacing: 0.008em;
}
.contact-right {
  width: 100%;
}

/* footer-statement-bar removed — new footer design */
/* ---- Responsive: new sections ---- */
@media (max-width: 1024px) {
  .features-intro {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
  }
  .features-intro-right {
    flex: none;
    max-width: 100%;
    padding-top: 0;
  }
  .features-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card--wide {
    grid-column: span 2;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-heading {
    font-size: 2.2rem;
  }
}
@media (max-width: 768px) {
  .features-bento {
    grid-template-columns: 1fr;
  }
  .feature-card--wide {
    grid-column: span 1;
    min-height: 220px;
  }
  .feature-card--accent {
    min-height: auto;
  }
  .platform-card { text-align: left; }
  /* Footer responsive */
  .footer-body {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 42px 0 32px;
  }
  .footer-brand {
    align-items: center;
    max-width: none;
    text-align: center;
  }
  .footer-nav {
    width: 100%;
    justify-content: center;
    gap: 10px 0;
    padding-top: 0;
  }
  .footer-nav a {
    font-size: 0.75rem;
  }
  .footer-wordmark { font-size: 1.78rem; }
  .footer-tagline {
    max-width: 24rem;
    font-size: 0.78rem;
  }
  .footer-bottom {
    justify-content: center;
    padding: 14px 0 18px;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 0 12px;
    gap: 8px;
  }
  .nav-logo {
    font-size: 0.98rem;
  }
  .nav-menu-toggle {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  .locale-option {
    font-size: 0.58rem;
    padding: 6px 7px;
  }
  .contact-email-link {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .footer-nav {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .footer-nav a {
    margin-left: 14px;
    padding-left: 14px;
  }
}
