/* UI kit — marketing site using OAKOrc tokens */
@import url('colors_and_type.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--oak-black); color: var(--oak-fog); font-family: var(--font-body), var(--font-sans-zh); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ─── Top bar ─────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(10,10,10,0.78); backdrop-filter: blur(16px) saturate(1.1); border-bottom: 1px solid #1F1F21; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.topbar-logo { height: 28px; }
.topbar nav { display: flex; gap: 32px; }
.topbar nav a { font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: .02em; color: #C7C7CB; text-decoration: none; position: relative; padding: 4px 0; transition: color .22s var(--ease-out); }
.topbar nav a:hover { color: var(--oak-fog); }
.topbar nav a.active { color: var(--oak-fire); }
.topbar nav a.active::after { content: ""; position: absolute; bottom: -6px; left: 0; right: 0; height: 2px; background: var(--oak-fire); }
.topbar .right { display: flex; gap: 14px; align-items: center; }
.topbar .lang { font-family: var(--font-mono); font-size: 11px; color: #8E8E93; letter-spacing: .08em; }
.topbar .lang b { color: var(--oak-fog); font-weight: 500; }

/* ─── Buttons ─────────────────────────────── */
.btn { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .02em; padding: 12px 22px; border-radius: 4px; border: 1.5px solid transparent; cursor: pointer; transition: all .22s var(--ease-out); display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.btn .arr { transition: transform .22s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--oak-fire); color: #fff; }
.btn-primary:hover { background: var(--oak-fire-hover); color: #fff; }
.btn-ghost-light { background: transparent; color: var(--oak-fog); border-color: var(--oak-fog); }
.btn-ghost-light:hover { background: var(--oak-fog); color: var(--oak-black); }
.btn-ghost-dark { background: transparent; color: var(--oak-black); border-color: var(--oak-black); }
.btn-ghost-dark:hover { background: var(--oak-black); color: var(--oak-fog); }
.btn-sm { padding: 8px 14px; font-size: 12px; }

/* ─── Sections ────────────────────────────── */
section { padding: 96px 0; position: relative; }
section.tight { padding: 64px 0; }
.section-tag { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.section-tag .num { font-family: var(--font-mono); font-size: 11px; color: var(--oak-fire); letter-spacing: .1em; }
.section-tag .bar { height: 1px; flex: none; width: 44px; background: var(--oak-fire); }
.section-tag .zh { font-family: var(--font-serif-zh); font-weight: 700; font-size: 15px; }
.section-tag .en { font-family: var(--font-display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #8E8E93; }

/* ─── Hero ────────────────────────────────── */
.hero { padding-top: 96px; padding-bottom: 120px; border-bottom: 1px solid #1F1F21; position: relative; overflow: hidden; }
.hero-kicker { display: inline-flex; align-items: center; gap: 12px; padding: 6px 14px 6px 6px; border: 1px solid #2E2E30; border-radius: 999px; font-family: var(--font-display); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: #C7C7CB; }
.hero-kicker .dot { width: 8px; height: 8px; background: var(--oak-fire); border-radius: 999px; }
.hero h1 { font-family: var(--font-serif-zh); font-weight: 900; font-size: clamp(48px, 7.2vw, 104px); line-height: 1.02; letter-spacing: 0.01em; margin: 28px 0 10px; color: var(--oak-fog); }
.hero h1 .fire { color: var(--oak-fire); }
.hero .h1-en { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.02em; color: #C7C7CB; margin-bottom: 32px; }
.hero .h1-en em { font-style: italic; color: var(--oak-fog); }
.hero .lede { max-width: 620px; font-size: 17px; line-height: 1.65; color: #C7C7CB; margin-bottom: 36px; font-family: var(--font-sans-zh); }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-actions .meta { font-family: var(--font-mono); font-size: 11px; color: #8E8E93; margin-left: 8px; }
.hero-mark { position: absolute; right: -80px; top: 20%; width: 520px; opacity: 0.06; pointer-events: none; transform: rotate(-6deg); }
.hero-mark svg { width: 100%; }
.hero-strip { display: flex; gap: 48px; padding: 20px 0; border-top: 1px solid #1F1F21; font-family: var(--font-display); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #8E8E93; overflow: hidden; white-space: nowrap; }
.hero-strip span.fire { color: var(--oak-fire); }

/* ─── Services ─────────────────────────────── */
.services { background: var(--oak-fog); color: var(--oak-black); }
.services .section-tag .en { color: var(--oak-tungsten); }
.services h2 { font-family: var(--font-serif-zh); font-weight: 900; font-size: clamp(40px, 5vw, 68px); line-height: 1.05; letter-spacing: 0.01em; max-width: 780px; margin: 0 0 16px; }
.services .sub { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--oak-tungsten); margin-bottom: 56px; font-style: italic; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1.5px solid var(--oak-black); }
.svc { border-right: 1.5px solid var(--oak-black); border-bottom: 1.5px solid var(--oak-black); padding: 28px 24px 32px; display: flex; flex-direction: column; min-height: 340px; background: var(--oak-fog); transition: background .22s var(--ease-out); cursor: pointer; position: relative; }
.svc:last-child { border-right: none; }
.svc:hover { background: var(--oak-black); color: var(--oak-fog); }
.svc:hover .svc-num { color: var(--oak-fire); }
.svc:hover .svc-en { color: #8E8E93; }
.svc:hover .svc-more { color: var(--oak-fire); }
.svc-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--oak-tungsten); margin-bottom: 36px; transition: color .22s var(--ease-out); }
.svc-mark { width: 32px; height: 32px; margin-bottom: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.svc-zh { font-family: var(--font-serif-zh); font-weight: 700; font-size: 26px; line-height: 1.15; margin-bottom: 4px; }
.svc-en { font-family: var(--font-display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--oak-tungsten); margin-bottom: 16px; transition: color .22s var(--ease-out); }
.svc p { font-family: var(--font-sans-zh); font-size: 13.5px; line-height: 1.65; color: inherit; opacity: .85; margin: 0 0 auto; }
.svc-more { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .04em; margin-top: 20px; color: var(--oak-black); display: flex; align-items: center; gap: 8px; transition: color .22s var(--ease-out); }

/* ─── Manifesto ────────────────────────────── */
.manifesto { background: var(--oak-black); border-bottom: 1px solid #1F1F21; }
.manifesto .inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; align-items: start; }
.manifesto h2 { font-family: var(--font-serif-zh); font-weight: 900; font-size: 44px; line-height: 1.1; margin: 0 0 16px; color: var(--oak-fog); }
.manifesto h2 .fire { color: var(--oak-fire); }
.manifesto .en { font-family: var(--font-display); font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: #8E8E93; }
.principles { display: grid; gap: 0; border-top: 1px solid #2E2E30; }
.principle { padding: 24px 0; border-bottom: 1px solid #2E2E30; display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: baseline; }
.principle .zh { font-family: var(--font-serif-zh); font-weight: 700; font-size: 28px; color: var(--oak-fog); }
.principle .en { font-family: var(--font-display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #8E8E93; margin-left: 10px; }
.principle p { font-family: var(--font-sans-zh); font-size: 15px; line-height: 1.7; color: #C7C7CB; margin: 0; }
.principle .n { font-family: var(--font-mono); font-size: 11px; color: var(--oak-fire); letter-spacing: .1em; }

/* ─── Work / case strip ───────────────────── */
.work { background: #070707; }
.work-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.work h2 { font-family: var(--font-serif-zh); font-weight: 900; font-size: 56px; line-height: 1.05; margin: 8px 0 0; color: var(--oak-fog); }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 16/10; background: #1A1A1A; cursor: pointer; transition: transform .42s var(--ease-out); }
.case:hover { transform: translateY(-4px); }
.case .art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.case .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0) 40%, rgba(10,10,10,0.85) 100%); }
.case .info { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; color: var(--oak-fog); }
.case .info .ttl { font-family: var(--font-serif-zh); font-weight: 700; font-size: 22px; }
.case .info .tags { font-family: var(--font-mono); font-size: 11px; color: #C7C7CB; letter-spacing: .04em; }
.case .badge { position: absolute; top: 16px; left: 16px; font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: 5px 10px; background: var(--oak-fire); color: #fff; border-radius: 3px; z-index: 2; }
.case .num { position: absolute; top: 16px; right: 20px; font-family: var(--font-mono); font-size: 11px; color: #8E8E93; z-index: 2; }

/* Stylized case art (CSS-only, no stock imagery) */
.art-1 { background: radial-gradient(circle at 30% 40%, #2A2A2B 0%, #0A0A0A 70%); }
.art-1::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 14px, rgba(232,93,47,0.06) 14px 15px); }
.art-1 .wordmark { font-family: var(--font-serif-zh); font-weight: 900; font-size: 88px; color: var(--oak-fog); letter-spacing: .04em; position: relative; }
.art-1 .wordmark span { color: var(--oak-fire); }
.art-2 { background: #F2F2F0; }
.art-2 .browser { width: 78%; height: 70%; background: #fff; border-radius: 4px; box-shadow: 0 10px 40px -12px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.art-2 .bar { height: 22px; background: #E5E5E3; display: flex; align-items: center; gap: 4px; padding: 0 10px; }
.art-2 .bar i { width: 6px; height: 6px; border-radius: 999px; background: #8E8E93; }
.art-2 .body { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.art-2 .body .h { height: 10px; width: 50%; background: #0A0A0A; }
.art-2 .body .p { height: 4px; background: #D1D1D3; }
.art-2 .body .p.sh { width: 70%; } .art-2 .body .p.sh2 { width: 85%; }
.art-2 .body .c { margin-top: 8px; height: 40px; background: #E85D2F; width: 30%; }
.art-3 { background: #0A0A0A; }
.art-3 .chart { width: 80%; height: 70%; position: relative; }
.art-3 .chart svg { width: 100%; height: 100%; }
.art-4 { background: linear-gradient(180deg, #1A1A1A 0%, #0A0A0A 100%); }
.art-4 .terminal { width: 80%; background: #060606; border: 1px solid #2E2E30; border-radius: 4px; font-family: var(--font-mono); font-size: 12px; padding: 14px 16px; color: #C7C7CB; line-height: 1.55; }
.art-4 .terminal .p { color: var(--oak-fire); }
.art-4 .terminal .d { color: #8E8E93; }

/* ─── Voice section ─────────────────────────── */
.voice { background: var(--oak-fog); color: var(--oak-black); }
.voice h2 { font-family: var(--font-serif-zh); font-weight: 900; font-size: 48px; line-height: 1.1; margin: 0 0 48px; max-width: 720px; }
.voice-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.voice-box { border: 1.5px solid; border-radius: 6px; padding: 24px 26px; background: #fff; }
.voice-box.bad { border-color: #D1D1D3; color: #8E8E93; }
.voice-box.good { border-color: var(--oak-black); color: var(--oak-black); }
.voice-box .mark { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 10px; }
.voice-box.bad .mark { color: var(--oak-neutral); }
.voice-box.good .mark { color: var(--oak-fire); }
.voice-box q { font-family: var(--font-sans-zh); font-size: 16px; line-height: 1.7; quotes: none; display: block; }
.voice-box.bad q { text-decoration: line-through; text-decoration-color: rgba(142,142,147,.4); }
.voice-scenario { font-family: var(--font-display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--oak-tungsten); margin-bottom: 12px; }

/* ─── Contact CTA ─────────────────────────── */
.cta-band { background: var(--oak-black); border-top: 1px solid #1F1F21; border-bottom: 1px solid #1F1F21; padding: 120px 0; position: relative; overflow: hidden; }
.cta-band .big { font-family: var(--font-serif-zh); font-weight: 900; font-size: clamp(60px, 10vw, 160px); line-height: .95; color: var(--oak-fog); letter-spacing: 0.01em; }
.cta-band .big .fire { color: var(--oak-fire); font-style: normal; }
.cta-band .sub { font-family: var(--font-display); font-size: 18px; font-style: italic; color: #8E8E93; margin-top: 16px; }
.cta-actions { margin-top: 36px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cta-actions .email { font-family: var(--font-mono); font-size: 14px; color: #C7C7CB; margin-left: 12px; }
.cta-actions .email b { color: var(--oak-fog); font-weight: 500; }

/* ─── Footer ──────────────────────────────── */
footer { background: #060606; color: #8E8E93; padding: 64px 0 32px; font-family: var(--font-body); font-size: 13px; }
footer .top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid #2E2E30; }
footer h4 { font-family: var(--font-display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #C7C7CB; margin: 0 0 14px; font-weight: 600; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { color: #C7C7CB; text-decoration: none; transition: color .22s var(--ease-out); }
footer a:hover { color: var(--oak-fire); }
footer .mark { height: 32px; margin-bottom: 14px; }
footer .lede { font-family: var(--font-sans-zh); font-size: 14px; color: #C7C7CB; line-height: 1.65; max-width: 320px; margin: 0 0 16px; }
footer .bottom { display: flex; justify-content: space-between; padding-top: 24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; }
footer .bottom .tagline { color: var(--oak-fire); }

/* ─── Utility ─────────────────────────────── */
.noscroll { overflow: hidden; }
/* ============================================
   Responsive — Mobile & Tablet breakpoints
   ============================================ */

/* Tablet & below (≤ 1024px) */
@media (max-width: 1024px) {
  .hero h1 { font-size: 72px; line-height: 1.05; }
  .hero { padding: 60px 32px; }
  header.topbar { padding: 16px 24px; }
}

/* Mobile landscape / Small tablet (≤ 768px) */
@media (max-width: 768px) {
  header.topbar {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 8px;
  }
  header.topbar nav ul,
  header.topbar nav {
    display: none;  /* 改成漢堡選單前，先隱藏 nav */
  }
  header.topbar .logo,
  header.topbar img { max-height: 32px; }

  .hero {
    padding: 40px 20px;
    min-height: auto;
  }
  .hero h1 {
    font-size: 44px !important;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  .hero h2,
  .hero .subtitle,
  .hero [class*="subtitle"] {
    font-size: 22px;
    line-height: 1.3;
  }
  .hero p {
    font-size: 15px;
    line-height: 1.6;
  }
  .hero .cta,
  .hero a.btn,
  .hero button {
    font-size: 15px;
    padding: 12px 20px;
  }
  .hero .cta-row,
  .hero .buttons {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Prevent horizontal overflow */
  html, body { overflow-x: hidden; }
  img, svg, video { max-width: 100%; height: auto; }
}

/* Small mobile (≤ 480px) */
@media (max-width: 480px) {
  .hero h1 { font-size: 36px !important; }
  .hero h2 { font-size: 18px; }
  .hero { padding: 32px 16px; }
  header.topbar { padding: 10px 14px; }
}