/* =========================================================
   Soarism 翱翔主義 — 官方網站樣式
   色彩與字體依「品牌標誌設計概念」文件
   ========================================================= */

:root {
  --ink: #0B1220;          /* 墨藍：主背景 */
  --panel: #111A2E;        /* 夜空：卡片 */
  --band: #0F1829;         /* 區塊交錯背景 */
  --chip: #16284A;         /* 編號底 */
  --line: #1C2A44;         /* 分隔線 */
  --line-strong: #33476B;
  --cloud: #E6EDF7;        /* 雲白：主要文字 */
  --mist: #A9B6CC;         /* 霧灰：次要文字 */
  --muted: #7D8BA5;
  --accent: #5CC8FF;       /* 天空藍：強調色 */
  --accent-deep: #0077B6;  /* 深天藍：淺底強調色 */

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

  --container: 1200px;
  --radius: 16px;
  --radius-lg: 20px;
  --section-y: clamp(72px, 10vw, 112px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cloud);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
button, input, textarea, select { font: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-y) 0; }
.section--band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
}
.section-title { margin: 12px 0 48px; font-size: clamp(30px, 4vw, 40px); font-weight: 900; line-height: 1.3; }
.lead { color: var(--mist); font-size: 17px; line-height: 1.9; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: var(--accent); color: var(--ink); font-weight: 700;
}
.skip-link:focus { top: 16px; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { color: var(--ink); background: #82D6FF; }
.btn--ghost { border-color: var(--line-strong); color: var(--cloud); font-weight: 500; }
.btn--ghost:hover { border-color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { color: inherit; }
.brand__mark { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__en { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: 0.08em; line-height: 1; }
.brand__zh { font-size: 11px; letter-spacing: 0.62em; color: var(--mist); }
.accent { color: var(--accent); }

.nav__menu { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--mist); }
.nav__menu .btn { min-height: 44px; padding: 0 20px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: transparent; color: var(--cloud); cursor: pointer; align-items: center; justify-content: center;
}

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 24px; background: var(--ink); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__menu li:last-child { margin-top: 16px; }
  .nav__menu .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(80px, 12vw, 128px) 0 clamp(72px, 10vw, 104px); }
.hero__inner { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.hero__copy { flex: 1 1 520px; min-width: 0; }
.hero__title { margin: 20px 0 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.22; font-weight: 900; text-wrap: balance; }
.hero__lead { margin: 28px 0 0; max-width: 560px; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }

.terminal {
  flex: 1 1 380px; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel);
  padding: 28px; font-family: var(--font-display), ui-monospace, monospace; font-size: 14px; line-height: 2;
}
.terminal__dots { display: flex; gap: 8px; margin-bottom: 16px; }
.terminal__dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--line-strong); }
.terminal__comment { color: var(--muted); }
.terminal__key { color: var(--accent); }
.terminal__status { margin-top: 12px; color: #FFB347; }
.terminal__cursor { display: inline-block; width: 8px; height: 16px; margin-left: 4px; background: #FFB347; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .terminal__cursor { animation: none; } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card { padding: 32px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card__no {
  width: 48px; height: 48px; border-radius: 12px; background: var(--chip); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700;
}
.card__title { margin: 24px 0 12px; font-size: 21px; font-weight: 700; }
.card__text { margin: 0; font-size: 15px; line-height: 1.8; color: var(--mist); }

/* ---------- About ---------- */
.split { display: flex; flex-wrap: wrap; gap: 64px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.about__copy p { margin: 0 0 16px; }
.strengths { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-content: start; }
.strength { padding: 24px; border-radius: 14px; border: 1px solid var(--line); }
.strength__title { margin: 0; font-size: 17px; font-weight: 700; color: var(--accent); }
.strength__text { margin: 8px 0 0; font-size: 15px; line-height: 1.7; color: var(--mist); }

/* ---------- Brand ---------- */
.brand-showcase {
  min-height: 360px; border-radius: var(--radius-lg); background: var(--ink); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 40px 24px;
}
.brand-showcase__mark { width: 140px; height: 140px; }
.brand-showcase__en { font-family: var(--font-display); font-size: clamp(34px, 5vw, 44px); font-weight: 700; letter-spacing: 0.08em; line-height: 1; text-align: center; }
.brand-showcase__zh { margin-top: 12px; font-size: 16px; letter-spacing: 0.9em; padding-left: 0.9em; color: var(--mist); text-align: center; }
.meanings { display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.meanings > p { margin: 0; }
.meaning { display: flex; gap: 20px; align-items: flex-start; }
.meaning .card__no { flex: 0 0 auto; width: 44px; height: 44px; }
.meaning h3 { margin: 0 0 6px; font-size: 19px; }
.meaning p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--mist); }

/* ---------- Works ---------- */
.works__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.works__head .section-title { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--mist); font-size: 14px; cursor: pointer; transition: all .15s ease;
}
.filter:hover { border-color: var(--accent); color: var(--cloud); }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 700; }

.grid--works { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 380px) { .grid--works { grid-template-columns: 1fr; } }
.work { border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease; }
.work:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.work[hidden] { display: none; }
.work__media { aspect-ratio: 16 / 10; background: var(--chip); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.work__media img { width: 100%; height: 100%; object-fit: cover; }
.work__body { padding: 24px; }
.work__cat { font-size: 13px; color: var(--accent); }
.work__title { margin: 8px 0; font-size: 19px; font-weight: 700; }
.work__text { margin: 0; font-size: 14px; line-height: 1.7; color: var(--mist); }
.work__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.work__tags li { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12px; color: var(--mist); font-family: var(--font-display); }
.works__empty { margin: 24px 0 0; color: var(--muted); text-align: center; }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.step { padding: 28px 24px; border-top: 3px solid var(--accent); background: var(--panel); border-radius: 0 0 14px 14px; }
.step__no { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--line-strong); }
.step__title { margin: 12px 0 0; font-size: 18px; font-weight: 700; }
.step__text { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: var(--mist); }

/* ---------- Contact ---------- */
.contact__info { margin: 32px 0 0; padding: 0; list-style: none; font-size: 16px; line-height: 2.2; color: var(--mist); }
.contact__info a:hover { color: var(--accent); }
.form { display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--mist); }
.field input, .field textarea, .field select {
  min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--ink); color: var(--cloud);
}
.field select { cursor: pointer; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.form .btn { min-height: 52px; font-size: 16px; }
.form__status { margin: 0; min-height: 1.6em; font-size: 14px; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--band); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 24px; font-size: 13px; color: var(--muted); }
.footer__inner .brand__mark { width: 28px; height: 28px; }
.footer__inner .brand__en { font-size: 16px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
