:root {
  --navy: #0b1f3a;
  --indigo: #102a43;
  --teal: #2bb3a3;
  --mint: #8fe3cf;
  --mist: #f6f8fa;
  --gold: #c8a96a;
  --slate: #52616b;
  --white: #ffffff;
  --line: rgba(15, 42, 67, 0.12);
  --shadow: 0 24px 80px rgba(11, 31, 58, 0.18);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans TC", system-ui, sans-serif;
  color: var(--indigo);
  background: var(--mist);
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  color: var(--navy);
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 220ms ease, border-color 220ms ease;
  border-bottom: 1px solid transparent;
}

.site-header[data-elevated="true"],
.site-header:focus-within {
  background: rgba(11, 31, 58, 0.9);
  backdrop-filter: blur(22px);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: var(--mint);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.94rem;
}

.nav-links > a:not(.button) {
  color: rgba(255, 255, 255, 0.82);
}

.lang-toggle,
.menu-toggle {
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.lang-toggle {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 12px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), #42c7bd);
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 16px 42px rgba(43, 179, 163, 0.28);
  transition: transform 220ms ease, box-shadow 220ms ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 52px rgba(43, 179, 163, 0.36);
}

.button-small {
  min-height: 40px;
  padding-inline: 16px;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  box-shadow: none;
}

.section-navy {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 74% 24%, rgba(143, 227, 207, 0.2), transparent 34%),
    linear-gradient(135deg, var(--navy), var(--indigo) 60%, #07353f);
}

.section-light {
  background: var(--mist);
}

.section-white {
  background: var(--white);
}

section {
  padding: 96px 0;
}

.hero {
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: 132px 0 88px;
}

.hero-flow {
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(110deg, transparent 30%, rgba(143, 227, 207, 0.08), transparent 56%),
    radial-gradient(circle at 25% 70%, rgba(200, 169, 106, 0.13), transparent 28%);
  animation: aquaFlow 32s ease-in-out infinite alternate;
}

.hero-grid,
.split,
.two-column,
.founder-grid,
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: 5.4rem;
  line-height: 1.04;
}

h2 {
  margin-bottom: 18px;
  font-size: 3rem;
  line-height: 1.12;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.35;
}

p {
  line-height: 1.82;
}

.hero-subtitle,
.lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.section-light .lead,
.section-white .lead,
.service-card p,
.case-card p,
.article-card p,
.founder-copy p,
.privacy p {
  color: var(--slate);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-visual {
  min-height: 520px;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.hero-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 24px;
}

.glass-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 80px rgba(4, 16, 31, 0.28);
}

.main-card {
  width: min(92%, 440px);
  padding: 34px;
  position: absolute;
  right: 5%;
  top: 28%;
}

.main-card p {
  color: var(--mint);
}

.main-card h2 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.mini-card {
  width: 210px;
  padding: 20px;
  position: absolute;
}

.mini-card strong,
.mini-card span {
  display: block;
}

.mini-card span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
}

.mini-card.top {
  right: 52%;
  top: 12%;
}

.mini-card.bottom {
  right: 0;
  bottom: 8%;
}

.orbital-map {
  position: absolute;
  inset: 12% 0 0 12%;
  border: 1px solid rgba(143, 227, 207, 0.26);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.orbital-map span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 24px rgba(200, 169, 106, 0.6);
}

.orbital-map span:nth-child(1) {
  left: 18%;
  top: 22%;
}

.orbital-map span:nth-child(2) {
  right: 12%;
  top: 42%;
}

.orbital-map span:nth-child(3) {
  left: 47%;
  bottom: 8%;
}

.section-heading.narrow {
  max-width: 680px;
  margin-bottom: 34px;
}

.cards {
  display: grid;
  gap: 22px;
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.cards.four {
  grid-template-columns: repeat(4, 1fr);
}

.service-card,
.case-card,
.article-card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 44px rgba(11, 31, 58, 0.08);
  transition: transform 220ms ease, border-color 220ms ease;
}

.service-card:hover,
.case-card:hover,
.article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(43, 179, 163, 0.45);
}

.card-index,
.tag {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.82rem;
}

.en-name {
  color: var(--teal);
  font-weight: 700;
}

.service-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--teal);
  font-weight: 800;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.audience-item {
  padding: 22px;
  border-left: 3px solid var(--teal);
  background: var(--mist);
  border-radius: 0 18px 18px 0;
  font-weight: 800;
}

.why-section .section-heading {
  color: var(--white);
}

.why-section .glass-card {
  padding: 24px;
}

.why-section .glass-card p {
  color: rgba(255, 255, 255, 0.72);
}

.portrait-panel {
  min-height: 520px;
  position: relative;
  display: grid;
  place-items: end start;
  padding: 34px;
  border-radius: 32px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(160deg, rgba(143, 227, 207, 0.28), transparent 38%),
    linear-gradient(135deg, var(--navy), #17515b);
  box-shadow: var(--shadow);
}

.founder-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.92;
}

.portrait-panel span {
  position: relative;
  z-index: 1;
  font-size: 2.4rem;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  padding: 8px 0 0;
  width: 100%;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.social-link:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}

.footer-social a {
  color: rgba(255,255,255,0.6);
  transition: color 0.18s;
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  color: var(--white);
}

.beliefs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.beliefs span {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
}

.case-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.case-card {
  display: grid;
  grid-template-columns: 220px 1fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.article-card {
  min-height: 210px;
}

.contact-section h2 {
  max-width: 720px;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.74);
}

.email-link {
  display: inline-flex;
  margin: 18px 0 22px;
  color: var(--mint);
  font-size: 1.2rem;
  font-weight: 800;
}

.calendar-placeholder {
  max-width: 500px;
  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.calendar-placeholder span,
.calendar-placeholder strong {
  display: block;
}

.calendar-placeholder span {
  color: rgba(255, 255, 255, 0.68);
  margin-top: 6px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--indigo);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(16, 42, 67, 0.18);
  border-radius: 12px;
  padding: 12px;
  background: var(--white);
  color: var(--indigo);
}

textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.checkbox {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.privacy {
  padding-block: 62px;
}

.privacy .shell {
  max-width: 860px;
}

.site-footer {
  padding: 52px 0 24px;
  color: rgba(255, 255, 255, 0.78);
  background: #07192f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.copyright {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes aquaFlow {
  from {
    transform: translate3d(-2%, -1%, 0) rotate(0deg);
  }
  to {
    transform: translate3d(3%, 2%, 0) rotate(4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 76px 0 auto;
    display: none;
    min-height: calc(100vh - 76px);
    padding: 28px 20px;
    background: rgba(11, 31, 58, 0.98);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .hero-grid,
  .split,
  .two-column,
  .founder-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .hero-visual {
    min-height: 460px;
  }

  .cards.three,
  .cards.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(calc(100% - 28px), var(--max));
  }

  section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 118px;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .cards.three,
  .cards.four,
  .audience-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .main-card {
    width: 100%;
    right: 0;
    top: 25%;
  }

  .mini-card {
    width: 180px;
  }

  .mini-card.top {
    left: 0;
    right: auto;
  }

  .mini-card.bottom {
    right: 0;
    bottom: 2%;
  }

  .portrait-panel {
    min-height: 380px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
