:root {
  --home-bg: #07111f;
  --home-bg-elevated: rgba(12, 18, 34, 0.84);
  --home-panel: rgba(9, 14, 26, 0.84);
  --home-border: rgba(148, 163, 184, 0.18);
  --home-border-strong: rgba(148, 163, 184, 0.28);
  --home-text: #f8fafc;
  --home-text-soft: #cbd5e1;
  --home-text-muted: #94a3b8;
  --home-shadow: 0 20px 44px rgba(1, 7, 20, 0.28);
  --home-glow: 0 14px 32px rgba(56, 189, 248, 0.08);
  --home-gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #f97316 100%);
}

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

html {
  scroll-behavior: smooth;
}

body.home-page {
  margin: 0;
  min-height: 100vh;
  color: var(--home-text);
  font-family: var(--pipsy-font-sans, "Inter", system-ui, sans-serif);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 32%),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.16), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(249, 115, 22, 0.12), transparent 34%),
    linear-gradient(180deg, #040816 0%, #07111f 45%, #050914 100%);
  overflow-x: hidden;
}

body.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent 70%);
  z-index: -1;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.gradient-text {
  background: var(--home-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  width: min(1200px, calc(100% - 2 * var(--pipsy-space-gutter, 1rem)));
  margin: 0 auto;
}

.home-main {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

/* Landing narrative order:
   Hero -> Trust -> Modules -> Trial -> Reviews -> Brand -> FAQ -> Integrations -> Contact */
.home-main > #home {
  order: 1;
}

.home-main > #trust {
  order: 2;
}

.home-main > #solutions {
  order: 3;
}

.home-main > #home-trial {
  order: 4;
}

.home-main > #reviews {
  order: 5;
}

.home-main > #brand {
  order: 6;
}

.home-main > #faq {
  order: 7;
}

.home-main > #supportedPlatformsSection {
  order: 8;
}

.home-main > #contact {
  order: 9;
}

.section {
  position: relative;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.25rem, 2.4vw, 2rem);
}

.section-head h2,
.contact-box h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", var(--pipsy-font-sans, "Inter", system-ui, sans-serif);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-head p,
.contact-box p {
  margin: 0.75rem 0 0;
  max-width: 62ch;
  color: var(--home-text-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Fejléc (logo, main-nav, nyelvváltó): styles.css — ne duplikáljuk, hogy mobilon is egyezzen a jogi oldalakkal */

.user-menu {
  position: relative;
}

.user-menu-modules {
  margin: 4px 0;
  padding: 0;
  border: none;
}

.user-menu-dm-badge {
  display: none !important;
}
@property --pipsy-dm-border-fill {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes pipsyDmBorderFillSweepHome {
  from {
    --pipsy-dm-border-fill: 0deg;
  }
  to {
    --pipsy-dm-border-fill: 360deg;
  }
}
.user-menu-toggle--has-dm {
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.45), 0 0 26px rgba(245, 158, 11, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(251, 191, 36, 0.38) !important;
}
.user-menu-toggle--has-dm::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--pipsy-radius-md, 16px) + 2px);
  padding: 2px;
  background: conic-gradient(
    from -90deg,
    #fbbf24 0deg,
    #fde68a calc(var(--pipsy-dm-border-fill) * 0.45),
    #d97706 var(--pipsy-dm-border-fill),
    transparent var(--pipsy-dm-border-fill)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  pointer-events: none;
  animation: pipsyDmBorderFillSweepHome 2.35s linear infinite;
  filter: drop-shadow(0 0 7px rgba(251, 191, 36, 0.38));
}
.site-header .user-menu-toggle,
.user-menu .user-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--pipsy-radius-md, 16px);
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  background: linear-gradient(180deg, rgba(38, 44, 60, 0.98), rgba(20, 24, 36, 0.99)) !important;
  color: #e8eefb !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.site-header .user-menu-toggle:hover,
.user-menu .user-menu-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.3) !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.site-header .user-menu-toggle--has-dm:hover,
.user-menu .user-menu-toggle--has-dm:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 30px rgba(245, 158, 11, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

@media (prefers-reduced-motion: reduce) {
  .user-menu-toggle--has-dm::before {
    animation: none;
    --pipsy-dm-border-fill: 288deg;
    opacity: 0.94;
  }
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 10px;
  border: var(--pipsy-dropdown-shell-border, 1px solid rgba(99, 102, 241, 0.18));
  border-radius: var(--pipsy-radius-popover, var(--pipsy-radius-md, 16px));
  background: var(--pipsy-dropdown-shell-bg, linear-gradient(165deg, rgba(18, 22, 38, 0.98), rgba(10, 14, 28, 0.99)));
  box-shadow: var(--pipsy-shadow-popover, 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 20px 48px rgba(3, 7, 18, 0.48), 0 0 40px rgba(99, 102, 241, 0.07));
  backdrop-filter: var(--pipsy-backdrop-dropdown, blur(18px) saturate(1.15));
  -webkit-backdrop-filter: var(--pipsy-backdrop-dropdown, blur(18px) saturate(1.15));
  display: none;
  z-index: var(--pipsy-z-header-dropdown, 90);
}

.user-menu.open .user-menu-panel {
  display: block;
}

.user-menu-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--pipsy-radius-sm, 12px);
  color: #f5f7ff;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.user-menu-panel a:hover {
  background: rgba(99, 102, 241, 0.14);
  transform: translateX(2px);
}

.user-menu-modules-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--pipsy-radius-sm, 12px);
  color: #a5b4e8;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.user-menu-modules-summary::-webkit-details-marker {
  display: none;
}

.user-menu-modules-summary::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.2s ease;
}

.user-menu-modules[open] .user-menu-modules-summary::before {
  transform: rotate(180deg);
}

.user-menu-modules-summary:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.15);
  color: #e8eefb;
}

.user-menu-modules[open] .user-menu-modules-summary {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
  color: #e8eefb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.user-menu-modules-inner {
  margin-top: 4px;
  padding: 6px 0 6px 10px;
  border-left: 2px solid rgba(99, 102, 241, 0.25);
}

.user-menu-modules-inner a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--pipsy-radius-nested, var(--pipsy-radius-xs, 8px));
  color: #c8d2f0;
  font-size: 0.94rem;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.user-menu-modules-inner a:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #f1f5f9;
  transform: translateX(3px);
}

.header-wave {
  width: 100%;
  height: 1.25rem;
  overflow: hidden;
  pointer-events: none;
}

.header-wave-svg {
  width: 100%;
  height: 100%;
}

.site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: 1.8rem 0 2.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(7, 11, 21, 0.2), rgba(7, 11, 21, 0.6));
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 2.3rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: var(--home-text-soft);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--home-text);
  outline: none;
}

.site-footer [data-i18n="footer_text"] {
  color: var(--home-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.pipsy-toast-host {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  display: grid;
  gap: 0.75rem;
  width: min(24rem, calc(100vw - 2rem));
}

.pipsy-toast {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 14, 26, 0.95);
  box-shadow: var(--home-shadow);
  transform: translateY(0.5rem);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.pipsy-toast--visible {
  transform: translateY(0);
  opacity: 1;
}

.pipsy-toast__text {
  margin: 0;
  color: var(--home-text);
  line-height: 1.55;
}

.pipsy-toast__dismiss {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--home-text);
  cursor: pointer;
}

.pipsy-toast--success {
  border-color: rgba(74, 222, 128, 0.36);
}

.pipsy-toast--error {
  border-color: rgba(248, 113, 113, 0.34);
}

.pipsy-toast--info {
  border-color: rgba(96, 165, 250, 0.34);
}
