/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0a020a;
  --bg2:          #130410;
  --bg3:          #1e0719;
  --bg4:          #2e0722;
  --dim:          #5a2050;
  --muted:        #8a5078;
  --faint:        #b080a0;
  --text:         #f0e8f0;
  --lime:         #beff7d;
  --lime-dim:     rgba(190, 255, 125, 0.13);

  --orange:       #f07030;
  --orange-dim:   rgba(240, 112, 48, 0.12);
  --neon:         #a8e040;
  --neon-dim:     rgba(168, 224, 64, 0.12);
  --slate:        #6ab0d4;
  --slate-dim:    rgba(106, 176, 212, 0.12);
  --amber:        #c89040;
  --amber-dim:    rgba(200, 144, 64, 0.12);
  --phosphor:     #39ff6a;
  --phosphor-dim: rgba(57, 255, 106, 0.10);
  --silver:       #9aa0aa;
  --silver-dim:   rgba(154, 160, 170, 0.12);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  --gap: 2px;
  --page-pad: clamp(24px, 5vw, 40px);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Atmospheric orbs ──────────────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.o1 { width: 600px; height: 440px; background: rgba(46, 7, 34, 0.85); top: -80px; left: -120px; }
.o2 { width: 300px; height: 300px; background: rgba(190, 255, 125, 0.04); top: 60px; right: -60px; }
.o3 { width: 500px; height: 220px; background: rgba(46, 7, 34, 0.5); bottom: 0; right: 0; }

/* ─── Nav ───────────────────────────────────────────────────── */
nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--page-pad) 0;
}

.brand {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  padding: 72px var(--page-pad) 56px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(190, 255, 125, 0.5);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 54px);
  line-height: 1.06;
  color: var(--text);
  max-width: 560px;
  margin-bottom: 22px;
}

.hero-title em {
  font-style: italic;
  color: var(--lime);
}

.hero-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 400px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-rule {
  width: 36px;
  height: 1px;
  background: var(--bg4);
}

/* ─── Divider ───────────────────────────────────────────────── */
.divider {
  position: relative;
  z-index: 2;
  height: 1px;
  margin: 0 var(--page-pad);
  background: var(--bg3);
}

/* ─── Section header ────────────────────────────────────────── */
#apps {
  position: relative;
  z-index: 2;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px var(--page-pad) 18px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.08em;
}

/* ─── Grid ──────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin: 0 var(--page-pad);
}

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  position: relative;
  padding: 30px;
  background: var(--bg2);
  overflow: hidden;
  transition: background 0.25s;
}

.card:hover { background: var(--bg3); }
.card.coming { opacity: 0.65; }
.card.coming:hover { opacity: 0.85; }

/* Colored borders */
.cb-t, .cb-l, .cb-r, .cb-b { position: absolute; }
.cb-t { top: 0; left: 0; right: 0; height: 2px; }
.cb-l { top: 0; left: 0; bottom: 0; width: 1px; }
.cb-r { top: 0; right: 0; bottom: 0; width: 1px; }
.cb-b { bottom: 0; left: 0; right: 0; height: 1px; }

.parametri .cb-t { background: var(--silver); }
.parametri .cb-l, .parametri .cb-r, .parametri .cb-b { background: rgba(154, 160, 170, 0.22); }

.greybox .cb-t { background: var(--slate); }
.greybox .cb-l, .greybox .cb-r, .greybox .cb-b { background: rgba(106, 176, 212, 0.25); }

.cophony .cb-t { background: var(--amber); }
.cophony .cb-l, .cophony .cb-r, .cophony .cb-b { background: rgba(200, 144, 64, 0.25); }

.mutnt .cb-t { background: var(--phosphor); }
.mutnt .cb-l, .mutnt .cb-r, .mutnt .cb-b { background: rgba(57, 255, 106, 0.22); }

.juici .cb-t { background: var(--orange); }
.juici .cb-l, .juici .cb-r, .juici .cb-b { background: rgba(240, 112, 48, 0.28); }

.boxi .cb-t { background: var(--neon); }
.boxi .cb-l, .boxi .cb-r, .boxi .cb-b { background: rgba(168, 224, 64, 0.28); }

/* Icon box */
.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 16px;
}

.parametri .icon-box { background: var(--silver-dim); color: var(--silver); }
.greybox   .icon-box { background: var(--slate-dim);  color: var(--slate); }
.cophony   .icon-box { background: var(--amber-dim);  color: var(--amber); }
.mutnt     .icon-box { background: var(--phosphor-dim); color: var(--phosphor); }
.juici     .icon-box { background: var(--orange-dim); color: var(--orange); }
.boxi      .icon-box { background: var(--neon-dim);   color: var(--neon); }

/* Card text */
.card-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: normal;
  margin-bottom: 4px;
}

.parametri .card-name { color: #e8eaed; }
.greybox   .card-name { color: #d8ecf5; }
.cophony   .card-name { color: #f5e8cc; }
.mutnt     .card-name { color: #d0f5dc; }
.juici     .card-name { color: #fde8d8; }
.boxi      .card-name { color: #e8f5cc; }

.card-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.parametri .card-tag { color: #6a7080; }
.greybox   .card-tag { color: #4a7a98; }
.cophony   .card-tag { color: #907040; }
.mutnt     .card-tag { color: #2a8040; }
.juici     .card-tag { color: #906050; }
.boxi      .card-tag { color: #6a9030; }

.card-desc {
  font-size: 12px;
  line-height: 1.75;
  margin-bottom: 20px;
  color: var(--faint);
}

/* Pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 20px;
}

.pill {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 20px;
}

.parametri .pill { background: rgba(154, 160, 170, 0.10); color: #8090a0; }
.greybox   .pill { background: rgba(106, 176, 212, 0.10); color: #5a9ab8; }
.cophony   .pill { background: rgba(200, 144,  64, 0.10); color: #a87830; }
.mutnt     .pill { background: rgba( 57, 255, 106, 0.08); color: #30c050; }
.juici     .pill { background: rgba(240, 112,  48, 0.10); color: #d07050; }
.boxi      .pill { background: rgba(168, 224,  64, 0.10); color: #90c840; }

/* Card footer */
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid;
}

.parametri .card-foot { border-color: rgba(154, 160, 170, 0.12); }
.greybox   .card-foot { border-color: rgba(106, 176, 212, 0.12); }
.cophony   .card-foot { border-color: rgba(200, 144,  64, 0.12); }
.mutnt     .card-foot { border-color: rgba( 57, 255, 106, 0.10); }
.juici     .card-foot { border-color: rgba(240, 112,  48, 0.15); }
.boxi      .card-foot { border-color: rgba(168, 224,  64, 0.12); }

.status {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-live { background: #5dca8a; }
.dot-dev  { background: var(--neon); }

.foot-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover  { opacity: 0.85; }
.btn:active { transform: scale(0.97); }

.parametri .btn { background: var(--silver);   color: #0a0c10; }
.greybox   .btn { background: var(--slate);    color: #060e14; }
.cophony   .btn { background: var(--amber);    color: #140a00; }
.mutnt     .btn { background: var(--phosphor); color: #001008; }
.juici     .btn { background: var(--orange);   color: #180400; }
.boxi      .btn { background: var(--neon);     color: #0a1400; }

/* Free badge */
.badge-free {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  background: rgba(190, 255, 125, 0.08);
  color: rgba(190, 255, 125, 0.45);
  border: 1px solid rgba(190, 255, 125, 0.14);
  white-space: nowrap;
}

/* Corner label */
.corner {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.parametri .corner { color: rgba(154, 160, 170, 0.18); }
.greybox   .corner { color: rgba(106, 176, 212, 0.20); }
.cophony   .corner { color: rgba(200, 144,  64, 0.20); }
.mutnt     .corner { color: rgba( 57, 255, 106, 0.18); }
.juici     .corner { color: rgba(240, 112,  48, 0.20); }
.boxi      .corner { color: rgba(168, 224,  64, 0.18); }

/* ─── Footer ────────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 2;
  margin-top: 48px;
  padding: 24px var(--page-pad);
  border-top: 1px solid var(--bg3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--muted); }

/* ─── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title, .hero-sub, .eyebrow {
  animation: fadeUp 0.6s ease both;
}

.eyebrow    { animation-delay: 0.05s; }
.hero-title { animation-delay: 0.12s; }
.hero-sub   { animation-delay: 0.2s; }

.card {
  animation: fadeUp 0.5s ease both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.15s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.25s; }
.card:nth-child(5) { animation-delay: 0.3s; }
.card:nth-child(6) { animation-delay: 0.35s; }
