/* G-System static site — premium dark B2B (admin token aligned) */
:root {
  --bg: #0f1117;
  --bg-elevated: #141821;
  --card: #1a1f2e;
  --card-hover: #1e2436;
  --border: #2d3748;
  --border-strong: #374151;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --text-faint: #6b7280;
  --white: #ffffff;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-soft: rgba(99, 102, 241, 0.14);
  --accent-glow: rgba(99, 102, 241, 0.35);
  --success: #34d399;
  --danger: #f87171;
  --danger-bg: rgba(127, 29, 29, 0.35);
  --danger-border: #7f1d1d;
  --warn-bg: rgba(120, 53, 15, 0.35);
  --warn-border: #92400e;
  --warn-text: #fbbf24;
  --ok-bg: rgba(6, 78, 59, 0.4);
  --ok-border: #065f46;
  --ok-text: #6ee7b7;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
  --max: 1120px;
  --header-h: 72px;
  --grid-line: rgba(99, 102, 241, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #a5b4fc; text-decoration: none; }
a:hover { color: #c7d2fe; }
h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
  font-weight: 700;
}
p { color: var(--text-muted); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
body.using-mouse *:focus { outline: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 17, 23, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1rem;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: var(--white); font-weight: 700; font-size: 1.125rem;
  letter-spacing: -0.03em;
}
.logo:hover { color: var(--white); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, #6366f1 0%, #4f46e5 55%, #312e81 100%);
  color: var(--white);
  display: grid; place-items: center;
  font-size: 0.9rem; font-weight: 800;
  box-shadow: 0 0 0 1px rgba(165, 180, 252, 0.25), 0 8px 20px rgba(99, 102, 241, 0.35);
}
.nav { display: flex; align-items: center; gap: 0.2rem; }
.nav a {
  color: var(--text-muted); font-size: 0.9375rem; font-weight: 500;
  padding: 0.5rem 0.75rem; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--white); background: rgba(255, 255, 255, 0.05);
}
.nav-cta { margin-left: 0.5rem; }
.menu-toggle {
  display: none; background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.5rem; cursor: pointer; color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem; border-radius: 10px; font-weight: 600;
  font-size: 0.9375rem; border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit; text-decoration: none; line-height: 1.2;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary {
  background: var(--accent); color: var(--white);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.28);
}
.btn-primary:hover {
  background: var(--accent-hover); color: var(--white);
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.35);
}
.btn-secondary {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04); color: var(--white);
  border-color: #4b5563;
}
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); color: var(--white); }
.btn-lg { padding: 0.95rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 75% 15%, rgba(99, 102, 241, 0.22), transparent 55%),
    radial-gradient(ellipse 45% 40% at 10% 80%, rgba(79, 70, 229, 0.12), transparent 50%),
    linear-gradient(180deg, #0c0e14 0%, var(--bg) 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8125rem; font-weight: 600; color: #a5b4fc;
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.28);
  padding: 0.35rem 0.75rem; border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2.35rem, 4.2vw, 3.4rem); margin: 0 0 0.85rem; }
.hero-sub { font-size: 1.08rem; max-width: 36rem; margin: 0 0 0.5rem; color: var(--text-muted); }
.hero-zh { font-size: 0.95rem; color: var(--text-faint); margin: 0 0 1.85rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.12);
  background: var(--card);
  min-height: 320px;
}
.hero-visual-img {
  width: 100%; height: 100%; min-height: 320px;
  object-fit: cover; object-position: center 35%;
  filter: saturate(0.55) brightness(0.55) contrast(1.05);
  transform: scale(1.02);
}
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(160deg, rgba(15, 17, 23, 0.15) 0%, rgba(15, 17, 23, 0.55) 45%, rgba(15, 17, 23, 0.92) 100%),
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(99, 102, 241, 0.35), transparent 60%);
  pointer-events: none;
}
.hero-card {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1;
  background: rgba(26, 31, 46, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.hero-card h3 { margin: 0 0 0.85rem; font-size: 1rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.55rem 0; border-bottom: 1px solid rgba(45, 55, 72, 0.8);
  font-size: 0.9rem; color: var(--text);
}
.checklist li:last-child { border-bottom: 0; padding-bottom: 0; }
.checklist li:first-child { padding-top: 0; }
.checklist svg { flex-shrink: 0; color: var(--success); margin-top: 2px; }
.checklist .no svg { color: var(--danger); }
.note {
  margin-top: 0.85rem; padding: 0.75rem 0.9rem;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border); border-radius: var(--radius-sm);
  font-size: 0.8rem; color: var(--warn-text);
}

/* Sections */
.section { padding: 4.75rem 0; }
.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid rgba(45, 55, 72, 0.55);
}
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0 0 0.75rem; }
.section-head p { margin: 0; font-size: 1.05rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: var(--card-hover);
}
.card h3 { margin: 0.75rem 0 0.5rem; font-size: 1.125rem; }
.card p { margin: 0; font-size: 0.95rem; }
.icon-wrap {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-soft);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: grid; place-items: center;
}

.steps { counter-reset: step; display: grid; gap: 1rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}
.step-num {
  width: 36px; height: 36px; border-radius: 999px;
  background: linear-gradient(145deg, #6366f1, #4f46e5);
  color: var(--white);
  display: grid; place-items: center; font-weight: 700; font-size: 0.875rem;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}
.step h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.step p { margin: 0; font-size: 0.925rem; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: stretch; }
.price-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; background: var(--card); box-shadow: var(--shadow);
}
.price-card.featured {
  border-color: rgba(99, 102, 241, 0.55);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.18), transparent 55%),
    var(--card);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99, 102, 241, 0.15);
}
.price-card h2, .price-card h3 { color: var(--white); }
.price-card p, .price-card li { color: var(--text-muted); }
.price-card .amount {
  font-size: 2.75rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--white); margin: 0.5rem 0;
}
.price-card .amount span { font-size: 1rem; font-weight: 500; opacity: 0.7; }
.price-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.price-list li {
  display: flex; gap: 0.65rem; padding: 0.55rem 0; align-items: flex-start;
  border-top: 1px solid rgba(45, 55, 72, 0.9); font-size: 0.925rem;
  color: var(--text);
}
.price-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--success); }
.price-list li:has(i[data-lucide="x"]) svg,
.price-list svg[data-lucide="x"] { color: var(--danger); }
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.3rem 0.6rem; border-radius: 999px;
  background: var(--accent-soft); color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.price-card.featured .badge {
  background: rgba(99, 102, 241, 0.25); color: #c7d2fe;
}

/* Forms */
.form-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: start; }
.form-panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label {
  display: block; font-size: 0.875rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: 0.4rem;
}
label .req { color: var(--danger); }
.hint { font-weight: 400; color: var(--text-faint); font-size: 0.8rem; }
input[type="text"], input[type="email"], input[type="url"], select, textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; color: var(--white); background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
textarea { min-height: 120px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6l3.5 3.5L11.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center;
  padding-right: 2.25rem;
}
.field-error { color: var(--danger); font-size: 0.8rem; margin-top: 0.35rem; display: none; }
.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea { border-color: var(--danger); }
.form-group.invalid .field-error { display: block; }
.form-status {
  display: none; margin-top: 1rem; padding: 0.85rem 1rem;
  border-radius: var(--radius-sm); font-size: 0.9rem;
}
.form-status.ok { display: block; background: var(--ok-bg); color: var(--ok-text); border: 1px solid var(--ok-border); }
.form-status.err { display: block; background: var(--danger-bg); color: #fca5a5; border: 1px solid var(--danger-border); }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.blog-card { overflow: hidden; padding: 0; }
.blog-card img {
  width: 100%; height: 200px; object-fit: cover;
  background: var(--bg-elevated);
  filter: saturate(0.7) brightness(0.85);
}
.blog-card .body { padding: 1.25rem 1.5rem 1.5rem; }
.meta { font-size: 0.8rem; color: var(--text-faint); margin-bottom: 0.5rem; }
.blog-card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.blog-card h3 a { color: var(--white); }
.blog-card h3 a:hover { color: #a5b4fc; }
.post-hero { max-width: 720px; margin: 0 auto 2rem; }
.post-hero img {
  width: 100%; border-radius: var(--radius); margin: 1.5rem 0;
  border: 1px solid var(--border);
  filter: saturate(0.75) brightness(0.9);
}
.post-content { max-width: 720px; margin: 0 auto; }
.post-content h2 { margin: 2rem 0 0.75rem; font-size: 1.4rem; }
.post-content p { margin: 0 0 1rem; }
.post-content ul { color: var(--text-muted); padding-left: 1.25rem; }
.post-content li { margin-bottom: 0.4rem; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(99, 102, 241, 0.22), transparent 55%),
    var(--card);
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 2.75rem 2.5rem; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: var(--white); margin: 0 0 0.75rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: var(--text-muted); margin: 0 0 1.5rem; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-secondary {
  background: rgba(255, 255, 255, 0.04);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem; margin-top: 2rem;
  background: #0c0e14;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand p { font-size: 0.9rem; max-width: 22rem; }
.footer-col h4 {
  margin: 0 0 0.85rem; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-faint); font-weight: 700;
}
.footer-col a {
  display: block; color: var(--text-muted); font-size: 0.925rem;
  padding: 0.25rem 0;
}
.footer-col a:hover { color: #a5b4fc; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-faint);
}

/* Page hero (inner) */
.page-hero {
  position: relative;
  padding: 3.25rem 0 2.25rem;
  background:
    radial-gradient(ellipse 60% 80% at 80% 0%, rgba(99, 102, 241, 0.16), transparent 55%),
    linear-gradient(180deg, #0c0e14, var(--bg));
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.85rem, 3vw, 2.5rem); margin: 0 0 0.65rem; }
.page-hero p { margin: 0; max-width: 40rem; font-size: 1.05rem; }

.legal { max-width: 720px; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.legal p, .legal li { font-size: 0.95rem; }
.prose-muted { color: var(--text-faint); font-size: 0.9rem; }
code {
  font-size: 0.85em; padding: 0.1em 0.4em; border-radius: 4px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
  color: #c7d2fe;
}

@media (max-width: 900px) {
  .hero-grid, .form-layout, .price-grid, .footer-grid, .grid-3, .grid-2, .blog-grid {
    grid-template-columns: 1fr;
  }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: rgba(15, 17, 23, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 0.75rem 1rem 1rem;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem; }
  .nav-cta { margin: 0.5rem 0 0; }
  .nav-cta .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 3.25rem 0 2.75rem; }
  .hero-visual { min-height: 280px; }
  .hero-visual-img { min-height: 280px; }
  .hero-card { position: relative; left: auto; right: auto; bottom: auto; margin: -3.5rem 0.75rem 0.75rem; }
}

.price-list li.no svg { color: var(--danger); }
.price-list li:not(.no) svg { color: var(--success); }
.checklist-info svg { color: #a5b4fc; }
