/* ===== Kronomi – közös stílusok ===== */

@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Unbounded";
  src: url("fonts/unbounded-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Manrope";
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F2F5F9;
  --surface: #FFFFFF;
  --ink: #0A1628;        /* Deep Navy */
  --ink-2: #44536B;
  --steel: #1A3A6B;      /* Steel Blue */
  --cyan: #00C2FF;       /* Chronos Cyan */
  --cyan-ink: #006E94;   /* ciánkék szöveghez, világos alapon olvasható */
  --gold: #C8A96E;       /* God Gold */
  --gold-ink: #7E602A;
  --void: #080B14;       /* Void Black */
  --line: #D6DEE9;
  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --radius-s: 10px;
  --radius-l: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 36em; }

/* --- gombok --- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font: 700 1rem/1 var(--body);
  padding: 1.05em 1.5em;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.btn-primary:hover { background: var(--steel); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; }

/* --- fejléc --- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-solid { background: rgba(242,245,249,.88); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: .01em; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: .8em 1.2em; font-size: .92rem; }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 420px) { .nav .btn { padding: .75em 1em; font-size: .85rem; } .brand span { display: none; } }

/* --- szekciók --- */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { margin-top: 1.1rem; color: var(--ink-2); font-size: 1.12rem; }

/* --- lábléc --- */
.site-footer { background: var(--void); color: #C9D3E3; padding-block: 3.5rem 2rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-brand img { width: 56px; height: 56px; }
.footer-brand p { margin-top: 1rem; max-width: 22em; font-family: var(--display); font-size: .95rem; line-height: 1.5; color: #fff; }
.footer-col h3 { font-family: var(--body); font-size: .95rem; color: var(--gold); margin-bottom: .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col button { all: unset; cursor: pointer; color: #fff; }
.footer-col button:hover { color: var(--cyan); }
.footer-col button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #1E2638; font-size: .88rem; color: #8592A8; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- impresszum ablak --- */
dialog.legal {
  border: 0; border-radius: var(--radius-l); padding: 0; width: min(92vw, 560px);
  color: var(--ink); background: var(--surface);
  box-shadow: 0 30px 80px rgba(8,11,20,.35);
}
dialog.legal::backdrop { background: rgba(8,11,20,.55); backdrop-filter: blur(3px); }
.legal-inner { padding: 2rem 2rem 1.75rem; }
.legal-inner h2 { font-size: 1.4rem; margin-bottom: 1.25rem; }
.legal-inner dl { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.25rem; margin: 0; font-size: .97rem; }
.legal-inner dt { font-weight: 700; }
.legal-inner dd { margin: 0; color: var(--ink-2); }
.legal-close { margin-top: 1.6rem; }
@media (max-width: 520px) { .legal-inner dl { grid-template-columns: 1fr; gap: .1rem; } .legal-inner dd { margin-bottom: .6rem; } }

/* --- kabala kísérő --- */
.buddy {
  position: fixed; right: clamp(.9rem, 2.5vw, 2rem); bottom: clamp(.9rem, 2.5vw, 2rem); z-index: 40;
  display: flex; align-items: flex-end; gap: .6rem;
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
  transition: opacity .4s, transform .4s;
}
.buddy.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.buddy-bubble {
  max-width: 230px; background: var(--surface); color: var(--ink);
  font-size: .9rem; font-weight: 600; line-height: 1.4;
  padding: .75rem 1rem; border-radius: 16px 16px 4px 16px;
  box-shadow: 0 10px 30px rgba(10,22,40,.15); border: 1px solid var(--line);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.buddy-bubble.is-on { opacity: 1; transform: none; }
.buddy-bot {
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--ink);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(10,22,40,.2);
  transition: transform .2s;
}
.buddy-bot:hover { transform: rotate(-6deg) scale(1.05); }
.buddy-bot svg { width: 58px; height: 58px; }
@media (max-width: 560px) { .buddy-bubble { max-width: 170px; font-size: .82rem; } .buddy-bot { width: 62px; height: 62px; } .buddy-bot svg { width: 48px; } }

/* --- közös robot részletek --- */
.eye { transform-box: fill-box; transform-origin: center; }
.blink .eye { animation: blink 5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
