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

:root {
  --bg: #0e0e0e;
  --bg-elevated: #161616;
  --bg-card: #1a1a1a;
  --text-primary: #f0ece4;
  --text-secondary: #8a8580;
  --text-muted: #5a5550;
  --accent: #e8553a;
  --accent-hover: #f06a50;
  --border: #2a2725;
  --border-light: #3a3530;
  --serif: 'DM Serif Display', Georgia, serif;
  --serif-zh: 'Noto Serif SC', 'Songti SC', serif;
  --sans: 'Instrument Sans', -apple-system, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)' opacity='0.04'/%3E%3C/svg%3E");
}

html { scroll-behavior: auto; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Chinese font overrides */
html[lang="zh-Hant"] .hero h1,
html[lang="zh-Hant"] .section-title,
html[lang="zh-Hant"] .product-name,
html[lang="zh-Hant"] .value-item h4 {
  font-family: var(--serif-zh);
  letter-spacing: 0.05em;
}
html[lang="zh-Hant"] .hero h1 { line-height: 1.1; }

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--grain);
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(14,14,14,0.7);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-logo {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
}
.nav-logo span {
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) 40%,
    #ffd5c8 50%,
    var(--accent) 60%,
    var(--accent) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 4s 3s infinite;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.25s;
  position: relative;
}
.nav-links a:hover { color: var(--text-primary); }

/* Nav link active underline animation */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  overflow: hidden;
}
.lang-switch button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  transition: all 0.25s;
}
.lang-switch button:first-child {
  border-right: 1px solid var(--border);
}
.lang-switch button.active {
  background: var(--accent);
  color: #fff;
}
.lang-switch button:not(.active):hover {
  color: var(--text-primary);
  background: var(--border);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-inner,
.hero-line,
.scroll-indicator {
  position: relative;
  z-index: 1;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-overline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.2s forwards;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) 40%,
    #ffd5c8 50%,
    var(--accent) 60%,
    var(--accent) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 0.8s 0.2s forwards, textShimmer 4s 1.5s infinite;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s 0.35s forwards;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) 40%,
    #ffd5c8 50%,
    var(--accent) 60%,
    var(--accent) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 4s 2s infinite;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
  font-weight: 400;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.55s forwards;
}
.hero-line {
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: var(--border);
}
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}
.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}
.scroll-indicator .line {
  width: 1px;
  height: 40px;
  background: var(--text-muted);
  animation: scrollPulse 2s infinite;
}

/* ---- SECTION COMMONS ---- */
section { padding: 6rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-label .num { color: var(--accent); }
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin-bottom: 3.5rem;
}

/* ---- PRODUCTS ---- */
.products { background: var(--bg); }
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.product-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}
.product-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 16px 16px 0 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover::before { transform: scaleX(1); }

.product-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  align-self: flex-start;
}
.status-live { color: #4ade80; }
.status-live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; animation: pulse-dot 2s infinite;
}
.status-soon { color: var(--text-muted); }
.status-soon .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
}

.product-icon {
  width: 56px; height: 56px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2rem; color: var(--accent);
}

.product-name {
  font-family: var(--serif);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.product-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  flex: 1;
}
.product-features {
  list-style: none;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.product-features li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.product-features li::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateX(4px);
}
.btn-primary .arrow { transition: transform 0.3s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-disabled {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: default;
}

/* card visual */
.product-visual {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  overflow: hidden;
  position: relative;
}
.product-visual img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-visual img {
  transform: scale(1.02);
}

/* ---- ABOUT ---- */
.about { border-top: 1px solid var(--border); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.85;
}
.about-text strong {
  color: var(--text-primary);
  font-weight: 500;
}
.about-values {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 0.5rem;
}
.value-item {
  padding-left: 1.5rem;
  border-left: 2px solid var(--border);
  transition: border-color 0.3s;
}
.value-item:hover { border-left-color: var(--accent); }
.value-item h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.value-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}
.footer-logo {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.footer-logo span {
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) 40%,
    #ffd5c8 50%,
    var(--accent) 60%,
    var(--accent) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 4s 4s infinite;
}
.footer-brand {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.footer-owner {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  opacity: 0.7;
}
.footer-heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.footer-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ---- MANIFESTO + TIMELINE ---- */
.manifesto-timeline {
  border-top: 1px solid var(--border);
}
.manifesto-timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.manifesto-col {
  padding-top: 1rem;
}
.manifesto-overline {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}
.manifesto-col blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0;
}
.manifesto-col blockquote em {
  font-style: italic;
  color: var(--accent);
}
.timeline-track {
  position: relative;
  padding: 2rem 0 1rem 2rem;
}
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 1px;
  background: var(--border);
}
.timeline-node {
  position: relative;
  padding-bottom: 3rem;
  padding-left: 2rem;
}
.timeline-node:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  z-index: 1;
}
.timeline-node[data-status="done"] .timeline-dot {
  border-color: var(--text-muted);
  background: var(--text-muted);
}
.timeline-node[data-status="current"] .timeline-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 85, 58, 0.2);
}
.timeline-node[data-status="upcoming"] .timeline-dot {
  border-color: var(--border-light);
  background: transparent;
}
.timeline-date {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.4rem;
}
.timeline-node[data-status="current"] .timeline-date {
  color: var(--accent);
}
.timeline-content h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}
.timeline-node[data-status="upcoming"] .timeline-content h4 {
  color: var(--text-secondary);
}
.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.timeline-node[data-status="upcoming"] .timeline-content p {
  color: var(--text-muted);
}

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, color 0.25s, border-color 0.25s;
  z-index: 50;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@keyframes textShimmer {
  0%, 100% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 99;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a { font-size: 0.85rem; }

  .hero { padding: 7rem 1.25rem 3rem; min-height: 85vh; }

  section { padding: 4rem 1.25rem; }

  .product-grid { grid-template-columns: 1fr; }
  .product-card { padding: 1.75rem; }
  .product-visual { max-height: 200px; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; align-items: center; }
  .footer-left { align-items: center; }
  .footer-right { text-align: center; }

  .manifesto-timeline-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .manifesto-col blockquote { font-size: 1.35rem; }

  .timeline-track { padding-left: 1.5rem; }

  .scroll-indicator { display: none; }

  .back-to-top { bottom: 1.25rem; right: 1.25rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.75rem; }
  .product-name { font-size: 1.4rem; }
  .section-title { font-size: 1.75rem; }
}
