/* ── Daigoo Landing Page CSS ─────────────────────────────────
   淺色風格，配色沿用後台 #50625a 墨綠系列
   ───────────────────────────────────────────────────────── */

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

:root {
  --bg:       #f8faf8;
  --bg2:      #f0f4f2;
  --bg3:      #e9efec;
  --accent:   #50625a;
  --accent2:  #3d4e47;
  --accent-light: #d2e7dc;
  --highlight: #2e9e6b;
  --text:     #2b3432;
  --muted:    #57615f;
  --border:   rgba(80,98,90,0.12);
  --card-bg:  #ffffff;
  --radius:   14px;
  --shadow:   0 4px 24px rgba(0,0,0,0.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Navbar ────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 250, 248, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.btn-outline {
  padding: 7px 16px; border: 1px solid var(--border);
  border-radius: 8px; color: var(--text) !important;
  transition: background 0.2s;
}
.btn-outline:hover { background: var(--bg2); }

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 12px 28px; border-radius: 10px;
  background: var(--accent); color: white;
  font-weight: 600; font-size: 15px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 rgba(80,98,90,0.3);
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(80,98,90,0.3);
}
.btn-ghost {
  display: inline-block;
  padding: 12px 28px; border-radius: 10px;
  border: 1px solid var(--border); color: var(--muted);
  font-size: 15px; transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(80,98,90,0.3); }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  text-align: center; padding: 100px 24px 80px;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(210,231,220,0.5) 0%, transparent 70%);
}
.hero-badge {
  display: inline-block; margin-bottom: 20px;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(46,158,107,0.1); border: 1px solid rgba(46,158,107,0.25);
  color: var(--highlight); font-size: 13px; font-weight: 500;
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px); font-weight: 800;
  line-height: 1.15; letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-sub { font-size: clamp(15px, 2vw, 18px); color: var(--muted); margin-bottom: 36px; line-height: 1.8; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats {
  display: flex; justify-content: center; gap: 50px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px;
}
.stat-num { display: block; font-size: 28px; font-weight: 700; color: var(--highlight); }

/* ── Sections ──────────────────────────────────────────── */
.section-container { max-width: 1100px; margin: 0 auto; padding: 80px 24px; }
.section-title { font-size: clamp(24px, 3.5vw, 36px); font-weight: 700; text-align: center; margin-bottom: 12px; color: var(--text); }
.section-sub { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 48px; }

/* ── Features ──────────────────────────────────────────── */
.features { background: var(--bg2); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.feature-card:hover { border-color: rgba(80,98,90,0.3); transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ── Demo Animations ───────────────────────────────────── */
.screenshots { background: var(--bg); }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.demo-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.demo-card .caption {
  padding: 16px 20px; font-size: 14px; font-weight: 600; color: var(--text);
}
.demo-card .caption span {
  display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 4px;
}
.demo-screen {
  background: #f8faf8; padding: 0; font-size: 12px; height: 450px;
  position: relative; overflow: hidden;
}
.demo-topbar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; background: #fff; border-bottom: 1px solid rgba(80,98,90,0.1);
}
.demo-dot { width: 8px; height: 8px; border-radius: 50%; }
.demo-dot.r { background: #ff5f57; } .demo-dot.y { background: #ffbd2e; } .demo-dot.g { background: #28c840; }
.demo-url { margin-left: 8px; color: #94a3b8; font-size: 10px; }
.demo-nav {
  display: flex; gap: 0; padding: 0 12px; background: #fff;
  border-bottom: 1px solid rgba(80,98,90,0.1); font-size: 11px; color: #94a3b8;
}
.demo-nav span { padding: 6px 10px; }
.demo-nav-active { color: #50625a; font-weight: 600; border-bottom: 2px solid #50625a; }
.demo-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.demo-product {
  background: #fff; border-radius: 8px; padding: 8px; border: 1px solid rgba(80,98,90,0.08);
}
.demo-img {
  width: 100%; aspect-ratio: 1; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 6px;
}
.demo-pname { font-size: 11px; font-weight: 600; color: #2b3432; margin-bottom: 2px; }
.demo-pprice { font-size: 10px; color: #94a3b8; }
.demo-pprice b { color: #2e9e6b; }
.demo-badge {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  background: #2e9e6b; color: #fff; padding: 4px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.demo-detail { padding: 12px; display: flex; gap: 12px; }
.demo-detail-img {
  width: 100px; height: 100px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 40px;
}
.demo-detail-info { flex: 1; min-width: 0; }
.demo-detail-name { font-size: 13px; font-weight: 700; color: #2b3432; margin-bottom: 8px; }
.demo-detail-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; padding: 4px 0; border-bottom: 1px solid rgba(80,98,90,0.06);
}
.demo-label { color: #94a3b8; }
.demo-tag {
  background: rgba(46,158,107,0.1); color: #2e9e6b; padding: 1px 8px;
  border-radius: 4px; font-size: 10px;
}
.demo-detail-desc {
  font-size: 11px; color: #57615f; line-height: 1.6; margin-top: 8px;
  padding: 8px; background: #f0f4f2; border-radius: 6px;
}
.demo-export { padding: 12px; }
.demo-export-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px; margin-bottom: 4px; background: #fff; border-radius: 6px;
  border: 1px solid rgba(80,98,90,0.06); font-size: 12px;
}
.demo-check {
  width: 18px; height: 18px; border-radius: 4px; background: #2e9e6b; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0;
}
.demo-price-sm { margin-left: auto; color: #2e9e6b; font-weight: 600; font-size: 11px; }
.demo-export-btn {
  margin-top: 10px; background: #50625a; color: #fff; text-align: center;
  padding: 8px; border-radius: 8px; font-size: 12px; font-weight: 600;
}
.demo-export-result { margin-top: 10px; text-align: center; font-size: 12px; color: #2b3432; }
.demo-export-tags { margin-top: 6px; font-size: 10px; color: #50625a; }
.anim-fade { opacity: 0; animation: demoFadeIn 0.5s ease forwards; animation-delay: var(--d, 0s); }
.anim-pop { opacity: 0; transform: scale(0.8); animation: demoPopIn 0.4s ease forwards; animation-delay: var(--d, 0s); }
.anim-type { overflow: hidden; white-space: nowrap; width: 0; animation: demoTypeIn 0.6s ease forwards; animation-delay: var(--d, 0s); }
.anim-check { opacity: 0; animation: demoFadeIn 0.3s ease forwards; animation-delay: var(--d, 0s); }
/* Real images */
.demo-real-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 4px; background: #f0f4f2; }
.demo-detail-real-img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: #f0f4f2; }
/* Card checkbox */
.demo-card-chk {
  position: absolute; top: 6px; left: 6px; width: 16px; height: 16px; accent-color: #50625a;
  pointer-events: none; z-index: 2;
}
.demo-product { position: relative; }
/* Sticky bar */
.demo-stickybar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: #50625a; color: #fff; display: flex; align-items: center;
  justify-content: space-between; padding: 8px 14px; font-size: 12px; font-weight: 600;
  transition: all 0.4s ease; z-index: 5;
}
.demo-sticky-btn {
  background: #fff; color: #50625a; padding: 4px 14px; border-radius: 6px;
  font-size: 11px; font-weight: 700;
}
/* Checkbox in export */
.demo-check {
  width: 18px; height: 18px; border-radius: 4px; background: #2e9e6b; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0;
}
/* Action btn */
.demo-action-btn {
  margin-top: 8px; background: #50625a; color: #fff; text-align: center;
  padding: 5px 12px; border-radius: 6px; font-size: 11px; font-weight: 600;
  display: inline-block; transition: all 0.3s;
}
/* Export steps */
.demo-export-step { padding: 4px 0; }
.demo-step-label { font-size: 10px; color: #94a3b8; font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.demo-file-icon { font-size: 28px; text-align: center; }
.demo-file-name { font-size: 11px; text-align: center; color: #50625a; font-weight: 600; margin: 4px 0; }
.demo-progress-bar { height: 4px; background: #e9efec; border-radius: 2px; overflow: hidden; }
.demo-progress-fill { height: 100%; background: #2e9e6b; width: 0; transition: width 1.2s ease; border-radius: 2px; }
.demo-upload-status { font-size: 11px; padding: 4px 0; transition: opacity 0.4s; }
.demo-upload-done { font-size: 12px; font-weight: 700; color: #2e9e6b; text-align: center; margin-top: 6px; transition: opacity 0.4s; }

/* Inventory demo */
.demo-inv { padding: 10px; }
.demo-inv-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.demo-inv-title { font-size: 13px; font-weight: 700; color: #2b3432; }
.demo-inv-stats { display: flex; gap: 8px; margin-bottom: 10px; transition: opacity 0.4s; }
.demo-stat-card { flex: 1; background: #fff; border: 1px solid rgba(80,98,90,0.08); border-radius: 6px; padding: 6px; text-align: center; }
.demo-stat-num { font-size: 18px; font-weight: 800; }
.demo-stat-lbl { font-size: 9px; color: #94a3b8; }
.demo-inv-list { display: flex; flex-direction: column; gap: 4px; }
.demo-inv-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  background: #fff; border-radius: 6px; border: 1px solid rgba(80,98,90,0.06);
  transition: opacity 0.3s, border-color 0.3s;
}
.demo-inv-thumb { width: 36px; height: 36px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.demo-inv-info { flex: 1; min-width: 0; }
.demo-inv-name { font-size: 11px; font-weight: 600; color: #2b3432; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-inv-stock { text-align: right; min-width: 40px; }
.demo-inv-num { font-size: 16px; font-weight: 800; display: block; }
.demo-inv-lbl { font-size: 9px; color: #94a3b8; }
.demo-inv-push { margin-top: 8px; transition: opacity 0.4s; }

@keyframes demoFadeIn { to { opacity: 1; } }
@keyframes demoPopIn { to { opacity: 1; transform: scale(1); } }
@keyframes demoTypeIn { to { width: 100%; } }

/* ── Calculator ─────────────────────────────────────────── */
.calculator { background: var(--bg2); }
.calc-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px; max-width: 640px; margin: 0 auto;
  box-shadow: var(--shadow);
}
.calc-row { margin-bottom: 24px; }
.calc-row label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.calc-input-wrap { display: flex; align-items: center; gap: 12px; }
.calc-input-wrap input[type="range"] {
  flex: 1; -webkit-appearance: none; height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--accent) 0%, var(--bg3) 0%);
  cursor: pointer;
}
.calc-input-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 2px solid white; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.calc-val { font-weight: 700; color: var(--highlight); min-width: 32px; text-align: right; }
.calc-result {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px; margin-top: 32px; padding-top: 28px;
  border-top: 1px solid var(--border); text-align: center;
}
.calc-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.calc-hours {
  font-size: 48px; font-weight: 800; color: var(--muted);
}
.calc-hours.highlight { color: var(--highlight); }
.calc-unit { font-size: 13px; color: var(--muted); }
.calc-arrow { font-size: 28px; color: var(--accent); }
.calc-saved {
  width: 100%; text-align: center; margin-top: 8px;
  color: var(--muted); font-size: 14px; line-height: 1.8;
}
.calc-saved strong { color: var(--highlight); font-size: 20px; }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing { background: var(--bg); }
.price-card {
  background: var(--card-bg); border: 1px solid rgba(80,98,90,0.2);
  border-radius: var(--radius); padding: 44px; max-width: 420px; margin: 0 auto;
  text-align: center; box-shadow: 0 4px 32px rgba(80,98,90,0.08);
}
.price-badge {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: rgba(46,158,107,0.1); color: var(--highlight);
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.price-amount { font-size: 44px; font-weight: 800; margin-bottom: 28px; color: var(--text); }
.price-amount span { font-size: 18px; color: var(--muted); font-weight: 400; }
.price-features { list-style: none; text-align: left; margin-bottom: 32px; }
.price-features li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.price-features li:last-child { border-bottom: none; }
.price-note { font-size: 12px; color: var(--muted); margin-top: 14px; }

/* ── Contact ─────────────────────────────────────────────── */
.contact { background: var(--bg2); }
.contact-form { max-width: 480px; margin: 0 auto; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card-bg);
  color: var(--text); font-size: 14px; font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.required { color: #c27600; }
.form-hint { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--bg3); border-top: 1px solid var(--border); padding: 28px 24px; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted);
}
.footer-inner a:hover { color: var(--text); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links a:not(.btn-outline) { display: none; }
  .hero-stats { gap: 28px; }
  .calc-result { flex-direction: column; }
  .calc-arrow { transform: rotate(90deg); }
  .screenshots-grid { grid-template-columns: 1fr; }
}
