/* 可得科技 Kode — kode.tw */
:root {
  --ink: #0E1420;
  --ink-2: #161E2C;
  --ink-line: #2A3446;
  --paper: #FFFFFF;
  --mist: #F3F5F9;
  --line: #DDE2EA;
  --orange: #FF5A36;
  --orange-text: #C2391A; /* 白底上的橘色文字（對比足夠） */
  --text-muted: #4A5262;
  --text-on-ink: #C9D0DC;
  --font-en: 'Space Grotesk', 'Noto Sans TC', sans-serif;
  --font-zh: 'Noto Sans TC', 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', 'Noto Sans TC', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-zh);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure { margin: 0; }
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--orange-text); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.stack-lg { display: flex; flex-direction: column; gap: 48px; }
.mono { font-family: var(--font-mono); font-size: 14px; }
.accent { color: var(--orange); }
.accent-dark { color: var(--orange-text); }
.muted { color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  padding: 14px 26px;
  border-radius: 12px;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { font-size: 15px; padding: 10px 20px; border-radius: 10px; }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { color: var(--ink); background: #FF6F4F; }
.btn-ghost { color: #fff; border: 1px solid #3A4558; padding: 13px 24px; }
.btn-ghost:hover { color: #fff; border-color: #6E7A8F; }
.btn-ink { background: var(--ink); color: #fff; font-size: 17px; padding: 16px 30px; }
.btn-ink:hover { color: #fff; background: #1D2738; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 20px; height: 28px; color: #fff; }
.brand-en { font-family: var(--font-en); font-weight: 700; font-size: 22px; letter-spacing: 4px; }
.brand-zh { font-size: 14px; font-weight: 500; letter-spacing: 3px; color: #A9B3C4; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.main-nav a:not(.btn) { color: #E8ECF3; text-decoration: none; font-size: 15px; padding: 10px 0; }
.main-nav a:not(.btn):hover { color: var(--orange); }

/* Hero */
.hero { background: var(--ink); color: #fff; }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 96px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.25; font-weight: 900; letter-spacing: 1px; }
.lead { font-size: 18px; line-height: 1.8; color: var(--text-on-ink); max-width: 34em; }
.hero-visual { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }

.terminal { width: 100%; max-width: 420px; border-radius: 20px; background: var(--ink-2); border: 1px solid var(--ink-line); overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--ink-line); }
.terminal-bar span { width: 10px; height: 10px; background: #3A4558; display: block; }
.terminal-bar span.on { background: var(--orange); }
.terminal-bar em { margin-left: 8px; font-style: normal; font-family: var(--font-mono); font-size: 13px; color: #A9B3C4; }
.terminal-body { padding: 24px 22px 28px; font-family: var(--font-mono); font-size: 15px; line-height: 2.1; color: #E8ECF3; }
.terminal-body p { white-space: pre; }
.terminal-body b { color: #6E7A8F; font-weight: 500; }
.terminal-body i { font-style: normal; }
.terminal-body .ok { color: #3DDC97; }
.cursor { display: inline-block; width: 10px; height: 18px; background: var(--orange); vertical-align: -3px; margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } html { scroll-behavior: auto; } }

/* Sections */
.section { padding: 96px 0; scroll-margin-top: 64px; }
.section-mist { background: var(--mist); }
.section-head { display: flex; flex-direction: column; gap: 12px; }
.kicker { display: flex; align-items: center; gap: 10px; font-family: var(--font-en); font-weight: 700; font-size: 14px; letter-spacing: 3px; color: var(--text-muted); }
.kicker::before { content: ""; width: 10px; height: 10px; background: var(--orange); display: block; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.3; font-weight: 900; }

/* Service cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { border-radius: 20px; padding: 40px 36px; display: flex; flex-direction: column; gap: 20px; }
.card h3 { font-size: 28px; line-height: 1.35; font-weight: 900; }
.card-dark { background: var(--ink); color: #fff; }
.card-dark .card-desc { color: var(--text-on-ink); }
.card-light { background: var(--mist); }
.card-light .card-desc { color: var(--text-muted); }
.pixel-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pixel-list li { display: flex; gap: 12px; align-items: baseline; }
.pixel-list li::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; transform: translateY(-2px); }
.card-dark .pixel-list li { color: #E8ECF3; }
.card-dark .pixel-list li::before { background: var(--orange); }
.card-light .pixel-list li::before { background: var(--ink); }

.tags { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { font-family: var(--font-mono); font-size: 14px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); }

/* Process */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { border-radius: 18px; background: #fff; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step h3 { font-size: 20px; font-weight: 900; }
.step p:last-child { font-size: 15px; color: var(--text-muted); }
.step-no { font-family: var(--font-en); font-size: 40px; line-height: 1; font-weight: 700; }
.step-dark { background: var(--ink); color: #fff; }
.step-dark p:last-child { color: var(--text-on-ink); }

/* About */
.about-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.about-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-text .muted { max-width: 34em; }
.about-facts { flex: 1 1 360px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fact { border-radius: 18px; border: 1px solid var(--line); padding: 24px; }
.fact .muted { margin-top: 6px; font-size: 15px; }
.fact-num { font-family: var(--font-en); font-size: 44px; line-height: 1.1; font-weight: 700; }
.fact-num small { font-size: 20px; }
.fact-wide { grid-column: span 2; border: none; background: var(--mist); display: flex; align-items: center; gap: 16px; }
.fact-wide .muted { margin-top: 0; }
.fact-mark { width: 22px; height: 31px; flex-shrink: 0; color: var(--ink); }

/* CTA */
.cta { background: var(--orange); color: var(--ink); scroll-margin-top: 64px; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: 80px; padding-bottom: 80px; }
.cta-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta-text h2 { font-size: clamp(28px, 3.6vw, 44px); }
.cta-text p { font-size: 17px; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.qr { background: #fff; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qr img { display: block; width: 148px; height: 148px; }
.qr figcaption { font-size: 13px; font-weight: 700; }

/* Footer */
.site-footer { background: var(--ink); color: #A9B3C4; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.footer-inner > div { display: flex; flex-direction: column; gap: 6px; }
.footer-name { color: #fff; font-weight: 700; }
.footer-name.en { font-family: var(--font-en); font-weight: 500; }

/* Phone */
@media (max-width: 640px) {
  .header-inner { justify-content: center; }
  .main-nav { justify-content: center; gap: 4px 18px; }
  .hero-inner { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .section { padding: 64px 0; }
  .card { padding: 32px 24px; }
  .card h3 { font-size: 24px; }
  .terminal-body { font-size: 14px; }
  .fact-wide { grid-column: span 2; }
  .cta-inner { padding-top: 56px; padding-bottom: 56px; }
  .site-header { position: static; }
}
