/* ==========================================================================
   VONYMENTRA — stílusok
   Prémium, fekete-fehér alapú, minimalista dizájnrendszer.
   Szerkezet: tokenek -> alap -> layout -> komponensek -> szekciók -> reszponzív
   ========================================================================== */

/* ============================= */
  /* RESET & BASE                   */
  /* ============================= */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, ul, figure { margin: 0; }
  ul { padding: 0; list-style: none; }
  img, svg { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
  input, textarea { font: inherit; }

  /* ============================= */
  /* DESIGN TOKENS                  */
  /* ============================= */
  :root {
    --bg: #FAFAF8;
    --surface: #F1F0EA;
    --black: #000000;
    --white: #FFFFFF;
    --ink: #16160F;
    --muted: #5C5B52;

    --ink-invert: #FFFFFF;
    --muted-invert: #A6A59B;

    --line: rgba(0,0,0,0.13);
    --line-strong: rgba(0,0,0,0.38);
    --line-invert: rgba(255,255,255,0.18);
    --line-invert-strong: rgba(255,255,255,0.42);

    --radius: 3px;
    --container-max: 1240px;
    --container-px: clamp(1.25rem, 4vw, 4rem);
    --section-py: clamp(4.5rem, 4rem + 4vw, 8.5rem);

    --font-display: "Manrope", "Inter", sans-serif;
    --font-body: "Inter", "Manrope", sans-serif;

    --ease: cubic-bezier(.22, .8, .32, 1);
    --nav-h: 76px;
  }

  html, body { background: var(--bg); }

  body {
    font-family: var(--font-body);
    color: var(--ink);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }

  h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--black);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
  }

  section[id] { scroll-margin-top: var(--nav-h); }

  .container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-px);
  }

  /* Visually hidden but available to assistive tech */
  .vh {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }

  .skip-link {
    position: fixed; top: -80px; left: 1rem; z-index: 999;
    background: var(--black); color: var(--white);
    padding: 0.8rem 1.4rem; border-radius: var(--radius);
    transition: top 0.25s var(--ease);
    font-size: 0.9rem; font-weight: 600;
  }
  .skip-link:focus { top: 1rem; }

  :focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 3px;
    border-radius: 1px;
  }
  section.invert :focus-visible,
  .invert :focus-visible { outline-color: var(--white); }

  /* ============================= */
  /* BUTTONS                        */
  /* ============================= */
  .btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: transform 0.35s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
    will-change: transform;
  }

  .btn-primary {
    background: var(--black);
    color: var(--white);
    border: 1px solid var(--black);
    overflow: hidden;
    z-index: 0;
  }
  .btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #2b2b26;
    transform: translateX(-101%);
    transition: transform 0.4s var(--ease);
    z-index: -1;
  }
  .btn-primary:hover::before { transform: translateX(0); }

  .btn-ghost {
    background: transparent;
    color: var(--black);
    border: 1px solid var(--line-strong);
  }
  .btn-ghost:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
  }

  .invert .btn-primary {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
  }
  .invert .btn-primary::before { background: #dedcd2; }

  .invert .btn-ghost {
    color: var(--white);
    border-color: var(--line-invert-strong);
  }
  .invert .btn-ghost:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
  }

  .btn-block { width: 100%; }

  /* Underline-grow link */
  .link-underline {
    position: relative;
    display: inline-block;
  }
  .link-underline::after {
    content: "";
    position: absolute;
    left: 0; bottom: -3px;
    width: 100%; height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
  }
  .link-underline:hover::after,
  .link-underline:focus-visible::after { transform: scaleX(1); }

  /* ============================= */
  /* HEADER / NAV                   */
  /* ============================= */
  .site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 650;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  }
  .site-header.is-scrolled,
  .site-header.menu-open {
    background: rgba(250,250,248,0.82);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--black);
    z-index: 620;
  }
  .nav-links {
    display: none;
    align-items: center;
    gap: 2.3rem;
  }
  .nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
  }
  .nav-actions { display: flex; align-items: center; gap: 1.4rem; }
  .nav-cta { display: none; }

  .hamburger {
    position: relative;
    z-index: 620;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
  }
  .hamburger span {
    position: absolute;
    width: 20px; height: 1.5px;
    background: var(--black);
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), background-color 0.3s;
  }
  .hamburger span:nth-child(1) { transform: translateY(-5px); }
  .hamburger span:nth-child(2) { transform: translateY(5px); }
  .hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(0) rotate(45deg); }
  .hamburger[aria-expanded="true"] span:nth-child(2) { transform: translateY(0) rotate(-45deg); }

  .mobile-menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--bg);
    z-index: 600;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--container-px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.35s var(--ease), visibility 0.35s, transform 0.35s var(--ease);
  }
  .mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .mobile-menu-links { display: flex; flex-direction: column; gap: 0.4rem; }
  .mobile-menu-links a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 2.6rem);
    font-weight: 700;
    color: var(--black);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  .mobile-menu.is-open .mobile-menu-links a { opacity: 1; transform: translateY(0); }
  .mobile-menu-links a:nth-child(1) { transition-delay: 0.08s; }
  .mobile-menu-links a:nth-child(2) { transition-delay: 0.14s; }
  .mobile-menu-links a:nth-child(3) { transition-delay: 0.20s; }
  .mobile-menu-links a:nth-child(4) { transition-delay: 0.26s; }
  .mobile-menu-links a:nth-child(5) { transition-delay: 0.32s; }
  .mobile-menu-foot {
    margin-top: 2.5rem;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s var(--ease) 0.36s, transform 0.5s var(--ease) 0.36s;
  }
  .mobile-menu.is-open .mobile-menu-foot { opacity: 1; transform: translateY(0); }

  /* ============================= */
  /* HERO                           */
  /* ============================= */
  .hero {
    position: relative;
    padding-top: calc(var(--nav-h) + 3.5rem);
    padding-bottom: 5rem;
    overflow: hidden;
  }
  .hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(to right, rgba(0,0,0,0.045) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(0,0,0,0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 65% at 60% 30%, black 10%, transparent 75%);
            mask-image: radial-gradient(ellipse 80% 65% at 60% 30%, black 10%, transparent 75%);
    pointer-events: none;
  }
  .hero-glow {
    position: absolute;
    width: 640px; height: 640px;
    right: -180px; top: -160px;
    background: radial-gradient(circle, rgba(0,0,0,0.055), transparent 68%);
    pointer-events: none;
  }
  .hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
  }
  .hero-copy { position: relative; z-index: 2; }
  .hero-copy h1 {
    font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem);
    max-width: 760px;
  }
  .hero-copy .lede {
    margin-top: 1.6rem;
    max-width: 42ch;
    font-size: 1.15rem;
    color: var(--muted);
  }
  .hero-actions {
    margin-top: 2.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
  }
  .hero-mark { width: min(100%, 460px); color: var(--black); }
  .hero-mark .draw-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    fill: none;
  }
  .hero-mark .node {
    opacity: 0;
    transform-origin: center;
  }
  .hero-mark .node-ring {
    opacity: 0;
  }

  @media (prefers-reduced-motion: no-preference) {
    .hero-mark .draw-line { animation: draw 1.6s var(--ease) forwards; }
    .hero-mark .node { animation: nodeIn 0.6s var(--ease) forwards; }
    .hero-mark .node-ring { animation: ringIn 1.8s var(--ease) infinite; }
    .hero-mark { animation: heroFloat 9s ease-in-out infinite; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-mark .draw-line { stroke-dashoffset: 0; }
    .hero-mark .node, .hero-mark .node-ring { opacity: 1; }
  }

  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes nodeIn { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }
  @keyframes ringIn {
    0% { opacity: 0; transform: scale(0.6); }
    35% { opacity: 0.5; }
    100% { opacity: 0; transform: scale(2.1); }
  }
  @keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }

  /* ============================= */
  /* SECTION HEADERS                */
  /* ============================= */
  .section { padding-block: var(--section-py); }
  .section.on-surface { background: var(--surface); }
  .section.invert { background: var(--black); color: var(--ink-invert); }
  .section.invert h2, .section.invert h3 { color: var(--white); }
  .section.invert p { color: var(--muted-invert); }

  .section-head { max-width: 42rem; }
  .section-head h2 { font-size: clamp(1.9rem, 1.55rem + 1.6vw, 2.7rem); }
  .section-head p { margin-top: 1.1rem; font-size: 1.08rem; color: var(--muted); }
  .section.invert .section-head p { color: var(--muted-invert); }

  /* ============================= */
  /* SCROLL REVEAL                  */
  /* ============================= */
  [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
  }
  [data-reveal].is-visible {
    animation: revealUp 0.7s var(--ease) forwards;
  }
  @keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
  }
  @media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; animation: none; }
  }

  /* ============================= */
  /* MIT KAPSZ — BENEFIT CARDS       */
  /* ============================= */
  .benefit-grid {
    margin-top: 3.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .benefit-card {
    background: var(--bg);
    padding: 2.4rem 2rem;
    transition: background-color 0.35s var(--ease), transform 0.35s var(--ease);
  }
  .benefit-card:hover { background: var(--surface); }
  .benefit-icon {
    width: 40px; height: 40px;
    color: var(--black);
    margin-bottom: 1.6rem;
  }
  .benefit-icon svg { width: 100%; height: 100%; }
  .benefit-icon .draw-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.6s var(--ease);
  }
  .benefit-card:hover .benefit-icon .draw-line { stroke-dashoffset: 0; }
  .benefit-card h3 { font-size: 1.15rem; font-weight: 700; }
  .benefit-card p { margin-top: 0.7rem; color: var(--muted); font-size: 0.98rem; }

  /* ============================= */
  /* SZOLGÁLTATÁSOK — SERVICE LIST   */
  /* ============================= */
  .service-list { margin-top: 3.2rem; border-top: 1px solid var(--line); }
  .service-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
    position: relative;
  }
  .service-row::before {
    content: "";
    position: absolute;
    left: 0; bottom: -1px;
    height: 1px; width: 0;
    background: var(--black);
    transition: width 0.5s var(--ease);
  }
  .service-row:hover::before { width: 100%; }
  .service-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
  }
  .service-desc { color: var(--muted); max-width: 42ch; }

  /* ============================= */
  /* CSOMAGOK — PRICING              */
  /* ============================= */
  .pricing-grid {
    margin-top: 3.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .price-card {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 2.6rem 2.2rem;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
  }
  .price-card.is-featured {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
  }
  .price-card.is-featured .price-name,
  .price-card.is-featured .price-desc { color: var(--white); }
  .price-card.is-featured .price-desc { color: var(--muted-invert); }
  .price-card.is-featured .price-list li { color: #E7E6DF; border-color: var(--line-invert); }
  .price-card.is-featured .price-list li svg { color: var(--white); }
  .price-card.is-featured .price-note { color: var(--muted-invert); }

  .price-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: var(--white);
    color: var(--black);
    padding: 0.35rem 0.7rem;
    border-radius: 2px;
    margin-bottom: 1.4rem;
  }
  .price-name { font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; }
  .price-desc { margin-top: 0.6rem; color: var(--muted); font-size: 0.98rem; min-height: 2.6em; }

  .price-list { margin-top: 2rem; margin-bottom: auto; display: flex; flex-direction: column; }
  .price-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
  }
  .price-list li:first-child { border-top: 0; }
  .price-list li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 0.25em; color: var(--black); }

  .price-note {
    margin-top: 2.2rem;
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: none;
  }
  .price-cta { margin-top: 0.7rem; }

  /* ============================= */
  /* FOLYAMAT — TIMELINE             */
  /* ============================= */
  .timeline {
    position: relative;
    margin-top: 3.5rem;
    padding-left: 2.6rem;
  }
  .timeline::before {
    content: "";
    position: absolute;
    left: 0; top: 6px; bottom: 6px;
    width: 1px;
    background: var(--line-strong);
  }
  .timeline-progress {
    position: absolute;
    left: 0; top: 6px;
    width: 1px;
    height: 0%;
    background: var(--black);
    transition: height 1.6s var(--ease);
  }
  .timeline.is-visible .timeline-progress { height: calc(100% - 12px); }

  .timeline-item { position: relative; padding: 0 0 3.2rem 2rem; }
  .timeline-item:last-child { padding-bottom: 0; }
  .timeline-item::before {
    content: "";
    position: absolute;
    left: -2.6rem; top: 0.15rem;
    width: 9px; height: 9px;
    background: var(--bg);
    border: 1px solid var(--black);
    border-radius: 50%;
    transform: translateX(-4px);
  }
  .timeline-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--muted);
    letter-spacing: 0.02em;
  }
  .timeline-item h3 { margin-top: 0.5rem; font-size: 1.3rem; }
  .timeline-item p { margin-top: 0.6rem; color: var(--muted); max-width: 46ch; }

  /* ============================= */
  /* CTA BANNER                     */
  /* ============================= */
  .cta-banner { text-align: left; }
  .cta-banner-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }
  .cta-banner h2 { font-size: clamp(2rem, 1.6rem + 2vw, 3.1rem); max-width: 18ch; color: var(--white); }
  .cta-banner p { margin-top: 1.1rem; color: var(--muted-invert); font-size: 1.1rem; max-width: 44ch; }

  /* ============================= */
  /* KAPCSOLAT                      */
  /* ============================= */
  .contact-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }
  .contact-box {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 2.6rem;
  }
  .contact-email-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.8rem;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid var(--line);
  }
  .contact-email-btn {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 0.9rem + 1vw, 1.5rem);
    font-weight: 700;
    color: var(--black);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
  }
  .copy-feedback {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .copy-feedback.is-shown { opacity: 1; transform: translateY(0); }
  .contact-fallback { font-size: 0.9rem; color: var(--muted); }
  .contact-fallback a { text-decoration: underline; text-underline-offset: 3px; }

  /* ============================= */
  /* FOOTER                         */
  /* ============================= */
  .site-footer {
    padding-block: 3.5rem;
    border-top: 1px solid var(--line);
  }
  .footer-top {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
  }
  .footer-brand .logo { display: block; }
  .footer-tagline { margin-top: 0.6rem; color: var(--muted); font-size: 0.95rem; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; }
  .footer-links a { font-size: 0.92rem; color: var(--muted); }
  .footer-bottom {
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--muted);
  }

  /* ============================= */
  /* RESPONSIVE                     */
  /* ============================= */
  @media (min-width: 640px) {
    .benefit-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: 1fr 1fr; }
    .service-row { grid-template-columns: 1fr; }
  }

  @media (min-width: 900px) {
    .nav-links { display: flex; }
    .nav-cta { display: inline-flex; }
    .hamburger { display: none; }

    .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 2rem; }
    .hero-copy { text-align: left; }

    .benefit-grid { grid-template-columns: repeat(4, 1fr); }

    .service-row {
      grid-template-columns: 0.9fr 1.1fr;
      align-items: baseline;
      gap: 2rem;
    }

    .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
    .price-card.is-featured { transform: translateY(-1.1rem); padding-top: 2.9rem; padding-bottom: 2.9rem; }

    .cta-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; }
    .cta-banner p { margin-top: 1.1rem; }

    .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }

    .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  }

  @media (min-width: 1200px) {
    .hero-copy h1 { max-width: 13.5ch; }
  }
