/* Idealora — Digital Silk Road */
:root {
  --ink: #07141c;
  --deep: #0b1f2a;
  --sea: #143642;
  --mist: #c5d5d0;
  --foam: #e8f0ed;
  --jade: #3db8a0;
  --jade-deep: #2a9a85;
  --silk: #d4a574;
  --silk-soft: #e8c9a8;
  --text: #e8f0ed;
  --muted: rgba(232, 240, 237, 0.68);
  --line: rgba(61, 184, 160, 0.22);
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-zh-display: "Noto Serif SC", "Noto Sans SC", serif;
  --font-body: "Manrope", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-zh h1,
body.is-zh h2,
body.is-zh .brand-zh,
body.is-zh .slogan {
  font-family: var(--font-zh-display);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(7, 20, 28, 0.92), rgba(7, 20, 28, 0.55) 70%, transparent);
  backdrop-filter: blur(10px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo-mark {
  width: 1.35rem;
  height: 1.35rem;
  border: 1.5px solid var(--jade);
  border-radius: 0.3rem;
  position: relative;
}

.logo-mark::before {
  content: "";
  position: absolute;
  inset: 28% 18% auto;
  height: 1.5px;
  background: linear-gradient(90deg, var(--jade), var(--silk));
  transform: rotate(-28deg);
  transform-origin: left center;
}

.logo-mark::after {
  content: "";
  position: absolute;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--silk);
  right: 22%;
  bottom: 22%;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem;
  background: rgba(20, 54, 66, 0.45);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.lang-btn.is-active {
  background: rgba(61, 184, 160, 0.2);
  color: var(--foam);
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  margin: 0.35rem auto;
  background: var(--foam);
  transition: transform 0.3s var(--ease);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.4rem;
  border-radius: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 2.35rem;
  padding: 0 1rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--jade);
  color: var(--ink);
}

.btn-primary:hover {
  background: #4ecbb2;
}

.btn-ghost {
  border: 1px solid rgba(232, 240, 237, 0.28);
  color: var(--foam);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--jade);
  color: var(--jade);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 3rem) clamp(3.5rem, 8vh, 6rem);
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 70% 25%, rgba(61, 184, 160, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 45% at 20% 80%, rgba(212, 165, 116, 0.1), transparent 55%),
    linear-gradient(165deg, #0a1c26 0%, #07141c 45%, #0d2430 100%);
}

.route-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.route {
  stroke-dasharray: 12 10;
  animation: route-flow 28s linear infinite;
}

.r2 {
  animation-duration: 36s;
  animation-direction: reverse;
  opacity: 0.7;
}

.r3 {
  animation-duration: 42s;
  opacity: 0.55;
}

@keyframes route-flow {
  to {
    stroke-dashoffset: -420;
  }
}

.node {
  animation: node-pulse 3.6s ease-in-out infinite;
}

.n2 { animation-delay: 0.4s; }
.n3 { animation-delay: 0.9s; }
.n4 { animation-delay: 1.3s; }
.n5 { animation-delay: 1.8s; }

@keyframes node-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 20, 28, 0.25) 0%, rgba(7, 20, 28, 0.15) 40%, rgba(7, 20, 28, 0.88) 88%, var(--ink) 100%),
    linear-gradient(90deg, rgba(7, 20, 28, 0.75) 0%, rgba(7, 20, 28, 0.2) 45%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  animation: rise-in 1s var(--ease) both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.85rem 1.1rem;
  margin-bottom: 1.35rem;
}

.brand-en {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--foam);
}

.brand-divider {
  width: 2.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--jade), var(--silk));
  align-self: center;
}

.brand-zh {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--silk-soft);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: 1.25rem;
  color: var(--foam);
}

.hero-lead {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Sections */
.section {
  padding: clamp(4.5rem, 10vh, 7.5rem) clamp(1.25rem, 4vw, 3rem);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 1rem;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.15rem;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

/* Slogan band */
.slogan-band {
  text-align: center;
  padding-top: 1rem;
  padding-bottom: clamp(3rem, 7vh, 5rem);
  border-bottom: 1px solid rgba(61, 184, 160, 0.12);
}

.slogan {
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.slogan-en {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--muted);
  letter-spacing: 0.02em;
}

body.is-en .slogan {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

body.is-en .slogan-en {
  display: none;
}

/* Platform */
.platform {
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(61, 184, 160, 0.08), transparent 50%),
    var(--ink);
}

.flow-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  padding: 1.75rem 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.flow-line {
  width: clamp(2.5rem, 8vw, 5rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--jade), transparent);
  position: relative;
  overflow: hidden;
}

.flow-line::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  background: var(--silk);
  animation: shimmer 2.8s var(--ease) infinite;
}

@keyframes shimmer {
  from { left: -30%; opacity: 0; }
  30% { opacity: 1; }
  to { left: 100%; opacity: 0; }
}

.flow-core {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--foam);
  letter-spacing: -0.02em;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(61, 184, 160, 0.35);
  border-radius: 0.3rem;
  background: rgba(61, 184, 160, 0.08);
}

/* Capabilities */
.capability-list {
  display: grid;
  gap: 0;
  max-width: 56rem;
}

.capability-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.75rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(61, 184, 160, 0.14);
  transition: background 0.3s var(--ease);
}

.capability-list li:last-child {
  border-bottom: 1px solid rgba(61, 184, 160, 0.14);
}

.capability-list li:hover {
  background: linear-gradient(90deg, rgba(61, 184, 160, 0.06), transparent 70%);
}

.cap-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--silk);
  letter-spacing: 0.06em;
  padding-top: 0.3rem;
}

.capability-list h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.capability-list p {
  color: var(--muted);
  max-width: 38rem;
}

/* Value */
.value {
  background:
    linear-gradient(180deg, rgba(20, 54, 66, 0.35), transparent),
    var(--deep);
}

.value-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 64rem;
}

.value-rows article {
  padding-top: 1.25rem;
  border-top: 2px solid var(--jade);
}

.value-rows h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.value-rows p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  max-width: 64rem;
}

.about-grid p:not(.eyebrow) {
  color: var(--muted);
}

.about-card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  background: rgba(20, 54, 66, 0.4);
}

.about-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 0.65rem;
}

.about-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--foam) !important;
  margin-bottom: 0.85rem;
}

.about-card a {
  color: var(--silk-soft);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(212, 165, 116, 0.35);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.about-card a:hover {
  color: var(--foam);
  border-color: var(--foam);
}

/* Contact */
.contact {
  padding-bottom: clamp(5rem, 12vh, 8rem);
}

.contact-panel {
  max-width: 42rem;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  background:
    radial-gradient(ellipse 70% 80% at 0% 100%, rgba(61, 184, 160, 0.12), transparent 55%),
    linear-gradient(145deg, rgba(20, 54, 66, 0.7), rgba(11, 31, 42, 0.9));
  border: 1px solid rgba(61, 184, 160, 0.2);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem clamp(1.25rem, 4vw, 3rem) 2.25rem;
  border-top: 1px solid rgba(61, 184, 160, 0.12);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  color: var(--foam);
  font-size: 1rem;
}

.footer-brand span {
  font-size: 0.82rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions .btn {
    display: none;
  }

  body.nav-open .nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--header-h) 0 auto;
    padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
    background: rgba(7, 20, 28, 0.96);
    border-bottom: 1px solid var(--line);
    gap: 1.25rem;
  }

  .value-rows,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: center;
    padding-bottom: 4rem;
  }

  .brand-divider {
    display: none;
  }
}

@media (max-width: 560px) {
  .capability-list li {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .hero-lead br {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
