@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  --bg: #020714;
  --panel: rgba(11, 28, 66, 0.5);
  --text: #f4f8ff;
  --muted: #94a6c5;
  --line: rgba(147, 183, 255, 0.2);
  --blue: #176cff;
  --cyan: #54a6ff;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Noto Sans SC", system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 82px;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: .3s ease;
}
.site-header.scrolled {
  height: 68px;
  background: rgba(2, 7, 20, .76);
  backdrop-filter: blur(18px);
  border-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.brand > span:last-child > span { color: #62a9ff; margin-left: 2px; }
.brand-mark { width: 30px; height: 28px; display: flex; gap: 3px; align-items: end; transform: skew(-17deg); }
.brand-mark i { display: block; width: 7px; border-radius: 2px; background: linear-gradient(#8dc4ff, #176cff); box-shadow: 0 0 12px #257aff; }
.brand-mark i:nth-child(1) { height: 14px; }
.brand-mark i:nth-child(2) { height: 22px; }
.brand-mark i:nth-child(3) { height: 28px; }
.desktop-nav { display: flex; align-items: center; gap: 38px; }
.desktop-nav a { position: relative; font-size: 14px; color: #c7d3e7; transition: .2s; }
.desktop-nav a:hover, .desktop-nav a.active { color: #fff; }
.desktop-nav a.active::after { content: ""; position: absolute; width: 16px; height: 2px; background: var(--cyan); left: 50%; bottom: -12px; transform: translateX(-50%); box-shadow: 0 0 8px var(--cyan); }
.desktop-nav .tool-nav-link { color: #87c1ff; }
.desktop-nav .tool-nav-link span { margin-left: 4px; color: #5a9eff; }
.desktop-nav .tool-nav-link::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  width: 5px;
  height: 5px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #4f9cff;
  box-shadow: 0 0 8px #4f9cff;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.noos-link {
  position: relative;
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(107, 238, 222, .32);
  border-radius: 8px;
  background: rgba(11, 62, 74, .22);
  color: #d9fffa;
  font: 600 12px "Space Grotesk", sans-serif;
  letter-spacing: .8px;
  overflow: hidden;
  transition: .25s ease;
}
.noos-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 15%, rgba(85, 255, 224, .12), transparent 85%);
  transform: translateX(-100%);
  transition: transform .45s ease;
}
.noos-link:hover {
  border-color: rgba(107, 238, 222, .68);
  box-shadow: 0 0 24px rgba(45, 215, 194, .13);
}
.noos-link:hover::before { transform: translateX(100%); }
.noos-link i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #59ead8;
  box-shadow: 0 0 9px #59ead8;
}
.noos-link b { color: #68dece; font-weight: 400; }
.noos-mobile-link { display: none; }
.header-cta { padding: 11px 19px; border: 1px solid rgba(116, 171, 255, .46); border-radius: 8px; font-size: 13px; background: rgba(28, 94, 211, .16); }
.header-cta span { margin-left: 9px; color: #7eb8ff; }
.menu-button { display: none; border: 0; background: none; width: 38px; height: 38px; padding: 9px; }
.menu-button span { display: block; height: 1px; margin: 6px 0; background: white; }

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg, .beliefs-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/yingchuang-hero.png") center / cover no-repeat;
}
.hero .hero-bg {
  inset: -3%;
  animation: cosmic-drift 24s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 6, 18, .72) 0%, rgba(1, 6, 18, .35) 38%, rgba(1, 6, 18, .04) 70%),
    linear-gradient(0deg, #020714 0%, transparent 25%, rgba(0, 5, 18, .08) 70%);
}
.cosmos-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .82;
}
.nebula {
  position: absolute;
  z-index: -1;
  width: 85vw;
  height: 18vw;
  min-height: 130px;
  border-radius: 50%;
  pointer-events: none;
  opacity: .32;
  mix-blend-mode: screen;
  filter: blur(45px);
  will-change: transform;
}
.nebula-one {
  left: -35vw;
  top: 48%;
  transform: rotate(8deg);
  background: linear-gradient(90deg, transparent, rgba(49, 111, 255, .18), rgba(98, 166, 255, .74), rgba(74, 66, 220, .2), transparent);
  animation: nebula-flow-one 20s ease-in-out infinite alternate;
}
.nebula-two {
  right: -45vw;
  top: 29%;
  transform: rotate(-11deg);
  background: linear-gradient(90deg, transparent, rgba(31, 108, 255, .12), rgba(119, 98, 255, .52), rgba(53, 154, 255, .32), transparent);
  animation: nebula-flow-two 28s ease-in-out infinite alternate;
}
@keyframes cosmic-drift {
  0% { transform: scale(1.02) translate3d(-.6%, 0, 0); }
  100% { transform: scale(1.09) translate3d(.8%, -1%, 0); }
}
@keyframes nebula-flow-one {
  0% { transform: translate3d(-8%, 12px, 0) rotate(8deg) scaleX(.9); opacity: .18; }
  55% { opacity: .42; }
  100% { transform: translate3d(78%, -18px, 0) rotate(5deg) scaleX(1.15); opacity: .25; }
}
@keyframes nebula-flow-two {
  0% { transform: translate3d(15%, -10px, 0) rotate(-11deg) scaleX(.9); opacity: .12; }
  100% { transform: translate3d(-75%, 28px, 0) rotate(-7deg) scaleX(1.18); opacity: .34; }
}
.hero-glow {
  position: absolute;
  z-index: -1;
  left: 10%;
  top: 30%;
  width: 420px;
  height: 360px;
  background: rgba(21, 101, 255, .15);
  filter: blur(100px);
}
.hero-content {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
  padding-bottom: 70px;
}
.eyebrow {
  font: 500 12px/1 "Space Grotesk", sans-serif;
  letter-spacing: 3px;
  color: #7f9bc4;
  text-transform: uppercase;
}
.eyebrow span { display: inline-block; width: 24px; height: 1px; margin: 0 12px 4px 0; background: #2c83ff; box-shadow: 0 0 8px #2c83ff; }
.hero h1 {
  margin: 28px 0 22px;
  max-width: 700px;
  font-size: clamp(52px, 6vw, 90px);
  line-height: 1.12;
  letter-spacing: -4px;
  font-weight: 700;
}
h1 em, .contact h2 em { font-style: normal; color: #69aaff; text-shadow: 0 0 35px rgba(65, 137, 255, .34); }
.hero-copy { color: #b7c5db; line-height: 1.9; font-size: 16px; font-weight: 300; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button { min-width: 144px; padding: 14px 21px; border-radius: 8px; border: 1px solid rgba(136, 177, 241, .35); display: inline-flex; align-items: center; justify-content: space-between; color: #fff; cursor: pointer; }
.button-primary { border-color: #176cff; background: linear-gradient(135deg, #176cff, #0d4ec9); box-shadow: 0 8px 32px rgba(23,108,255,.3); }
.button-ghost { background: rgba(7, 25, 59, .38); backdrop-filter: blur(10px); }
.button span { margin-left: 16px; }
.hero-note { position: absolute; left: 26px; bottom: 120px; transform: rotate(-90deg); transform-origin: left; color: #7186a7; font: 500 9px "Space Grotesk"; letter-spacing: 2px; }
.hero-note i { display: inline-block; width: 48px; height: 1px; margin: 0 0 3px 14px; background: #526a90; }
.glass { background: linear-gradient(135deg, rgba(17, 48, 101, .42), rgba(5, 15, 39, .28)); border: 1px solid rgba(131, 173, 241, .2); backdrop-filter: blur(18px); }
.hero-stats {
  position: absolute;
  right: max(28px, calc((100vw - var(--max)) / 2));
  bottom: 46px;
  display: flex;
  border-radius: 12px;
  overflow: hidden;
}
.hero-stats div { min-width: 150px; padding: 18px 22px; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border: 0; }
.hero-stats strong { font: 500 26px "Space Grotesk"; }
.hero-stats sup { color: #5fa6ff; font-size: 15px; }
.hero-stats span { display: block; margin-top: 5px; color: #778cac; font-size: 11px; }

.section { padding: 130px max(28px, calc((100vw - var(--max)) / 2)); }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 58px; }
.section-heading h2 { margin: 18px 0 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.22; letter-spacing: -2px; }
.section-heading > p { color: var(--muted); line-height: 1.8; }
.intro {
  background:
    radial-gradient(circle at 50% 0%, rgba(31, 102, 240, .11), transparent 38%),
    linear-gradient(#020714, #050b19);
}
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.service-card { padding: 16px 16px 28px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(16, 40, 82, .55), rgba(5, 14, 34, .7)); overflow: hidden; transition: .35s; }
.service-card:hover { transform: translateY(-5px); border-color: rgba(100, 162, 255, .48); box-shadow: 0 28px 70px rgba(0, 16, 55, .42); }
.service-visual { position: relative; height: 290px; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at center, #112d68, #050d20 68%); }
.visual-consulting::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(87, 151, 255, .23) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000, transparent); }
.core { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 82px; height: 82px; display: grid; place-items: center; border: 1px solid #66a6ff; border-radius: 50%; font: 600 22px "Space Grotesk"; background: #0b2455; box-shadow: 0 0 45px rgba(54, 132, 255, .65), inset 0 0 24px rgba(81, 149, 255, .3); }
.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(103, 163, 255, .24); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-one { width: 190px; height: 190px; }
.orbit-two { width: 310px; height: 310px; }
.chip { position: absolute; z-index: 3; padding: 7px 12px; font-size: 11px; color: #bcd6ff; border: 1px solid rgba(87, 151, 255, .35); background: rgba(8, 29, 68, .8); border-radius: 20px; }
.chip-a { left: 17%; top: 31%; }.chip-b { right: 14%; top: 35%; }.chip-c { left: 27%; bottom: 21%; }
.visual-growth { background: linear-gradient(180deg, #09265c, #040b1b); }
.chart-grid { position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(89, 148, 237, .4) 1px, transparent 1px), linear-gradient(90deg, rgba(89, 148, 237, .4) 1px, transparent 1px); background-size: 46px 46px; }
.bar { position: absolute; bottom: 0; width: 11%; border-radius: 6px 6px 0 0; background: linear-gradient(rgba(39, 117, 255, .86), rgba(22, 69, 157, .25)); box-shadow: 0 0 20px rgba(39, 117, 255, .3); }
.b1 { left: 12%; height: 25%; }.b2 { left: 31%; height: 42%; }.b3 { left: 50%; height: 60%; }.b4 { left: 69%; height: 76%; }
.visual-growth svg { position: absolute; inset: 30px 20px; width: calc(100% - 40px); height: calc(100% - 60px); overflow: visible; }
.visual-growth path { fill: none; stroke: #6db3ff; stroke-width: 3; filter: drop-shadow(0 0 7px #3185ff); }
.metric { position: absolute; top: 20px; right: 22px; font: 500 23px "Space Grotesk"; color: #7db9ff; }
.metric small { display: block; font: 10px "Noto Sans SC"; color: #7188ab; }
.card-meta { margin-top: 25px; display: flex; align-items: center; gap: 12px; color: #6088c5; font: 500 11px "Space Grotesk"; letter-spacing: 1px; }
.card-meta i { width: 28px; height: 1px; background: #285b9e; }
.service-card h3 { font-size: 25px; line-height: 1.5; margin: 15px 0 9px; }
.service-card p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.service-card > a { display: inline-block; margin-top: 12px; color: #82b8ff; font-size: 13px; }
.service-card > a span { margin-left: 8px; }

.beliefs { position: relative; isolation: isolate; overflow: hidden; min-height: 770px; }
.beliefs-bg { filter: brightness(.45) saturate(.85); background-position: center 45%; }
.beliefs::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#050b19 0%, rgba(2, 7, 20, .16) 35%, #020714 100%); }
.belief-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.belief-card { min-height: 250px; padding: 26px; border: 1px solid rgba(130, 174, 244, .3); border-radius: 13px; background: linear-gradient(135deg, rgba(16, 47, 102, .46), rgba(4, 13, 33, .42)); backdrop-filter: blur(15px); }
.belief-card > span { color: #477ec8; font: 500 14px "Space Grotesk"; }
.belief-icon { margin: 42px 0 24px; color: #72adff; font-size: 29px; }
.belief-card h3 { font-size: 18px; }
.belief-card p { color: #8da0bf; font-size: 13px; line-height: 1.8; }

.cases { background: #020714; }
.text-link { padding: 10px 0; color: #89b8fa; font-size: 13px; }
.text-link span { margin-left: 10px; }
.case-grid { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: repeat(2, 250px); gap: 18px; }
.case-card { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, rgba(12, 43, 98, .65), rgba(3, 12, 28, .83)); }
.case-card::before { content: ""; position: absolute; width: 320px; height: 320px; border: 1px solid rgba(91, 151, 255, .2); border-radius: 50%; right: -100px; top: -150px; box-shadow: 0 0 70px rgba(38, 105, 229, .16); }
.case-one { grid-row: 1 / 3; background: radial-gradient(circle at 65% 40%, rgba(31, 106, 237, .34), transparent 32%), linear-gradient(145deg, #0d2b60, #040d20 72%); }
.case-two { background: radial-gradient(circle at 80% 20%, rgba(70, 63, 202, .32), transparent 35%), linear-gradient(135deg, #101c49, #050d20); }
.case-three { background: radial-gradient(circle at 70% 30%, rgba(22, 142, 207, .23), transparent 30%), linear-gradient(135deg, #09284b, #050d1c); }
.case-number { color: #588dd8; font: 500 14px "Space Grotesk"; }
.case-content { position: relative; z-index: 1; max-width: 490px; }
.case-content span { color: #6ca7fc; font-size: 11px; }
.case-content h3 { font-size: 22px; line-height: 1.55; margin: 13px 0; }
.case-one .case-content h3 { font-size: 31px; }
.case-content p { color: var(--muted); font-size: 13px; }
.case-arrow { position: absolute; right: 25px; bottom: 24px; width: 38px; height: 38px; border: 1px solid #3d659f; border-radius: 50%; display: grid; place-items: center; color: #75adfb; }

.about { background: radial-gradient(circle at 50% 50%, rgba(22, 83, 190, .15), transparent 45%), #030817; }
.about-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 70px; border-radius: 18px; }
.about-panel h2 { font-size: clamp(34px, 4vw, 52px); margin: 20px 0; line-height: 1.35; }
.about-copy { padding-top: 42px; color: #9bacc5; font-size: 15px; line-height: 2; }
.about-copy p:first-child { color: #d5e0f2; font-size: 18px; }

.contact { position: relative; min-height: 650px; padding: 140px 28px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at 50% 100%, #0d2e70, #020714 58%); }
.contact-orb { position: absolute; bottom: -520px; width: 950px; height: 750px; border-radius: 50%; border: 1px solid rgba(90, 157, 255, .25); background: radial-gradient(circle at 50% 10%, rgba(45, 117, 239, .5), #061432 40%, #020714 70%); box-shadow: 0 -30px 120px rgba(32, 106, 238, .22); }
.contact > *:not(.contact-orb) { position: relative; z-index: 1; }
.contact h2 { font-size: clamp(40px, 5vw, 66px); line-height: 1.35; margin: 25px 0 18px; }
.contact > p:not(.eyebrow) { color: var(--muted); }

footer { position: relative; padding: 70px max(28px, calc((100vw - var(--max)) / 2)) 24px; background: #01040c; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; padding-bottom: 55px; }
.footer-top > div:first-child p { color: #7184a2; margin-top: 18px; font-size: 13px; }
.footer-links { display: flex; gap: 75px; }
.footer-links div { display: flex; flex-direction: column; gap: 11px; color: #7184a2; font-size: 12px; }
.footer-links strong { color: #d5deec; margin-bottom: 7px; }
.footer-links a:hover { color: #79b1ff; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid rgba(130, 158, 203, .12); padding-top: 22px; color: #52617b; font-size: 11px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 30px; transform: translate(-50%, 30px); padding: 12px 20px; background: #eef5ff; color: #071327; border-radius: 8px; opacity: 0; pointer-events: none; transition: .3s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .desktop-nav, .header-actions { display: none; }
  .menu-button { display: block; }
  .desktop-nav.open { position: fixed; inset: 68px 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 20px 28px; background: rgba(2, 7, 20, .96); border-bottom: 1px solid var(--line); }
  .desktop-nav.open a { padding: 15px 0; }
  .desktop-nav.open .tool-nav-link::before { left: auto; right: 2px; }
  .desktop-nav.open .noos-mobile-link {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(89, 234, 216, .2);
    color: #74e9db;
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: 1px;
  }
  .desktop-nav a.active::after { display: none; }
  .hero { min-height: 850px; align-items: flex-start; padding-top: 170px; }
  .hero-bg { background-position: 62% center; }
  .hero-bg::after { background: linear-gradient(90deg, rgba(1,6,18,.8), rgba(1,6,18,.2)), linear-gradient(0deg, #020714, transparent 40%); }
  .hero-content { width: calc(100% - 40px); padding: 0; }
  .hero h1 { letter-spacing: -2px; }
  .hero-note { display: none; }
  .hero-stats { left: 20px; right: 20px; bottom: 30px; }
  .hero-stats div { flex: 1; min-width: 0; padding: 15px; }
  .section { padding: 90px 20px; }
  .section-heading { align-items: start; flex-direction: column; gap: 20px; }
  .service-grid, .belief-grid, .about-panel { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 300px); }
  .case-one { grid-row: auto; }
  .about-panel { gap: 10px; padding: 35px 25px; }
  .footer-top { flex-direction: column; gap: 45px; }
  .footer-links { gap: 30px; justify-content: space-between; flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .site-header { height: 68px; padding: 0 20px; }
  .hero { min-height: 790px; padding-top: 135px; }
  .hero h1 { font-size: 48px; }
  .hero-copy br { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-stats div { padding: 12px 8px; }
  .hero-stats strong { font-size: 20px; }
  .hero-stats span { font-size: 9px; }
  .section-heading h2 { letter-spacing: -1px; }
  .service-visual { height: 230px; }
  .belief-grid { gap: 12px; }
  .case-grid { grid-template-rows: repeat(3, 340px); }
  .case-one .case-content h3 { font-size: 24px; }
  .contact { min-height: 620px; padding: 100px 20px; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; }
  .footer-links div:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .cosmos-canvas, .nebula { display: none; }
}
