/* designer.gr — interactions από το Concept 11 (branch stef/ux-concepts), για αρχική και «Τι φτιάχνουμε».
   Φορτώνεται μετά το site.css· δεν αλλάζει τη δομή των σελίδων. */

:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* ---------- Hero: μεγαλύτερο background και σχήματα, interactive ---------- */
.hero-grid { grid-template-columns: 1fr 1fr; }
.hero-visual { max-width: 780px; --gx: 0%; --gy: 0%; }
.viz-glow {
  inset: -6%; filter: blur(56px); opacity: .8;
  translate: var(--gx) var(--gy);
  transition: translate 1.2s var(--ease-out), opacity .5s, scale .6s var(--ease-out);
}
/* δεύτερη, πιο θερμή «αύρα» που φουσκώνει στο hover και στις μεταβάσεις */
.viz-aura {
  position: absolute; inset: 8%; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 90, 31, .28), rgba(255, 61, 119, .14) 55%, transparent 75%);
  filter: blur(30px); opacity: .45; scale: .9;
  translate: calc(var(--gx) * -1.4) calc(var(--gy) * -1.4);
  transition: opacity .5s, scale .8s var(--ease-out), translate 1.4s var(--ease-out);
}
.hero-visual.is-hot .viz-glow { opacity: 1; scale: 1.06; }
.hero-visual.is-hot .viz-aura { opacity: .8; scale: 1.05; }
.hero-visual.burst .viz-aura { animation: aura-burst 1s var(--ease-out); }
.hero-visual.burst .viz-glow { animation: glow-burst 1.1s var(--ease-out); }
@keyframes aura-burst { 0% { opacity: 1; scale: .7; } 40% { opacity: 1; scale: 1.25; } }
@keyframes glow-burst { 30% { filter: blur(40px) saturate(1.6); } }

/* ο canvas βγαίνει έξω από το πλαίσιο ώστε η «έκρηξη» να μην κόβεται σε ευθείες γραμμές */
.brand-viz { cursor: pointer; inset: -12%; width: 124%; height: 124%; }

/* caption + δείκτες σχημάτων */
.viz-caption { bottom: 0; gap: 12px; padding: 8px 10px 8px 16px; }
.viz-dots { display: flex; gap: 6px; padding-left: 12px; border-left: 1px solid var(--line); }
.viz-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: rgba(15, 18, 34, .18); transition: width .4s var(--ease-out), background .3s;
}
.viz-dots button:hover { background: rgba(15, 18, 34, .4); }
.viz-dots button[aria-current] { width: 22px; background: var(--grad); }
.viz-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Μας εμπιστεύτηκαν: hover = αλλαγή logo ---------- */
.flip-slot { cursor: pointer; transition: transform .5s var(--ease-out), opacity .38s ease, box-shadow .35s, background .35s; }
.flip-slot:hover:not(.flip-out):not(.flip-out-fast):not(.flip-in) {
  transform: translateY(-6px) scale(1.035); background: rgba(255, 255, 255, .86); box-shadow: var(--shadow-lg);
}
.flip-slot .client-logo { transform: scale(var(--ls, 1)); }
.flip-slot:hover .client-logo { transform: scale(calc(var(--ls, 1) * 1.08)); }
.flip-name {
  position: absolute; left: 0; right: 0; bottom: 10px; text-align: center;
  font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3);
  opacity: 0; translate: 0 4px; transition: opacity .3s, translate .4s var(--ease-out); pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px;
}
.flip-slot:hover .flip-name { opacity: 1; translate: 0 0; }
.flip-slot:hover .flip-face { translate: 0 -6px; }
.flip-face { transition: translate .4s var(--ease-out); }
.flip-slot.flip-out-fast { transform: rotateX(90deg) scale(.96); opacity: 0; transition-duration: .22s; }
.flip-slot.flip-in { animation: flip-in-11 .52s var(--ease-out); }
@keyframes flip-in-11 { from { transform: rotateX(-90deg) scale(.94); opacity: 0; filter: blur(4px); } }

/* ---------- Bento: zoom και highlight στο hover ---------- */
.service {
  transition: opacity .7s ease, transform .55s var(--ease-out), box-shadow .45s var(--ease-out), filter .45s, background .45s;
  --mx: 50%; --my: 0%;
}
.service::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 90, 31, .13), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.service::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1.5px; background: linear-gradient(135deg, var(--accent), var(--accent-2) 45%, rgba(255, 255, 255, 0) 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.service > * { position: relative; z-index: 1; }
.service > .pill { position: absolute; }
.service .widget { transition: transform .6s var(--ease-out), box-shadow .45s; transform-origin: 50% 100%; }
.service .pill, .service .ic-big { transition: background .3s, color .3s, transform .5s var(--ease-out); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .bento:has(.service:hover) .service:not(:hover) { opacity: .62; filter: saturate(.7); transform: scale(.985); }
  .service.in:hover {
    transform: scale(1.025); z-index: 2;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 2px 4px rgba(30, 40, 90, .05), 0 34px 90px rgba(255, 90, 31, .16), 0 20px 60px rgba(30, 40, 90, .12);
  }
  .service:hover::before, .service:hover::after { opacity: 1; }
  .service:hover .widget { transform: scale(1.035); box-shadow: 0 14px 34px rgba(30, 40, 90, .12); }
  .service:hover .pill { background: var(--accent); color: #fff; }
  .service:hover .ic-big { transform: rotate(-8deg) scale(1.08); }
}
/* Χωρίς hover (κινητό) ή reduced motion: highlight χωρίς zoom */
@media (prefers-reduced-motion: reduce) {
  .service:hover::after { opacity: 1; }
}

/* ---------- Το background μένει ίδιο σε όλη τη σελίδα ---------- */
.dark { background: none; border-block: 0; }

/* ---------- Modules: toggle, ενεργά πάνω, περιγραφή πάνω από το grid ---------- */
.modules-11 { position: relative; gap: 12px; }
.modules-11 .module {
  font: inherit; text-align: left; color: var(--ink); cursor: pointer;
  min-height: 100px; padding: 18px 50px 16px 18px; align-content: space-between; gap: 10px;
  font-size: 16px; font-weight: 600; line-height: 1.25; position: relative;
  transition: transform .4s var(--ease-out), box-shadow .35s, background .35s, opacity .35s, border-color .35s;
}
.modules-11 .mod-name { text-wrap: balance; }
.modules-11 .module small { transition: color .3s; }
.modules-11 .module small::before { transition: background .3s, box-shadow .3s, transform .4s var(--ease-out); }
.modules-11 .module:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* μικρός διακόπτης πάνω δεξιά */
.mod-switch {
  position: absolute; top: 16px; right: 16px; width: 30px; height: 18px; border-radius: 99px;
  background: rgba(15, 18, 34, .12); transition: background .35s;
}
.mod-switch i {
  position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(15, 18, 34, .25); transition: translate .4s var(--ease-out);
}
.modules-11 .module.on .mod-switch { background: #2fbf63; }
.modules-11 .module.on .mod-switch i { translate: 12px 0; }

/* ενεργό: πράσινο περίγραμμα και σκιά που «αναπνέουν» απαλά */
.modules-11 .module.on {
  background: rgba(255, 255, 255, .88); border-color: rgba(47, 191, 99, .4);
  animation: mod-breathe 2.8s ease-in-out infinite;
}
@keyframes mod-breathe {
  0%, 100% { border-color: rgba(47, 191, 99, .3); box-shadow: 0 1px 2px rgba(30, 40, 90, .04), 0 10px 30px rgba(47, 191, 99, .08); }
  50% { border-color: rgba(47, 191, 99, .6); box-shadow: 0 1px 2px rgba(30, 40, 90, .04), 0 12px 34px rgba(47, 191, 99, .2), 0 0 0 3px rgba(47, 191, 99, .07); }
}

.modules-11 .module.pop { animation: mod-pop .5s var(--ease-out); }
.modules-11 .module.pop.on { animation: mod-pop .5s var(--ease-out), mod-breathe 2.8s ease-in-out .5s infinite; }
.modules-11 .module.pop.on small::before { animation: dot-pop .5s var(--ease-out); }
@keyframes mod-pop { 30% { transform: scale(.94); } }
@keyframes dot-pop { 40% { transform: scale(1.9); } }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .modules-11:has(.module:hover) .module:not(:hover) { opacity: .72; }
  .modules-11 .module:hover { transform: scale(1.06); z-index: 3; background: #fff; box-shadow: var(--shadow-lg); }
}

/* περιγραφή: διακριτική γραμμή πάνω από τα modules, δεν κρύβει τίποτα */
.mod-info { min-height: 66px; margin-bottom: 14px; display: flex; align-items: flex-end; }
.platform .mod-info-text {
  margin: 0; max-width: 52ch; font-size: 14px; line-height: 1.5; color: var(--ink-3);
  display: grid; gap: 2px;
}
.mod-info-text b { font-size: 15px; color: var(--ink); }
.mod-info.has-mod .mod-info-text span { color: var(--ink-2); }
.mod-info.swap .mod-info-text { animation: info-in .35s var(--ease-out); }
@keyframes info-in { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } }

.mod-sum { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.mod-sum b { color: var(--ink); font-variant-numeric: tabular-nums; }
.mod-sum span { color: var(--ink-2); }
.platform .mod-sum { margin-top: 14px; max-width: none; }

@media (prefers-reduced-motion: reduce) {
  .modules-11 .module.on, .modules-11 .module.pop.on { animation: none; box-shadow: var(--shadow), 0 0 0 1px rgba(47, 191, 99, .45); }
}

@media (max-width: 720px) {
  .modules-11 .module { min-height: 92px; padding-right: 46px; font-size: 15px; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
}
@media (max-width: 720px) {
  .hero-visual { max-width: 400px; }
}
@media (prefers-reduced-motion: reduce) {
  .viz-glow, .viz-aura { transition: none; translate: none; }
  .hero-visual.burst .viz-aura, .hero-visual.burst .viz-glow { animation: none; }
}

/* Το glow και ο canvas του hero βγαίνουν έξω από το πλαίσιο· στο κινητό αυτό έκανε τη σελίδα φαρδύτερη (zoom-out). */
.hero { overflow-x: clip; }
