/* ============================================================
   AiGent — global stylesheet (shared across all pages)
   Light, premium, calm. Pastel aurora + grain + glass depth.
   ============================================================ */

:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --ink: #17171C;
  --ink-2: #55555E;
  --ink-3: #8E8E99;
  --hairline: rgba(23, 23, 28, 0.08);
  --hairline-strong: rgba(23, 23, 28, 0.14);

  /* pastel aurora trio */
  --p1: #AAC8F0; /* gentle blue */
  --p2: #C9B7EF; /* lavender   */
  --p3: #F3CDB3; /* soft peach */

  --live: oklch(0.68 0.16 155);
  --aurora-opacity: 0.78;
  --radius: 16px;

  /* soft, diffused floating shadows (never hard) */
  --shadow-sm: 0 2px 8px -3px rgba(23,23,28,.08), 0 1px 2px rgba(23,23,28,.04);
  --shadow-md: 0 18px 40px -22px rgba(23,23,28,.18), 0 4px 12px -6px rgba(23,23,28,.06);
  --shadow-lg: 0 48px 100px -48px rgba(23,23,28,.26), 0 18px 40px -28px color-mix(in oklab, var(--p2) 50%, transparent);

  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.55);

  --font-sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  position: relative;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-top: 68px;
  /* radial depth — lighter at center-top, gently darker toward edges */
  background:
    radial-gradient(135% 110% at 50% -10%,
      #FFFFFF 0%,
      var(--bg) 46%,
      #F1F0EA 100%) fixed;
}

/* Grain overlay — premium texture over everything (Linear / Stripe style) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; position: relative; }

a { color: inherit; }
::selection { background: color-mix(in oklab, var(--p2) 45%, white); }

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--glass-border);
}

/* ---------------- Nav ---------------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,0.8);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 8px 24px -18px rgba(23,23,28,.2);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 32px;
  height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.logo {
  display: inline-flex; align-items: center; gap: 11px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.02em; text-decoration: none;
  justify-self: start;
}
.logo-mark { width: 26px; height: 26px; object-fit: contain; flex: none; display: block; }
.footer-inner .logo-mark { width: 22px; height: 22px; }
.auth-card .logo-mark { width: 38px; height: 38px; }
.nav-links { display: flex; align-items: center; gap: 1px; justify-self: center; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 8px 11px; border-radius: 999px; transition: color .18s, background .18s; white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: rgba(23,23,28,.05); }
.nav-links a[aria-current="page"] { color: var(--ink); background: rgba(23,23,28,.06); }
.nav-cta { display: flex; align-items: center; gap: 8px; justify-self: end; }

/* Icon buttons (theme + login) */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--hairline-strong); background: rgba(255,255,255,0.6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.icon-btn svg { width: 19px; height: 19px; display: block; }
.theme-toggle .ic-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
html[data-theme="dark"] .theme-toggle .ic-sun { display: block; }

/* Language switch */
.lang-switch { display: inline-flex; align-items: center; gap: 1px; padding: 0 2px; }
.lang-opt { background: none; border: none; cursor: pointer; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-3); padding: 6px 6px; border-radius: 7px; transition: color .15s, background .15s; }
.lang-opt:hover { color: var(--ink-2); }
.lang-opt.is-active { color: var(--ink); font-weight: 700; }
.lang-sep { color: var(--ink-3); font-size: 12px; opacity: .55; }

/* Settings popover — collapses language + theme + login behind one icon */
.nav-settings { position: relative; display: flex; align-items: center; }
.nav-settings.open .nav-settings-btn { background: rgba(23,23,28,.06); border-color: var(--hairline-strong); }
.nav-settings-menu {
  position: absolute; top: calc(100% + 11px); right: 0; transform: translateY(-6px);
  width: 224px; display: flex; flex-direction: column; gap: 3px; padding: 8px;
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-border); border-radius: 16px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 90;
}
.nav-settings.open .nav-settings-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 6px 5px 12px; }
.settings-row-label { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nav-settings-menu .theme-toggle { width: 34px; height: 34px; }
.nav-settings-menu .theme-toggle svg { width: 17px; height: 17px; }
.nav-settings-menu [data-tooltip]::after { display: none; }
.settings-divider { height: 1px; background: var(--hairline); margin: 4px 4px; }
.settings-login { display: flex; align-items: center; gap: 11px; text-decoration: none; font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 9px 12px; border-radius: 11px; transition: color .15s, background .15s; }
.settings-login:hover { color: var(--ink); background: rgba(23,23,28,.05); }
.settings-login svg { width: 18px; height: 18px; flex: none; }

/* Tooltip */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip); position: absolute; top: calc(100% + 9px); left: 50%;
  transform: translateX(-50%) translateY(-4px); white-space: nowrap;
  font-family: var(--font-sans); font-size: 12px; font-weight: 500; color: #fff;
  background: rgba(20,20,26,.92); padding: 6px 10px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; z-index: 80;
}
[data-tooltip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Mobile menu tools */
.nav-mobile-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.nav-mobile-tools .lang-switch { gap: 4px; }
.nav-mobile-tools .lang-opt { font-size: 15px; padding: 8px 10px; }
.nav-mobile-tools .lang-sep { font-size: 15px; }
.nav-mobile-tools .icon-btn { width: 46px; height: 46px; }
.nav-mobile-login { display: flex; align-items: center; gap: 13px; }
.nav-mobile-login svg { width: 24px; height: 24px; flex: none; }

/* Dropdown (Cég) */
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd-btn {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 8px 11px; border-radius: 999px; border: none; background: transparent; white-space: nowrap;
  transition: color .18s, background .18s;
}
.nav-dd-btn:hover, .nav-dd.open .nav-dd-btn, .nav-dd-btn.is-active { color: var(--ink); background: rgba(23,23,28,.05); }
.dd-caret { font-size: 10px; transition: transform .2s ease; }
.nav-dd.open .dd-caret { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 172px; display: flex; flex-direction: column; gap: 2px; padding: 7px;
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-border); border-radius: 14px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-dd:hover .nav-dd-menu, .nav-dd.open .nav-dd-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dd-menu a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 9px 13px; border-radius: 9px; white-space: nowrap; transition: color .15s, background .15s; }
.nav-dd-menu a:hover { color: var(--ink); background: rgba(23,23,28,.05); }
.nav-dd-menu a[aria-current="page"] { color: var(--ink); background: rgba(23,23,28,.06); }

/* Hamburger */
.nav-burger { display: none; width: 42px; height: 42px; border: none; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 11px; transition: background .18s; }
.nav-burger:hover { background: rgba(23,23,28,.05); }
.nav-burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  position: fixed; inset: 0; z-index: 55; padding: 100px 28px 40px;
  display: flex; flex-direction: column;
  background: rgba(250,250,248,0.94);
  -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
}
.nav-mobile.open { opacity: 1; visibility: visible; transform: none; }
.nav-mobile-links { display: flex; flex-direction: column; }
.nav-mobile-links a { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; padding: 15px 4px; border-bottom: 1px solid var(--hairline); transition: color .15s, padding .2s; }
.nav-mobile-links a:hover, .nav-mobile-links a:active { color: var(--ink-2); }
.nav-mobile .btn { margin-top: 24px; height: 54px; font-size: 17px; }
body.nav-open { overflow: hidden; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 26px; border-radius: 999px;
  font-family: var(--font-sans); font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; border: none; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn-primary {
  color: var(--ink);
  background: linear-gradient(115deg, var(--p1) 0%, var(--p2) 48%, var(--p3) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 10px 28px -10px color-mix(in oklab, var(--p2) 75%, transparent),
    0 2px 6px rgba(23,23,28,.06);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 16px 36px -12px color-mix(in oklab, var(--p2) 85%, transparent),
    0 2px 6px rgba(23,23,28,.08);
}
.btn-ghost {
  background: rgba(255,255,255,0.6); color: var(--ink);
  border: 1px solid var(--hairline-strong);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost .play { font-size: 10px; color: var(--ink-3); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 32px; font-size: 17px; }
.btn-block { width: 100%; }

.btn-ghost-dark {
  background: transparent; color: #F5F5F2;
  border: 1px solid rgba(245,245,242,.22);
}
.btn-ghost-dark:hover { border-color: rgba(245,245,242,.45); transform: translateY(-1px); }

/* ---------------- Aurora ---------------- */

.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: var(--aurora-opacity); z-index: 0; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(76px); }
.aurora .a1 { width: 720px; height: 520px; top: -180px; left: 4%;  background: radial-gradient(closest-side, var(--p1), transparent 70%); }
.aurora .a2 { width: 760px; height: 560px; top: -140px; right: 0%; background: radial-gradient(closest-side, var(--p2), transparent 70%); }
.aurora .a3 { width: 640px; height: 460px; top: 160px;  left: 34%; background: radial-gradient(closest-side, var(--p3), transparent 70%); opacity: .8; }

/* Hero aurora — warm, airy sunrise: lavender top-left, peach bottom-right, soft warm-white center */
.hero .aurora { opacity: 0.55; }
.hero .aurora .a1 {
  width: 820px; height: 620px; top: -200px; left: -120px; right: auto;
  background: radial-gradient(closest-side, #E8E4F8, transparent 72%);
  opacity: .85;
}
.hero .aurora .a2 {
  width: 880px; height: 660px; top: auto; bottom: -240px; right: -140px; left: auto;
  background: radial-gradient(closest-side, #FFE8E0, transparent 72%);
  opacity: .9;
}
.hero .aurora .a3 {
  width: 900px; height: 640px; top: 40px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(closest-side, #FFF6F0, transparent 68%);
  opacity: .7;
}

/* ---------------- Hero ---------------- */

.hero { position: relative; z-index: 6; padding: 78px 0 60px; text-align: center; overflow: hidden; }

/* Static dot-grid background — hero only, behind the text, faded out toward center */
.hero-dots {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(139,143,168,0.85) 1.25px, transparent 1.25px);
  background-size: 28px 28px;
  background-position: center;
  opacity: 0.50;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 50%, transparent 0%, rgba(0,0,0,0.6) 62%, #000 100%);
  mask-image: radial-gradient(ellipse 55% 60% at 50% 50%, transparent 0%, rgba(0,0,0,0.6) 62%, #000 100%);
}

.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero-inner > :not(.hero-watermark) { position: relative; z-index: 1; }

/* Breathing logo watermark behind the headline */
.hero-watermark {
  position: absolute; top: 47%; left: 50%; transform: translate(-50%, -50%);
  width: min(560px, 84vw); aspect-ratio: 1; z-index: 0; pointer-events: none;
  opacity: 0.04;
}
.hero-watermark img { width: 100%; height: 100%; object-fit: contain; will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  .hero-watermark img { animation: heroBreathe 6s ease-in-out infinite; }
  @keyframes heroBreathe {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50%      { transform: scale(1.06) rotate(8deg); }
  }
}
.status-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em;
  color: var(--ink-2);
  background: rgba(255,255,255,0.7);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px; padding: 8px 16px 8px 13px;
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none; }

h1 {
  font-size: clamp(44px, 6.4vw, 80px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.04;
  max-width: 16ch; text-wrap: balance;
}
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* word-stagger (JS adds .in — end-state always applies) */
.stagger-words .word { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .stagger-words .word { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--wi) * 0.09s + 0.1s); }
  .js .stagger-words .word.in { opacity: 1; transform: none; }
}

/* ---------------- Twin window (dashboard mockup) ---------------- */

.twin-wrap { position: relative; z-index: 5; margin-top: -30px; margin-bottom: 28px; }
.tw-caption { position: relative; z-index: 5; max-width: 980px; margin: 16px auto 0; text-align: center; font-style: italic; font-size: 13.5px; color: var(--ink-3); text-wrap: pretty; }
/* Soft pastel glow/halo floating behind the product preview */
.twin-wrap::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: 50%; top: 52%; transform: translate(-50%, -50%);
  width: min(1020px, 96%); height: 86%;
  background:
    radial-gradient(60% 60% at 38% 30%, color-mix(in oklab, var(--p2) 60%, transparent), transparent 70%),
    radial-gradient(58% 58% at 72% 72%, color-mix(in oklab, var(--p3) 52%, transparent), transparent 70%),
    radial-gradient(50% 60% at 18% 78%, color-mix(in oklab, var(--p1) 48%, transparent), transparent 72%);
  filter: blur(60px);
  opacity: 0.55;
}
.twin-window {
  position: relative; z-index: 1;
  max-width: 980px; margin: 0 auto; text-align: left;
  background: rgba(255,255,255,0.74);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid transparent;
  border-radius: calc(var(--radius) + 6px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 2px 6px rgba(23,23,28,.05),
    0 16px 34px -14px rgba(23,23,28,.16),
    0 44px 80px -38px rgba(23,23,28,.30),
    0 80px 150px -70px color-mix(in oklab, var(--p2) 70%, transparent);
  overflow: hidden;
}
/* Soft gradient border ring */
.twin-window::after {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  border-radius: inherit; padding: 1.5px;
  background: linear-gradient(150deg,
    color-mix(in oklab, var(--p1) 80%, white),
    color-mix(in oklab, var(--p2) 65%, white) 48%,
    color-mix(in oklab, var(--p3) 80%, white));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.tw-bar { display: flex; align-items: center; gap: 16px; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--hairline); }
.tw-dots { display: flex; gap: 6px; }
.tw-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(23,23,28,.12); }
.tw-title { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); }
.tw-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; color: var(--live); }
.tw-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); }

/* Cockpit preview: valós (sanitizált) dashboard-szekció screenshotok stackje */
.tw-shots { display: flex; flex-direction: column; gap: 14px; padding: 16px; background: #F7F6F3; }
.tw-shots img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 30px -18px rgba(23,23,28,.22); }
@media (max-width: 640px) { .tw-shots { padding: 10px; gap: 10px; } }

.tw-metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
.tw-metric { padding: 22px 26px; display: flex; flex-direction: column; gap: 2px; }
.tw-metric + .tw-metric { border-left: 1px solid var(--hairline); }
.tw-metric strong { font-size: 32px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tw-metric span { font-size: 13px; color: var(--ink-3); }

.tw-body { display: grid; grid-template-columns: 280px 1fr; border-top: 1px solid var(--hairline); }
.tw-modules { border-right: 1px solid var(--hairline); padding: 14px; }
.tw-modules h3 { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.16em; color: var(--ink-3); padding: 6px 10px 10px; }
.tw-modules ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.tw-modules li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 500; }
.tw-modules li:hover { background: rgba(23,23,28,.035); }
.tw-modules .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); flex: none; }
.tw-modules .cnt { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

.tw-feed { padding: 18px 24px 22px; }
.tw-feed-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.16em; color: var(--ink-3); padding: 4px 0 12px; }
.tw-feed ul { list-style: none; }
.tw-entry { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--hairline); }
.tw-entry:last-child { border-bottom: none; }
.tw-check { width: 22px; height: 22px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--ink); background: linear-gradient(135deg, var(--p1), var(--p2) 60%, var(--p3)); }
.tw-entry strong { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.tw-entry small { display: block; font-size: 12px; color: var(--ink-3); }
.tw-entry time { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

@media (prefers-reduced-motion: no-preference) {
  .tw-entry.is-new { animation: entryIn .55s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes entryIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .tw-entry.is-new .tw-check { animation: checkPop .45s cubic-bezier(.34,1.5,.5,1) .25s both; }
  @keyframes checkPop { from { transform: scale(.4); } to { transform: scale(1); } }
}

/* ---------------- Section scaffolding ---------------- */

section { position: relative; }
.section-pad { padding: 130px 0; }
.page-head { position: relative; padding: 72px 0 0; overflow: hidden; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; color: var(--ink-3); margin-bottom: 18px; }
h2 { font-size: clamp(34px, 4.2vw, 54px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.section-sub { font-size: 18px; color: var(--ink-2); margin-top: 16px; max-width: 52ch; text-wrap: pretty; }

/* ---------------- Closing (dark CTA) ---------------- */

.closing { padding: 60px 32px 120px; }
.closing-panel {
  position: relative; max-width: 1240px; margin: 0 auto; overflow: hidden;
  background: #131318; color: #F5F5F2; border-radius: 32px;
  padding: clamp(80px, 10vw, 140px) 40px; text-align: center;
  box-shadow: 0 60px 120px -50px rgba(23,23,28,.5);
}
.closing-panel .aurora i { filter: blur(90px); }
.closing-panel .aurora .a1 { top: auto; bottom: -260px; left: -120px; opacity: .5; }
.closing-panel .aurora .a2 { top: -300px; right: -140px; opacity: .45; }
.closing-panel .aurora .a3 { top: auto; bottom: -240px; left: 42%; opacity: .4; }
.closing-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.closing-panel h2 { font-size: clamp(38px, 5vw, 66px); max-width: 18ch; color: #FAFAF8; }
.closing-sub { font-size: 19px; color: rgba(245,245,242,.62); max-width: 44ch; text-wrap: pretty; }
.closing-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.closing-note { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: rgba(245,245,242,.42); margin-top: 6px; }

/* ---------------- Footer ---------------- */

footer { padding: 44px 32px 52px; position: relative; z-index: 1; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner .logo { font-size: 15px; }
.footer-meta { font-size: 13.5px; color: var(--ink-3); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 13.5px; color: var(--ink-3); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ---------------- Full site footer ---------------- */
.site-footer { border-top: 1px solid var(--hairline); margin-top: 70px; padding: 56px 32px 48px; }
.footer-top { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.25fr 2fr; gap: 56px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-brand .logo { font-size: 17px; }
.footer-tagline { font-size: 14px; color: var(--ink-3); max-width: 30ch; text-wrap: pretty; }
.footer-social { display: flex; gap: 10px; margin-top: 2px; }
.footer-soc { width: 38px; height: 38px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--hairline-strong); background: rgba(255,255,255,0.6); color: var(--ink-2); text-decoration: none; transition: transform .18s ease, color .18s ease, box-shadow .18s ease; }
.footer-soc:hover { transform: translateY(-2px); color: var(--ink); box-shadow: var(--shadow-md); }
.footer-soc svg { width: 18px; height: 18px; display: block; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-h { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 4px; }
.footer-line { font-size: 14px; color: var(--ink-2); text-wrap: pretty; }
.footer-line-link { font-size: 14px; color: var(--ink-2); text-decoration: none; transition: color .15s ease; }
.footer-line-link:hover { color: var(--ink); }
/* A "Süti-beállítások" gomb: gomb kell (allapotot valt, nem navigal), de linknek latszik. */
button.footer-line-link { background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; text-align: left; }
.footer-soon { font-size: 14px; color: var(--ink-3); }
.footer-bottom { max-width: 1160px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-copy { font-size: 13px; color: var(--ink-3); }
.footer-mini { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-mini a { font-size: 13px; color: var(--ink-3); text-decoration: none; transition: color .15s ease; }
.footer-mini a:hover { color: var(--ink); }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr; gap: 38px; } }
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-footer { padding: 44px 20px 40px; }
}

/* ---------------- Cookie consent banner ---------------- */
.cookie-bar {
  position: fixed; z-index: 300; left: 22px; right: auto; bottom: 22px; transform: none;
  width: min(400px, calc(100vw - 44px));
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  padding: 18px; border-radius: 16px;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 44px); overflow-y: auto;
}
.cookie-bar.hide { opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .4s ease, transform .4s ease; }
.cookie-text { font-size: 13px; color: var(--ink-2); text-wrap: pretty; line-height: 1.5; }
.cookie-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* "Beállítások" nyito: szoveges, sajat sorban, hogy a ket dontes-gomb kifer_jen */
.cookie-toggle {
  align-self: flex-start; background: none; border: none; cursor: pointer; padding: 2px 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px;
  transition: color .15s ease;
}
.cookie-toggle:hover { color: var(--ink-2); }
.cookie-toggle[aria-expanded="true"] { color: var(--ink-2); }

/* Elutasitom es Elfogadom azonos meret, azonos sor, azonos kattintasszam.
   A vizualis sulykulonbseg megengedett, a nehezebben elerheto elutasitas NEM. */
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { flex: 1 1 auto; }

.cookie-panel {
  display: flex; flex-direction: column; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.cookie-cat { display: flex; flex-direction: column; gap: 3px; }
.cookie-cat-head { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.cookie-cat-title { font-size: 13px; font-weight: 600; color: var(--ink); flex: 1; }
.cookie-cat-fixed {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}
.cookie-cat-desc { font-size: 12px; line-height: 1.5; color: var(--ink-3); text-wrap: pretty; }

/* Valodi checkbox, vizualisan elrejtve: a billentyuzet es a screen reader igy helyesen kezeli. */
.cookie-switch { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.cookie-switch-ui {
  flex: none; width: 38px; height: 22px; border-radius: 999px; position: relative;
  background: var(--hairline-strong); transition: background .2s ease;
}
.cookie-switch-ui::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}
.cookie-switch:checked + .cookie-switch-ui {
  background: linear-gradient(115deg, var(--p1) 0%, var(--p2) 48%, var(--p3) 100%);
}
.cookie-switch:checked + .cookie-switch-ui::after { transform: translateX(16px); }
.cookie-switch:focus-visible + .cookie-switch-ui {
  outline: 2px solid var(--ink); outline-offset: 2px;
}
.cookie-switch:disabled + .cookie-switch-ui { opacity: .5; }
.cookie-switch:disabled ~ *, .cookie-cat-head:has(.cookie-switch:disabled) { cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .cookie-switch-ui, .cookie-switch-ui::after { transition: none; }
}
@media (max-width: 520px) {
  .cookie-bar { left: 12px; right: 12px; width: auto; }
  .cookie-actions .btn { width: 100%; flex: 1 1 100%; }
}

/* Dark mode — footer + cookie */
html[data-theme="dark"] .footer-soc { background: rgba(255,255,255,0.06); }
html[data-theme="dark"] .cookie-bar { background: rgba(18,18,24,0.92); }
html[data-theme="dark"] .cookie-switch-ui::after { background: #E8E8EC; }
html[data-theme="dark"] .cookie-switch:focus-visible + .cookie-switch-ui { outline-color: #F5F5F2; }

/* ---------------- Entrance animations ---------------- */

@media (prefers-reduced-motion: no-preference) {
  .js .hero-load { opacity: 0; transform: translateY(22px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.7,.2,1); }
  .js .hero-load.in { opacity: 1; transform: none; }
  .js .l1 { transition-delay: .05s; }
  .js .l3 { transition-delay: .2s; }
  .js .l4 { transition-delay: .3s; }
  .js .l5 { transform: translateY(56px) scale(.985); transition-duration: 1.1s; transition-delay: .46s; transition-timing-function: cubic-bezier(.16,.84,.28,1); }

  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal-d1 { transition-delay: .1s; }
  .js .reveal-d2 { transition-delay: .2s; }
  .js .reveal-d3 { transition-delay: .3s; }

  .pulse-dot, .tw-live i { animation: pulse 2.6s ease-in-out infinite; }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--live) 45%, transparent); }
    50%      { box-shadow: 0 0 0 6px transparent; }
  }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1000px) {
  .tw-modules { display: none; }
  .tw-body { grid-template-columns: 1fr; }
}
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-cta .btn, .nav-cta .lang-switch, .nav-cta .icon-btn, .nav-cta .nav-settings { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (max-width: 640px) {
  .container, .nav-inner { padding: 0 20px; }
  .section-pad { padding: 90px 0; }
  .hero { padding: 64px 0 90px; }
  .twin-wrap { margin-top: 52px; }
  .tw-metrics { grid-template-columns: 1fr; }
  .tw-metric + .tw-metric { border-left: none; border-top: 1px solid var(--hairline); }
  .closing { padding: 32px 16px 70px; }
  .nav-cta .btn-ghost { display: none; }
}

.settings-logout { display: flex; align-items: center; gap: 11px; text-decoration: none; font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: #C0392B; padding: 9px 12px; border-radius: 11px; transition: color .15s, background .15s; }
.settings-logout:hover { color: #A02418; background: rgba(192,57,43,.07); }
.settings-logout svg { width: 18px; height: 18px; flex: none; }
.nav-mobile-links a.settings-logout { color: #C0392B; }
