/* fx.css: καλλωπιστικά για όλο το site (τίτλοι ενοτήτων, εμφάνιση στο scroll, 3D κάρτες,
   «Πώς δουλεύουμε», μπάρα τεχνολογιών). Φορτώνεται μετά τα inline styles κάθε σελίδας. */

/* ── 1. Τίτλοι ενοτήτων: μεγαλύτεροι, με λάμψη και γραμμή από κάτω ── */
.section-heading,
.products-heading,
.pillars-heading {
  font-family: 'Orbitron', sans-serif !important;
  font-size: clamp(1.05rem, 2.4vw, 1.55rem) !important;
  font-weight: 900 !important;
  color: #eef3ff !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 52px !important;
  text-shadow: 0 0 26px rgba(55,94,251,0.65), 0 0 10px rgba(125,155,255,0.35), 0 2px 8px rgba(0,0,0,0.9) !important;
  position: relative;
  padding-bottom: 18px;
}
.section-heading::after,
.products-heading::after,
.pillars-heading::after {
  content: '';
  position: absolute; left: 50%; bottom: 0;
  width: 120px; height: 2px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #375efb 30%, #9fb6ff 50%, #375efb 70%, transparent);
  box-shadow: 0 0 12px rgba(55,94,251,0.8);
  border-radius: 2px;
}
/* το intro των πακέτων είχε αρνητικό margin για τον παλιό μικρό τίτλο */
.packages-section .pkg-intro { margin-top: -22px; }

/* ── 2. Ομαλή εμφάνιση καθώς κατεβαίνεις ── */
.fx-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.fx-reveal.fx-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fx-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── 3. Κάρτες σε 3D (μόνο με ποντίκι) ── */
.fx-tilt {
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.fx-tilt.fx-tilting { transition: transform 0.06s linear, box-shadow 0.25s ease, border-color 0.25s ease; }
.fx-tilt .fx-shine {
  pointer-events: none; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at var(--fx-x, 50%) var(--fx-y, 50%), rgba(140,170,255,0.22), transparent 55%);
  opacity: 0; transition: opacity 0.25s ease;
}
.fx-tilt.fx-tilting .fx-shine { opacity: 1; }
.fx-tilt.fx-tilting { box-shadow: 0 18px 40px rgba(0,0,0,0.55), 0 0 26px rgba(55,94,251,0.35); border-color: rgba(110,140,255,0.7) !important; }

/* ── 4. Πώς δουλεύουμε ── */
.how-section { padding: 80px 28px; border-top: 1px solid rgba(55,94,251,0.12); }
.how-steps {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  counter-reset: how;
  position: relative;
}
.how-steps::before {
  content: ''; position: absolute; left: 12%; right: 12%; top: 46px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(55,94,251,0.6), rgba(55,94,251,0.6), transparent);
  z-index: 0;
}
.how-step {
  position: relative; z-index: 1;
  text-align: center;
  background: rgba(6, 8, 16, 0.78);
  border: 1px solid rgba(55,94,251,0.25); border-radius: 14px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 26px 18px 24px;
}
.how-icon {
  width: 64px; height: 64px; margin: -2px auto 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #5b7dff, #1d2f8f 70%);
  box-shadow: 0 0 0 4px rgba(55,94,251,0.18), 0 0 24px rgba(55,94,251,0.55);
  color: #fff;
}
.how-icon svg { width: 28px; height: 28px; }
.how-num {
  display: block; font-family: 'Orbitron', sans-serif; font-size: 0.68rem; font-weight: 900;
  letter-spacing: 0.2em; color: #c9a84c; margin-bottom: 6px;
}
.how-title {
  font-family: 'Orbitron', sans-serif; font-size: 0.92rem; font-weight: 900; letter-spacing: 0.08em;
  color: #ffffff; margin: 0 0 10px;
}
.how-text {
  font-family: 'Exo 2', sans-serif; font-size: 0.9rem; font-weight: 600; line-height: 1.6;
  color: #dfe7fa; margin: 0;
}
.how-cta-wrap { text-align: center; margin-top: 40px; }
.how-cta {
  display: inline-block; text-decoration: none;
  font-family: 'Orbitron', sans-serif; font-size: 0.72rem; font-weight: 900;
  letter-spacing: 0.14em; text-transform: uppercase; color: #ffffff;
  background: linear-gradient(135deg, #375efb, #2440b8);
  border: 1px solid rgba(140,170,255,0.6); border-radius: 10px;
  padding: 15px 34px;
  box-shadow: 0 0 26px rgba(55,94,251,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.how-cta:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(55,94,251,0.7); }
@media (max-width: 900px) {
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .how-steps::before { display: none; }
}
@media (max-width: 520px) {
  .how-steps { grid-template-columns: 1fr; }
}

/* ── 5. Μπάρα τεχνολογιών που κυλάει ── */
.tech-section { padding: 34px 0 60px; overflow: hidden; }
.tech-label {
  text-align: center; font-family: 'Exo 2', sans-serif; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: rgba(205,216,240,0.75);
  margin: 0 0 18px;
}
.tech-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.tech-track {
  display: flex; gap: 14px; width: max-content;
  animation: fx-marquee 38s linear infinite;
}
.tech-marquee:hover .tech-track { animation-play-state: paused; }
.tech-pill {
  flex: 0 0 auto;
  font-family: 'Orbitron', sans-serif; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em;
  color: #e6edfb; white-space: nowrap;
  background: rgba(10,14,30,0.8);
  border: 1px solid rgba(55,94,251,0.35); border-radius: 999px;
  padding: 10px 20px;
  box-shadow: inset 0 0 12px rgba(55,94,251,0.15);
}
@keyframes fx-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tech-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ── 4β. «Πώς δουλεύουμε»: κάρτες sci-fi με κομμένες γωνίες, μπλε λάμψη και χρυσά νούμερα ── */
.how-step {
  --cut: 18px;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  isolation: isolate;
  padding: 30px 20px 26px;
  filter: drop-shadow(0 0 10px rgba(55,94,251,0.45)) drop-shadow(0 14px 22px rgba(20,50,200,0.25));
}
.how-step::before,
.how-step::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)),
                     calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
/* εξωτερικό: το φωτεινό περίγραμμα */
.how-step::before {
  inset: 0;
  background: linear-gradient(160deg, #8fb0ff 0%, #2f5bff 30%, #16308f 55%, #3d6bff 80%, #a9c2ff 100%);
}
/* εσωτερικό: σκούρο γυαλί με αντανάκλαση */
.how-step::after {
  inset: 2px;
  --cut: 17px;
  background:
    linear-gradient(125deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.02) 28%, transparent 45%),
    radial-gradient(ellipse at 50% 30%, rgba(55,94,251,0.28), transparent 65%),
    linear-gradient(180deg, #0b1440 0%, #060b26 100%);
  box-shadow: inset 0 0 22px rgba(55,94,251,0.45);
}
.fx-tilt.how-step.fx-tilting { box-shadow: none; filter: drop-shadow(0 0 16px rgba(80,120,255,0.75)) drop-shadow(0 18px 26px rgba(20,50,200,0.35)); }
.how-step .fx-shine { border-radius: 0; }

.how-step .how-icon {
  width: 76px; height: 76px; margin: 0 auto 14px;
  background: radial-gradient(circle at 50% 35%, #4d74ff 0%, #2448e0 55%, #142a9a 100%);
  box-shadow: 0 0 0 3px rgba(120,155,255,0.55), 0 0 0 7px rgba(55,94,251,0.18), 0 0 30px rgba(55,94,251,0.85), inset 0 -6px 14px rgba(0,0,0,0.35);
}
.how-step .how-icon svg { width: 32px; height: 32px; }

.how-step .how-num {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 0.95rem; color: #f5b833;
  text-shadow: 0 0 10px rgba(245,184,51,0.55);
  margin-bottom: 10px;
}
.how-step .how-num::before,
.how-step .how-num::after {
  content: ''; width: 34px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #f5b833);
  box-shadow: 0 0 6px rgba(245,184,51,0.6);
}
.how-step .how-num::after { background: linear-gradient(90deg, #f5b833, transparent); }
/* η γραμμή που ενώνει τα βήματα, σε μπλε νέον */
.how-steps::before { top: 52px; background: linear-gradient(90deg, transparent, #3d6bff, #8fb0ff, #3d6bff, transparent); box-shadow: 0 0 10px rgba(55,94,251,0.8); }

/* ── 6. Αρχική: τερματικό που γράφει μόνο του, αριστερά στο hero (μόνο σε φαρδιές οθόνες) ── */
.hero { position: relative; }
.hero-code {
  position: absolute; left: 3%; top: 50%; transform: translateY(-38%);
  width: 380px; text-align: left; z-index: 1;
  background: rgba(6, 10, 30, 0.06);
  border: 1px solid rgba(90,130,255,0.45); border-radius: 12px;
  
  box-shadow: 0 0 18px rgba(55,94,251,0.25), inset 0 0 12px rgba(55,94,251,0.08);
  overflow: hidden;
}
.hero-code-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-bottom: 1px solid rgba(90,130,255,0.25);
  background: rgba(20,30,80,0.08);
}
.hero-code-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; display: inline-block; }
.hero-code-bar i:nth-child(2) { background: #febc2e; }
.hero-code-bar i:nth-child(3) { background: #28c840; }
.hero-code-bar span { margin-left: 8px; font: 600 0.68rem 'Exo 2', sans-serif; letter-spacing: 0.08em; color: rgba(200,212,240,0.6); }
.hero-code-body {
  margin: 0; padding: 14px 16px 16px; min-height: 390px;
  font: 500 0.8rem/1.65 Consolas, 'Courier New', monospace;
  color: #e3ebff; white-space: pre-wrap; word-break: break-word;
  text-shadow: 0 1px 4px rgba(0,0,0,0.95), 0 0 2px rgba(0,0,0,0.9);
}
.hero-code-body .p { color: #5f86ff; }
.hero-code-body .ok { color: #3ddc84; }
.hero-code-body .gold { color: #f5b833; }
.hero-code-body .cur {
  display: inline-block; width: 8px; height: 1em; vertical-align: -2px;
  background: #8fb0ff; animation: hc-blink 1s steps(1) infinite;
}
@keyframes hc-blink { 50% { opacity: 0; } }
@media (max-width: 1400px) { .hero-code { display: none; } }

/* ── 7. Αρχική: HUD παιχνιδιού δεξιά στο hero (ζευγάρι με το τερματικό, μόνο σε φαρδιές οθόνες) ── */
.hero-hud {
  position: absolute; right: 3%; top: 50%; transform: translateY(-38%);
  width: 300px; z-index: 1; text-align: left;
  font-family: 'Orbitron', sans-serif; color: #e3ebff;
  background: rgba(6, 10, 30, 0.06);
  border: 1px solid rgba(90,130,255,0.45); border-radius: 12px;
  box-shadow: 0 0 18px rgba(55,94,251,0.25), inset 0 0 12px rgba(55,94,251,0.08);
  padding: 14px 16px 12px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.95);
}
.hud-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 0.66rem; font-weight: 900; letter-spacing: 0.16em; }
.hud-p1 { color: #8fb0ff; }
.hud-lvl { color: rgba(220,230,255,0.75); }
.hud-lvl b { color: #f5b833; font-size: 0.85rem; margin-left: 4px; }
.hud-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hud-lbl { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em; color: rgba(205,216,240,0.7); width: 22px; }
.hud-bar { flex: 1; height: 10px; border-radius: 3px; background: rgba(255,255,255,0.06); border: 1px solid rgba(140,170,255,0.3); overflow: hidden; }
.hud-bar i { display: block; height: 100%; width: 100%; transition: width 0.6s ease; }
.hud-bar.hp i { background: linear-gradient(90deg, #ff3b4f, #ff8a5b); box-shadow: 0 0 10px rgba(255,70,80,0.7); }
.hud-bar.en i { background: linear-gradient(90deg, #2f5bff, #6fd3ff); box-shadow: 0 0 10px rgba(80,140,255,0.7); }
.hud-mid { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 10px; }
.hud-score { display: flex; flex-direction: column; gap: 4px; position: relative; }
.hud-score .hud-lbl { width: auto; }
.hud-score b { font-size: 1.45rem; font-weight: 900; letter-spacing: 0.08em; color: #fff; text-shadow: 0 0 14px rgba(55,94,251,0.8), 0 1px 4px #000; }
.hud-combo { position: absolute; top: -4px; left: 64px; font-size: 0.62rem; font-weight: 900; color: #f5b833; letter-spacing: 0.1em; opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s; white-space: nowrap; }
.hud-combo.show { opacity: 1; transform: none; }
.hud-map { width: 96px; height: 96px; border-radius: 50%; border: 1px solid rgba(140,170,255,0.45); background: rgba(10,20,60,0.25); box-shadow: inset 0 0 14px rgba(55,94,251,0.35); }
.hud-foot { display: flex; justify-content: space-between; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.12em; color: rgba(205,216,240,0.7); border-top: 1px solid rgba(90,130,255,0.25); padding-top: 8px; }
.hud-foot b { color: #3ddc84; }
.hud-live { color: #ff4d5e; animation: hc-blink 1.4s steps(1) infinite; }
@media (max-width: 1400px) { .hero-hud { display: none; } }

/* ── 8. Δίκτυο σωματιδίων και αποκωδικοποίηση τίτλου στο πάνω μέρος του Creative Studio και του DG Games (js/hero-net.js, όπως στην αρχική) ── */
.page-hero { position: relative; overflow: hidden; }
.page-hero > :not(.hero-net) { position: relative; z-index: 1; }
.page-hero .hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
