/* Company homepage — design token 子集（對齊 EPR.Storefront globals.css / design-tokens.css） */
:root {
  --ds-primary: #0f4c8a;
  --ds-primary-hover: #1364ad;
  --ds-primary-soft: #e6f0fa;
  --ds-primary-deep: #0a3560;
  --ds-accent: #2a6f96;
  --ds-bg: #f6fafd;
  --ds-surface: #fcfdfd;
  --ds-text: #1f3447;
  --ds-muted: #3a4a5a;
  --ds-border: #d5e3ef;
  --ds-success: #047857;
  --ds-highlight: #c98a36;
  --ds-radius: 10px;
  --ds-radius-lg: 14px;
  --ds-shadow: 0 2px 4px rgba(15, 76, 138, 0.06), 0 6px 18px rgba(15, 76, 138, 0.06);
  --ds-shadow-lg: 0 6px 14px rgba(15, 76, 138, 0.08), 0 14px 38px rgba(15, 76, 138, 0.1);
  --ds-font-sans: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
    "微軟正黑體", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--ds-font-sans);
  background: var(--ds-bg);
  color: var(--ds-text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--ds-primary);
  text-decoration: none;
}

a:hover {
  color: var(--ds-primary-hover);
  text-decoration: underline;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem 1.75rem;
  background: var(--ds-surface);
  border-bottom: 1px solid var(--ds-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  flex-shrink: 0;
}

.brand img {
  display: block;
  height: 96px;
  width: auto;
  max-width: min(420px, 58vw);
  object-fit: contain;
}

@media (max-width: 640px) {
  .header {
    padding: 0.65rem 1rem;
  }

  .brand img {
    height: 64px;
  }
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.hero {
  background: linear-gradient(135deg, var(--ds-primary-deep), var(--ds-primary) 55%, var(--ds-accent));
  color: #fff;
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

.hero p {
  margin: 0 auto 1.75rem;
  max-width: 40rem;
  opacity: 0.95;
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: var(--ds-radius);
  font-weight: 600;
  text-decoration: none !important;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.btn-primary {
  background: #fff;
  color: var(--ds-primary-deep);
  box-shadow: var(--ds-shadow);
}

.btn-primary:hover {
  background: var(--ds-primary-soft);
  color: var(--ds-primary-deep);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section h2 {
  margin: 0 0 1rem;
  color: var(--ds-primary-deep);
  font-size: 1.5rem;
}

.section p.lead {
  color: var(--ds-muted);
  margin: 0 0 1.5rem;
  max-width: 42rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--ds-shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  color: var(--ds-primary);
  font-size: 1.1rem;
}

.card p {
  margin: 0 0 1rem;
  color: var(--ds-muted);
  font-size: 0.95rem;
}

.card .btn {
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  background: var(--ds-primary);
  color: #fff;
}

.card .btn:hover {
  background: var(--ds-primary-hover);
  color: #fff;
}

.footer {
  border-top: 1px solid var(--ds-border);
  padding: 1.5rem;
  text-align: center;
  color: var(--ds-muted);
  font-size: 0.9rem;
  background: var(--ds-surface);
}
