/* ==========================================================================
   PDM to ADM — Apple-inspired Minimalist Landing Page Styles
   Fully responsive (Desktop / Tablet / Mobile) + Lightbox + Bilingual Ready
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #0a0a0c;
  --bg-dark-card: #151518;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-dark: #f5f5f7;
  --text-dark-secondary: #a1a1a6;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --danger: #d93025;
  --border: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.12);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.11), 0 4px 16px rgba(0, 0, 0, 0.05);
  --shadow-dark: 0 28px 70px rgba(0, 0, 0, 0.55);
  --max-w: 1120px;
  --nav-h: 56px;
  --font-sans: "Inter", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #1d1d1f;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.nav-links a {
  transition: color 0.18s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  font-size: 12px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.18s ease;
}

.lang-btn.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  font-size: 13px;
  padding: 7px 15px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.28);
}

.btn-secondary {
  background: var(--bg-alt);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #eaecef;
}

.btn-dark-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-dark-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 99;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-drawer a {
  font-size: 16px;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer a:last-child {
  border-bottom: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 84px;
  text-align: center;
  background: radial-gradient(1200px 520px at 50% -10%, rgba(0, 113, 227, 0.06), transparent 65%), #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 auto 20px;
  max-width: 900px;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text);
}

.hero-sub {
  margin: 0 auto 32px;
  max-width: 700px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
  color: var(--text-secondary);
  font-weight: 400;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto 48px;
}

.metric-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 14px;
}

.metric-val {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.metric-lbl {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}

.window-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-lg);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.window-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.14);
}

.window-frame-dark {
  background: #14171f;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-dark);
}

.zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(29, 29, 31, 0.78);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}

.section-header {
  max-width: 780px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-kicker {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-dark .section-kicker {
  color: #4da6ff;
}

.section-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.028em;
  font-weight: 800;
}

.section-desc {
  margin: 0;
  font-size: clamp(15.5px, 1.8vw, 18.5px);
  color: var(--text-secondary);
  line-height: 1.7;
}

.section-dark .section-desc {
  color: var(--text-dark-secondary);
}

/* ---------- Synthetic Case Banner ---------- */
.case-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.case-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.pill-blue {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(0, 113, 227, 0.16);
}

/* ---------- Interactive Workflow Tabs ---------- */
.stepper-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.stepper-bar::-webkit-scrollbar {
  display: none;
}

.step-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.step-tab:hover {
  border-color: rgba(0, 0, 0, 0.22);
  color: var(--text);
}

.step-tab.active {
  background: #1d1d1f;
  color: #fff;
  border-color: #1d1d1f;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  opacity: 0.72;
}

.step-panel {
  display: none;
  animation: fadeUp 0.28s ease;
}

.step-panel.active {
  display: block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.step-head h3 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.02em;
}

.step-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 720px;
}

/* Interactive Drag Before/After Switch */
.toggle-switch {
  display: inline-flex;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 4px;
}

.toggle-opt {
  border: none;
  background: transparent;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.18s ease;
}

.toggle-opt.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.28);
}

/* Split Dual Media Grid */
.dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.media-caption {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Sample Downloads Bar */
.samples-bar {
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.samples-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sample-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.16s ease;
}

.sample-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- Compliance / Review Checklist Spotlight ---------- */
.split-spotlight {
  display: grid;
  grid-template-columns: 0.92fr 1.28fr;
  gap: 36px;
  align-items: center;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.check-item strong {
  display: block;
  font-size: 15.5px;
  margin-bottom: 4px;
  color: var(--text);
}

.check-item span {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.review-viewer {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.review-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

/* ---------- Feature Bento Grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.bento-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}

.section-dark .bento-card {
  background: var(--bg-dark-card);
  border-color: var(--border-dark);
  box-shadow: none;
}

.bento-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
}

.section-dark .bento-icon {
  background: rgba(77, 166, 255, 0.14);
  color: #4da6ff;
}

.bento-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.bento-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.section-dark .bento-card p {
  color: var(--text-dark-secondary);
}

/* ---------- Progress Sheet 4-Up Highlights ---------- */
.highlights-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.hl-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.hl-card h4 {
  margin: 0 0 6px;
  font-size: 15.5px;
}

.hl-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Licensing & Security ---------- */
.license-modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.module-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.module-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: #1d1d1f;
  color: #fff;
  margin-bottom: 12px;
}

.module-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.module-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.security-box {
  background: #1d1d1f;
  color: #f5f5f7;
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
}

.security-box h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.8vw, 30px);
  letter-spacing: -0.02em;
}

.security-box > div:first-child p {
  margin: 0;
  color: #a1a1a6;
  font-size: 15px;
  line-height: 1.7;
}

.sec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.sec-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
}

.sec-item strong {
  display: block;
  font-size: 14.5px;
  color: #fff;
  margin-bottom: 4px;
}

.sec-item span {
  font-size: 13px;
  color: #a1a1a6;
  line-height: 1.5;
}

/* ---------- CTA & Footer ---------- */
.cta-card {
  background: linear-gradient(135deg, #f5f5f7 0%, #eef4fc 100%);
  border: 1px solid rgba(0, 113, 227, 0.14);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
}

.cta-card h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.8vw, 42px);
  letter-spacing: -0.025em;
}

.cta-card p {
  margin: 0 auto 28px;
  max-width: 600px;
  font-size: 16.5px;
  color: var(--text-secondary);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact-meta {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ---------- Full-Screen Zoomable Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 14, 0.92);
  backdrop-filter: blur(12px);
  display: none;
  flex-direction: column;
}

.lightbox.open {
  display: flex;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(20, 20, 24, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
  font-size: 14px;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-stage {
  flex: 1;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transition: width 0.2s ease;
  background: #fff;
}

.lightbox-stage.zoomed {
  display: block;
}

.lightbox-stage.zoomed img {
  max-width: none;
  max-height: none;
  margin: 0 auto;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #1d1d1f;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
  z-index: 1200;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Responsive Breakpoints (Tablet & Mobile!) ---------- */
@media (max-width: 980px) {
  .split-spotlight,
  .security-box {
    grid-template-columns: 1fr;
  }
  .bento-grid,
  .license-modules {
    grid-template-columns: repeat(2, 1fr);
  }
  .highlights-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-cta-desktop {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    padding: 44px 0 56px;
  }
  .section {
    padding: 64px 0;
  }
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 32px;
  }
  .metric-val {
    font-size: 20px;
  }
  .dual-grid,
  .bento-grid,
  .license-modules,
  .highlights-4,
  .sec-grid {
    grid-template-columns: 1fr;
  }
  .step-card {
    padding: 18px 14px;
    border-radius: 18px;
  }
  .review-viewer {
    padding: 14px;
  }
  .security-box {
    padding: 24px 18px;
  }
  .cta-card {
    padding: 36px 20px;
  }
  .hero-cta .btn,
  .cta-actions .btn {
    width: 100%;
  }
  .zoom-hint {
    font-size: 11px;
    padding: 5px 10px;
    right: 8px;
    bottom: 8px;
  }
  .lightbox-bar {
    padding: 10px 12px;
    font-size: 12.5px;
  }
  .lb-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 48vw;
  }
}
