/* ============================================================
   GeneZero Technology — 專思科技
   Official company website
   File: assets/css/main.css
   Self-contained. No build step. Plain CSS3.
   Design: restrained, corporate, engineering-driven.
   Related to BeeGeeBox visually but simpler and more corporate.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", "PingFang HK", "PingFang TC", "Microsoft JhengHei",
    "Noto Sans TC", sans-serif;

  /* Color — calm neutral corporate canvas */
  --bg: #fafaf8;            /* page background (warm off-white) */
  --surface: #ffffff;       /* cards / panels */
  --surface-2: #f3f4f1;     /* subtle inset / tint */
  --ink: #202725;           /* primary text (near-charcoal) */
  --ink-soft: #46504c;      /* secondary text */
  --muted: #717c77;         /* tertiary text */
  --line: #e3e7e3;          /* hairlines */
  --line-strong: #c9d0cb;   /* stronger borders */

  --accent: #14a5b8;        /* muted teal — used sparingly */
  --accent-ink: #0c7d8d;    /* accent for text on light */
  --accent-soft: #e6f4f4;   /* accent tint surface */
  --on-accent: #ffffff;

  --focus: #0c7d8d;         /* focus ring */

  /* Layout */
  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 48px);
  --sec-gap: clamp(64px, 8vw, 104px);
  --nav-h: 68px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(32, 39, 37, 0.05);
  --shadow-md: 0 1px 2px rgba(32, 39, 37, 0.05),
    0 18px 40px -30px rgba(32, 39, 37, 0.22);
  --shadow-lg: 0 2px 6px rgba(32, 39, 37, 0.05),
    0 34px 70px -40px rgba(32, 39, 37, 0.28);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 240ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 300;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  transition: top 180ms ease;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Type ---------- */
h1, h2, h3 {
  font-weight: 640;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.12rem; }

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
  color: var(--ink-soft);
  max-width: 60ch;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 620;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section { padding: var(--sec-gap) 0; }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-weight: 580;
  font-size: 0.98rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover { background: #0b100e; }

.btn--accent {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--accent:hover { background: #0e94a6; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--surface-2); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex: none; display: block; }
.brand__name {
  font-weight: 640;
  letter-spacing: -0.01em;
  font-size: 1.02rem;
  line-height: 1.15;
}

.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 520;
}
.site-nav a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 3px;
}
.lang-switch a {
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 560;
  color: var(--muted);
}
.lang-switch a:hover { color: var(--ink); text-decoration: none; background: var(--surface-2); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.lang-switch a[aria-current="true"]:hover { background: var(--ink); color: var(--bg); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  color: var(--ink);
  line-height: 0;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 78% 70% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 70% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 560;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.hero__badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.hero h1 { max-width: 15ch; margin-bottom: 22px; }
.hero .lead { margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust {
  margin-top: clamp(44px, 6vw, 60px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.hero__trust span {
  font-size: 0.84rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__trust span::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* ============================================================
   About — mission / focus / direction
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 28px);
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(22px, 3vw, 30px);
}
.about-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 640;
  margin-bottom: 18px;
}
.about-card h3 { margin-bottom: 10px; }
.about-card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ============================================================
   Product
   ============================================================ */
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.product-card__inner {
  padding: clamp(28px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.product-card__icon {
  width: 88px; height: 88px;
  border-radius: 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 10px;
  margin-bottom: 24px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 620;
  margin-bottom: 18px;
}
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.product-card h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.product-card__sub { color: var(--accent-ink); font-weight: 580; margin-bottom: 14px; }
.product-card__body { color: var(--ink-soft); margin-bottom: 22px; }
.product-card__foot { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }

/* Product visual tile */
.product-card__visual {
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 120% at 100% 0%, var(--accent-soft) 0%, transparent 50%),
    var(--surface-2);
  border: 1px solid var(--line);
  min-height: 280px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}
.visual-bar {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--line-strong);
  opacity: 0.35;
  margin-bottom: 10px;
}
.visual-bar:nth-child(2) { width: 78%; opacity: 0.5; }
.visual-bar:nth-child(3) { width: 56%; opacity: 0.42; }
.visual-rule { width: 100%; border-top: 1px dashed var(--line-strong); margin: 6px 0; opacity: 0.5; }
.visual-accent { width: 6px; height: 34px; border-radius: 3px; background: var(--accent); opacity: 0.85; }

/* ============================================================
   Approach
   ============================================================ */
.approach-list { display: grid; gap: 0; }
.approach-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(20px, 4vw, 40px);
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.approach-item:last-child { border-bottom: 1px solid var(--line); }
.approach-item__num { font-size: 0.85rem; font-weight: 620; color: var(--accent-ink); letter-spacing: 0.08em; }
.approach-item h3 { margin-bottom: 8px; }
.approach-item p { color: var(--ink-soft); max-width: 56ch; }

/* ============================================================
   Roadmap
   ============================================================ */
.roadmap {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 44px);
}
.roadmap__lead { color: var(--ink-soft); max-width: 62ch; margin-bottom: 8px; }
.roadmap__list { margin-top: 26px; display: grid; gap: 14px; }
.roadmap__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.roadmap__item::before {
  content: "";
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  border: 1px solid var(--accent);
  margin-top: 4px;
  box-shadow: inset 0 0 0 4px var(--bg);
  background: var(--accent);
}
.roadmap__note {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 70ch;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(24px, 3vw, 32px);
}
.contact-card h3 { margin-bottom: 10px; }
.contact-card p { color: var(--ink-soft); margin-bottom: 16px; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 620;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg);
}
.contact-email:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.site-footer__top {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 56px) var(--pad) 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: clamp(24px, 5vw, 48px);
}
.site-footer h4 {
  font-size: 0.82rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-about p { color: var(--ink-soft); font-size: 0.94rem; max-width: 34ch; margin-top: 14px; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { color: var(--ink-soft); font-size: 0.96rem; }
.footer-col a:hover { color: var(--ink); }
.site-footer__bottom {
  border-top: 1px solid var(--line);
}
.site-footer__bottom-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer__bottom .lang-switch a[aria-current="true"] { background: var(--muted); color: var(--bg); }

/* ============================================================
   Privacy page
   ============================================================ */
.page-hero {
  padding: clamp(44px, 7vw, 72px) 0 clamp(32px, 5vw, 48px);
}
.page-hero h1 { max-width: 24ch; margin-bottom: 16px; }
.page-hero p { color: var(--ink-soft); }
.page-body { padding-bottom: clamp(56px, 8vw, 96px); }
.page-body__inner { max-width: 720px; }
.notice {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 28px;
}
.prose p { color: var(--ink-soft); max-width: 66ch; margin-bottom: 1.2em; }
.prose h2 { font-size: 1.3rem; margin: 1.6em 0 0.6em; }

.breadcrumb { margin-bottom: 20px; font-size: 0.9rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-ink); }

/* ============================================================
   Reveal (subtle scroll-in) — disabled for reduced motion
   ============================================================ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .product-card__inner { grid-template-columns: 1fr; }
  .product-card__visual { min-height: 220px; }
  .about-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-header__actions {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--pad) 18px;
    display: none;
    flex-direction: column;
    gap: 8px;
  }
  .site-header__actions.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { display: block; padding: 12px; }
  .lang-switch { align-self: flex-start; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; }
  .approach-item { grid-template-columns: 1fr; gap: 8px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .site-footer__top { grid-template-columns: 1fr; }
  .contact-email { font-size: 1.02rem; word-break: break-all; }
}
