/* ============================================================
   肯姆資訊 Kam Information v7 — "Teal Enterprise"
   Brand colors lifted from the original K.I logo:
   teal #0a9da1 primary · yellow #e6cf1c accent (sparing)
   Light + airy · network signature visual · clean SI layout
============================================================ */

:root {
  --bg: #ffffff;
  --tint: #f1faf9;
  --tint-2: #e6f6f4;
  --ink: #0c1f1e;
  --ink-70: rgba(12,31,30,0.70);
  --ink-50: rgba(12,31,30,0.50);
  --ink-38: rgba(12,31,30,0.38);
  --ink-25: rgba(12,31,30,0.25);
  --line: rgba(12,31,30,0.10);
  --line-soft: rgba(12,31,30,0.06);

  --teal: #0a9da1;
  --teal-deep: #07807f;
  --teal-lt: #4fcfc9;
  --teal-soft: #d9f1ee;
  --yellow: #e6cf1c;
  --navy: #062b2c;        /* deep teal anchor */

  --r: 16px;
  --shadow: 0 1px 2px rgba(12,31,30,0.04), 0 14px 40px rgba(10,90,90,0.08);
  --shadow-h: 0 2px 6px rgba(12,31,30,0.06), 0 22px 56px rgba(10,90,90,0.15);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Noto Sans TC', 'Helvetica Neue', Helvetica, 'PingFang TC', sans-serif;
  font-weight: 400; letter-spacing: 0.004em;
}
.mono { font-family: 'IBM Plex Mono', 'SF Mono', ui-monospace, monospace; }

.shell { max-width: 1280px; margin: 0 auto; padding-left: clamp(1.25rem, 4vw, 3.5rem); padding-right: clamp(1.25rem, 4vw, 3.5rem); }

/* ---- header ---- */
.hdr { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,0.82); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line-soft); }
.hdr .in { display: flex; align-items: center; justify-content: space-between; height: 72px; max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3.5rem); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.brand .nm { font-size: 15px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); padding-left: 13px; border-left: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 32px; font-size: 13.5px; }
.nav a { color: var(--ink-50); text-decoration: none; transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav .cta { padding: 9px 20px; background: var(--teal); color: #fff !important; border-radius: 8px; transition: background 0.2s; }
.nav .cta:hover { background: var(--teal-deep); }
@media (max-width: 900px) { .nav { display: none; } .brand .nm { display: none; } }

/* ---- labels & type ---- */
.kicker { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ''; width: 22px; height: 1px; background: var(--teal); }
.kicker.ctr { justify-content: center; }
.kicker.mut { color: var(--ink-38); } .kicker.mut::before { background: var(--ink-25); }
.kicker.lt { color: rgba(255,255,255,0.75); } .kicker.lt::before { background: rgba(255,255,255,0.5); }

.d-xxl { font-weight: 300; font-size: clamp(40px, 6vw, 92px); line-height: 1.02; letter-spacing: -0.04em; }
.d-xl  { font-weight: 300; font-size: clamp(30px, 4vw, 62px); line-height: 1.05; letter-spacing: -0.034em; }
.d-l   { font-weight: 300; font-size: clamp(24px, 2.7vw, 42px); line-height: 1.1; letter-spacing: -0.026em; }
.d-m   { font-weight: 500; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.3; letter-spacing: -0.014em; }
.lead  { font-weight: 300; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.75; color: var(--ink-70); }
.body  { font-weight: 400; font-size: 14.5px; line-height: 1.9; color: var(--ink-50); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 11px; padding: 15px 30px; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; border: 1px solid transparent; border-radius: 9px; transition: all 0.2s; cursor: pointer; text-decoration: none; }
.btn-p { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-p:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn-g { background: rgba(255,255,255,0.6); color: var(--ink); border-color: var(--line); }
.btn-g:hover { border-color: var(--ink-50); background: #fff; }
.btn-w { background: #fff; color: var(--teal-deep); border-color: transparent; }
.btn-w:hover { background: var(--teal-soft); }
.link { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; color: var(--teal); text-decoration: none; transition: gap 0.2s; }
.link:hover { gap: 15px; }
.link.lt { color: #fff; }

/* ---- sections ---- */
.sec { padding-top: clamp(64px, 8vw, 130px); padding-bottom: clamp(64px, 8vw, 130px); }
.sec-tint { background: var(--tint); }

/* ============================================================
   HERO
============================================================ */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: 0; }
.hero-in { position: relative; z-index: 1; padding-top: clamp(72px, 11vw, 168px); padding-bottom: clamp(72px, 11vw, 168px); }
.hero-in .copy { max-width: 720px; }

/* ============================================================
   STATS BAND (navy)
============================================================ */
.stats { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(36px,4vw,56px) clamp(16px,2vw,32px); border-right: 1px solid rgba(255,255,255,0.12); }
.stat:last-child { border-right: none; }
.stat .n { font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: 200; font-size: clamp(42px, 4.6vw, 72px); line-height: 0.9; letter-spacing: -0.05em; }
.stat .n .ac { color: var(--teal-lt); }
.stat .n.sm { font-size: clamp(24px, 2.6vw, 40px); }
.stat .l { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 16px; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2){border-right:none;} .stat:nth-child(1),.stat:nth-child(2){border-bottom:1px solid rgba(255,255,255,0.12);} }

/* ============================================================
   SOLUTIONS GRID
============================================================ */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.6vw, 26px); }
.sol { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.22s, box-shadow 0.22s; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.sol:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.sol .pic { aspect-ratio: 16/10; overflow: hidden; background: var(--tint); }
.sol .pic img { width: 100%; height: 100%; object-fit: cover; }
.sol .bd { padding: clamp(22px,2vw,32px); display: flex; flex-direction: column; flex: 1; }
.sol .no { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--teal); letter-spacing: 0.08em; }
.sol .ti { font-size: clamp(18px,1.5vw,22px); font-weight: 500; margin-top: 14px; letter-spacing: -0.014em; }
.sol .de { font-size: 13px; line-height: 1.85; color: var(--ink-50); font-weight: 300; margin-top: 14px; flex: 1; }
.sol .go { margin-top: 20px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--teal); display: inline-flex; align-items: center; gap: 8px; transition: gap 0.2s; }
.sol:hover .go { gap: 14px; }
@media (max-width: 900px) { .sol-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sol-grid { grid-template-columns: 1fr; } }

/* ============================================================
   STRENGTHS
============================================================ */
.str-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem,3vw,3rem) clamp(2rem,4vw,4.5rem); }
.str .no { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--teal); letter-spacing: 0.08em; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.str .ti { font-size: clamp(18px,1.6vw,22px); font-weight: 500; letter-spacing: -0.014em; }
.str .de { font-size: 13.5px; line-height: 1.9; color: var(--ink-50); font-weight: 300; margin-top: 12px; }
@media (max-width: 820px) { .str-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ============================================================
   PROCESS — numbered steps with connector
============================================================ */
.proc { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(1rem,2vw,1.75rem); position: relative; }
.proc-step { position: relative; padding-top: 30px; border-top: 2px solid var(--line); }
.proc-step.lit { border-top-color: var(--teal); }
.proc-step .pn { position: absolute; top: -13px; left: 0; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-50); }
.proc-step.lit .pn { border-color: var(--teal); color: var(--teal); }
.proc-step .pt { font-size: clamp(16px,1.4vw,19px); font-weight: 500; letter-spacing: -0.01em; }
.proc-step .pe { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-38); margin-top: 6px; }
.proc-step .pd { font-size: 12.5px; line-height: 1.8; color: var(--ink-50); font-weight: 300; margin-top: 14px; }
@media (max-width: 860px) { .proc { grid-template-columns: 1fr; gap: 0; } .proc-step { border-top: none; border-left: 2px solid var(--line); padding: 6px 0 28px 24px; } .proc-step.lit { border-left-color: var(--teal); } .proc-step .pn { top: 0; left: -13px; } }

/* ============================================================
   TECH STACK — grouped chips
============================================================ */
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px,1.6vw,24px); }
.stack-col { border-top: 2px solid var(--teal); padding-top: 22px; }
.stack-col .h { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.stack-col .he { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-38); margin-top: 6px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12.5px; color: var(--ink-70); background: var(--tint); border: 1px solid var(--line); border-radius: 7px; padding: 7px 12px; font-weight: 400; }
.chip.key { background: var(--teal-soft); border-color: transparent; color: var(--teal-deep); font-weight: 500; }
@media (max-width: 860px) { .stack-grid { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; } }
@media (max-width: 520px) { .stack-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CLIENTS
============================================================ */
.cli { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cli-i { padding: clamp(24px,2.4vw,36px) clamp(18px,2vw,28px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 170px; display: flex; flex-direction: column; transition: background 0.2s; }
.cli-i:hover { background: var(--tint); }
.cli-i .c { font-family:'IBM Plex Mono', monospace; font-size:10px; letter-spacing:0.15em; text-transform:uppercase; color: var(--teal); }
.cli-i .n { font-size: 17px; font-weight: 500; line-height: 1.35; margin-top: auto; letter-spacing: -0.01em; }
.cli-i .m { font-family:'IBM Plex Mono', monospace; font-size:11px; color: var(--ink-38); margin-top: 9px; }
@media (max-width: 880px) { .cli { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cli { grid-template-columns: 1fr; } }

/* ============================================================
   CLOSING NETWORK SECTION (navy + globe)
============================================================ */
.close { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.close .globe { position: absolute; right: -8%; top: 50%; transform: translateY(-50%); width: min(760px, 62vw); opacity: 0.9; pointer-events: none; }
.close-in { position: relative; z-index: 1; padding: clamp(80px,11vw,170px) 0; }

/* ---- footer ---- */
.ft { background: var(--navy); color: #fff; padding: clamp(56px,7vw,100px) 0 36px; border-top: 1px solid rgba(255,255,255,0.1); }
.ft img { height: 30px; width: auto; margin-bottom: 26px; }
.ft a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.ft a:hover { color: var(--teal-lt); }

::selection { background: var(--teal); color: #fff; }
img { display: block; max-width: 100%; }

/* ============================================================
   SUBPAGE — page hero
============================================================ */
.phero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.phero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, #fff 30%, var(--tint) 100%); z-index: 0; }
.phero::after { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(7,80,80,0.035) 0 1px, transparent 1px 40px), repeating-linear-gradient(90deg, rgba(7,80,80,0.035) 0 1px, transparent 1px 40px); mask-image: radial-gradient(120% 90% at 90% 0%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(120% 90% at 90% 0%, #000 20%, transparent 75%); z-index: 0; }
.phero-in { position: relative; z-index: 1; padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(48px, 6vw, 88px); }
.phero .crumb { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-38); margin-bottom: 24px; }
.phero .crumb b { color: var(--teal); font-weight: 500; }

/* ============================================================
   SPEC TABLE (company facts)
============================================================ */
.spec-list { border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding: 22px 0; border-bottom: 1px solid var(--line); }
.spec-row .k { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-38); padding-top: 3px; }
.spec-row .v { font-size: 15.5px; line-height: 1.7; color: var(--ink); font-weight: 400; }
.spec-row .v .sub { color: var(--ink-50); font-size: 13.5px; }
@media (max-width: 680px) { .spec-row { grid-template-columns: 1fr; gap: 6px; } }

/* ============================================================
   VERTICAL TIMELINE (about)
============================================================ */
.vtl { border-left: 2px solid var(--line); margin-left: 6px; }
.vtl-i { position: relative; padding: 0 0 clamp(30px,3.5vw,46px) clamp(26px,3vw,40px); }
.vtl-i:last-child { padding-bottom: 0; }
.vtl-i::before { content:''; position:absolute; left:-7px; top:5px; width:12px; height:12px; border-radius:50%; background:#fff; border:2px solid var(--ink-25); }
.vtl-i.key::before { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.vtl-i .y { font-family:'IBM Plex Mono', monospace; font-size:12px; letter-spacing:0.06em; color: var(--teal); }
.vtl-i .r { font-size:13px; color: var(--ink-38); margin-left:8px; }
.vtl-i .t { font-size: clamp(17px,1.5vw,21px); font-weight: 500; margin-top: 8px; letter-spacing:-0.01em; }
.vtl-i .d { font-size: 13.5px; line-height: 1.85; color: var(--ink-50); font-weight:300; margin-top: 8px; max-width: 580px; }

/* ============================================================
   SERVICE DETAIL ROWS
============================================================ */
.svc { display: grid; grid-template-columns: 64px 1.1fr 1.6fr; gap: clamp(1.5rem,3vw,3.5rem); padding: clamp(34px,4vw,56px) 0; border-bottom: 1px solid var(--line); align-items: start; scroll-margin-top: 90px; }
.svc:first-child { border-top: 1px solid var(--line); }
.svc .idx { font-family:'IBM Plex Mono', monospace; font-size: 14px; color: var(--teal); letter-spacing: 0.05em; padding-top: 6px; }
.svc .hd .t { font-size: clamp(22px,2vw,30px); font-weight: 500; letter-spacing: -0.02em; }
.svc .hd .e { font-family:'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-38); margin-top: 10px; }
.svc .bd p { font-size: 14.5px; line-height: 1.95; color: var(--ink-70); font-weight: 300; margin: 0 0 18px; }
.svc .bd ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc .bd li { font-size: 12.5px; color: var(--ink-70); background: var(--tint); border: 1px solid var(--line); border-radius: 7px; padding: 7px 12px; }
@media (max-width: 820px) { .svc { grid-template-columns: 1fr; gap: 1rem; } .svc .idx { padding-top: 0; } }

/* ============================================================
   FEATURE PANELS (security)
============================================================ */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(28px,3vw,44px); box-shadow: var(--shadow); }
.panel.teal { background: var(--navy); color: #fff; border-color: transparent; }
.panel.teal .body { color: rgba(255,255,255,0.72); }
.bullet { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bullet:last-child { border-bottom: none; }
.bullet .bi { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-deep); display: grid; place-items: center; font-size: 12px; font-weight: 600; margin-top: 1px; }
.bullet .bt { font-size: 14.5px; line-height: 1.7; color: var(--ink-70); }
.bullet .bt b { color: var(--ink); font-weight: 600; }

/* ============================================================
   PROJECT TABLE
============================================================ */
.ptable { width: 100%; border-collapse: collapse; }
.ptable thead th { text-align: left; font-family:'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-38); font-weight: 400; padding: 0 16px 16px 0; border-bottom: 1px solid var(--ink-25); }
.ptable tbody td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable tbody tr { transition: background 0.15s; }
.ptable tbody tr:hover { background: var(--tint); }
.ptable .cat { font-family:'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.08em; color: var(--teal); white-space: nowrap; }
.ptable .pj { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.ptable .cl { font-size: 13.5px; color: var(--ink-70); }
.ptable .ty { font-size: 12.5px; color: var(--ink-50); }
@media (max-width: 720px) { .ptable thead { display: none; } .ptable tbody td { display: block; padding: 2px 0; border: none; } .ptable tbody tr { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); } .ptable .pj { margin: 6px 0 4px; } }

/* ============================================================
   CONTACT
============================================================ */
.cinfo { display: flex; flex-direction: column; gap: 0; }
.cinfo .row { padding: 24px 0; border-bottom: 1px solid var(--line); }
.cinfo .row:first-child { border-top: 1px solid var(--line); }
.cinfo .k { font-family:'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-38); margin-bottom: 10px; }
.cinfo .v { font-size: 17px; font-weight: 400; line-height: 1.6; }
.cinfo .v a { color: var(--teal); text-decoration: none; }
.cinfo .v a:hover { color: var(--teal-deep); }
.field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.field label { font-size: 12.5px; font-weight: 500; color: var(--ink-70); }
.field input, .field textarea, .field select { font-family: inherit; font-size: 14.5px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 13px 15px; transition: border-color 0.2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); }
.field textarea { resize: vertical; min-height: 130px; }
