/* ==========================================================
   眾智科技 CrowdMind — 形象網站
   色彩概念：太平洋的深藍（信賴）× 花蓮日出的珊瑚橘（熱情）× 清水模的米白（質感）
   ========================================================== */

:root {
  --ink: #0b1220;
  --ink-2: #131c2e;
  --ink-3: #1e2a42;
  --paper: #f5f2ea;
  --paper-2: #ebe6da;
  --text: #1a2233;
  --muted: #5b6577;
  --line: rgba(11, 18, 32, 0.12);
  --sun: #ff6b4a;      /* 日出珊瑚 */
  --sun-soft: #ffb199;
  --sea: #2fc4b2;      /* 太平洋青 */
  --sea-deep: #127a70;

  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-serif: "Noto Serif TC", "Songti TC", serif;
  --font-latin: "Space Grotesk", var(--font-sans);

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: .01em; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--sun); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-scrolled {
  background: rgba(11, 18, 32, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav__inner {
  max-width: var(--container); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #fff;
}
.brand__zh { font-weight: 700; letter-spacing: .12em; }
.brand__en { font-family: var(--font-latin); font-size: 13px; opacity: .6; letter-spacing: .04em; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  color: rgba(255,255,255,.78); text-decoration: none; font-size: 15px;
  transition: color .2s;
}
.nav__links a:hover { color: #fff; }
.nav__links .nav__cta {
  color: var(--ink); background: #fff; padding: 7px 18px; border-radius: 999px; font-weight: 500;
}
.nav__links .nav__cta:hover { color: #fff; background: var(--sun); }
.nav__links .nav__lang {
  font-family: var(--font-latin); font-size: 13px; letter-spacing: .06em;
  padding: 5px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
}
.nav__links .nav__lang:hover { border-color: #fff; }

.nav__toggle {
  display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px; cursor: pointer;
}
.nav__toggle span {
  display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease);
}
.nav__toggle span + span { margin-top: 7px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 18, 32, .97);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 17px; }
  .nav__links .nav__cta { margin-top: 16px; text-align: center; border: 0; }
  .nav { background: rgba(11, 18, 32, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 500; text-decoration: none; font-size: 16px;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--sun); color: #fff; box-shadow: 0 10px 30px -10px rgba(255,107,74,.6); }
.btn--primary:hover { background: #ff5530; }
.btn--ghost { color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background:
    radial-gradient(120% 80% at 85% 110%, rgba(255,107,74,.28), transparent 55%),
    radial-gradient(90% 70% at 10% 0%, rgba(47,196,178,.16), transparent 60%),
    var(--ink);
  color: #fff; overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--container); margin: 0 auto;
  padding: 120px var(--gutter) 100px;
  pointer-events: none;
}
.hero__content a { pointer-events: auto; }
.eyebrow {
  font-family: var(--font-latin); font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sea); margin-bottom: 28px;
}
.hero__title {
  font-family: var(--font-serif); font-weight: 900;
  font-size: clamp(38px, 6.4vw, 84px); line-height: 1.22; letter-spacing: .02em;
}
.hero__title span { display: block; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--sun-soft), var(--sun) 60%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  max-width: 36em; margin-top: 32px;
  font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.72);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

.hero__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  background: #fff; border-radius: 2px; animation: scroll 2s infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 12vw, 160px) 0; }
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-latin); font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px;
}
.label__num {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid currentColor; border-radius: 50%; font-size: 12px; letter-spacing: 0;
}
.section__title {
  font-family: var(--font-serif); font-weight: 900;
  font-size: clamp(30px, 4.4vw, 54px);
}
.section__intro { max-width: 40em; margin-top: 24px; color: var(--muted); font-size: 18px; }

/* Vision */
.vision { background: var(--paper); }
.vision__statement {
  font-family: var(--font-serif); font-weight: 900;
  font-size: clamp(28px, 4.6vw, 58px); line-height: 1.45; max-width: 21em;
}
.vision__statement mark {
  background: linear-gradient(transparent 62%, rgba(255,107,74,.35) 62%);
  color: inherit; padding: 0 .08em;
}
.vision__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.vision__card { background: var(--paper); padding: clamp(28px, 3.5vw, 44px); transition: background .3s; }
.vision__card:hover { background: #fff; }
.vision__card h3 { font-size: 22px; margin-bottom: 14px; }
.vision__card h3::before {
  content: ""; display: block; width: 10px; height: 10px; background: var(--sun); margin-bottom: 20px;
}
.vision__card:nth-child(2) h3::before { background: var(--sea); }
.vision__card:nth-child(3) h3::before { background: var(--ink); }
.vision__card p { color: var(--muted); }

/* Mission */
.mission { background: var(--ink); color: #fff; }
.mission .label { color: rgba(255,255,255,.55); }
.mission__layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.mission__body > p { color: rgba(255,255,255,.72); font-size: 18px; }
.mission__list { list-style: none; padding: 0; margin: 40px 0 0; }
.mission__list li {
  padding: 22px 0 22px 44px; border-top: 1px solid rgba(255,255,255,.12);
  position: relative; color: rgba(255,255,255,.66);
}
.mission__list li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.mission__list li::before {
  content: ""; position: absolute; left: 4px; top: 32px;
  width: 14px; height: 14px; border: 2px solid var(--sea); transform: rotate(45deg);
}
.mission__list strong { display: block; color: #fff; font-size: 19px; margin-bottom: 4px; }

/* Values */
.values { background: var(--paper-2); }
.values__grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 64px;
}
.value {
  position: relative; background: var(--paper); border-radius: var(--radius);
  padding: 32px 26px 30px; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.value:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(11,18,32,.3); }
.value__glyph {
  display: block; font-family: var(--font-serif); font-weight: 900;
  font-size: 64px; line-height: 1; color: var(--ink); margin-bottom: 28px;
}
.value:nth-child(odd) .value__glyph { color: var(--sun); }
.value h3 { font-size: 20px; margin-bottom: 10px; }
.value h3 small {
  display: block; font-family: var(--font-latin); font-weight: 400; font-size: 13px;
  color: var(--muted); letter-spacing: .06em; margin-top: 2px;
}
.value p { color: var(--muted); font-size: 15px; line-height: 1.75; }

/* Roadmap */
.roadmap { background: var(--paper); }
.timeline {
  list-style: none; padding: 0; margin: 72px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  position: relative;
}
.timeline::before {
  content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--sea), var(--sun));
}
.timeline__item { position: relative; padding-top: 44px; }
.timeline__item::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--sea);
}
.timeline__item:nth-child(3)::before { border-color: #c79a6d; }
.timeline__item:nth-child(4)::before { border-color: var(--sun); background: var(--sun); box-shadow: 0 0 0 6px rgba(255,107,74,.2); }
.timeline__phase {
  font-family: var(--font-latin); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--sea-deep);
}
.timeline__item:nth-child(4) .timeline__phase { color: var(--sun); }
.timeline__item h3 { font-size: 20px; margin: 10px 0 12px; }
.timeline__item p { color: var(--muted); font-size: 15px; }

/* Products */
.products { background: var(--ink-2); color: #fff; }
.products .label { color: rgba(255,255,255,.55); }
.products__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; }
.product {
  background: var(--ink-3); border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .35s var(--ease), border-color .35s;
}
.product:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.16); }
.product__visual {
  aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden;
}
.product--trend .product__visual { background: radial-gradient(circle at 70% 30%, rgba(255,107,74,.35), transparent 60%), #17213a; }
.product--web .product__visual { background: radial-gradient(circle at 30% 70%, rgba(47,196,178,.3), transparent 60%), #17213a; }
.product__body { padding: 32px clamp(24px, 3vw, 40px) 40px; }
.product__tag { font-size: 13px; letter-spacing: .1em; color: var(--sea); }
.product--trend .product__tag { color: var(--sun-soft); }
.product__name { font-family: var(--font-latin); font-size: clamp(32px, 3.6vw, 44px); font-weight: 700; margin: 6px 0 16px; letter-spacing: -.01em; }
.product__body > p { color: rgba(255,255,255,.7); }
.product__points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.product__points li {
  font-size: 14px; padding: 5px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.8);
}

/* PixelTrend visual: animated pixel bars */
.pixels--trend {
  display: grid; grid-template-columns: repeat(12, 14px); grid-auto-rows: 14px; gap: 5px;
  align-items: end;
}
.pixels--trend i {
  display: block; width: 14px; height: 14px; border-radius: 3px;
  background: rgba(255,255,255,.08);
}
.pixels--trend i.on { background: var(--sun); animation: blink 3s infinite; }
.pixels--trend i.on.alt { background: var(--sun-soft); }
@keyframes blink { 50% { opacity: .55; } }

/* PixWeb visual: mini browser */
.browser {
  width: 72%; background: var(--paper); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  transform: perspective(900px) rotateX(8deg) rotateY(-10deg);
  transition: transform .5s var(--ease);
}
.product--web:hover .browser { transform: perspective(900px) rotateX(0) rotateY(0); }
.browser__bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--paper-2); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d6cfbf; }
.browser__bar i:first-child { background: var(--sun); }
.browser__body { padding: 14px; }
.browser__hero { height: 70px; border-radius: 8px; background: linear-gradient(110deg, var(--ink), var(--sea-deep)); }
.browser__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.browser__row span { height: 36px; border-radius: 6px; background: var(--paper-2); }

/* Manifesto */
.manifesto {
  background: var(--sun); color: var(--ink);
  padding: clamp(88px, 12vw, 150px) 0;
  background-image: radial-gradient(rgba(11,18,32,.12) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.manifesto__text {
  font-family: var(--font-serif); font-weight: 900;
  font-size: clamp(30px, 5vw, 64px); line-height: 1.45;
}
.manifesto__text em { font-style: normal; color: #fff; }

/* Contact */
.contact { background: var(--paper); }
.contact__layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact .btn { margin-top: 36px; }
.company {
  margin: 0; background: #fff; border-radius: 24px; padding: 12px 32px;
  box-shadow: 0 30px 60px -36px rgba(11,18,32,.35);
}
.company > div {
  display: grid; grid-template-columns: 7em 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.company > div:last-child { border-bottom: 0; }
.company dt { color: var(--muted); font-size: 15px; }
.company dd { margin: 0; font-weight: 500; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.55); padding: 48px 0; font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.footer__brand { color: #fff; font-weight: 700; letter-spacing: .08em; }
.footer__brand span { font-family: var(--font-latin); font-weight: 400; opacity: .55; margin-left: 6px; letter-spacing: 0; }
.footer__copy { width: 100%; font-family: var(--font-latin); opacity: .7; }

/* ---------- English page ---------- */
html[lang="en"] body { line-height: 1.7; }
html[lang="en"] :is(h1, h2, h3, .manifesto__text) { text-wrap: balance; }
html[lang="en"] .hero__title { font-size: clamp(36px, 5.2vw, 72px); letter-spacing: -.005em; line-height: 1.15; }
html[lang="en"] .vision__statement { font-size: clamp(26px, 3.6vw, 46px); line-height: 1.35; max-width: 24em; }
html[lang="en"] .section__title,
html[lang="en"] .manifesto__text { letter-spacing: -.005em; line-height: 1.2; }
html[lang="en"] .section__title { font-size: clamp(28px, 3.8vw, 48px); }
html[lang="en"] .manifesto__text { font-size: clamp(28px, 4.4vw, 56px); }
html[lang="en"] .label { text-transform: none; letter-spacing: .08em; }
html[lang="en"] .company > div { grid-template-columns: 8.5em 1fr; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .values__grid { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .timeline::before { display: none; }
  .timeline__item { border-top: 2px solid var(--line); padding-top: 36px; }
  .timeline__item::before { top: -9px; }
}
@media (max-width: 860px) {
  .vision__grid, .mission__layout, .products__grid, .contact__layout { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .hide-sm { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .values__grid, .timeline { grid-template-columns: 1fr; }
  .company { padding: 8px 20px; }
  .company > div { grid-template-columns: 1fr; gap: 2px; }
  .pixels--trend { grid-template-columns: repeat(12, 10px); grid-auto-rows: 10px; gap: 4px; }
  .pixels--trend i { width: 10px; height: 10px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
