:root {
  --bg-primary: #fffdf5;
  --bg-card: #ffffff;
  --bg-accent: #fef3c7;
  --bg-subtle: #fffbeb;
  --text-main: #3b1e08;
  --text-muted: #854d0e;
  --color-custard: #fde047;
  --color-caramel: #b45309;
  --color-caramel-dark: #78350f;
  --color-cherry: #e11d48;
  --color-border: #fed7aa;
  --border-focus: #f59e0b;
  --shadow-cozy: 0 10px 30px rgba(180, 83, 9, 0.08);
  --shadow-pop: 0 12px 24px rgba(245, 158, 11, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

.ambient-lights {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none; overflow: hidden; z-index: 0;
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35; }
.orb-custard { width: 420px; height: 420px; background: #fef08a; top: -100px; right: -50px; }
.orb-caramel { width: 440px; height: 440px; background: #fed7aa; bottom: -150px; left: -100px; }
.orb-cherry { width: 350px; height: 350px; background: #fbcfe8; top: 40%; right: 25%; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
header { padding: 24px 0; border-bottom: 2px dashed var(--color-border); }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; }
.logo-area { display: flex; align-items: center; gap: 12px; }
.pudding-icon { font-size: 36px; animation: floatPudding 3s ease-in-out infinite; }

@keyframes floatPudding {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.05); }
}

.brand-title { font-size: 24px; font-weight: 800; color: #78350f; }
.brand-badge {
  font-size: 11px; font-weight: 700; background: #fef3c7;
  color: #b45309; padding: 2px 8px; border-radius: 12px; margin-left: 6px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.header-badges { display: flex; gap: 10px; }
.badge-pill { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; }
.badge-chain { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-agent { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

.phase-banner-card {
  margin: 28px 0; background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
  border: 2px solid var(--color-border); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-cozy);
}
.phase-top-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 18px; margin-bottom: 20px; }
.phase-indicator { display: flex; align-items: center; gap: 12px; }
.pulse-dot {
  width: 14px; height: 14px; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4); animation: pulseDot 2s infinite;
}
.pulse-dot.amber { background: #f59e0b; box-shadow: 0 0 0 rgba(245, 158, 11, 0.4); }
.pulse-dot.emerald { background: #059669; box-shadow: 0 0 0 rgba(5, 150, 105, 0.4); }
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.phase-title-text { font-size: 15px; font-weight: 800; color: #78350f; letter-spacing: 0.5px; }
.phase-sub-text { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.phase-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.phase-pill-item { padding: 5px 12px; border-radius: 14px; font-size: 11px; font-weight: 700; background: #f5f5f4; color: #78716c; }
.phase-pill-item.active { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.phase-pill-item.completed { background: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }

.phase-progress-area { margin-top: 10px; }
.phase-progress-labels { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: #78350f; }
.phase-bar-track { width: 100%; height: 14px; background: #fed7aa; border-radius: 10px; overflow: hidden; position: relative; }
.phase-bar-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #d97706, #e11d48); border-radius: 10px; transition: width 0.8s ease-in-out; }
.phase-milestones { display: flex; justify-content: space-between; font-size: 11px; font-family: monospace; color: #a16207; margin-top: 6px; }

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; align-items: stretch; }
.card { background: var(--bg-card); border: 2px solid var(--color-border); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-cozy); }

.hero-preview { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.preview-frame {
  width: 100%; max-width: 360px; aspect-ratio: 1/1; background: #fffdf0;
  border-radius: 20px; overflow: hidden; box-shadow: 0 10px 25px rgba(180, 83, 9, 0.18);
  margin-bottom: 20px; border: 2px solid #fed7aa; position: relative;
}
.preview-frame img, .preview-frame svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.preview-tag { display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 11px; font-weight: 700; font-family: monospace; background: #fef3c7; color: #92400e; margin-bottom: 8px; }
.preview-title { font-size: 20px; font-weight: 800; color: #78350f; }
.preview-desc { font-size: 13px; color: var(--text-muted); max-width: 380px; margin-top: 6px; }

.terminal-card { display: flex; flex-direction: column; justify-content: space-between; }
.terminal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.terminal-title { font-size: 18px; font-weight: 800; color: #78350f; display: flex; align-items: center; gap: 8px; }
.specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.spec-box { background: #fffbeb; border: 1px solid #fed7aa; border-radius: 16px; padding: 12px 14px; }
.spec-label { font-size: 11px; text-transform: uppercase; color: #a16207; font-weight: 700; letter-spacing: 0.5px; }
.spec-value { font-size: 15px; font-weight: 800; color: #78350f; margin-top: 2px; }

.qty-selector {
  display: flex; align-items: center; justify-content: space-between;
  background: #fffdf7; border: 2px solid #fed7aa; border-radius: 18px; padding: 8px 16px; margin-bottom: 18px;
}
.qty-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none; background: #fed7aa;
  color: #78350f; font-size: 20px; font-weight: 900; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: #f59e0b; color: #ffffff; transform: scale(1.08); }
.qty-count { font-size: 20px; font-weight: 800; color: #78350f; }

.cost-box {
  background: #fffbeb; border: 1px dashed #b45309; border-radius: 16px;
  padding: 12px 16px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center;
}
.cost-text { font-size: 12px; color: #92400e; font-weight: 700; }
.cost-val { font-size: 16px; font-weight: 800; color: #b45309; font-family: monospace; }

.code-wrap { position: relative; background: #271b12; border-radius: 16px; padding: 16px; margin-bottom: 16px; border: 1px solid #78350f; }
.code-title { display: flex; justify-content: space-between; align-items: center; color: #fed7aa; font-size: 11px; font-family: monospace; margin-bottom: 8px; text-transform: uppercase; }
.code-block { color: #fef08a; font-family: 'Fira Code', monospace; font-size: 12px; word-break: break-all; white-space: pre-wrap; line-height: 1.5; }
.copy-btn { background: #fed7aa; border: none; border-radius: 8px; padding: 4px 10px; font-size: 11px; font-weight: 700; color: #78350f; cursor: pointer; transition: background 0.2s; }
.copy-btn:hover { background: #f59e0b; color: #ffffff; }

.gallery-section { margin: 40px 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.section-title { font-size: 22px; font-weight: 800; color: #78350f; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn { background: #ffffff; border: 1px solid var(--color-border); padding: 6px 14px; border-radius: 16px; font-size: 12px; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.filter-btn.active, .filter-btn:hover { background: #fef3c7; color: #b45309; border-color: #fde68a; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.gallery-card { background: #ffffff; border: 1px solid var(--color-border); border-radius: 18px; padding: 12px; text-align: center; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; }
.gallery-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(180, 83, 9, 0.15); border-color: #f59e0b; }
.gallery-card img { width: 100%; aspect-ratio: 1/1; border-radius: 12px; display: block; margin-bottom: 8px; background: #fffdf0; }
.gallery-card-title { font-size: 13px; font-weight: 800; color: #78350f; }
.gallery-card-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

footer { padding: 40px 0; border-top: 2px dashed var(--color-border); text-align: center; margin-top: 40px; }
.footer-text { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.footer-links { display: flex; justify-content: center; gap: 20px; font-size: 12px; font-weight: 700; }
.footer-links a { color: #b45309; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
  .phase-top-row { flex-direction: column; }
}
