/* =========================================================
   YupYup – AI mesestúdió
   ========================================================= */

:root {
  --pink: #fb0171;
  --pink-dark: #cf005b;
  --cyan: #00bffc;
  --cyan-soft: #dff7ff;
  --navy: #0b1040;
  --navy-2: #080b2e;
  --ink: #191735;
  --muted: #5c5b78;
  --cream: #fff8f2;
  --white: #ffffff;
  --line: rgba(11, 16, 64, 0.1);
  --line-strong: rgba(11, 16, 64, 0.18);
  --radius: 24px;
  --shadow-sm: 0 10px 30px -18px rgba(11, 16, 64, 0.35);
  --shadow: 0 30px 70px -34px rgba(11, 16, 64, 0.45);
  --shadow-pink: 0 16px 34px -14px rgba(251, 1, 113, 0.55);
  --font-head: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --header-h: 88px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--navy);
  text-wrap: balance;
}

p,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--pink);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--pink-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--navy);
}

.eyebrow svg {
  width: 16px;
  height: 16px;
  color: var(--pink);
  flex: none;
}

.eyebrow--plain {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--pink-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 56px;
  padding: 15px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn svg {
  width: 21px;
  height: 21px;
  flex: none;
}

.btn--primary {
  background: #e60067;
  color: #fff;
  box-shadow: var(--shadow-pink);
}

.btn--primary:hover {
  background: #c8005a;
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -14px rgba(251, 1, 113, 0.65);
}

/* ---------- Fejléc ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 242, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 250, 245, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 34px -26px rgba(11, 16, 64, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  border-radius: 12px;
}

.brand img {
  width: 140px;
  height: auto;
}

.yt-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.yt-link svg {
  width: 20px;
  height: 20px;
  color: var(--pink);
  flex: none;
}

.yt-link:hover {
  color: var(--pink-dark);
  border-color: var(--pink-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(11, 16, 64, 0.45);
}

/* ---------- Bemutatkozás ---------- */

.intro {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px);
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11, 16, 64, 0.13) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 58% 55% at 82% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 58% 55% at 82% 40%, #000 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.intro-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.intro-glow--pink {
  width: 460px;
  height: 460px;
  top: -220px;
  right: -100px;
  background: radial-gradient(circle, rgba(251, 1, 113, 0.16), transparent 65%);
}

.intro-glow--cyan {
  width: 520px;
  height: 520px;
  bottom: -280px;
  left: -200px;
  background: radial-gradient(circle, rgba(0, 191, 252, 0.16), transparent 65%);
}

.intro-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.intro-copy {
  max-width: 610px;
}

.intro h1 {
  font-size: clamp(2.9rem, 5.8vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.intro h1 .accent {
  position: relative;
  display: inline-block;
  color: var(--pink);
  white-space: nowrap;
}

.intro h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.12em;
  height: 0.18em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 18' preserveAspectRatio='none'%3E%3Cpath d='M3 12c38-8 78-9 116-5 34 3 71 2 118-4' fill='none' stroke='%2300bffc' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  opacity: 0.9;
}

.intro-lead {
  max-width: 570px;
  margin-top: 26px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
  color: var(--muted);
}

.intro-body {
  max-width: 570px;
  margin-top: 18px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
}

.intro-actions {
  margin-top: 32px;
}

.intro-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.intro-note::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--pink);
  flex: none;
}

.intro-art {
  position: relative;
  transform: rotate(-1.2deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.intro-art svg {
  width: 100%;
  height: auto;
  border-radius: 44px;
  box-shadow: var(--shadow);
  background: var(--navy);
}

.intro-art:hover {
  transform: rotate(0deg);
}

/* ---------- Lábléc ---------- */

.site-footer {
  padding: 34px 0;
  background: var(--navy-2);
  color: rgba(255, 255, 255, 0.62);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  flex: none;
}

.footer-brand img {
  width: 122px;
  height: auto;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  font-weight: 700;
}

.footer-links a {
  transition: color 0.2s ease;
}

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

.footer-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  transform: translateY(-3px);
  background: var(--pink);
  border-color: var(--pink);
}

/* ---------- Jogi aloldalak ---------- */

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 68px) 0 clamp(32px, 4vw, 48px);
}

.legal-hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -100px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 191, 252, 0.16), transparent 65%);
  pointer-events: none;
}

.legal-hero .back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--muted);
  transition: color 0.2s ease;
}

.legal-hero .back-link:hover {
  color: var(--pink-dark);
}

.legal-hero .back-link svg {
  width: 16px;
  height: 16px;
}

.legal-hero .eyebrow {
  display: flex;
  width: fit-content;
}

.legal-hero h1 {
  max-width: 820px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legal-meta svg {
  width: 15px;
  height: 15px;
  color: var(--pink);
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-bottom: clamp(56px, 7vw, 90px);
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.legal-toc h2 {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-toc ol {
  display: grid;
  gap: 4px;
}

.legal-toc a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.2s ease;
}

.legal-toc a:hover {
  color: var(--pink-dark);
}

.legal-body {
  max-width: 760px;
}

.legal-intro {
  padding: 24px 26px;
  border-left: 4px solid var(--pink);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--white);
  font-size: 16px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.legal-body section {
  padding-top: 34px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.legal-body section + section {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.legal-body h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.legal-body h3 {
  margin: 22px 0 8px;
  font-size: 1.15rem;
}

.legal-body p,
.legal-body li {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
}

.legal-body p + p {
  margin-top: 12px;
}

.legal-body ul,
.legal-body ol {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 22px;
  list-style: disc;
}

.legal-body ol {
  list-style: decimal;
}

.legal-body li::marker {
  color: var(--pink);
  font-weight: 800;
}

.legal-body strong {
  color: var(--navy);
}

.legal-body a {
  color: var(--pink-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body a:hover {
  color: var(--pink);
}

.legal-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}

.legal-table th {
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
}

.legal-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--cyan-soft);
  font-size: 14px;
  color: #07526c;
}

/* ---------- Animációk ---------- */

.js [data-reveal] {
  opacity: 0;
  translate: 0 20px;
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    translate: none;
  }
}

/* ---------- Reszponzív ---------- */

@media (max-width: 960px) {
  :root {
    --header-h: 78px;
  }

  .brand img {
    width: 120px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .intro-copy {
    max-width: 680px;
  }

  .intro-art {
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .legal-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 16px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(1120px, 100% - 36px);
  }

  .intro {
    padding-top: 36px;
  }

  .intro h1 {
    font-size: clamp(2.55rem, 10vw, 3.6rem);
  }

  .footer-inner {
    align-items: flex-start;
  }

  .footer-links {
    order: 3;
    width: 100%;
    gap: 18px;
  }

  .footer-meta {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(1120px, 100% - 32px);
  }

  .brand img {
    width: 108px;
  }

  .yt-link {
    padding: 9px 14px;
    font-size: 13px;
  }

  .yt-link svg {
    width: 18px;
    height: 18px;
  }

  .intro h1 {
    font-size: clamp(2.45rem, 11vw, 3.2rem);
  }

  .intro-actions .btn {
    width: 100%;
  }

  .intro-art svg {
    border-radius: 30px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 18px;
  }

  .footer-meta {
    margin-left: 0;
  }

  .footer-links {
    order: 0;
    width: auto;
  }

  .legal-toc {
    padding: 18px;
  }

  .legal-toc ol {
    gap: 2px 14px;
  }

  .legal-toc a {
    font-size: 12.5px;
  }

  .legal-table {
    display: block;
    overflow-x: auto;
  }
}
