/* ═══════════════════════════════════════
   TERRYS — Hero & Mockup
═══════════════════════════════════════ */

/* ─── HERO ─── */
.hero {
  padding: 130px 48px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(0,0,0,0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero__fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--cream));
  pointer-events: none;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px 16px 6px 6px;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.hero__badge-pill {
  background: var(--forest);
  color: var(--lime);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(50px, 7.5vw, 92px);
  line-height: 1.03;
  letter-spacing: -2.5px;
  color: var(--forest);
  margin-bottom: 28px;
}

.hero__title em {
  font-style: italic;
  color: var(--forest3);
  position: relative;
}

.hero__title em::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 3px;
  background: var(--lime);
  border-radius: 2px;
}

.hero__sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

.hero__sub strong {
  color: var(--text2);
  font-weight: 500;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

/* ─── MOCKUP ─── */
.mockup {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px 100px;
}

.mockup__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.mockup__topbar {
  background: var(--forest);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.mockup__dots {
  display: flex;
  gap: 6px;
}

.mockup__dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: block;
}
.mockup__dots span:nth-child(1) { background: #ff5f57; }
.mockup__dots span:nth-child(2) { background: #febc2e; }
.mockup__dots span:nth-child(3) { background: #28c840; }

.mockup__url {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  max-width: 360px;
}

.mockup__ai-tag {
  background: var(--orange);
  color: var(--white);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  margin-left: auto;
}

.mockup__body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 490px;
}

/* Sidebar */
.mockup__sidebar {
  background: var(--cream);
  border-right: 1px solid var(--border2);
  padding: 16px 0;
}

.mock-nav-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  padding: 14px 20px 6px;
  font-weight: 500;
}

.mock-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 13px;
  color: var(--text2);
  cursor: default;
  transition: background 0.15s;
}

.mock-nav-item:hover { background: var(--cream2); }

.mock-nav-item.active {
  background: var(--forest);
  color: var(--white);
  margin: 2px 10px;
  border-radius: var(--r-sm);
  padding: 9px 14px;
}

/* Main dashboard area */
.mockup__main {
  padding: 26px;
}

.mockup__page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.mock-page-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--forest);
}

.mock-page-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.mock-btn {
  background: var(--forest);
  color: var(--white);
  border: none;
  border-radius: var(--r-sm);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-sans);
}

/* KPIs */
.mock-kpis {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.mock-kpi {
  background: var(--cream);
  border: 1px solid var(--border2);
  border-radius: var(--r-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.mock-kpi::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
}
.mock-kpi:nth-child(1)::after { background: var(--forest); }
.mock-kpi:nth-child(2)::after { background: var(--lime2); }
.mock-kpi:nth-child(3)::after { background: #3b82f6; }
.mock-kpi:nth-child(4)::after { background: var(--orange); }

.mock-kpi__val {
  font-size: 16px;
  font-weight: 600;
  color: var(--forest);
  display: block;
}

.mock-kpi__lbl {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.mock-kpi__delta {
  font-size: 11px;
  color: var(--green-ok);
  font-family: var(--font-mono);
  margin-top: 6px;
}
.mock-kpi__delta--warn { color: var(--warn); }

/* Bottom grid */
.mock-bottom {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 14px;
}

.mock-table {
  background: var(--cream);
  border: 1px solid var(--border2);
  border-radius: var(--r-md);
  overflow: hidden;
}

.mock-table__head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border2);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mock-table__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 10px 14px;
  font-size: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  align-items: center;
}
.mock-table__row:last-child { border-bottom: none; }

/* AI Panel */
.mock-ai-panel {
  background: var(--forest);
  border-radius: var(--r-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-ai-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--lime);
  margin-bottom: 2px;
}

.mock-ai-insight {
  background: rgba(255,255,255,0.07);
  border-radius: var(--r-sm);
  padding: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
}
.mock-ai-insight::before {
  content: '→ ';
  color: var(--lime);
  font-weight: 600;
}

.mock-ai-dots {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.mock-ai-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--lime);
  animation: aiDot 1.4s infinite;
}
.mock-ai-dots span:nth-child(2) { animation-delay: 0.2s; }
.mock-ai-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes aiDot {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .hero { padding: 100px 24px 60px; }
  .mockup { padding: 0 24px 60px; }
  .mockup__body { grid-template-columns: 1fr; }
  .mockup__sidebar { display: none; }
  .mock-kpis { grid-template-columns: repeat(2,1fr); }
  .mock-bottom { grid-template-columns: 1fr; }
}
