/* ================================================================
   Szilágyi Tamás — Landing Page Fejlesztés
   CSS — Mobile-first, design tokens, clean & professional
   ================================================================ */

/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Colors */
  --bg:            #FFFFFF;
  --surface:       #F8FAFC;
  --surface-hover: #F1F5F9;
  --text:          #0F172A;
  --text-muted:    #64748B;
  --text-light:    #94A3B8;
  --accent:        #7C4A1E;
  --accent-hover:  #5E3512;
  --accent-light:  #FBF0E6;
  --border:        #E2E8F0;
  --border-focus:  #7C4A1E;
  --success:       #10B981;
  --error:         #EF4444;
  --dark:          #0F172A;

  /* Navigation backgrounds (dark-mode overrideable) */
  --nav-bg:        rgba(255, 255, 255, 0.92);
  --nav-bg-mobile: rgba(255, 255, 255, 0.98);

  /* Form feedback (dark-mode overrideable) */
  --feedback-error-bg:           #FEF2F2;
  --feedback-error-border:       #FECACA;
  --feedback-error-text:         #991B1B;
  --feedback-success-icon-bg:    #D1FAE5;
  --feedback-success-icon-color: #065F46;

  /* Process free badge (dark-mode overrideable) */
  --process-badge-bg: #ECFDF5;
  --portfolio-gazterv-img: url('../assets/img/gztrvLIGHT.png');

  color-scheme: light;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.10), 0 10px 10px -5px rgba(15, 23, 42, 0.04);

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --nav-height:  72px;
  --max-width:   1200px;
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   350ms ease;

  /* Neobrutalist button */
  --btn-neo-border-color: var(--text);
  --btn-neo-shadow: 4px 4px 0px 0px var(--btn-neo-border-color);

}

/* ── Scroll Progress Bar ───────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #C4976B);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 300;
  pointer-events: none;
}

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}

/* ── Layout ────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

@media (min-width: 640px) {
  .container { padding: 0 var(--space-8); }
}

@media (min-width: 1024px) {
  .container { padding: 0 var(--space-12); }
}

.section {
  padding: var(--space-20) 0;
}

.section-surface {
  background: var(--surface);
}

@media (min-width: 768px) {
  .section { padding: var(--space-32) 0; }
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-sm {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-5);
  height: 36px;
}

.btn-lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
  height: 52px;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--btn-neo-border-color);
  border-radius: 5px;
  box-shadow: var(--btn-neo-shadow);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--accent-hover);
  border-color: var(--btn-neo-border-color);
  transform: translate(4px, 4px);
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}

.btn-outline:hover, .btn-outline:focus-visible {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--text-muted);
  color: var(--text);
  background: var(--surface);
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary:active {
  transform: translate(4px, 4px);
}

/* ── Section Headers ───────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: var(--space-16);
  }
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--text-4xl);
  }
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Navigation ────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-monogram {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.logo-monogram--sm {
  width: 28px;
  height: 28px;
  font-size: var(--text-xs);
}

.logo-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.nav-logo--dark { display: none; }

html[data-theme="dark"] .nav-logo--light { display: none; }
html[data-theme="dark"] .nav-logo--dark  { display: block; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .nav-logo--light { display: none; }
  html:not([data-theme="light"]) .nav-logo--dark  { display: block; }
}

/* Mobile nav hidden by default */
.nav-links {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--nav-bg-mobile);
  backdrop-filter: blur(12px);
  padding: var(--space-6) var(--space-6) var(--space-8);
  flex-direction: column;
  gap: var(--space-2);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.nav-links.is-open {
  display: flex;
}

.nav-link {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-muted);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}

@media (min-width: 768px) {
  .nav-link::after {
    content: '';
    position: absolute;
    left: var(--space-4);
    right: var(--space-4);
    bottom: 4px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
  }

  .nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .nav-link:hover {
    background: none;
  }
}

.nav-cta {
  margin-top: var(--space-2);
  align-self: flex-start;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  z-index: 110;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

.hamburger.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop nav */
@media (min-width: 768px) {
  .hamburger { display: none; }

  .nav-links {
    display: flex;
    position: static;
    background: none;
    backdrop-filter: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: var(--space-1);
    border: none;
    box-shadow: none;
  }

  .nav-cta {
    margin-top: 0;
    margin-left: var(--space-4);
  }
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
  /* Scoped hero text tokens — always light regardless of color mode */
  --hero-text:       #F1F5F9;
  --hero-text-muted: #CBD5E1;
  --hero-text-dim:   rgba(241, 245, 249, 0.55);
}

/* Heroes without video overlay (index + subpages) inherit readable text from design tokens */
.section.hero {
  background: var(--bg);
  --hero-text: var(--text);
  --hero-text-muted: var(--text-muted);
}

/* Hero background layer */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-video,
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Mobile: show image, hide video */
.hero-bg-video { display: none; }
.hero-bg-image { display: block; }

/* Desktop (≥768px): show video, hide image */
@media (min-width: 768px) {
  .hero-bg-video { display: block; }
  .hero-bg-image { display: none; }
}

/* Gradient overlay for text legibility */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(7, 12, 18, 0.78) 0%,
    rgba(7, 12, 18, 0.58) 55%,
    rgba(7, 12, 18, 0.22) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 2;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.hero-content {
  max-width: 760px;
}

.hero-label {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #C4976B;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--hero-text);
  margin-bottom: var(--space-6);
}

.hero-title em {
  font-style: normal;
  color: #C4976B;
}

.hero-subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--hero-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-10);
  max-width: 560px;
}

.hero .hero-sub {
  color: var(--hero-text-muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

/* Ghost button in hero context: always light-on-dark */
.hero .btn-ghost {
  color: var(--hero-text);
  border-color: rgba(241, 245, 249, 0.4);
  background: transparent;
}

.hero .btn-ghost:hover,
.hero .btn-ghost:focus-visible {
  color: var(--hero-text);
  border-color: rgba(241, 245, 249, 0.8);
  background: rgba(241, 245, 249, 0.10);
}

/* Primary button in hero: always light on the dark gradient bg */
.hero .btn-primary {
  --btn-neo-border-color: rgba(241, 245, 249, 0.85);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--hero-text);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--hero-text-muted);
  font-weight: 500;
  margin-top: var(--space-1);
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--hero-text-dim);
  display: none;
}

@media (min-width: 480px) {
  .hero-stat-divider { display: block; }
}

/* Hero 3-col layout on large screens — middle col = empty "fire zone" */
@media (min-width: 1024px) {
  .hero-container {
    max-width: 100%;
    padding-left: clamp(var(--space-8), 5vw, var(--space-24));
    padding-right: clamp(var(--space-8), 5vw, var(--space-24));
    display: grid;
    grid-template-columns: minmax(0, 600px) minmax(0, 1fr) minmax(0, 380px);
    gap: 0;
    align-items: center;
  }

  .hero-content {
    max-width: none;
  }

  .hero-visual {
    grid-column: 3;
  }
}

/* Code window — hidden on mobile, shown desktop+ */
.hero-visual {
  display: none;
}

@media (min-width: 1024px) {
  .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

.code-window {
  width: 100%;
  max-width: 420px;
  background: #0F172A;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.07);
  overflow: hidden;
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
}

.code-window-bar {
  background: #1E293B;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #334155;
}

.code-dot:nth-child(1) { background: #EF4444; }
.code-dot:nth-child(2) { background: #F59E0B; }
.code-dot:nth-child(3) { background: #10B981; }

.code-filename {
  font-size: var(--text-xs);
  color: #64748B;
  margin-left: var(--space-2);
  font-family: inherit;
}

.code-window-body {
  padding: var(--space-5) var(--space-6);
}

.code-window-body pre {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.75;
  color: #CBD5E1;
  white-space: pre;
  overflow: hidden;
}

.tok-tag     { color: #60A5FA; }
.tok-attr    { color: #FCD34D; }
.tok-val     { color: #34D399; }
.tok-comment { color: #475569; }

.code-cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: #C4976B;
  vertical-align: text-bottom;
  margin-left: 2px;
  border-radius: 1px;
  animation: cursor-blink 1.1s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}


/* ── Benefits ──────────────────────────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: stretch;
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  background: var(--bg);
  border: 2px solid var(--text);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  height: 100%;
  box-shadow: 4px 4px 0 var(--text);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  display: flex;
  flex-direction: column;
}

.benefit-card:hover {
  box-shadow: 6px 6px 0 var(--text);
  transform: translate(-2px, -2px);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--accent);
  border: 2px solid var(--text);
  box-shadow: 2px 2px 0 var(--text);
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
}

.benefit-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.benefit-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

/* ── Portfolio ─────────────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: stretch;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  height: 100%;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px) scale(1.01);
}

.portfolio-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.portfolio-image {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
  position: relative;
  overflow: hidden;
}

.portfolio-image--amber {
  background: linear-gradient(135deg, #92400E 0%, #D97706 50%, #F59E0B 100%);
}

.portfolio-image--blue {
  background: linear-gradient(135deg, #1E3A5F 0%, #1D4ED8 50%, #3B82F6 100%);
}

.portfolio-image--green {
  background: linear-gradient(135deg, #064E3B 0%, #059669 50%, #34D399 100%);
}

/* subtle noise overlay on portfolio images */
.portfolio-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
}

.portfolio-image-label {
  position: relative;
  z-index: 1;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
}

.portfolio-info {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.portfolio-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.portfolio-cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition-fast);
  margin-top: auto;
}

.portfolio-card:hover .portfolio-cta {
  text-decoration: underline;
}

/* ── Pricing ───────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 380px));
    justify-content: center;
    align-items: stretch;
  }
}

.pricing-card {
  background: var(--bg);
  border: 2px solid var(--text);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  transition: box-shadow var(--transition-base), translate var(--transition-base);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 4px 0 0 var(--text);
}

.pricing-card:hover {
  box-shadow: 8px 8px 0 0 var(--text);
  translate: -4px -4px;
}

.pricing-card--featured {
  z-index: 1;
}

.pricing-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  rotate: 12deg;
  background: var(--accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 2px solid var(--text);
  white-space: nowrap;
}

/* Card tilts — CSS individual rotate property (GSAP-safe) */
.pricing-tilt-1 { rotate: -1deg; }
.pricing-tilt-2 { rotate:  1deg; }
.pricing-tilt-3 { rotate: -2deg; }

/* Pricing icon */
.pricing-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--accent);
  flex-shrink: 0;
}
.pricing-icon svg {
  width: 22px;
  height: 22px;
}

.pricing-header {
  margin-bottom: var(--space-6);
}

.pricing-name {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.pricing-amount {
  font-size: var(--text-3xl);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.pricing-suffix {
  font-size: var(--text-base);
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.pricing-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.feature-check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  border: 2px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Contact ───────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-20);
    align-items: start;
  }
}

.contact-info .section-label {
  display: block;
  margin-bottom: var(--space-3);
}

.contact-info .section-title {
  text-align: left;
}

.contact-intro {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  margin-top: var(--space-4);
}

.contact-intro strong {
  color: var(--text);
  font-weight: 700;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
}

.contact-detail-text {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text);
}

a.contact-detail-text:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ── Form ──────────────────────────────────────────────────────── */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

@media (min-width: 640px) {
  .contact-form-wrap {
    padding: var(--space-10);
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.required { color: var(--accent); }

.optional {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--text-light);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--text);
  border-radius: var(--radius);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 3px 3px 0 var(--text);
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 3px 3px 0 var(--accent);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--error);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Checkbox */
.form-group--checkbox {
  gap: 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.checkbox-input:checked + .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-input:checked + .checkbox-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.checkbox-input:focus-visible + .checkbox-custom {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.checkbox-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* Form Submit */
.form-submit {
  margin-top: var(--space-2);
  border-radius: var(--radius);
  font-size: var(--text-base);
  height: 52px;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Form Error Banner */
.form-error {
  background: var(--feedback-error-bg);
  border: 1px solid var(--feedback-error-border);
  color: var(--feedback-error-text);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Form Success */
.form-success {
  text-align: center;
  padding: var(--space-12) var(--space-8);
}

.form-success-icon {
  width: 64px;
  height: 64px;
  background: var(--feedback-success-icon-bg);
  color: var(--feedback-success-icon-color);
  border-radius: 50%;
  font-size: var(--text-2xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}

.form-success h3 {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.form-success p {
  color: var(--text-muted);
  font-size: var(--text-base);
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.55);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: var(--space-16);
  }
}

.footer-col--identity {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 640px) and (max-width: 899px) {
  .footer-col--identity {
    grid-column: 1 / -1;
  }
}

.footer-profile {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-profile-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.footer-brand-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}

/* Placeholder: swap for .footer-photo <img> when tamas.jpg is ready */
.footer-photo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(124, 74, 30, 0.15);
  border: 2px solid rgba(124, 74, 30, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}

.footer-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(124, 74, 30, 0.6);
  box-shadow: 0 0 0 4px rgba(124, 74, 30, 0.12);
  flex-shrink: 0;
}

.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: var(--space-5);
  line-height: 1;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: transform var(--transition-base);
}

.footer-contact-item:hover {
  transform: translateX(5px);
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.footer-contact-icon svg {
  width: 15px;
  height: 15px;
}

.footer-contact-item:hover .footer-contact-icon {
  background: rgba(124, 74, 30, 0.18);
}

.footer-contact-link,
.footer-contact-text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-base);
  display: inline-block;
  position: relative;
}

.footer-nav-link::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: translateY(-50%) translateX(-6px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.footer-nav-link:hover {
  color: #fff;
  transform: translateX(8px);
}

.footer-nav-link:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.footer-nav-link--cta {
  color: var(--accent);
  font-weight: 600;
  margin-top: var(--space-2);
}

.footer-nav-link--cta::before {
  display: none;
}

.footer-nav-link--cta:hover {
  color: #C4976B;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: var(--space-10) 0 var(--space-6);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
}

@media (min-width: 640px) {
  .footer-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.35);
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.75);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

/* ── About ─────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 300px 1fr;
    gap: var(--space-20);
  }
  .about-photo-wrap {
    justify-content: flex-start;
  }
}

.about-photo-wrap {
  display: flex;
  justify-content: center;
}

.about-photo {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 8px var(--accent-light), var(--shadow-xl);
}

.about-photo-placeholder {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 8px rgba(124, 74, 30, 0.08), var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-initials {
  font-size: 5rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.04em;
  opacity: 0.5;
  line-height: 1;
}

.about-logo-img {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
}

.orbit-scene .about-logo-img { max-width: 130px; }

.about-logo--dark { display: none; }

html[data-theme="dark"] .about-logo--light { display: none; }
html[data-theme="dark"] .about-logo--dark  { display: block; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .about-logo--light { display: none; }
  html:not([data-theme="light"]) .about-logo--dark  { display: block; }
}

.about-content .section-label {
  display: block;
  margin-bottom: var(--space-3);
}

.about-title {
  text-align: left;
  margin-bottom: var(--space-6);
}

.about-text {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-8) 0;
}

.about-highlight {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.about-highlight-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.about-highlight-icon svg {
  width: 16px;
  height: 16px;
}

/* ── Orbiting Skills Scene ──────────────────────────────────── */
.orbit-scene {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Center photo: smaller inside the orbit scene */
.orbit-scene .about-photo-placeholder {
  width: 120px;
  height: 120px;
  box-shadow: 0 0 0 6px rgba(124, 74, 30, 0.08), var(--shadow-lg);
  position: relative;
  z-index: 10;
}

.orbit-scene .about-photo-initials {
  font-size: 2.2rem;
}

/* Glowing orbit ring visuals */
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-ring--inner {
  width: 178px;
  height: 178px;
  border: 1px solid rgba(6, 182, 212, 0.4);
  animation: orb-glow-inner 4s ease-in-out infinite;
}

.orbit-ring--outer {
  width: 288px;
  height: 288px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  animation: orb-glow-outer 4s ease-in-out infinite 1.5s;
}

@keyframes orb-glow-inner {
  0%, 100% { box-shadow: 0 0 16px rgba(6, 182, 212, 0.1),  inset 0 0 16px rgba(6, 182, 212, 0.04); }
  50%       { box-shadow: 0 0 32px rgba(6, 182, 212, 0.22), inset 0 0 32px rgba(6, 182, 212, 0.1);  }
}

@keyframes orb-glow-outer {
  0%, 100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.08), inset 0 0 20px rgba(124, 58, 237, 0.04); }
  50%       { box-shadow: 0 0 40px rgba(124, 58, 237, 0.18), inset 0 0 40px rgba(124, 58, 237, 0.09); }
}

/* Rotating group container (positioned at scene center) */
.orb-group {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}

.orb-group--cw  { animation: orb-spin-cw  var(--orb-dur, 10s) linear infinite; }
.orb-group--ccw { animation: orb-spin-ccw var(--orb-dur, 17s) linear infinite; }

@keyframes orb-spin-cw  { to { transform: rotate(360deg);  } }
@keyframes orb-spin-ccw { to { transform: rotate(-360deg); } }

/* Counter-rotating icon holder (keeps icon upright) */
.orb-icon {
  position: absolute;
  top: 0;
  transform: translate(-50%, -50%);
}

.orb-icon--cw  { animation: orb-counter-ccw var(--orb-dur, 10s) linear infinite; }
.orb-icon--ccw { animation: orb-counter-cw  var(--orb-dur, 17s) linear infinite; }

@keyframes orb-counter-ccw { to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes orb-counter-cw  { to { transform: translate(-50%, -50%) rotate(360deg);  } }

/* Icon bubble */
.orb-bubble {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: default;
  transition: transform 0.2s ease;
}

.orb-bubble--lg {
  width: 44px;
  height: 44px;
}

.orb-bubble:hover {
  transform: scale(1.2);
}

.orb-bubble svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Tooltip */
.orb-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 20;
}

.orb-bubble:hover .orb-tooltip {
  opacity: 1;
}

/* Hover: pause all animations */
.orbit-scene:hover .orb-group,
.orbit-scene:hover .orb-icon {
  animation-play-state: paused;
}

/* Reduced motion: disable all animations */
@media (prefers-reduced-motion: reduce) {
  .orb-group,
  .orb-icon,
  .orbit-ring--inner,
  .orbit-ring--outer {
    animation: none;
  }
}

/* Coming soon portfolio variant */
.portfolio-image--slate {
  background: linear-gradient(135deg, #1E293B 0%, #334155 50%, #475569 100%);
}

.portfolio-image--gazterv {
  background-image: var(--portfolio-gazterv-img);
  background-size: cover;
  background-position: center top;
}

.portfolio-image--muted {
  background: linear-gradient(135deg, #94A3B8 0%, #CBD5E1 100%);
}

.portfolio-card--coming-soon {
  opacity: 0.55;
  pointer-events: none;
}

.portfolio-cta--muted {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-light);
  margin-top: auto;
}

/* ── Animations (GSAP controlled — initial states) ─────────────── */
.reveal {
  /* GSAP will animate these */
  will-change: transform, opacity;
}

.cards-container {
  will-change: transform, opacity;
}

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ── Focus Styles ──────────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Pricing extras ─────────────────────────────────────────────── */
.pricing-extras {
  margin-top: var(--space-12);
  padding-top: var(--space-12);
  border-top: 1px solid var(--border);
}

.pricing-extras-title {
  text-align: center;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-6);
}

.extras-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .extras-grid { grid-template-columns: repeat(2, 1fr); }
}

.extras-card {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5) var(--space-6);
  background: var(--bg);
  border: 2px solid var(--text);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--text);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.extras-card:hover {
  box-shadow: 6px 6px 0 var(--text);
  transform: translate(-2px, -2px);
}

.extras-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 2px solid var(--text);
  box-shadow: 2px 2px 0 var(--text);
}

.extras-icon svg {
  width: 20px;
  height: 20px;
}

.extras-content {
  flex: 1;
  min-width: 160px;
}

.extras-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.extras-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.extras-price {
  flex-shrink: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 2px;
}

.pricing-process-link {
  margin-top: var(--space-10);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ── Process section ─────────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-16);
  align-items: stretch;
}

@media (min-width: 640px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .process-steps { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .process-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: calc(var(--space-6) + 1.125rem);
    right: calc(-1 * var(--space-6) / 2);
    width: var(--space-6);
    height: 2px;
    background: var(--accent);
    opacity: 0.3;
  }
}

.process-card {
  background: var(--bg);
  border: 2px solid var(--text);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: 4px 4px 0 var(--text);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  height: 100%;
  position: relative;
}

.process-card:hover {
  box-shadow: 6px 6px 0 var(--text);
  transform: translate(-2px, -2px);
}

.process-step-number {
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

.process-step-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
}

.process-step-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.process-step-free {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--success);
  background: var(--process-badge-bg);
  border-radius: var(--radius-full);
  padding: 2px var(--space-3);
  border: 2px solid var(--success);
  box-shadow: 2px 2px 0 var(--success);
}

.process-info {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-6) var(--space-6);
}

@media (min-width: 768px) {
  .process-info { padding: var(--space-8) var(--space-10); }
}

.process-info-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.process-info-list {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .process-info-list { grid-template-columns: repeat(2, 1fr); }
}

.process-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.process-info-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ── Theme Toggle ──────────────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--text-light);
}

.theme-icon { display: block; width: 16px; height: 16px; }
.theme-icon--sun  { display: none; }
.theme-icon--moon { display: block; }

/* ─── #demo szekció ─── */
.demo-layout {
  display: flex;
  justify-content: center;
}

.chat-widget {
  position: relative;
  border: 2px solid var(--text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
}

.chat-widget-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--accent);
  color: #fff;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.chat-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-name {
  font-weight: 700;
  font-size: var(--text-sm);
  line-height: 1;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  opacity: 0.9;
}

.chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  min-height: 320px;
  overflow-y: auto;
  max-height: 400px;
}

.chat-bubble {
  max-width: 80%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.chat-bubble--ai {
  background: var(--surface);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble--user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border);
}

.chat-input {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  background: var(--bg);
  color: var(--text);
}

.chat-send-btn {
  padding: var(--space-2) var(--space-3);
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: default;
}

.chat-coming-soon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  padding: var(--space-6);
}

.chat-coming-soon p {
  color: #fff;
  font-weight: 600;
  font-size: var(--text-base);
  text-align: center;
  line-height: 1.5;
  background: var(--accent);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
}

.demo-form-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.demo-form-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
}

.demo-form-subtitle {
  font-size: var(--text-sm);
  color: var(--text-light);
  margin-top: calc(-1 * var(--space-2));
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text);
  pointer-events: none;
}

.form-select {
  cursor: pointer;
  padding-right: var(--space-10);
}

html[data-theme="dark"] .theme-icon--sun  { display: block; }
html[data-theme="dark"] .theme-icon--moon { display: none; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-icon--sun  { display: block; }
  html:not([data-theme="light"]) .theme-icon--moon { display: none; }
}

.nav-theme-li {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
}

@media (min-width: 768px) {
  .nav-theme-li { padding: 0; }
}

/* ── Reduced Motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── Typewriter cursor ─────────────────────────────────────────── */
.tw-cursor {
  color: var(--accent);
  animation: tw-blink 0.5s step-end infinite;
  user-select: none;
}

@keyframes tw-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tw-cursor { display: none; }
}

/* ── Dark Mode ─────────────────────────────────────────────────── */
/* Shared values — used in both media query and manual [data-theme="dark"] */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:            #0F172A;
    --surface:       #1E293B;
    --surface-hover: #334155;
    --text:          #F1F5F9;
    --text-muted:    #94A3B8;
    --text-light:    #64748B;
    --accent:        #C4976B;
    --accent-hover:  #D4AE8A;
    --accent-light:  rgba(196, 151, 107, 0.15);
    --border:        #334155;
    --border-focus:  #C4976B;
    --dark:          #020C18;
    --nav-bg:        rgba(15, 23, 42, 0.95);
    --nav-bg-mobile: rgba(15, 23, 42, 0.98);
    --shadow-xs: 0 1px 2px rgba(196, 151, 107, 0.06);
    --shadow-sm: 0 1px 3px rgba(196, 151, 107, 0.08), 0 1px 2px rgba(196, 151, 107, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(196, 151, 107, 0.10), 0 2px 4px -1px rgba(196, 151, 107, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(196, 151, 107, 0.12), 0 4px 6px -2px rgba(196, 151, 107, 0.07);
    --shadow-xl: 0 20px 25px -5px rgba(196, 151, 107, 0.14), 0 10px 10px -5px rgba(196, 151, 107, 0.08);
    --feedback-error-bg:           rgba(127, 29, 29, 0.2);
    --feedback-error-border:       rgba(252, 165, 165, 0.25);
    --feedback-error-text:         #FCA5A5;
    --feedback-success-icon-bg:    rgba(6, 78, 59, 0.3);
    --feedback-success-icon-color: #34D399;
    --process-badge-bg:            rgba(6, 78, 59, 0.25);
    --portfolio-gazterv-img:       url('../assets/img/gztrvDARK.png');
    --success:                     #34D399;
    --btn-neo-border-color: var(--accent);
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg:            #0F172A;
  --surface:       #1E293B;
  --surface-hover: #334155;
  --text:          #F1F5F9;
  --text-muted:    #94A3B8;
  --text-light:    #64748B;
  --accent:        #C4976B;
  --accent-hover:  #D4AE8A;
  --accent-light:  rgba(196, 151, 107, 0.15);
  --border:        #334155;
  --border-focus:  #C4976B;
  --dark:          #020C18;
  --nav-bg:        rgba(15, 23, 42, 0.95);
  --nav-bg-mobile: rgba(15, 23, 42, 0.98);
  --shadow-xs: 0 1px 2px rgba(196, 151, 107, 0.06);
  --shadow-sm: 0 1px 3px rgba(196, 151, 107, 0.08), 0 1px 2px rgba(196, 151, 107, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(196, 151, 107, 0.10), 0 2px 4px -1px rgba(196, 151, 107, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(196, 151, 107, 0.12), 0 4px 6px -2px rgba(196, 151, 107, 0.07);
  --shadow-xl: 0 20px 25px -5px rgba(196, 151, 107, 0.14), 0 10px 10px -5px rgba(196, 151, 107, 0.08);
  --feedback-error-bg:           rgba(127, 29, 29, 0.2);
  --feedback-error-border:       rgba(252, 165, 165, 0.25);
  --feedback-error-text:         #FCA5A5;
  --feedback-success-icon-bg:    rgba(6, 78, 59, 0.3);
  --feedback-success-icon-color: #34D399;
  --process-badge-bg:            rgba(6, 78, 59, 0.25);
  --portfolio-gazterv-img:       url('../assets/img/gztrvDARK.png');
  --success:                     #34D399;
  --btn-neo-border-color: rgba(240, 213, 176, 0.9);
}

/* Primary button: keep dark brown in dark mode */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .btn-primary {
    background: #7C4A1E;
    border-color: rgba(196, 151, 107, 0.5);
    box-shadow: 0 0 0 3px rgba(196, 151, 107, 0.2), 0 4px 18px rgba(124, 74, 30, 0.5);
  }
  html:not([data-theme="light"]) .btn-primary:hover,
  html:not([data-theme="light"]) .btn-primary:focus-visible {
    background: #5E3512;
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px rgba(196, 151, 107, 0.25), 0 8px 30px rgba(124, 74, 30, 0.65);
  }
}
html[data-theme="dark"] .btn-primary {
  background: #7C4A1E;
  border-color: rgba(196, 151, 107, 0.5);
  box-shadow: 0 0 0 3px rgba(196, 151, 107, 0.2), 0 4px 18px rgba(124, 74, 30, 0.5);
}
html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .btn-primary:focus-visible {
  background: #5E3512;
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(196, 151, 107, 0.25), 0 8px 30px rgba(124, 74, 30, 0.65);
}

/* Orbit bubble dark mode */
html[data-theme="dark"] .orb-bubble {
  background: #1e1e2e;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 12px rgba(196, 151, 107, 0.15);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .orb-bubble {
    background: #1e1e2e;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 12px rgba(196, 151, 107, 0.15);
  }
}

/* ── Print ─────────────────────────────────────────────────────── */
@media print {
  .site-header, .hamburger { display: none; }
  .section { padding: 2rem 0; }
  body { font-size: 12pt; }
}

/* ── Services Section ─────────────────────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--bg);
  border: 2px solid var(--text);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  height: 100%;
  box-shadow: 4px 4px 0 var(--text);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card:hover {
  box-shadow: 8px 8px 0 var(--text);
  transform: translate(-2px, -2px);
}

.service-card--featured {
  border-color: var(--accent);
  box-shadow: 4px 4px 0 var(--accent);
}

.service-card--featured:hover {
  box-shadow: 8px 8px 0 var(--accent);
}

.service-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.2em 0.65em;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.service-badge--featured {
  background: var(--accent);
  color: #fff;
}

.service-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--space-3);
}

.service-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* ── Calculator Section ───────────────────────────────────────────────── */

.calc-wrapper {
  background: var(--bg);
  border: 2px solid var(--text);
  border-radius: var(--radius-xl);
  box-shadow: 6px 6px 0 var(--text);
  padding: var(--space-10) var(--space-12);
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

@media (max-width: 640px) {
  .calc-wrapper {
    padding: var(--space-8) var(--space-6);
  }
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.calc-slider-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.calc-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.calc-slider-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.calc-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--text);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--text);
  cursor: pointer;
}

.calc-val {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
  min-width: 110px;
  text-align: right;
  white-space: nowrap;
}

.calc-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.calc-outputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

@media (max-width: 640px) {
  .calc-outputs {
    grid-template-columns: repeat(2, 1fr);
  }
}

.calc-metric {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.calc-metric--highlight {
  background: var(--accent-light);
  border-color: var(--accent);
}

.calc-metric--negative {
  border-color: var(--error);
}

.calc-metric--negative .calc-metric-value {
  color: var(--error);
}

.calc-metric-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-metric-value {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.calc-metric--highlight .calc-metric-value {
  color: var(--accent);
}

.calc-disclaimer {
  font-size: var(--text-xs);
  color: var(--text-light);
  margin: 0;
  text-align: center;
}

/* ── Hub (index.html főoldal) ───────────────────────────────────── */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--bg);
  border: 2px solid var(--text);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: 4px 4px 0 0 var(--text);
  transition: box-shadow var(--transition-base), translate var(--transition-base);
  text-decoration: none;
  color: inherit;
}

.hub-card:hover {
  box-shadow: 8px 8px 0 0 var(--text);
  translate: -4px -4px;
}

.hub-card__icon {
  width: 3rem;
  height: 3rem;
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.hub-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.hub-card h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.hub-card p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.hub-card .btn {
  align-self: flex-start;
  margin-top: var(--space-2);
}

/* === Hero shader === */
    /* ── Hero shader integration ──────────────────────────────── */
    #hero.hero--canvas {
      --hero-text:       #F1F5F9;
      --hero-text-muted: #CBD5E1;
      --hero-text-dim:   rgba(241, 245, 249, 0.55);
      background: #060a10;
    }
    #hero-canvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      display: block;
      z-index: 0;
      touch-action: none;
    }
    .hero-inner {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: var(--space-8);
      padding-top: var(--space-8);
      padding-bottom: var(--space-8);
    }
    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: var(--space-2);
      padding: var(--space-2) var(--space-5);
      background: rgba(196, 151, 107, 0.12);
      border: 1px solid rgba(196, 151, 107, 0.3);
      border-radius: var(--radius-full);
      font-size: var(--text-sm);
      font-weight: 600;
      color: rgba(240, 213, 176, 0.9);
      letter-spacing: 0.04em;
    }
    .hero-badge-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #4ade80;
      flex-shrink: 0;
    }
    .hero-title-line1,
    .hero-title-line2 {
      display: block;
      color: #fff;
      -webkit-text-fill-color: #fff;
    }
    #hero .hero-title { margin-bottom: 0; }
    #hero .hero-sub   { margin-bottom: 0; max-width: 600px; }
    #hero .hero-ctas  { justify-content: center; margin-bottom: 0; }

    @keyframes hero-in-down {
      from { opacity: 0; transform: translateY(-14px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes hero-in-up {
      from { opacity: 0; transform: translateY(22px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .hero-badge       { animation: hero-in-down 0.7s ease-out forwards; }
    #hero .hero-title { animation: hero-in-up 0.7s 0.15s ease-out both; }
    #hero .hero-sub   { animation: hero-in-up 0.7s 0.30s ease-out both; }
    #hero .hero-ctas  { animation: hero-in-up 0.7s 0.45s ease-out both; }
    section#hero.hero--canvas {
      --hero-text: #F1F5F9;
      --hero-text-muted: #CBD5E1;
    }

/* ── Cookie Consent Banner ─────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg);
  border-top: 2px solid var(--text);
  box-shadow: 0 -4px 0 0 var(--btn-neo-border-color);
  padding: var(--space-4) var(--space-6);
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  min-width: 200px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}
.cookie-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}
.cookie-banner__decline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-muted);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.cookie-banner__decline:hover {
  border-color: var(--text);
  color: var(--text);
}
@media (max-width: 600px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner__actions {
    justify-content: flex-end;
  }
}

/* ── Legal pages (impresszum, adatkezeles) ── */
.legal-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-2) var(--space-6);
  margin: 0 0 var(--space-8);
}
.legal-dl dt {
  color: var(--text-muted);
  font-size: var(--text-sm);
  padding-top: 2px;
  white-space: nowrap;
}
.legal-dl dd {
  margin: 0;
  color: var(--text);
}
@media (max-width: 480px) {
  .legal-dl {
    grid-template-columns: 1fr;
    gap: 0 0;
  }
  .legal-dl dt {
    margin-top: var(--space-3);
    font-size: var(--text-xs);
  }
}

/* ── Chat Bubble Widget ─────────────────────────────────────────── */

#chat-bubble-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base), background var(--transition-base), opacity var(--transition-base);
  cursor: pointer;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#chat-bubble-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.08);
}

#chat-bubble-window {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  z-index: 999;
  width: 340px;
  max-height: 480px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#chat-bubble-window.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#chat-bubble-window.no-transition {
  transition: none;
}

#chat-bubble-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

#chat-bubble-title {
  font-weight: 600;
  font-size: var(--text-sm);
}

#chat-bubble-close {
  color: #fff;
  opacity: 0.8;
  padding: var(--space-1);
  display: flex;
  align-items: center;
  cursor: pointer;
}

#chat-bubble-close:hover {
  opacity: 1;
}

#chat-bubble-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 200px;
}

.cb-msg {
  max-width: 80%;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.cb-msg--user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius) var(--radius) 0 var(--radius);
}

.cb-msg--bot {
  align-self: flex-start;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) var(--radius) 0;
}

.cb-msg--typing {
  color: var(--text-muted);
  font-style: italic;
}

#chat-bubble-input-row {
  display: flex;
  gap: var(--space-2);
  padding: 0.75rem var(--space-4);
  border-top: 1px solid var(--border);
}

#chat-bubble-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: var(--text-sm);
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition-fast);
}

#chat-bubble-input:focus {
  border-color: var(--border-focus);
}

#chat-bubble-send {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

#chat-bubble-send:hover {
  background: var(--accent-hover);
}

@media (max-width: 480px) {
  #chat-bubble-window {
    width: calc(100vw - 2rem);
    right: 1rem;
    bottom: 5rem;
  }
  #chat-bubble-btn {
    right: 1rem;
    bottom: 1rem;
  }
}

/* ── Chat Bubble: force visibility (GSAP override protection) ── */
/* Chat bubble GSAP override — DO NOT REMOVE */
#chat-bubble-btn {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
  display: flex !important;
}
#chat-bubble-window {
  display: flex !important;
  flex-direction: column !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#chat-bubble-window.is-open {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}
#chat-bubble-btn.chat-open {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transform: scale(0.8) !important;
}

/* ── Mobile Chat Overlay (index.html specific) ───────────────────── */
@media (max-width: 768px) {
  #chat-bubble-input {
    font-size: 1rem; /* prevent iOS auto-zoom on focus */
  }
  body.chat-open {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
  }
  #chat-bubble-window.is-open {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    touch-action: pan-y;
    overscroll-behavior: contain;
  }
  #chat-bubble-header {
    flex-shrink: 0 !important;
  }
  #chat-bubble-messages {
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  #chat-bubble-input-row {
    flex-shrink: 0;
    padding-bottom: env(keyboard-inset-height, 0px);
  }
}
