/* ── Zeptix project page — brand accents (mint #22D3A5 / sand #FDE68A) ── */

:root {
  --zx-mint: #22D3A5;
  --zx-sand: #FDE68A;
  --color-primary: #22D3A5;
  --color-primary-dim: rgba(34, 211, 165, 0.10);
  --color-border-accent: rgba(34, 211, 165, 0.32);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 165, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 165, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(34, 211, 165, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: var(--color-primary-dim);
  border: 1px solid var(--color-border-accent);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--zx-mint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero h1 { margin-bottom: 0; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--zx-mint); }

.hero-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #22c55e;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-subtitle {
  font-size: 1.15rem;
  max-width: 640px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 24px;
  background: var(--color-primary-dim);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-sm);
  color: var(--zx-mint);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.hero-link:hover {
  background: rgba(34, 211, 165, 0.14);
  box-shadow: 0 0 20px rgba(34, 211, 165, 0.18);
  transform: translateY(-2px);
  color: var(--zx-mint);
}

.hero-link svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Section shared ── */
.section-desc {
  text-align: center;
  max-width: 620px;
  margin: -8px auto 40px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── Chat demo gadget ── */
.demo-section {
  padding: 80px 0;
  background: var(--color-bg-surface);
}

.cd-window {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(8, 12, 20, 0.96);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.cd-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  background: rgba(34, 211, 165, 0.04);
}

.cd-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--zx-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: #062019;
  flex-shrink: 0;
}

.cd-head-name { font-size: 0.82rem; font-weight: 700; color: var(--color-text); }
.cd-head-sub { font-size: 0.68rem; color: var(--color-text-muted); font-family: var(--font-mono); }
.cd-head-dot {
  margin-left: auto;
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.6);
  animation: live-pulse 2s ease-in-out infinite;
}

.cd-body {
  padding: 20px 18px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cd-msg { display: flex; opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; }
.cd-msg.show { opacity: 1; transform: translateY(0); }
.cd-msg.user { justify-content: flex-end; }

.cd-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.cd-msg.user .cd-bubble {
  background: var(--zx-mint);
  color: #062019;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.cd-msg.bot .cd-bubble {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
}

.cd-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(253, 230, 138, 0.10);
  border: 1px solid rgba(253, 230, 138, 0.28);
  font-size: 0.66rem;
  font-family: var(--font-mono);
  color: var(--zx-sand);
}

.cd-typing { display: inline-flex; gap: 4px; align-items: center; }
.cd-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-text-muted);
  animation: cd-blink 1.2s infinite;
}
.cd-typing span:nth-child(2) { animation-delay: 0.2s; }
.cd-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes cd-blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

/* ── Feature grid ── */
.services-section { padding: 80px 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.svc-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color var(--transition), box-shadow var(--transition);
}

.svc-card.visible { opacity: 1; transform: translateY(0); }

.svc-card:hover {
  border-color: var(--color-border-accent);
  box-shadow: 0 0 24px rgba(34, 211, 165, 0.10);
}

.svc-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.svc-icon svg { width: 22px; height: 22px; stroke: var(--zx-mint); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 { font-size: 0.92rem; font-weight: 600; margin: 0; }
.svc-card p { font-size: 0.78rem; color: var(--color-text-muted); line-height: 1.5; margin: 0; flex: 1; }
.svc-price { font-size: 0.72rem; font-family: var(--font-mono); color: var(--zx-mint); opacity: 0.75; margin-top: 4px; }

/* ── Routing split ── */
.code-section { padding: 80px 0; background: var(--color-bg-surface); }
.code-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.code-text { display: flex; flex-direction: column; gap: 12px; }
.code-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--zx-mint); text-shadow: 0 0 16px rgba(34, 211, 165, 0.3); }
.code-text h2 { font-size: 1.6rem; line-height: 1.3; margin-bottom: 4px; }
.code-text p { font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.7; max-width: 440px; }
.code-link { display: inline-flex; align-items: center; gap: 6px; color: var(--zx-mint); font-size: 0.85rem; font-weight: 600; text-decoration: none; margin-top: 8px; transition: gap var(--transition), opacity var(--transition); }
.code-link:hover { gap: 10px; opacity: 0.8; }

.ladder { background: rgba(10, 10, 16, 0.95); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 16px 20px; box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4); }
.ladder-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; opacity: 0.35; transition: opacity 0.4s ease; }
.ladder-row.on { opacity: 1; }
.ladder-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-border); flex-shrink: 0; transition: background 0.4s ease, box-shadow 0.4s ease; }
.ladder-row.on .ladder-dot { background: var(--zx-mint); box-shadow: 0 0 10px rgba(34, 211, 165, 0.5); }
.ladder-name { font-size: 0.85rem; font-weight: 600; color: var(--color-text); }
.ladder-meta { margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; color: var(--color-text-muted); }

/* ── Key numbers ── */
.numbers-row { display: flex; justify-content: center; align-items: center; gap: 0; padding: 60px 0; flex-wrap: wrap; }
.num-item { text-align: center; padding: 0 clamp(20px, 4vw, 48px); }
.num-value { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--zx-mint); font-family: var(--font-mono); text-shadow: 0 0 20px rgba(34, 211, 165, 0.3); margin-bottom: 4px; }
.num-label { font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.num-sep { width: 1px; height: 40px; background: var(--color-border); flex-shrink: 0; }

/* ── Tools row (zeptix.dev) ── */
.tools-section { padding: 70px 0; }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 920px; margin: 0 auto; }
.tool-chip { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px 18px; text-align: center; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.tool-chip:hover { border-color: var(--color-border-accent); box-shadow: 0 0 20px rgba(34, 211, 165, 0.08); transform: translateY(-2px); }
.tool-chip .tc-name { font-size: 0.9rem; font-weight: 700; color: var(--zx-mint); font-family: var(--font-mono); }
.tool-chip .tc-desc { font-size: 0.76rem; color: var(--color-text-muted); margin-top: 6px; line-height: 1.5; }

/* ── Tech stack ── */
.tech-section { padding: 80px 0; }
.tech-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.tech-tag { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: 0.85rem; font-weight: 500; color: var(--color-text); transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.tech-tag:hover { border-color: var(--color-border-accent); box-shadow: var(--shadow-glow-sm); transform: translateY(-2px); }
.tech-tag svg { width: 20px; height: 20px; stroke: var(--zx-mint); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── About block ── */
.about-block { padding: 80px 0; background: var(--color-bg-surface); }
.about-content { max-width: 700px; margin: 0 auto; text-align: center; }
.about-content p { font-size: 1.05rem; line-height: 1.9; color: var(--color-text-muted); }
.about-content p + p { margin-top: 18px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .code-split { grid-template-columns: 1fr; }
  .code-text { order: 1; }
  .ladder { order: 2; }
}
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 100px 0 50px; }
  .numbers-row { gap: 20px; }
  .num-sep { display: none; }
  .num-item { padding: 10px 20px; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
}
