/* Sinum | HUB – fogadóoldal (sinumhub.hu).
 * Egyetlen hangsúlyos mozzanat: a nyitó logó kártyaként átfordul, a hátoldala az oldal.
 * Csökkentett mozgás esetén nincs intró. */

/* ── Betűtípus ────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Nunito Local";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/fonts/nunito-latin-ext-variable.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF,
    U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito Local";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/fonts/nunito-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC,
    U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokenek ──────────────────────────────────────────────────────────── */
:root {
  --night: #071a30;
  --sinum: #1192e8;
  --ice: #70d9ff;
  --paper: #eef5fc;
  --steel: #5d7a99;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.75, 0.2);
  --gutter: clamp(20px, 6vw, 88px);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--night);
  color: var(--paper);
  font-family: "Nunito Local", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  perspective: 1600px;
  overflow-x: hidden;
}

h1, p { margin: 0; }
img { display: block; }

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ── Oldal ────────────────────────────────────────────────────────────── */
.page {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: max(28px, env(safe-area-inset-top)) var(--gutter)
    max(28px, env(safe-area-inset-bottom));
  /* Halvány Sinum-kék fény a bal alsó sarokból: a hely „áramot kap”. */
  background:
    radial-gradient(90vmax 70vmax at -10% 115%, rgb(17 146 232 / 22%), transparent 60%),
    var(--night);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  position: relative;
  overflow: hidden;
}

.top img { width: 150px; height: auto; }

.top,
.welcome,
.foot {
  position: relative;
  z-index: 1;
}

/* A Sinum-hullámjel nagyban, a jobb szélről kifutva: a márka jele tölti ki a teret. */
.mark {
  position: absolute;
  z-index: 0;
  right: -14vw;
  top: 50%;
  width: min(66vw, 900px);
  height: auto;
  transform: translateY(-50%) rotate(-8deg);
  pointer-events: none;
}

.welcome {
  align-self: center;
  max-width: 62rem;
  padding-block: 10vh;
}

.welcome h1 {
  font-size: clamp(2.6rem, 8.2vw, 6.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  margin-top: clamp(20px, 3.2vw, 36px);
  max-width: 34em;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 400;
  line-height: 1.6;
  color: color-mix(in srgb, var(--paper) 82%, var(--steel));
}

.status {
  margin-top: clamp(28px, 4vw, 48px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ice);
}

/* Az egyetlen folyamatos mozgás: jelzi, hogy a munka zajlik. */
.pulse {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ice);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ice);
  animation: pulse 2.4s var(--ease-out) infinite;
}

@keyframes pulse {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(3.2); opacity: 0; }
}

/* Hogyan fog működni: valódi sorrend, ezért számozott. */
.steps {
  margin-top: clamp(40px, 6vw, 72px);
  max-width: 46rem;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid rgb(112 217 255 / 22%);
}

.steps li {
  display: grid;
  align-content: start;
  gap: 6px;
  font-size: 0.98rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--paper) 74%, var(--steel));
}

.steps b {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--sinum);
}

.steps strong {
  font-weight: 700;
  color: var(--paper);
}

/* Közepes szélességen a jel a szöveg alá, a jobb alsó üres részbe kerül. */
@media (max-width: 1100px) {
  .mark {
    top: auto;
    bottom: -10%;
    right: -28vw;
    width: 86vw;
    transform: rotate(-8deg);
    opacity: 0.75;
  }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .steps li { grid-template-columns: 2rem 1fr; align-items: baseline; }
  .steps b { grid-row: span 2; }
  .mark { right: -46vw; bottom: 2%; width: 120vw; opacity: 0.6; }
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 0.9rem;
  color: var(--steel);
}

/* ── Intró: a logó kártyaként átfordul, a hátoldala az oldal ─────────── */
.intro { display: none; }

.intro-on .intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60vmax 60vmax at 50% 50%, rgb(17 146 232 / 28%), transparent 65%),
    var(--night);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  cursor: pointer;
}

.intro-logo {
  width: min(560px, 78vw);
  height: auto;
  opacity: 0;
  transform: scale(0.94);
  filter: blur(6px);
  animation: logo-in 1s var(--ease-out) 0.15s forwards;
}

@keyframes logo-in {
  to { opacity: 1; transform: none; filter: none; }
}

/* Az oldal a kártya hátoldala: indulásként élére fordítva vár. */
.intro-on .page {
  transform: rotateY(90deg);
}

.intro-turn .intro {
  animation: turn-away 0.5s var(--ease-in) forwards;
}

.intro-turn .page {
  animation: turn-in 0.8s var(--ease-out) 0.5s forwards;
}

@keyframes turn-away {
  to { transform: rotateY(-90deg); }
}

@keyframes turn-in {
  from { transform: rotateY(90deg); }
  to { transform: rotateY(0deg); }
}

/* Az átfordulás végén az intró eltűnik, az oldal transzformáció nélkül áll. */
.intro-done .intro { display: none; }
.intro-done .page { transform: none; animation: none; }

@media (prefers-reduced-motion: reduce) {
  .pulse::after { animation: none; }
}
