


/* ── 1. RESET & VARIABLES ── */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:           #080c18;
  --green:        #00ff9d;
  --green-dim:    rgba(0, 255, 157, 0.1);
  --green-border: rgba(0, 255, 157, 0.2);
  --text:         #e2e8f0;
  --muted:        #8892a4;
  --border:       rgba(255, 255, 255, 0.07);
  --radius:       18px;
}


/* ── 2. BASE ── */

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}


/* ── 3. BACKGROUND ── */

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 255, 157, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 157, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}

.blob1 { width: 600px; height: 600px; background: rgba(0, 255, 157, 0.05); top: -150px; right: -150px; }
.blob2 { width: 500px; height: 500px; background: rgba(0, 100, 255, 0.04); bottom: 50px; left: -150px; }
.blob3 { width: 350px; height: 350px; background: rgba(0, 255, 157, 0.03); top: 50%; left: 50%; transform: translate(-50%, -50%); }


/* ── 4. NAVIGATION ── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 3.75rem;
  background: rgba(8, 12, 24, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--green);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.25s;
}

.nav-back:hover { color: var(--green); border-color: var(--green-border); background: var(--green-dim); }


/* ── 5. HERO & STATS BAR ── */

.hero {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem 3rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero-label {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green-border);
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 1.4rem;
  background: var(--green-dim);
  font-weight: 600;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.1rem;
  letter-spacing: -0.5px;
}

.accent { color: var(--green); }

.hero p { color: var(--muted); font-size: 0.95rem; line-height: 1.75; margin-bottom: 2.5rem; }

.stats-bar {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.stat { padding: 0.9rem 2rem; text-align: center; }

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.stat-label { font-size: 0.65rem; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 4px; }

.stat-divider { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }


/* ── 6. FILTERS ── */

.filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 2rem 1.5rem 1rem;
  position: relative;
  z-index: 1;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  transition: all 0.22s;
  letter-spacing: 0.2px;
}

.filter-btn:hover  { color: var(--text); border-color: rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.04); }
.filter-btn.active { background: var(--green-dim); color: var(--green); border-color: var(--green-border); }

.btn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }


/* ── 7. GRID ── */

.grid-wrap {
  position: relative;
  z-index: 1;
  width: 92%;
  max-width: 1160px;
  margin: 1.5rem auto 0;
  padding: 1rem 0 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}


/* ── 8. CARDS ── */

.card {
  display: block;
  
  border-radius: var(--radius);
  overflow: hidden;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s;
  animation: cardIn 0.5s ease both;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.12s; }
.card:nth-child(3) { animation-delay: 0.19s; }
.card:nth-child(4) { animation-delay: 0.26s; }
.card:nth-child(5) { animation-delay: 0.33s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.55); border-color: var(--green-border); }
.card.featured { border-color: rgba(0, 255, 157, 0.15); }
.card.featured:hover { box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 30px rgba(0,255,157,0.07); }

/* Background image wrapper */
.card-bg-img {
  position: relative;
  width: 100%;
  min-height: 25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Dark gradient overlay via pseudo-element so card has real height */
.card-bg-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,10,20,0.97) 0%, rgba(5,10,20,0.72) 45%, rgba(5,10,20,0.15) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Card placeholder backgrounds */
.bg-ecom {
  background:
    radial-gradient(ellipse at 30% 35%, rgba(0,212,255,0.28) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 65%, rgba(0,255,157,0.18) 0%, transparent 60%),
    linear-gradient(135deg, #060f1e, #0a2540);
}

.bg-land {
  background:
    radial-gradient(ellipse at 60% 30%, rgba(147,51,234,0.32) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 70%, rgba(0,212,255,0.18) 0%, transparent 55%),
    linear-gradient(135deg, #0d0a22, #18153a);
}

.bg-port {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(0,200,130,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(0,255,157,0.15) 0%, transparent 55%),
    linear-gradient(135deg, #061818, #0a2828);
}

.bg-solar {
  background:
    radial-gradient(ellipse at 40% 35%, rgba(100,220,0,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 65%, rgba(255,200,0,0.15) 0%, transparent 55%),
    linear-gradient(135deg, #0a1406, #152208);
}

.bg-key {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0,255,157,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 70%, rgba(80,0,255,0.15) 0%, transparent 55%),
    linear-gradient(135deg, #080612, #100a22);
}

/* Content sits above gradient overlay */
.card-bg-gradient {
  background: none;
  padding: 1.4rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  
  z-index: 2;
}


/* ── 9. BADGES ── */

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  z-index: 3;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-live     { background: rgba(0,255,157,0.1); color: var(--green); border: 1px solid rgba(0,255,157,0.25); }
.badge-featured { background: rgba(255,200,0,0.08); color: #ffd700; border: 1px solid rgba(255,200,0,0.2); }

.pulse {
  animation: livePulse 2s infinite;
  font-size: 0.4rem;
}

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

.card-category-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  z-index: 3;
}


/* ── 10. CARD CONTENT ── */

.card-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  
  gap: 0.7rem;
}

.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  transition: color 0.25s;
}

.card:hover .card-title { color: var(--green); }

.card-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.75; }

/* Expandable features */
.card-extra { margin-bottom: 0.4rem; }
.card-extra.hidden { display: none; }

.card-features {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.35);
  border-radius: 10px;
  border: 1px solid rgba(0,255,157,0.1);
}

.feat { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: rgba(255,255,255,0.75); }
.feat i { color: var(--green); font-size: 0.7rem; flex-shrink: 0; }

.card-read-more {
  background: none;
  border: 1px solid rgba(0,255,157,0.35);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 20px;
  cursor: pointer;
  margin-bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 15em;
  transition: background 0.25s, box-shadow 0.25s;
  font-family: 'DM Sans', sans-serif;
}

.card-read-more:hover { background: var(--green-dim); box-shadow: 0 0 12px rgba(0,255,157,0.2); }

.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  transition: all 0.22s;
  border: 1px solid;
}

.btn-primary { background: var(--green); color: #050c14; border-color: var(--green); }
.btn-primary:hover { background: #00ffaa; box-shadow: 0 0 20px rgba(0,255,157,0.35); }

.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }


/* ── 11. EMPTY STATE ── */

.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-state i { font-size: 2.5rem; opacity: 0.3; }


/* ── 12. FOOTER ── */

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.3px;
}


/* ── 13. MEDIA QUERIES ── */

@media (min-width: 681px) and (max-width: 1024px) {
  .grid-wrap {
    grid-template-columns: 1fr;
    width: 88%;
    max-width: 680px;
    gap: 1.25rem;
  }

  .card-bg-img { min-height: 320px; }
}

@media (max-width: 680px) {
  nav { padding: 0 1.2rem; }

  .hero { padding: 3.5rem 1.2rem 2rem; }
  .hero h1 { font-size: 2.2rem; }

  .stats-bar { width: 100%; }
  .stat { padding: 0.75rem 1.2rem; }

  .filters { padding: 1.5rem 1rem 0.5rem; gap: 0.4rem; }
  .filter-btn { padding: 7px 14px; font-size: 0.75rem; }

  .grid-wrap {
    grid-template-columns: 1fr;
    width: 92%;
    gap: 1.1rem;
    padding: 0.5rem 0 4rem;
  }

  .card-bg-img { min-height: 27rem; }
  .card-category-tag { display: none; }
}
