/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --vt-c-white: #fff;
  --vt-c-white-soft: #f8f8f8;
  --vt-c-white-mute: #f2f2f2;
  --vt-c-black: #181818;
  --vt-c-black-soft: #222;
  --vt-c-black-mute: #282828;
  --vt-c-indigo: #2c3e50;
  --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
  --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
  --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
  --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
  --vt-c-text-light-1: var(--vt-c-indigo);
  --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
  --vt-c-text-dark-1: var(--vt-c-white);
  --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
  --color-background: var(--vt-c-white);
  --color-background-soft: var(--vt-c-white-soft);
  --color-background-mute: var(--vt-c-white-mute);
  --color-border: var(--vt-c-divider-light-2);
  --color-border-hover: var(--vt-c-divider-light-1);
  --color-heading: var(--vt-c-text-light-1);
  --color-text: var(--vt-c-text-light-1);
  --section-gap: 160px;
  /* shared image size — both cards use this so they always match */
  --card-img-size: clamp(120px, 22vw, 320px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: var(--vt-c-black);
    --color-background-soft: var(--vt-c-black-soft);
    --color-background-mute: var(--vt-c-black-mute);
    --color-border: var(--vt-c-divider-dark-2);
    --color-border-hover: var(--vt-c-divider-dark-1);
    --color-heading: var(--vt-c-text-dark-1);
    --color-text: var(--vt-c-text-dark-2);
  }
}

/* ============================================================
   Reset & Base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-weight: 400;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--color-text);
  background: #07111f;
  font-family: 'Microsoft JhengHei', 'Noto Sans TC', Inter, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans',
    'Helvetica Neue', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: color 0.5s, background-color 0.5s;
}

#app {
  width: 100%;
  min-height: 100vh;
}

/* ============================================================
   Page Layout
   ============================================================ */
.page[data-v-377255d8] {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
}

/* ============================================================
   Header
   ============================================================ */
.header[data-v-377255d8] {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 2.5rem;
  background: #fff;
  border-bottom: 3px solid #1a2e5a;
}

.header-logo[data-v-377255d8] {
  width: auto;
  height: 52px;
}

.header-divider[data-v-377255d8] {
  width: 2px;
  height: 36px;
  margin: 0 0.4rem;
  background: #1a2e5a;
  opacity: 0.25;
}

.header-slogan[data-v-377255d8] {
  background: linear-gradient(135deg, #1a2e5a 0%, #2a6ab5 60%, #1a2e5a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 4px;
}

/* ============================================================
   Home / Grid
   ============================================================ */
.home[data-v-2858e464] {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(1rem, 3vw, 3rem) clamp(0.8rem, 4vw, 4rem);
  position: relative;
  overflow: auto;
}

.grid-bg[data-v-2858e464] {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 182, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 182, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ============================================================
   Cards Container
   ============================================================ */
.cards[data-v-2858e464] {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: clamp(0.8rem, 2vw, 3rem);
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ============================================================
   Individual Card
   ============================================================ */
.card[data-v-2858e464] {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card-engimate[data-v-2858e464] {
  background: #0d1f3c;
  border: 1px solid rgba(56, 182, 255, 0.3);
}

.card-engimate[data-v-2858e464]:hover {
  border-color: rgba(56, 182, 255, 0.7);
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(56, 182, 255, 0.2), 0 16px 40px rgba(0, 0, 0, 0.5);
}

.card-financial[data-v-2858e464] {
  background: #7ec8f5;
  border: 1px solid rgba(26, 46, 90, 0.3);
}

.card-financial[data-v-2858e464]:hover {
  border-color: rgba(26, 46, 90, 0.7);
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(126, 200, 245, 0.3), 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   Card Scan Animation
   ============================================================ */
.card-scan[data-v-2858e464] {
  position: absolute;
  top: -40%;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 40%;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(56, 182, 255, 0.07), transparent);
  animation: scan-2858e464 3s linear infinite;
}

.card-scan-blue[data-v-2858e464] {
  background: linear-gradient(transparent, rgba(26, 46, 90, 0.07), transparent);
}

@keyframes scan-2858e464 {
  0%   { top: -40%; }
  100% { top: 100%; }
}

/* ============================================================
   Corner Decorations
   ============================================================ */
.corner[data-v-2858e464] {
  position: absolute;
  z-index: 3;
  width: 14px;
  height: 14px;
  border-style: solid;
  border-color: #38b6ff;
}

.corner-dark[data-v-2858e464] { border-color: #1a2e5a; }

.tl[data-v-2858e464] { top: 7px;    left: 7px;  border-width: 2px 0 0 2px; }
.tr[data-v-2858e464] { top: 7px;    right: 7px; border-width: 2px 2px 0 0; }
.bl[data-v-2858e464] { bottom: 7px; left: 7px;  border-width: 0 0 2px 2px; }
.br[data-v-2858e464] { bottom: 7px; right: 7px; border-width: 0 2px 2px 0; }

/* ============================================================
   Card Body
   ============================================================ */
.card-body[data-v-2858e464] {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: clamp(0.4rem, 0.8vw, 1.2rem);
  padding: clamp(0.8rem, 1.5vw, 2rem) clamp(0.6rem, 1.2vw, 1.5rem);
}

.card-body-row[data-v-2858e464] {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: clamp(0.8rem, 1.5vw, 2rem) clamp(0.6rem, 1.2vw, 1.5rem);
}

/* ============================================================
   Engimate Logo Area
   ============================================================ */
.em-logo[data-v-2858e464] {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: var(--card-img-size);
  height: var(--card-img-size);
  filter: drop-shadow(0 0 10px rgba(56, 182, 255, 0.4));
}

.em-center-logo[data-v-2858e464] {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(40px, 5vw, 62px);
  height: clamp(40px, 5vw, 62px);
  border-radius: 50%;
  object-fit: contain;
}

.em-title[data-v-2858e464] {
  font-family: 'Courier New', monospace;
  font-size: clamp(1.1rem, 2.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 3px;
  margin-top: auto;
}

.em-engi[data-v-2858e464] { color: #38b6ff; }
.em-mate[data-v-2858e464] { color: #fff; }

.at-name[data-v-2858e464] {
  color: #1a2e5a;
}

/* ============================================================
   Card Labels & Description
   ============================================================ */
.card-label[data-v-2858e464] {
  text-align: center;
}

.label-tag[data-v-2858e464] {
  font-family: 'Courier New', monospace;
  font-size: clamp(0.55rem, 0.9vw, 0.85rem);
  color: #38b6ff;
  letter-spacing: 3px;
  opacity: 0.85;
}

.label-tag-dark[data-v-2858e464] { color: #1a2e5a; }

.card-desc[data-v-2858e464] {
  font-size: clamp(0.75rem, 1.1vw, 1.1rem);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1px;
  margin-top: 0.3rem;
}

.card-desc-dark[data-v-2858e464] {
  color: #1a2e5a;
  font-weight: 600;
}

/* ============================================================
   Card Footer
   ============================================================ */
.card-footer[data-v-2858e464] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(56, 182, 255, 0.08);
  border-top: 1px solid rgba(56, 182, 255, 0.2);
  font-family: 'Courier New', monospace;
  font-size: clamp(0.62rem, 0.75vw, 0.78rem);
}

.card-footer-dark[data-v-2858e464] {
  background: rgba(26, 46, 90, 0.12);
  border-top: 1px solid rgba(26, 46, 90, 0.25);
}

/* ============================================================
   Status Dot
   ============================================================ */
.status-dot[data-v-2858e464] {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #38b6ff;
  box-shadow: 0 0 6px #38b6ff;
  animation: pulse-2858e464 1.6s ease-in-out infinite;
}

.dot-dark[data-v-2858e464] {
  background: #1a2e5a;
  box-shadow: 0 0 6px rgba(26, 46, 90, 0.6);
}

@keyframes pulse-2858e464 {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.status-text[data-v-2858e464] {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
}

.status-text-dark[data-v-2858e464] { color: rgba(26, 46, 90, 0.6); }

/* ============================================================
   Arrow
   ============================================================ */
.arrow[data-v-2858e464] {
  margin-left: auto;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s, transform 0.2s;
}

.arrow-dark[data-v-2858e464] { color: rgba(26, 46, 90, 0.4); }

.card-engimate:hover .arrow[data-v-2858e464] {
  color: #38b6ff;
  transform: translateX(4px);
}

.card-financial:hover .arrow[data-v-2858e464] {
  color: #1a2e5a;
  transform: translateX(4px);
}

/* ============================================================
   Binary Columns
   ============================================================ */
.binary-col[data-v-2858e464] {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  flex-shrink: 0;
  width: 20px;
  overflow: hidden;
  font-family: 'Courier New', monospace;
  font-size: 0.4rem;
  line-height: 1.7;
  color: #1a2e5a;
  opacity: 0.4;
}

.binary-col-r[data-v-2858e464] { transform: rotate(180deg); }

/* ============================================================
   Financial Card Center
   ============================================================ */
.financial-center[data-v-2858e464] {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: clamp(0.4rem, 0.8vw, 1.2rem);
}

.financial-center[data-v-2858e464] .card-label[data-v-2858e464] {
  margin-top: auto;
}

.financial-logo[data-v-2858e464] {
  width: var(--card-img-size);
  height: var(--card-img-size);
  object-fit: contain;
}

/* ============================================================
   About View
   ============================================================ */
@media (min-width: 1024px) {
  .about {
    display: flex;
    align-items: center;
    min-height: 100vh;
  }
}

/* ============================================================
   RWD — Large screens (≤ 1200px)
   ============================================================ */
@media (max-width: 1200px) {
  :root                          { --card-img-size: clamp(120px, 22vw, 280px); }
  .cards[data-v-2858e464]        { gap: 1rem; }
  .em-title[data-v-2858e464]     { font-size: clamp(1rem, 1.8vw, 1.8rem); }
  .header[data-v-377255d8]       { padding: 0.8rem 1.5rem; }
  .header-logo[data-v-377255d8]  { height: 44px; }
}

/* ============================================================
   RWD — Tablet landscape (≤ 900px) — stacks to columns
   ============================================================ */
@media (max-width: 900px) {
  :root                          { --card-img-size: clamp(110px, 38vw, 260px); }

  .home[data-v-2858e464]         { align-items: center; }

  .cards[data-v-2858e464] {
    flex-direction: column;
    gap: 1.2rem;
  }

  .card[data-v-2858e464]         { flex: none; width: 100%; max-width: 600px; margin: 0 auto; }

  .em-center-logo[data-v-2858e464] { width: clamp(36px, 7vw, 52px); height: clamp(36px, 7vw, 52px); }
  .em-title[data-v-2858e464]     { font-size: clamp(1.2rem, 5vw, 2rem); }

  .label-tag[data-v-2858e464]    { font-size: clamp(0.55rem, 1.8vw, 0.85rem); letter-spacing: 2px; }
  .card-desc[data-v-2858e464]    { font-size: clamp(0.78rem, 2.2vw, 1.1rem); }
  .card-footer[data-v-2858e464]  { font-size: clamp(0.62rem, 1.5vw, 0.76rem); }

  .header[data-v-377255d8]       { padding: 0.8rem 1.2rem; }
  .header-logo[data-v-377255d8]  { height: 40px; }
  .header-slogan[data-v-377255d8] { font-size: 1.1rem; }
}

/* ============================================================
   RWD — Tablet portrait (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
  :root                          { --card-img-size: clamp(100px, 52vw, 240px); }

  .home[data-v-2858e464]         { padding: 1rem 0.8rem; }

  .card[data-v-2858e464]         { max-width: 100%; }

  .em-center-logo[data-v-2858e464] { width: clamp(32px, 8vw, 46px); height: clamp(32px, 8vw, 46px); }
  .em-title[data-v-2858e464]     { font-size: clamp(1.2rem, 6.5vw, 1.8rem); letter-spacing: 2px; }

  .label-tag[data-v-2858e464]    { font-size: clamp(0.55rem, 2.5vw, 0.85rem); letter-spacing: 1.5px; }
  .card-desc[data-v-2858e464]    { font-size: clamp(0.78rem, 3.2vw, 1.1rem); }
  .card-footer[data-v-2858e464]  { font-size: 0.72rem; padding: 0.55rem 0.8rem; }

  .card-body[data-v-2858e464]    { padding: 1rem 0.8rem; gap: 0.6rem; }

  .header[data-v-377255d8]       { padding: 0.7rem 1rem; gap: 0.7rem; }
  .header-logo[data-v-377255d8]  { height: 36px; }
  .header-slogan[data-v-377255d8] { font-size: 1rem; letter-spacing: 2px; }
}

/* ============================================================
   RWD — Mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  :root                          { --card-img-size: clamp(90px, 55vw, 200px); }

  .binary-col[data-v-2858e464]   { display: none; }

  .home[data-v-2858e464]         { padding: 0.8rem 0.6rem; min-height: calc(100vh - 60px); }

  .cards[data-v-2858e464]        { gap: 0.9rem; }

  .em-center-logo[data-v-2858e464] { width: clamp(28px, 8vw, 40px); height: clamp(28px, 8vw, 40px); }
  .em-title[data-v-2858e464]     { font-size: clamp(1.1rem, 7vw, 1.5rem); letter-spacing: 1.5px; }

  .label-tag[data-v-2858e464]    { font-size: clamp(0.55rem, 2.8vw, 0.82rem); letter-spacing: 1px; }
  .card-desc[data-v-2858e464]    { font-size: clamp(0.78rem, 3.5vw, 1.05rem); }
  .card-footer[data-v-2858e464]  { font-size: 0.68rem; padding: 0.5rem 0.7rem; gap: 0.4rem; }

  .card-body[data-v-2858e464]    { padding: 0.8rem 0.6rem; gap: 0.5rem; }

  .header[data-v-377255d8]       { padding: 0.6rem 0.8rem; gap: 0.6rem; }
  .header-logo[data-v-377255d8]  { height: 32px; }
  .header-slogan[data-v-377255d8] { font-size: 0.85rem; letter-spacing: 1px; }
}

/* ============================================================
   RWD — Small mobile (≤ 360px)
   ============================================================ */
@media (max-width: 360px) {
  .header-slogan[data-v-377255d8] { display: none; }
  .header-divider[data-v-377255d8] { display: none; }

  .em-title[data-v-2858e464]     { font-size: clamp(1rem, 8vw, 1.3rem); letter-spacing: 1px; }
  .label-tag[data-v-2858e464]    { font-size: clamp(0.55rem, 3vw, 0.78rem); }
  .card-desc[data-v-2858e464]    { font-size: clamp(0.78rem, 4vw, 1rem); }
  .card-footer[data-v-2858e464]  { font-size: 0.64rem; }
}
