/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
 * Connerzon theme: look of the original connerzon.com site
 * (zinc-950 background, #0E0E0E cards with 2px #1C1C1E borders, purple-700 accent).
*/

:root {
  --cz-purple: #7e22ce;
  --cz-purple-dark: #6b21a8;
  --cz-purple-light: #9333ea;
  --cz-purple-deep: #630096;
  --cz-bg: #09090b;
  --cz-card: #0e0e0e;
  --cz-border: #1c1c1e;
  --cz-muted: #9ca3af;
  --cz-radius: 0.375rem;
}

/* ---------- Base ---------- */
[data-component-id="navbar"] img.max-h-10 {
  max-height: 3rem;
}

#particles-js {
  display: none;
}

/* Cards, panels, navbar: dark card + 2px border like the old site */
.bg-card\/75,
.bg-card {
  background-color: var(--cz-card) !important;
  border-color: var(--cz-border) !important;
  border-width: 2px !important;
  border-radius: var(--cz-radius);
}

a.bg-card\/75 {
  transition: border-color .2s ease;
}

a.bg-card\/75:hover {
  border-color: var(--cz-purple) !important;
}

.bg-card\/75 img {
  border-radius: calc(var(--cz-radius) - 2px) calc(var(--cz-radius) - 2px) 0 0;
}

input,
select,
textarea,
button,
a.inline-flex.border {
  border-radius: var(--cz-radius);
}

/* Theme buttons: "regular" = solid purple, "outline" = dark secondary button */
a.inline-flex.border.bg-accent-500 {
  background-color: var(--cz-purple);
  border-color: var(--cz-purple);
  color: #fff;
  padding: .75rem 1.5rem;
}

a.inline-flex.border.bg-accent-500:hover {
  background: linear-gradient(to right, var(--cz-purple-light), var(--cz-purple-deep));
}

a.inline-flex.border.text-accent-500 {
  background-color: var(--cz-card);
  border: 2px solid var(--cz-border);
  color: #fff;
  padding: .75rem 1.5rem;
}

a.inline-flex.border.text-accent-500:hover {
  background-color: #27272a;
}

/* Product cards: solid purple button like the old "Learn More" */
a.group .border-accent-500.text-accent-500 {
  background-color: var(--cz-purple);
  border-color: var(--cz-purple);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: var(--cz-radius);
  font-weight: 500;
}

a.group:hover .border-accent-500.text-accent-500 {
  background: linear-gradient(to right, var(--cz-purple-light), var(--cz-purple-deep));
}

/* Section titles: big and bold, no underline (old site style) */
.component hr.border-accent-500 {
  display: none;
}

.component .inline-block > h1,
.component .inline-block > h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

/* ---------- Shared buttons ---------- */
.cz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--cz-radius);
  font-weight: 500;
  color: #fff;
  transition: background-color .15s ease;
}

.cz-btn-primary {
  background-color: var(--cz-purple);
}

.cz-btn-primary:hover {
  background: linear-gradient(to right, var(--cz-purple-light), var(--cz-purple-deep));
}

/* ---------- Hero ---------- */
.cz-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1.1;
}

.cz-hero p {
  font-size: 1.25rem;
  color: #fff;
}

.cz-hero .mb-4[x-data] {
  width: 100%;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Section heads ---------- */
.cz-section-head {
  margin-bottom: 1.5rem;
  text-align: center;
}

.cz-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.cz-section-sub {
  padding-top: .75rem;
  font-size: 1.25rem;
  color: #fff;
}

/* ---------- Category cards ---------- */
.cz-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.cz-cat-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: .5rem;
  text-align: center;
  background-color: var(--cz-card);
  border: 2px solid var(--cz-border);
  border-radius: var(--cz-radius);
  color: #fff;
  transition: border-color .2s ease;
}

.cz-cat-card:hover {
  border-color: var(--cz-purple);
}

.cz-cat-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 12rem;
  overflow: hidden;
  border-radius: calc(var(--cz-radius) - 2px);
  background: radial-gradient(circle at center, rgba(126, 34, 206, .25), rgba(126, 34, 206, 0) 70%);
}

.cz-cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cz-cat-media i {
  font-size: 4rem;
  color: var(--cz-purple);
}

.cz-cat-name {
  margin-top: .5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.cz-cat-desc {
  margin: .5rem 1rem 0;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--cz-muted);
}

.cz-cat-count {
  margin: .75rem 2rem 1.25rem;
  color: var(--cz-muted);
}

.cz-cat-count span {
  color: var(--cz-purple);
  font-weight: 600;
}

.cz-cat-btn {
  margin: auto .5rem .5rem;
}

/* ---------- Stats: one bordered box, purple numbers ---------- */
#stats .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 1.25rem;
  background-color: var(--cz-card);
  border: 2px solid var(--cz-border);
  border-radius: var(--cz-radius);
}

@media (min-width: 768px) {
  #stats .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

#stats .grid > div {
  border: 0;
  padding: .5rem 0;
}

#stats .grid > div > p:first-child {
  color: var(--cz-purple);
  font-size: 1.875rem;
}

#stats .grid > div > p:last-child {
  text-transform: none;
  font-size: 1.125rem;
  color: #fff;
}

/* ---------- Features: 4 in one row on desktop ---------- */
@media (min-width: 1024px) {
  #features .flex-wrap > div {
    width: calc((100% - 3rem) / 4);
  }
}

/* ---------- Fade-up on scroll (like the old AOS effect) ---------- */
@keyframes cz-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cz-hero > .container {
  animation: cz-fade-up .6s ease-out both;
}

@supports (animation-timeline: view()) {
  .cz-cat-card,
  #stats .grid,
  #products .bg-card\/75,
  #feedbacks .bg-card\/75 {
    animation: cz-fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cz-hero > .container,
  .cz-cat-card,
  #stats .grid,
  #products .bg-card\/75,
  #feedbacks .bg-card\/75 {
    animation: none;
  }
}

/* Equal-height feature tiles */
.cz-feature-card { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }