/* =========================================================
   Components από το 21st.dev, ξαναγραμμένα σε απλό CSS
   1. Μενού (tubelight-navbar)
   2. Κάρτες υπηρεσιών (glowing-effect)
   3. Κάρτα Accelerator (card-spotlight)
   4. Αριθμοί (number ticker)
   5. Footer (large-name-footer)
   ========================================================= */

.i { width: 18px; height: 18px; flex: none; }

/* ---------------------------------------------------------
   1. Μενού
   --------------------------------------------------------- */
.tl-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  max-width: calc(100% - 24px);
}
.tl-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(6, 17, 39, 0.6);
  border: 1px solid rgba(170, 205, 255, 0.16);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
          backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 12px 40px -16px rgba(0, 0, 0, 0.8);
}
.tl-item, .tl-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}
.tl-item { color: rgba(234, 241, 255, 0.78); }
.tl-item .i { display: none; }
.tl-item:hover { color: var(--accent); }
.tl-item.is-active { color: var(--accent); }

.tl-cta {
  margin-left: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  transition: background-color .2s ease;
}
.tl-cta .i { display: none; }
.tl-cta:hover { background: var(--accent-strong); }

/* η "λάμπα": φόντο του ενεργού + φωτεινή γραμμή από πάνω, γλιστράει */
.tl-lamp {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: rgba(61, 216, 245, 0.10);
  opacity: 0;
  pointer-events: none;
  transition: transform .5s cubic-bezier(.3, 1.3, .5, 1), width .5s cubic-bezier(.3, 1.3, .5, 1), opacity .25s ease;
}
.tl-lamp.is-on { opacity: 1; }
.tl-lamp__bar {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 32px;
  height: 4px;
  margin-left: -16px;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
}
.tl-lamp__bar i {
  position: absolute;
  border-radius: 999px;
  background: rgba(61, 216, 245, 0.28);
}
.tl-lamp__bar i:nth-child(1) { width: 48px; height: 24px; top: -8px; left: -8px; filter: blur(10px); }
.tl-lamp__bar i:nth-child(2) { width: 32px; height: 24px; top: -4px; left: 0; filter: blur(10px); }
.tl-lamp__bar i:nth-child(3) { width: 16px; height: 16px; top: 0; left: 8px; filter: blur(4px); }

/* Κινητό: μόνο εικονίδια, η μπάρα κάτω στην οθόνη (όπως στο πρωτότυπο) */
@media (max-width: 860px) {
  .tl-nav { top: auto; bottom: 16px; }
  .tl-item, .tl-cta { padding: 12px 14px; }          /* 48x44, στόχος αφής τουλάχιστον 44px */
  .tl-item .i, .tl-cta .i { display: block; width: 20px; height: 20px; }
  .tl-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tl-lamp__bar { top: auto; bottom: -9px; border-radius: 0 0 4px 4px; }
  body { padding-bottom: 84px; }
}
@media (max-width: 380px) {
  .tl-item, .tl-cta { padding: 12px; }                /* 44x44 */
}


/* ---------------------------------------------------------
   2. Κάρτες υπηρεσιών με φωτεινό περίγραμμα που ακολουθεί το ποντίκι
   --------------------------------------------------------- */
.ge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ge-item { min-height: 14rem; list-style: none; }
.ge-card {
  position: relative;
  height: 100%;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid rgba(170, 205, 255, 0.14);
}
.ge-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  padding: 24px;
  border-radius: 14px;
  background: var(--bg);
  border: 0.75px solid rgba(170, 205, 255, 0.10);
  box-shadow: 0 0 27px 0 rgba(4, 11, 28, 0.6);
  overflow: hidden;
}
.ge-icon {
  width: fit-content;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(170, 205, 255, 0.18);
  color: var(--accent);
}
.ge-icon .i { width: 16px; height: 16px; display: block; }
.ge-text h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.ge-text p { color: var(--muted); font-size: 1rem; line-height: 1.55; }

/* το φωτεινό περίγραμμα: conic-gradient μασκαρισμένο μόνο στο border */
.ge-glow {
  --start: 0;
  --active: 0;
  --spread: 40;
  --bw: 3px;
  --gradient:
    radial-gradient(circle, #3dd8f5 10%, rgba(61, 216, 245, 0) 20%),
    radial-gradient(circle at 40% 40%, #a5f0ff 5%, rgba(165, 240, 255, 0) 15%),
    radial-gradient(circle at 60% 60%, #2b8cff 10%, rgba(43, 140, 255, 0) 20%),
    radial-gradient(circle at 40% 60%, #3dd8f5 10%, rgba(61, 216, 245, 0) 20%),
    repeating-conic-gradient(from 236.84deg at 50% 50%, #3dd8f5 0%, #a5f0ff calc(25% / 5), #2b8cff calc(50% / 5), #3dd8f5 calc(75% / 5), #a5f0ff calc(100% / 5));
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.ge-glow::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--bw));
  border-radius: inherit;
  border: var(--bw) solid transparent;
  background: var(--gradient);
  background-attachment: fixed;
  opacity: var(--active);
  transition: opacity .3s ease;
  -webkit-mask-image:
    linear-gradient(#0000, #0000),
    conic-gradient(from calc((var(--start) - var(--spread)) * 1deg), #00000000 0deg, #fff, #00000000 calc(var(--spread) * 2deg));
          mask-image:
    linear-gradient(#0000, #0000),
    conic-gradient(from calc((var(--start) - var(--spread)) * 1deg), #00000000 0deg, #fff, #00000000 calc(var(--spread) * 2deg));
  -webkit-mask-clip: padding-box, border-box;
          mask-clip: padding-box, border-box;
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}

@media (max-width: 760px) {
  .ge-grid { grid-template-columns: minmax(0, 1fr); }
  .ge-item { min-height: 0; }
  .ge-card { padding: 8px; border-radius: 18px; }
}

/* ---------------------------------------------------------
   3. Κάρτα Accelerator με spotlight
   --------------------------------------------------------- */
.spot-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(170, 205, 255, 0.14);
  background: #050c1d;
  padding: clamp(28px, 5vw, 52px);
  --mx: -999px;
  --my: -999px;
}
.spot-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(350px circle at var(--mx) var(--my), #fff, transparent 80%);
          mask-image: radial-gradient(350px circle at var(--mx) var(--my), #fff, transparent 80%);
}
.spot-card::before {           /* απαλό σκούρο φως κάτω από τις τελείες */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(350px circle at var(--mx) var(--my), rgba(61, 216, 245, 0.10), transparent 80%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.spot-card.is-hover .spot-dots,
.spot-card.is-hover::before { opacity: 1; }
.spot-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px 48px;
}
.spot-content h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 700; margin-bottom: 16px; }
.spot-content .feature__text p:not(.kicker) { color: #c9d6ee; max-width: 58ch; }
.spot-content .feature__text p + p { margin-top: 10px; }
@media (max-width: 860px) {
  .spot-content { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 640px) {
  .spot-content .btn { width: 100%; }
}

/* ---------------------------------------------------------
   4. Αριθμοί
   --------------------------------------------------------- */
.ticker { font-variant-numeric: tabular-nums; display: inline-block; min-width: 3ch; }

/* ---------------------------------------------------------
   5. Footer με το μεγάλο όνομα
   --------------------------------------------------------- */
.lnf {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid rgba(170, 205, 255, 0.12);
  background: linear-gradient(to bottom, rgba(6, 17, 39, 0.4), var(--bg-deep));
  overflow: hidden;
}
.lnf__top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-block: clamp(40px, 6vw, 64px) 24px;
  flex-wrap: wrap;
}
.lnf__brand { max-width: 320px; }
.lnf__tag { font-weight: 700; font-size: 1.125rem; line-height: 1.4; }
.lnf__copy { margin-top: 14px; color: var(--muted); font-size: .9rem; }
.lnf__cols {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 24px clamp(32px, 5vw, 64px);
}
.lnf__col h3 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.lnf__col ul { display: grid; gap: 10px; }
.lnf__col a {
  display: inline-block;
  padding: 12px 0;                  /* περιοχή αφής 44px, */
  margin: -12px 0;                  /* χωρίς να αλλάζουν οι αποστάσεις που φαίνονται */
  color: var(--muted); text-decoration: none; font-size: .95rem; transition: color .2s ease;
}
.lnf__col a:hover { color: var(--text); }

.lnf__name {
  font-weight: 800;
  font-size: clamp(3rem, 10.2vw, 10rem);
  line-height: .9;
  letter-spacing: -0.05em;
  text-align: center;
  white-space: nowrap;
  padding: 0 12px;
  margin-bottom: -0.12em;
  background: linear-gradient(to bottom, rgba(234, 241, 255, 0.22), rgba(234, 241, 255, 0.02) 85%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 860px) {
  .lnf__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .lnf__name { font-size: 10.2vw; }
}
