:root {
  --bg-primary: #fffaf0;
  --bg-card: #ffffff;
  --bg-accent: #fdf2f8;
  --bg-subtle: #fff7ed;
  --text-main: #451a03;
  --text-muted: #854d0e;
  --color-pink: #f472b6;
  --color-pink-soft: #fce7f3;
  --color-donut: #fed7aa;
  --color-donut-shadow: #f59e0b;
  --color-glaze: #fb7185;
  --color-caramel: #b45309;
  --color-matcha: #10b981;
  --color-matcha-soft: #d1fae5;
  --color-amber-soft: #fef3c7;
  --color-border: #fed7aa;
  --border-focus: #fb7185;
  --shadow-cozy: 0 10px 30px rgba(245, 158, 11, 0.08);
  --shadow-pop: 0 12px 24px rgba(251, 113, 133, 0.25);
}

* {
  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-pink { width: 420px; height: 420px; background: #fce7f3; top: -100px; right: -50px; }
.orb-amber { width: 440px; height: 440px; background: #fef3c7; bottom: -150px; left: -100px; }
.orb-matcha { width: 350px; height: 350px; background: #dcfce7; 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;
}

.donut-icon {
  font-size: 36px;
  animation: floatDonut 3s ease-in-out infinite;
}

@keyframes floatDonut {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(8deg); }
}

.brand-title {
  font-size: 24px;
  font-weight: 800;
  color: #78350f;
}

.brand-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--color-pink-soft);
  color: #be185d;
  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: #fce7f3;
  color: #be185d;
  border: 1px solid #fbcfe8;
}

/* ================= Dynamic Live Phase Banner ================= */
.phase-banner-card {
  margin: 28px 0;
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 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: #fce7f3;
  color: #be185d;
  border: 1px solid #fbcfe8;
}

.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, #f472b6, #fb7185, #f59e0b);
  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 / Showcase Area ================= */
.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: #fdf2f8;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(251, 113, 133, 0.2);
  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;
}

/* ================= Mint Terminal Form ================= */
.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: #fff7ed;
  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: #fdf2f8;
  border: 1px dashed #fbcfe8;
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cost-text {
  font-size: 12px;
  color: #9d174d;
  font-weight: 700;
}

.cost-val {
  font-size: 16px;
  font-weight: 800;
  color: #be185d;
  font-family: monospace;
}

/* Terminal Directives Code Block */
.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 Area ================= */
.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: #fce7f3;
  color: #be185d;
  border-color: #fbcfe8;
}

.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(251, 113, 133, 0.15);
  border-color: #fb7185;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 12px;
  display: block;
  margin-bottom: 8px;
  background: #fdf2f8;
}

.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 ================= */
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: #be185d;
  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; }
}
