/* ============================
   PIRABEL LABS — Custom SVG/CSS Illustrations
   Unique brutaliste geometric visuals
   ============================ */

/* --- Base illustration container --- */
.illus {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- HERO DASHBOARD MOCKUP --- */
.illus-dashboard {
  aspect-ratio: 4/3;
  background: var(--surface-container-lowest, #0e0e0e);
  border: 1px solid rgba(92, 64, 55, 0.15);
  padding: 1.5rem;
}
.illus-dashboard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 32px;
  background: rgba(255, 85, 0, 0.06);
  border-bottom: 1px solid rgba(92, 64, 55, 0.1);
}
.illus-dashboard__dots {
  position: absolute;
  top: 10px; left: 12px;
  display: flex; gap: 6px;
}
.illus-dashboard__dots span {
  width: 8px; height: 8px; border-radius: 50%;
}
.illus-dashboard__dots span:nth-child(1) { background: #ff5500; }
.illus-dashboard__dots span:nth-child(2) { background: rgba(229,226,225,0.2); }
.illus-dashboard__dots span:nth-child(3) { background: rgba(229,226,225,0.2); }

/* Animated bars chart inside dashboard */
.illus-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60%;
  padding-top: 40px;
  width: 100%;
}
.illus-bars span {
  flex: 1;
  background: linear-gradient(to top, rgba(255,85,0,0.3), rgba(255,85,0,0.8));
  border-radius: 2px 2px 0 0;
  animation: barGrow 2s ease-out forwards;
  transform-origin: bottom;
}
.illus-bars span:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.illus-bars span:nth-child(2) { height: 65%; animation-delay: 0.2s; }
.illus-bars span:nth-child(3) { height: 50%; animation-delay: 0.3s; }
.illus-bars span:nth-child(4) { height: 85%; animation-delay: 0.4s; }
.illus-bars span:nth-child(5) { height: 70%; animation-delay: 0.5s; }
.illus-bars span:nth-child(6) { height: 95%; animation-delay: 0.6s; }
.illus-bars span:nth-child(7) { height: 60%; animation-delay: 0.7s; }
.illus-bars span:nth-child(8) { height: 80%; animation-delay: 0.8s; }

@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* --- ABSTRACT GEOMETRIC SHAPES --- */
.illus-geo {
  aspect-ratio: 1;
  position: relative;
}
.illus-geo__ring {
  position: absolute;
  border: 2px solid rgba(255, 85, 0, 0.2);
  border-radius: 50%;
  animation: geoSpin 20s linear infinite;
}
.illus-geo__ring:nth-child(1) { width: 80%; height: 80%; top: 10%; left: 10%; }
.illus-geo__ring:nth-child(2) { width: 60%; height: 60%; top: 20%; left: 20%; border-color: rgba(65,228,192,0.15); animation-direction: reverse; animation-duration: 15s; }
.illus-geo__ring:nth-child(3) { width: 40%; height: 40%; top: 30%; left: 30%; animation-duration: 25s; }
.illus-geo__dot {
  position: absolute;
  width: 12px; height: 12px;
  background: #ff5500;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(255,85,0,0.5);
}

@keyframes geoSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- SEO SEARCH VISUAL --- */
.illus-search {
  aspect-ratio: 16/10;
  background: var(--surface-container-lowest, #0e0e0e);
  border: 1px solid rgba(92, 64, 55, 0.1);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.illus-search__bar {
  height: 36px;
  background: rgba(229,226,225,0.04);
  border: 1px solid rgba(92,64,55,0.15);
  border-radius: 18px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.5rem;
}
.illus-search__bar::before {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid rgba(255,85,0,0.5);
  border-radius: 50%;
}
.illus-search__bar::after {
  content: '';
  flex: 1; height: 8px;
  background: rgba(229,226,225,0.06);
  border-radius: 4px;
}
.illus-search__result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-left: 3px solid transparent;
  transition: border-color 0.3s;
}
.illus-search__result:first-of-type {
  border-left-color: #ff5500;
  background: rgba(255,85,0,0.04);
}
.illus-search__result-dot {
  width: 8px; height: 8px;
  background: #ff5500;
  border-radius: 50%;
  flex-shrink: 0;
}
.illus-search__result:not(:first-of-type) .illus-search__result-dot {
  background: rgba(229,226,225,0.15);
}
.illus-search__result-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.illus-search__result-lines span {
  height: 6px;
  background: rgba(229,226,225,0.06);
  border-radius: 3px;
}
.illus-search__result-lines span:first-child { width: 70%; }
.illus-search__result-lines span:last-child { width: 45%; }
.illus-search__result:first-of-type .illus-search__result-lines span:first-child {
  background: rgba(255,85,0,0.2);
}

/* --- WEB BROWSER MOCKUP --- */
.illus-browser {
  aspect-ratio: 16/10;
  background: var(--surface-container-lowest, #0e0e0e);
  border: 1px solid rgba(92, 64, 55, 0.15);
  overflow: hidden;
}
.illus-browser__topbar {
  height: 28px;
  background: rgba(255,85,0,0.04);
  border-bottom: 1px solid rgba(92,64,55,0.1);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
}
.illus-browser__topbar span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(229,226,225,0.15);
}
.illus-browser__topbar span:first-child { background: #ff5500; }
.illus-browser__content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.illus-browser__hero {
  height: 40%;
  background: linear-gradient(135deg, rgba(255,85,0,0.08), rgba(255,85,0,0.02));
  display: flex;
  align-items: center;
  justify-content: center;
}
.illus-browser__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  flex: 1;
}
.illus-browser__grid span {
  background: rgba(229,226,225,0.03);
  border: 1px solid rgba(92,64,55,0.08);
  min-height: 30px;
}

/* --- AUTOMATION FLOW --- */
.illus-flow {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1rem;
}
.illus-flow__node {
  width: 48px; height: 48px;
  background: var(--surface-container-lowest, #0e0e0e);
  border: 2px solid rgba(255,85,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.illus-flow__node:nth-child(odd) { border-radius: 50%; }
.illus-flow__node .material-symbols-outlined {
  font-size: 1.25rem;
  color: rgba(255,85,0,0.6);
}
.illus-flow__line {
  width: 32px; height: 2px;
  background: linear-gradient(to right, rgba(255,85,0,0.4), rgba(255,85,0,0.1));
  position: relative;
}
.illus-flow__line::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 0; height: 0;
  border-left: 6px solid rgba(255,85,0,0.4);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* --- CASE STUDY VISUAL --- */
.illus-case {
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, var(--surface-container-lowest, #0e0e0e), var(--surface-container, #201f1f));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  overflow: hidden;
  position: relative;
}
.illus-case__metric {
  font-family: var(--font-headline, 'Space Grotesk');
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  color: rgba(255,85,0,0.15);
  line-height: 1;
}
.illus-case__graph {
  width: 80%;
  height: 40px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}
.illus-case__graph span {
  flex: 1;
  background: rgba(255,85,0,0.2);
  border-radius: 2px 2px 0 0;
  animation: barGrow 1.5s ease-out forwards;
}
.illus-case__graph span:nth-child(1) { height: 30%; animation-delay: 0.1s; }
.illus-case__graph span:nth-child(2) { height: 45%; animation-delay: 0.15s; }
.illus-case__graph span:nth-child(3) { height: 40%; animation-delay: 0.2s; }
.illus-case__graph span:nth-child(4) { height: 60%; animation-delay: 0.25s; }
.illus-case__graph span:nth-child(5) { height: 55%; animation-delay: 0.3s; }
.illus-case__graph span:nth-child(6) { height: 75%; animation-delay: 0.35s; }
.illus-case__graph span:nth-child(7) { height: 70%; animation-delay: 0.4s; }
.illus-case__graph span:nth-child(8) { height: 90%; animation-delay: 0.45s; }
.illus-case__graph span:nth-child(9) { height: 85%; animation-delay: 0.5s; }
.illus-case__graph span:nth-child(10) { height: 100%; animation-delay: 0.55s; background: rgba(255,85,0,0.5); }

/* --- GUIDE CARD VISUAL --- */
.illus-guide {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--surface-container-low, #1c1b1b), var(--surface-container, #201f1f));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.illus-guide::before {
  content: '';
  position: absolute;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255,85,0,0.08) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.illus-guide__lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 60%;
}
.illus-guide__lines span {
  height: 4px;
  background: rgba(229,226,225,0.06);
  border-radius: 2px;
}
.illus-guide__lines span:nth-child(1) { width: 80%; }
.illus-guide__lines span:nth-child(2) { width: 100%; }
.illus-guide__lines span:nth-child(3) { width: 65%; }
.illus-guide__lines span:nth-child(4) { width: 90%; background: rgba(255,85,0,0.1); }

/* --- EMAIL TEMPLATE PREVIEW --- */
.illus-email {
  aspect-ratio: 3/4;
  background: var(--surface-container-lowest, #0e0e0e);
  border: 1px solid rgba(92,64,55,0.15);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.illus-email__header {
  height: 24px;
  background: #ff5500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.illus-email__header::after {
  content: '';
  width: 40%; height: 6px;
  background: rgba(92,25,0,0.4);
  border-radius: 3px;
}
.illus-email__line {
  height: 5px;
  background: rgba(229,226,225,0.05);
  border-radius: 2px;
}
.illus-email__line:nth-child(2) { width: 90%; }
.illus-email__line:nth-child(3) { width: 100%; }
.illus-email__line:nth-child(4) { width: 75%; }
.illus-email__line:nth-child(5) { width: 60%; margin-top: 0.5rem; }
.illus-email__btn {
  width: 50%;
  height: 20px;
  background: #ff5500;
  margin-top: auto;
  align-self: center;
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
  .illus-flow__node { width: 36px; height: 36px; }
  .illus-flow__line { width: 20px; }
  .illus-flow__node .material-symbols-outlined { font-size: 1rem; }
}
