/* ========================================
   AIMY - Lokál AI Jogi Asszisztens
   Design System & Styles
   ======================================== */

/* --- CSS Variables --- */
:root {
  --color-primary: #E8C21A;
  --color-primary-light: #F7D94C;
  --color-primary-dark: #D4B000;
  --color-black: #1A1A1A;
  --color-white: #FFFFFF;
  --color-gray: #6B6B6B;
  --color-border: rgba(26, 26, 26, 0.2);
  --color-border-light: rgba(26, 26, 26, 0.1);

  --font-primary: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-title: 'Montserrat', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.75rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  --spacing-4xl: 8rem;

  --max-width: 1200px;
  --nav-height: 64px;
  --border-radius: 12px;
  --border-radius-lg: 20px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: auto;
  scroll-padding-top: var(--nav-height);
  overflow-x: hidden;
}

@media (max-width: 768px) {
  html {
    -webkit-overflow-scrolling: touch;
  }

  /* Kill all backdrop-filter on mobile — extremely expensive for GPU */
  .demo-banner-inner,
  .demo-toast,
  .pricing-mobile-tabs {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* GPU-accelerate key scrolling layers */
  main, section {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  /* Reduce non-essential animations on mobile */
  .gear-spin-el,
  .gear-spin-reverse-el,
  .sliding-coin,
  .demo-banner-pulse,
  .demo-cta-avatar-ring {
    animation-duration: 0s !important;
    animation: none !important;
  }
}

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

/* Paper/parchment texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
}

/* Subtle warmth gradient */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: 
    radial-gradient(ellipse at 30% 40%, rgba(255,255,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,220,100,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.04) 0%, transparent 60%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}



/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.15em;
}

.section-title {
  font-family: var(--font-title);
  font-size: var(--font-size-4xl);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

.section-description {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  line-height: 1.7;
  max-width: 480px;
  opacity: 0.85;
}

.brand-text {
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* --- Layout Components --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
  background-color: rgba(242, 202, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  z-index: 10002;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

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

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-subtitle {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-links a {
  font-family: var(--font-title);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: opacity var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-black);
  transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10003;
}

.lang-btn {
  font-family: var(--font-title);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-black);
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.lang-btn:hover,
.lang-btn.active {
  opacity: 1;
}

.lang-divider {
  font-size: 0.8rem;
  opacity: 0.3;
  color: var(--color-black);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 10002;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-black);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  height: 85dvh;
  height: 85svh;
  min-height: 0;
  max-height: 85dvh;
  max-height: 85svh;
  position: relative;
  padding: var(--nav-height) 0 0 0; /* Reset bottom padding to 0 */
  overflow: hidden;
  box-sizing: border-box;
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  height: calc(100vh - var(--nav-height));
}

.hero-image-wrapper {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1000px;
  z-index: 2;
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Image placeholder styling */
.image-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-placeholder.no-image {
  border: 2px dashed var(--color-border);
  border-radius: var(--border-radius);
  background: rgba(26, 26, 26, 0.03);
}

.image-placeholder.no-image::after {
  content: attr(data-placeholder);
  font-size: var(--font-size-sm);
  color: var(--color-gray);
  font-weight: 500;
  text-align: center;
  padding: var(--spacing-lg);
}



.hero-text {
  position: absolute;
  left: 55%;
  top: 45%; /* Adjusted slightly up */
  transform: translateY(-50%); /* Vertical centering */
  max-width: 420px;
  z-index: 3;
}

.hero-text h1 {
  font-size: var(--font-size-4xl);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.15em;
}

.hero-text p {
  font-family: var(--font-secondary);
  font-size: var(--font-size-sm);
  font-weight: 400;
  line-height: 1.75;
  opacity: 0.85;
  max-width: 100%;
  letter-spacing: 0.01em;
  margin: 0 auto;
}
/* Hero Floating Message Container */
.hero-floating-message {
  position: absolute;
  top: -95px; /* Separation from the mac container */
  left: 33.33%; /* Center at left 1/3 */
  transform: translateX(-50%) translateY(20px);
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 20;
}

.hero-floating-message.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Comic-style Text Bubble */
.hero-message-bubble {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  color: #111111;
  background: #ffffff;
  padding: 10px 24px 10px 10px;
  border: 4px solid #111111;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  box-shadow: 4px 4px 0px rgba(0,0,0,1);
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}

/* Kerek avatar a buborékon belül */
.hero-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #111111;
  color: var(--color-primary);
  font-weight: 800;
  font-family: var(--font-primary);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* The Comic Tail (jagged pointing down, long to overlap frame) */
.hero-message-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -45px;
  width: 26px;
  height: 50px;
  background-color: #111111;
  clip-path: polygon(0 0, 100% 0, 75% 40%, 100% 40%, 30% 100%, 45% 55%, 10% 55%);
  z-index: -1;
  margin-left: -13px;
}
.hero-message-bubble::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -35px;
  width: 18px;
  height: 40px;
  background-color: #ffffff;
  clip-path: polygon(0 0, 100% 0, 75% 40%, 100% 40%, 30% 100%, 45% 55%, 10% 55%);
  z-index: 1;
  margin-left: -9px;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}
/* --- Sections Common --- */
section {
  padding: 2rem 0;
  position: relative;
  height: 100dvh;
  height: 100svh;
  min-height: 0;
  max-height: 100dvh;
  max-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

/* --- How It Works Section --- */
.how-it-works {
  padding: var(--spacing-3xl) 0 var(--spacing-4xl);
}

.how-it-works-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-3xl);
  gap: var(--spacing-xl);
}

.how-it-works-header .section-title {
  font-size: var(--font-size-4xl);
  max-width: 400px;
}

.how-it-works-header .section-description {
  max-width: 400px;
  padding-top: var(--spacing-sm);
}

/* Timeline */
.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-3xl);
  padding: 0 var(--spacing-lg);
}

.timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 80px;
  right: 80px;
  height: 2px;
  background-color: var(--color-black);
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 2;
}

.timeline-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.timeline-icon:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.timeline-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-black);
  fill: none;
  stroke-width: 1.5;
}

.timeline-step-number {
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  opacity: 0.6;
}

.timeline-step-title {
  font-size: var(--font-size-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-sm);
}

.timeline-step-desc {
  font-family: var(--font-secondary);
  font-size: var(--font-size-xs);
  line-height: 1.6;
  max-width: 200px;
  opacity: 0.75;
}

/* Privacy Banner */
.privacy-banner {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  border: 2px solid var(--color-black);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg) var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.privacy-banner-icon {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

.privacy-banner-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-black);
  fill: none;
  stroke-width: 1.5;
}

.privacy-banner-title {
  font-size: var(--font-size-xl);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.3;
  min-width: 220px;
}





.privacy-banner-text {
  font-family: var(--font-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  opacity: 0.8;
}


/* --- Mac Studio Display Wrapper --- */
.mac-display-container {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 40px; 
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Kiemelkedés animációja a csúszó mac monitorhoz */
.mac-display-container.peeking {
  opacity: 1 !important;
  transform: scale(1) translateY(-40px) !important;
}

.mac-display-frame {
  width: 100%;
  background: #111;
  border-radius: 24px;
  padding: 18px; /* inner bezel */
  border: 3px solid #d4d4d4; /* Silver outer edge */
  box-shadow: 0 40px 80px -20px rgba(0,0,0,1), inset 0 0 10px rgba(0,0,0,0.8);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.mac-display-camera {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #000;
  border: 1px solid #222;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.1);
  z-index: 10;
}

.mac-display-stand {
  width: 160px;
  height: 100px;
  background: linear-gradient(to bottom, #d4d4d4, #b0b0b0);
  position: relative;
  z-index: 1;
  margin-top: -15px; 
}

.mac-display-base {
  width: 320px;
  height: 10px;
  background: linear-gradient(to right, #bdbdbd, #e0e0e0, #bdbdbd);
  border-radius: 5px 5px 0 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
}

/* Adjust the nested chat window */
.mac-display-frame .chat-window {
  max-width: 100%;
  margin: 0;
  box-shadow: none;
  border-radius: 6px; /* modern screen inner corner */
  height: 70vh; /* make it look like a monitor screen */
  border: 1px solid #333;
}

@media (max-width: 768px) {
  .mac-display-container {
    padding: 0 10px;
    margin-top: 2rem;
    max-width: 400px;
  }
  .mac-display-frame {
    padding: 12px;
    border-radius: 40px;
    border: 4px solid #333;
    background: #000;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 20px 40px -10px rgba(0,0,0,0.5);
  }
  .mac-display-camera {
    width: 90px;
    height: 26px;
    border-radius: 13px;
    top: 20px;
    background: #000;
    border: 1px solid #111;
  }
  .mac-display-stand,
  .mac-display-base {
    display: none;
  }
  .mac-display-frame .chat-window {
    height: 75vh;
    border-radius: 28px;
    border: none;
  }
}

/* --- Demo Chat Section --- */

.demo-selector::-webkit-scrollbar {
  display: none;
}
.demo-selector {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
  flex-wrap: wrap;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.scrollable-chat {
  transition: opacity 0.4s ease;
}

.demo-chat-section {
  padding: 0 0 var(--spacing-lg) 0;
  background-color: transparent; 
  justify-content: flex-start;
  height: auto;
  min-height: auto;
  max-height: none;
  overflow: visible;
}

.demo-header {
  margin-bottom: var(--spacing-3xl);
}


/* --- Aimy Live UI Replica --- */
.aimy-live-ui {
  background: #111111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  max-width: 1200px;
  height: calc(100vh - 250px);
  min-height: 480px;
  max-height: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  font-family: var(--font-primary);
  color: #E0E0E0;
  border: 1px solid #2A2A2A;
  text-align: left;
}

.aimy-sidebar {
  width: 210px;
  background: #111111;
  border-right: 1px solid #202020;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 15px;
}

.aimy-sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.aimy-logo-circle {
  width: 32px;
  height: 32px;
  background-color: var(--color-primary);
  color: var(--color-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 8px;
  margin-left: 5px;
}

.aimy-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aimy-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.72rem;
  color: #888;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aimy-menu-item.active {
  background: #242424;
  color: #fff;
}

.aimy-menu-item:hover:not(.active) {
  background: #1a1a1a;
  color: #bbb;
}

.aimy-history {
  margin-top: 20px;
}

.aimy-history-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.65rem;
  color: #666;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0 14px;
  margin-bottom: 12px;
}

.aimy-history-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-item {
  padding: 8px 14px;
  font-size: 0.65rem;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.history-item.demo-scenario-btn {
  font-weight: 500;
  color: #888;
}

.history-item.demo-scenario-btn.active {
  font-weight: 800;
  color: var(--color-primary);
  background: #2a2a2a;
}

.history-item:hover {
  background: #1a1a1a;
  color: #888;
}

.aimy-sidebar-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

.aimy-sidebar-bottom:hover {
  background: #1a1a1a;
}

.aimy-user-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2a2a2a;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.aimy-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.aimy-user-info strong {
  font-size: 0.75rem;
  color: #ccc;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aimy-user-info span {
  font-size: 0.6rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aimy-main-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #111111;
}

.aimy-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}

.topbar-right {
  color: #888;
  cursor: pointer;
}

.aimy-live-ui .chat-body {
  flex: 1;
  padding: 20px 60px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow-y: auto;
}

.aimy-live-ui .demo-msg {
  display: flex;
  gap: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.aimy-live-ui .demo-msg.show {
  opacity: 1;
  transform: translateY(0);
}

.aimy-live-ui .demo-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.aimy-live-ui .aimy-color {
  background-color: var(--color-primary);
  color: var(--color-black);
}

.aimy-live-ui .demo-user-msg {
  flex-direction: column;
  align-items: flex-end;
}

.aimy-live-ui .demo-user-msg .demo-bubble {
  background: #2a2a2a;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 0.78rem;
  line-height: 1.6;
  max-width: 85%;
  color: #f0f0f0;
}

.aimy-live-ui .demo-aimy-msg .demo-bubble {
  background: transparent;
  padding: 0;
  font-size: 0.78rem;
  line-height: 1.7;
  max-width: 90%;
  color: #e0e0e0;
}
.aimy-live-ui .demo-bubble {
  overflow-wrap: break-word;
  word-break: break-word;
}

.aimy-live-ui .demo-bubble * {
  overflow-wrap: break-word;
}

.aimy-live-ui .demo-bubble strong {
  color: #fff;
  font-weight: 700;
}

.aimy-live-ui .demo-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.78rem;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
}

.aimy-live-ui .demo-table th {
  background: #222;
  color: #aaa;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #333;
  font-weight: 600;
}

.aimy-live-ui .demo-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #2a2a2a;
  color: #ddd;
}

.aimy-input-area {
  padding: 0 60px 28px;
}

.aimy-input-box {
  background: #1f1f1f;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #2a2a2a;
}

.input-placeholder {
  font-size: 0.78rem;
  color: #666;
}

.aimy-input-box > div:not(.input-placeholder):not(#demo-file-upload-sim) {
  display: flex;
  align-items: center;
}

.input-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.input-actions-left {
  display: flex;
  gap: 16px;
  color: #888;
}

.input-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #888;
}

.aimy-send-btn {
  background: #333;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-left: 6px;
}

.aimy-demo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.demo-btn {
  background: transparent;
  border: 1px solid rgba(26, 26, 26, 0.25);
  padding: 8px 24px;
  border-radius: 40px;
  color: var(--color-black);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  box-shadow: none;
}

.demo-btn:focus {
  outline: none;
}

.demo-btn:hover {
  background: rgba(26, 26, 26, 0.05);
}

.demo-btn.active {
  background: rgba(26, 26, 26, 0.08); /* slightly stronger tint */
  border-color: rgba(26, 26, 26, 0.8);
  color: var(--color-black);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.aimy-footer-text {
  text-align: center;
  font-size: 0.65rem;
  color: #555;
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  z-index: 10;
}

@media (max-width: 768px) {
  #aimyMobileMenuBtn {
    display: inline-block !important;
  }
  .aimy-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 10px 0 30px rgba(0,0,0,0.8);
  }
  .aimy-sidebar.open {
    transform: translateX(0);
  }
  .aimy-live-ui {
    height: 600px;
  }
  .aimy-topbar {
    padding-top: 36px; /* Space for dynamic island */
  }
  .aimy-live-ui .chat-body {
    padding: 10px 20px 20px;
  }
  .aimy-input-area {
    padding: 0 20px 28px;
  }
  /* Smaller Ai avatar & tighter layout on mobile */
  .aimy-live-ui .demo-avatar {
    width: 22px;
    height: 22px;
    font-size: 0.55rem;
  }
  .aimy-live-ui .demo-msg {
    gap: 8px;
  }
  .aimy-live-ui .demo-aimy-msg .demo-bubble {
    max-width: 100%;
    text-align: left;
  }
}

/* --- Roles Section --- */
.roles-section {
  padding: 100px 5%;
  background: #111111;
  color: #fff;
  position: relative;
  height: 100dvh;
  height: 100svh;
  max-height: 100dvh;
  max-height: 100svh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-sizing: border-box;
}

/* --- Features Section --- */
.features {
  padding: 2rem 0;
  height: 100dvh;
  height: 100svh;
  min-height: 0;
  max-height: 100dvh;
  max-height: 100svh;
  overflow: hidden;
  box-sizing: border-box;
}
.features > .container {
  max-height: calc(100dvh - 4rem);
  max-height: calc(100svh - 4rem);
  overflow: hidden;
}

.features-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.features-left .section-title {
  font-family: var(--font-primary);
  font-size: var(--font-size-4xl);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

.features-left .section-description {
  margin-bottom: var(--spacing-lg);
  max-width: 80%;
}

.feature-item {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  align-items: flex-start;
  transition: opacity 0.6s ease, transform 0.6s ease;
  cursor: pointer;
}

.feature-item.animate-left.visible {
  opacity: 0.3;
}

.feature-item.feature-active,
.feature-item.feature-active.animate-left.visible {
  opacity: 1 !important;
}

/* Illustration element highlights */
.illust-dim,
.illust-cabinet,
.illust-monitor,
.illust-books {
  transition: filter 0.6s ease, transform 0.6s ease;
  filter: brightness(0.5);
}

.illust-cabinet.illust-active {
  filter: brightness(1.1) drop-shadow(0 0 8px rgba(230, 178, 25, 0.6));
  transform: scale(1.05);
}

.illust-monitor.illust-active {
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(74, 142, 163, 0.6));
}

.illust-books.illust-active {
  filter: brightness(1.1) drop-shadow(0 0 6px rgba(68, 136, 204, 0.6));
}

.feature-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Progress line fill animation */
@keyframes progressFill {
  0% { transform: scaleX(0.15); opacity: 0.2; }
  40% { transform: scaleX(1); opacity: 1; }
  80% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0.15); opacity: 0.2; }
}

.progress-line {
  transform-origin: left center;
  transform: scaleX(1);
}

.feature-active .progress-line {
  animation: progressFill 2.5s ease infinite;
}

.feature-active .progress-line + .progress-line {
  animation-delay: 0.15s;
}

.feature-active .progress-line + .progress-line + .progress-line {
  animation-delay: 0.3s;
}

.feature-active .progress-line + .progress-line + .progress-line + .progress-line {
  animation-delay: 0.45s;
}

/* Scale pans rocking animation */
@keyframes scaleDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@keyframes scaleUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.scale-left, .scale-right {
  transition: transform 0.4s ease;
}

.feature-active .scale-left {
  animation: scaleDown 2s ease infinite;
}

.feature-active .scale-right {
  animation: scaleUp 2s ease infinite;
}

.feature-info h3 {
  font-family: var(--font-primary);
  font-size: var(--font-size-lg);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--spacing-xs);
}

.feature-info p {
  font-family: var(--font-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  opacity: 0.75;
  max-width: 85%; /* Narrower text body */
}

.features-right {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 65px;
}

.features-image {
  width: 100%;
  max-width: 520px;
}

.features-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* --- Security Section --- */
.security {
  padding: calc(var(--nav-height) + 1rem) 0 1rem 0;
  height: 100dvh;
  height: 100svh;
  min-height: 0;
  max-height: 100dvh;
  max-height: 100svh;
  overflow: hidden;
  box-sizing: border-box;
  align-items: center;
}
.security > .container {
  width: 100%;
  flex: 0 0 auto;
}

.security-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  position: relative;
}

.security-connector {
  position: absolute;
  left: 46%; /* Kicsit balra tolva a szövegtől */
  top: 25%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.security-text {
  order: 2; /* Szöveg jobb oldalt */
}

.security-visual {
  order: 1; /* Kép bal oldalt */
}

.security-text .section-title {
  font-style: normal;
  font-size: var(--font-size-4xl);
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: var(--spacing-md);
}

.security-text .section-description {
  margin-bottom: var(--spacing-lg);
}

.security-item {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  align-items: flex-start;
}

.security-icon {
  width: 64px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: rotate(0deg);
}

.security-icon.visible {
  transform: rotate(45deg);
}

.security-icon > div {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.security-icon.visible > div {
  transform: rotate(-45deg);
}

/* Mac LED hover: yellow blink */
.mac-led {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

@keyframes ledBlink {
  0%, 100% { background: #e6b219; box-shadow: 0 0 6px rgba(230,178,25,0.8); }
  50% { background: #666; box-shadow: none; }
}

.security-item:hover .mac-led {
  animation: ledBlink 0.8s ease infinite;
}

/* Lock shackle hover: opens up */
.lock-shackle,
.lock-shackle-depth {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.security-item:hover .lock-shackle {
  transform: translateY(-8px);
}

.security-item:hover .lock-shackle-depth {
  transform: translateY(-8px);
}

/* Cloud strikethrough hover: slides out and back */
.cloud-strike {
  transition: none;
}

@keyframes strikeSlide {
  0% { transform: translate(-50%, -50%) rotate(-35deg) translateX(0); opacity: 1; }
  40% { transform: translate(-50%, -50%) rotate(-35deg) translateX(60px); opacity: 0; }
  41% { transform: translate(-50%, -50%) rotate(-35deg) translateX(-60px); opacity: 0; }
  100% { transform: translate(-50%, -50%) rotate(-35deg) translateX(0); opacity: 1; }
}

.security-item:hover .cloud-strike {
  animation: strikeSlide 1.2s ease forwards;
}

.security-info h3 {
  font-size: var(--font-size-lg);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.security-info p {
  font-family: var(--font-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  opacity: 0.75;
}

.security-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.security-image {
  width: 100%;
  max-width: 380px;
  padding-bottom: 0;
  overflow: visible;
  margin: 0 auto;
}

.security-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* --- About Section --- */
.about {
  padding: 2rem 0;
  height: 100dvh;
  height: 100svh;
  min-height: 0;
  max-height: 100dvh;
  max-height: 100svh;
  overflow: hidden;
  box-sizing: border-box;
}

.about-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.about-content .section-title {
  margin-bottom: var(--spacing-md);
}

.about-content .section-description {
  margin: 0 auto var(--spacing-2xl);
  max-width: 600px;
  text-align: center;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.stat-item {
  padding: var(--spacing-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-black);
}

.stat-number {
  font-size: var(--font-size-3xl);
  font-weight: 900;
  margin-bottom: 4px;
}

.stat-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* --- Pricing Section --- */
.pricing {
  padding: 2rem 0;
  height: 100dvh;
  height: 100svh;
  min-height: 0;
  max-height: 100dvh;
  max-height: 100svh;
  overflow: visible;
  box-sizing: border-box;
}
.pricing > .container {
  max-height: calc(100dvh - 4rem);
  max-height: calc(100svh - 4rem);
  overflow: visible;
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.pricing-header .section-title {
  font-family: var(--font-primary);
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: var(--spacing-md);
}

.pricing-header .section-description {
  margin: 0 auto;
  text-align: center;
}

/* Mobile pricing tabs - hidden on desktop */
.pricing-mobile-tabs {
  display: none;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  align-items: stretch;
}

/* --- Premium Card Styling (Dark Aesthetic) --- */
.clipboard-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.premium-card {
  position: relative;
  background: linear-gradient(145deg, #18191a 0%, #111 80%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
  cursor: pointer;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: radial-gradient(ellipse at top, rgba(242, 202, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.premium-card:hover {
  transform: translateY(-8px);
  border-color: rgba(242, 202, 0, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 20px rgba(242, 202, 0, 0.15);
}

.premium-card.featured {
  background: linear-gradient(145deg, #1c1a17 0%, #0d0d0d 80%);
  border-color: rgba(242, 202, 0, 0.2);
  box-shadow: 0 12px 36px rgba(0,0,0,0.8), inset 0 1px 0 rgba(242, 202, 0, 0.1);
}

.premium-card.featured::before {
  background: radial-gradient(ellipse at top, rgba(242, 202, 0, 0.12) 0%, transparent 80%);
}

.pricing-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(242, 202, 0, 0.15);
  color: var(--color-primary);
  border: 1px solid rgba(242, 202, 0, 0.3);
}

.premium-card-header {
  margin-bottom: 24px;
}

.premium-brand {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  opacity: 0.9;
  margin-bottom: 12px;
}

.pricing-name {
  font-size: 2.2rem;
  font-weight: 300;
  font-family: var(--font-primary);
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pricing-features li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.pricing-features li:first-child {
  border-top: none;
}

.pricing-features .feature-label {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  font-size: 0.85rem;
  padding-right: 16px;
  white-space: nowrap;
}

.pricing-features .feature-val {
  color: #eeeeee;
  font-weight: 500;
  text-align: right;
}

.pricing-features .support .feature-val {
  color: var(--color-primary);
}

.premium-card.featured .pricing-features .feature-val {
  color: #ffffff;
}

.premium-card.featured .pricing-features .support .feature-val {
  color: var(--color-primary);
  font-weight: 600;
}

/* ========== DEMO CTA SECTION ========== */
.demo-cta-section {
  background: #0a0a0a;
  color: #fff;
  height: 100dvh;
  height: 100svh;
  min-height: 0;
  max-height: 100dvh;
  max-height: 100svh;
  overflow: visible;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Giant background watermark */
.demo-cta-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(150px, 20vw, 300px);
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.03);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.demo-cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

/* Aimy avatar */
.demo-cta-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: var(--spacing-sm);
}
.demo-cta-avatar span {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 20px;
  color: #0a0a0a;
}
.demo-cta-avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  opacity: 0;
  animation: avatarPulse 2.5s infinite ease-out;
}
@keyframes avatarPulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Title - reserve space so form doesn't jump */
.demo-cta-title {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: 0.06em;
  line-height: 1.3;
  max-width: 700px;
  color: #fff;
}

/* Bottom-anchored form area */
.demo-bottom-area {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 620px;
}

/* Subtitle */
.demo-cta-sub {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

/* Email form */
.demo-email-form {
  display: flex;
  gap: 0;
  max-width: 600px;
  width: 100%;
  margin-top: var(--spacing-md);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.demo-email-form:focus-within {
  border-color: var(--color-primary);
}
.demo-email-form input {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  outline: none;
  min-width: 0;
}
.demo-email-form input:last-of-type {
  border-right: none;
}
.demo-email-form input::placeholder {
  color: rgba(255,255,255,0.3);
}
.demo-email-form input:-webkit-autofill,
.demo-email-form input:-webkit-autofill:hover,
.demo-email-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #0a0a0a inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  transition: background-color 5000s ease-in-out 0s;
}

/* Success toast */
.demo-toast {
  position: absolute;
  bottom: calc(12% + 90px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(40, 200, 64, 0.15);
  border: 1px solid rgba(40, 200, 64, 0.3);
  color: #28c840;
  padding: 10px 28px;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.demo-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.demo-email-form button {
  padding: 0;
  margin: 6px 8px 6px 0;
  background: var(--color-primary);
  border: none;
  color: #0a0a0a;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.demo-email-form button:hover {
  background: var(--color-primary-light);
  transform: scale(1.1);
}

/* Corner email */
.demo-corner-email {
  position: absolute;
  bottom: 16px;
  right: 24px;
  font-size: 11px;
  color: rgba(255,255,255,0.12);
  letter-spacing: 0.05em;
  font-family: var(--font-primary);
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--color-primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 1s infinite step-end;
}

/* --- Contact Section --- */
.contact {
  padding: calc(var(--nav-height) + 0.5rem) 0 1rem 0;
  height: 100dvh;
  height: 100svh;
  min-height: 0;
  max-height: 100dvh;
  max-height: 100svh;
  overflow: visible;
  box-sizing: border-box;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: start;
}

.contact-left .section-title {
  margin-bottom: var(--spacing-md);
  font-style: normal;
  font-family: var(--font-primary);
  font-weight: 300;
  letter-spacing: 0.15em;
}

.contact-left .section-description {
  margin-bottom: var(--spacing-xl);
}

/* ========== STICKY DEMO BANNER ========== */
.demo-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.demo-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.demo-banner:hover {
  transform: translateY(-4px);
}

.demo-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 14px;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(230,178,25,0.15);
  position: relative;
  overflow: hidden;
}

.demo-banner-inner::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(230,178,25,0.06) 50%, transparent 100%);
  animation: bannerShimmer 3s infinite;
}
@keyframes bannerShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.demo-banner-pulse {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  opacity: 0;
  animation: demoPulse 2s infinite ease-out;
}
@keyframes demoPulse {
  0% { transform: translateY(-50%) scale(0.8); opacity: 0.6; }
  100% { transform: translateY(-50%) scale(1.6); opacity: 0; }
}

/* --- Ai Face Icon (Two-Layer Crossfade) --- */
.demo-banner-face {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

/* Layer 1: Real Ai text — matches logo font exactly */
.face-text {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 16px;
  color: #1a1a1a;
  line-height: 1;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
  transition: opacity 0.5s ease;
}

/* Layer 2: Smiley — positioned absolutely on top */
.face-smiley {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Wink eye (left — horizontal line) */
.smiley-wink-eye {
  position: absolute;
  top: 12px;
  left: 8px;
  width: 8px;
  height: 2.5px;
  background: #1a1a1a;
  border-radius: 2px;
  transform: rotate(-5deg);
}

/* Open eye (right — round dot) */
.smiley-open-eye {
  position: absolute;
  top: 10px;
  right: 9px;
  width: 6px;
  height: 6px;
  background: #1a1a1a;
  border-radius: 50%;
}

/* Curved smile */
.smiley-mouth {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 7px;
  border: 2.5px solid #1a1a1a;
  border-top: none;
  border-radius: 0 0 10px 10px;
}

/* ====== WINKING STATE ====== */
.demo-banner-face.winking .face-text {
  opacity: 0;
}

.demo-banner-face.winking .face-smiley {
  opacity: 1;
}

.demo-banner-text {
  display: flex;
  flex-direction: column;
  z-index: 1;
}
.demo-banner-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-primary);
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.demo-banner-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

.demo-banner-arrow {
  font-size: 22px;
  color: var(--color-primary);
  font-weight: 300;
  z-index: 1;
  transition: transform 0.3s ease;
}
.demo-banner:hover .demo-banner-arrow {
  transform: translateX(4px);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(26, 26, 26, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-black);
  fill: none;
  stroke-width: 1.5;
}

.contact-info-text h4 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-info-text p {
  font-size: var(--font-size-sm);
  opacity: 0.7;
}

.contact-form {
  background: rgba(26, 26, 26, 0.04);
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  border: 2px solid var(--color-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.3);
  color: var(--color-black);
  transition: border-color var(--transition-fast), background var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-black);
  background: rgba(255, 255, 255, 0.5);
}

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

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

.form-submit {
  display: block;
  width: 100%;
  padding: 14px 24px;
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--color-black);
  border-radius: 10px;
  background: var(--color-black);
  color: var(--color-primary);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.form-submit:active {
  transform: translateY(0);
}

/* --- Footer --- */
.footer {
  background: var(--color-black);
  color: var(--color-primary);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-3xl);
}

.footer-brand .logo-name {
  color: var(--color-primary);
  font-size: 1.6rem;
  margin-bottom: var(--spacing-sm);
}

.footer-brand .logo-subtitle {
  color: rgba(242, 202, 0, 0.5);
}

.footer-brand p {
  font-size: var(--font-size-sm);
  line-height: 1.7;
  color: rgba(242, 202, 0, 0.6);
  margin-top: var(--spacing-md);
  max-width: 280px;
}

.footer-column h4 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-md);
}

.footer-column a {
  display: block;
  font-size: var(--font-size-sm);
  color: rgba(242, 202, 0, 0.6);
  margin-bottom: var(--spacing-sm);
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(242, 202, 0, 0.15);
  padding-top: var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: var(--font-size-xs);
  color: rgba(242, 202, 0, 0.4);
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* Fade in from left */
.animate-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade in from right */
.animate-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale in */
.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Mobile Responsive --- */
@media (max-width: 1024px) {
  :root {
    --font-size-4xl: 2.2rem;
    --font-size-5xl: 2.8rem;
  }

  .nav-links {
    gap: var(--spacing-md);
  }

  .nav-links a {
    font-size: 0.65rem;
  }

  .features-content,
  .security-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
  }

  .hero-text {
    position: absolute;
    left: 5%;
    top: 35%;
    transform: none;
    right: auto;
    bottom: auto;
    max-width: 90%;
    padding-right: 0;
    margin-top: 0;
    text-align: left;
  }

  .hero-image-wrapper {
    top: 5%;
  }

  /* Hide demo banner on mobile */
  .demo-banner {
    display: none !important;
  }

  /* Hide bubble on mobile */
  .hero-floating-message {
    display: none !important;
  }

  .hero-connector {
    display: none;
  }
  

  
  .security-connector {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-4xl: 1.8rem;
    --font-size-5xl: 2.2rem;
    --font-size-3xl: 1.6rem;
    --spacing-4xl: 5rem;
    --spacing-3xl: 4rem;
  }

  /* Disable backdrop-filter on mobile — it creates a containing block
     that breaks position:fixed on the nav-links overlay */
  .navbar.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: var(--color-primary);
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    background: var(--color-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    transform: translateX(100%);
    transition: transform var(--transition-base);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: var(--font-size-lg);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .lang-switcher {
    margin-left: auto;
    margin-right: 20px;
  }

  .how-it-works-header {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .timeline {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
    padding: 0;
  }

  .timeline::before {
    top: 40px;
    bottom: 40px;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline-step {
    width: 100%;
    max-width: 280px;
  }

  .privacy-banner {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
  }

  .privacy-banner-title {
    min-width: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }

  .features-right {
    order: 0;
  }
  /* Mobile: Title first, Image second, Feature items third */
  .features-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .features-left {
    display: contents;
  }
  .features-left .section-title {
    order: 1;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
  .features-right {
    order: 2;
    width: 100% !important;
    padding-top: 0 !important;
    margin-bottom: 1.5rem;
  }
  .features-left .section-description {
    order: 2;
  }
  .features-left .feature-item {
    order: 4;
    margin-bottom: 0 !important;
  }

  /* Security section mobile: title first, image second (smaller), items third */
  .security-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    align-items: stretch !important;
  }
  .security-text {
    display: contents;
  }
  .security-text .section-title {
    order: 1;
  }
  .security-text .section-description {
    order: 3;
    margin-bottom: 0 !important;
  }
  .security-text .security-item {
    order: 4;
    margin-bottom: 0 !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .security-visual {
    order: 2;
    transform: scale(0.7) !important;
    transform-origin: top center !important;
    margin-bottom: -60px !important;
  }
  .security-image {
    max-width: 100%;
    margin: 0 auto;
  }

  /* Features illustration: proportionally scaled on mobile */
  .features-right.animate-right {
    opacity: 1 !important;
    transform: none !important;
  }
  .features-image {
    min-height: auto !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .features-image > div {
    height: 460px !important;
    width: 166% !important;
    margin-left: -33% !important;
    min-height: auto !important;
    transform: scale(0.6) !important;
    transform-origin: top center !important;
    margin-bottom: -184px !important;
  }

  /* Phone mockup input icons spacing */
  .input-actions-right {
    gap: 6px !important;
  }
  .input-actions-right svg {
    width: 18px !important;
    height: 18px !important;
  }
  .aimy-input-box {
    padding: 10px 12px !important;
  }

  /* Solution section mobile: text first, graphic second, tabs third */
  .sol-bottom {
    display: contents;
  }
  .sol-text-panels {
    order: 1;
  }
  .sol-illustrations {
    order: 2;
  }
  .sol-tabs {
    order: 3;
  }
  .sol-scene {
    aspect-ratio: 3 / 2 !important;
  }
  .sol-illust[data-panel="2"] .sol-scene > div:first-child {
    top: 2% !important;
  }
  .sol-illust[data-panel="2"] .sol-scene > div:last-child {
    bottom: 4% !important;
  }

  /* All fixed-height sections: auto on mobile */
  .features,
  .security,
  .solution-section {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 60px 0 40px !important;
  }
  .features > .container,
  .security > .container {
    max-height: none !important;
    overflow: visible !important;
  }

  /* Demo section mobile */
  .demo-cta-section {
    height: auto;
    min-height: 100svh;
    max-height: none;
    padding: 80px 20px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .demo-cta-title {
    font-size: 1.5rem !important;
    min-height: 5em;
  }
  .demo-email-form {
    flex-direction: column;
    border-radius: 16px;
    max-width: 100%;
  }
  .demo-email-form input {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 14px 20px;
  }
  .demo-email-form input:last-of-type {
    border-bottom: none;
  }
  .demo-email-form button {
    margin: 8px auto;
    width: 42px;
    height: 42px;
  }
  .demo-bottom-area {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    max-width: 100%;
    margin-top: var(--spacing-xl);
  }
  .demo-corner-email {
    position: relative;
    bottom: auto;
    right: auto;
    text-align: center;
    margin-top: var(--spacing-md);
  }
  .demo-toast {
    bottom: auto;
    top: 20px;
  }

  /* Roles section mobile */
  .roles-section {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 80px 5% 30px !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
  }
  /* Title block: top */
  .roles-section > .container.animate-left {
    text-align: center;
    order: 1;
    flex-shrink: 0;
  }
  /* Role description: centered in remaining space */
  .roles-text {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    order: 2;
    flex: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 20px 5%;
  }
  /* Chat graphic + input: bottom */
  .roles-section > .container:not(.animate-left) {
    order: 3;
    flex-shrink: 0;
    margin-bottom: 0 !important;
  }
  .roles-graphic {
    min-width: auto !important;
  }

  /* Pricing mobile */
  .pricing {
    height: auto;
    min-height: auto;
    max-height: none;
    padding: 60px 0 40px;
  }
  .pricing > .container {
    max-height: none;
  }

  /* Mobile pricing tabs */
  .pricing-mobile-tabs {
    display: flex !important;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(230, 178, 25, 0.15);
    border-radius: 50px;
    padding: 5px 6px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  .pricing-mobile-tab {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 400;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
  }
  .pricing-mobile-tab:hover {
    color: rgba(255, 255, 255, 0.7);
  }
  .pricing-mobile-tab-active {
    background: rgba(230, 178, 25, 0.12);
    color: var(--color-primary);
    font-weight: 600;
    box-shadow: 0 0 12px rgba(230, 178, 25, 0.08);
    border: 1px solid rgba(230, 178, 25, 0.25);
  }

  /* Hide non-active cards on mobile */
  .pricing-grid > div {
    display: none !important;
  }
  .pricing-grid > div.pricing-card-active {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .pricing-grid {
    max-width: 100% !important;
    min-height: 480px;
  }

  /* Sticky banner mobile */
  .demo-banner {
    bottom: 10px;
    right: 10px;
    padding: 10px 16px;
  }

  /* Prevent horizontal overflow */
  section, .container, main {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* ALL sections: auto height on mobile */
  section {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .hero {
    height: var(--hero-height, 100svh) !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-4xl: 1.5rem;
    --font-size-5xl: 1.8rem;
    --spacing-lg: 1.5rem;
  }

  .hero-title {
    font-size: 2.1rem; /* Better balance */
    line-height: 1.15;
    word-break: break-word; /* Prevents overflow from long Hungarian words like VERSENYELŐNY */
    hyphens: auto;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--spacing-xl));
    padding-bottom: var(--spacing-xl);
  }
}

/* --- Solution Section (Top Sticky Header Layout) --- */
.solution-section {
  background: #0d0d0d;
  color: #fff;
  position: relative;
  height: 100dvh;
  height: 100svh;
  min-height: 0;
  max-height: 100dvh;
  max-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  overflow: hidden;
}

.solution-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-xl);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Illustrations area - takes most space */
.sol-illustrations {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 300px;
  width: 100%;
  padding: var(--spacing-xl) 0;
}

.sol-illust {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.sol-illust-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  position: relative;
  width: 100%;
}

.sol-scene {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 3 / 2;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
}

/* Bottom area */
.sol-bottom {
  flex-shrink: 0;
  text-align: center;
  padding-bottom: var(--spacing-xl);
}

.sol-text-panels {
  position: relative;
  min-height: 80px;
  margin-bottom: var(--spacing-lg);
}

.sol-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.sol-text-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.sol-text h3 {
  font-family: var(--font-primary);
  font-size: var(--font-size-lg);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: var(--spacing-xs);
}

.sol-text p {
  font-family: var(--font-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto;
}

/* Tab navigation */
.sol-tabs {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  position: relative;
  padding-bottom: 12px;
}

.sol-tab {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  font-weight: 300;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.sol-tab:hover {
  color: rgba(255,255,255,0.8);
}

.sol-tab-active {
  color: #fff;
}

.sol-tab-indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 10px rgba(230,178,25,0.4);
}

/* Mac Studio animations */
#mac-studio.slide-in {
  left: 14% !important;
}

#mac-studio.flash > div:first-child,
#mac-studio.flash > div:nth-child(2) {
  animation: macFlash 0.5s ease-out;
}

@keyframes macFlash {
  0% { filter: brightness(1); }
  30% { filter: brightness(2.5); }
  100% { filter: brightness(1); }
}

@keyframes ledBlink {
  0%, 49% { background: #e6b219; box-shadow: 0 0 4px rgba(230,178,25,1); }
  50%, 100% { background: #555; box-shadow: none; }
}

#mac-led.led-on {
  animation: ledBlink 1.5s steps(1) infinite;
}

#mac-studio.glow {
  filter: drop-shadow(0 0 8px rgba(230,178,25,0.5)) drop-shadow(0 0 20px rgba(230,178,25,0.2));
}

@keyframes aiPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

#monitor-ai-text.ai-visible {
  font-size: 10px !important;
  opacity: 1 !important;
  animation: aiPulse 3s ease-in-out infinite;
}

/* Chrome window animation */
#chrome-window.chrome-open {
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
  border-radius: 0 !important;
}

#chrome-window.chrome-open #chrome-url,
#chrome-window.chrome-open #chrome-aimy-logo,
#chrome-window.chrome-open #chrome-chat,
#chrome-window.chrome-open #chrome-input,
#chrome-window.chrome-open #chrome-input-text {
  opacity: 1 !important;
}

@keyframes typingCursor {
  0%, 100% { border-color: #e6b219; }
  50% { border-color: transparent; }
}

/* Price panel animations */
.price-icon.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* No special override needed for icon-2 anymore */

#price-label.visible {
  opacity: 1 !important;
}

@keyframes gearSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes gearSpinReverse {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}
.gear-spin-el { animation: gearSpin 6s linear infinite; }
.gear-spin-reverse-el { animation: gearSpinReverse 5s linear infinite; }

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.price-icon.visible > div:first-child {
  animation: iconFloat 3s ease-in-out infinite;
}

/* Sliding coin animation - 36s total cycle, each coin gets 3s */
@keyframes slideCoin {
  0% { left: -50px; opacity: 0; }
  1% { opacity: 1; }
  7% { opacity: 1; }
  8.33% { left: calc(100% + 10px); opacity: 0; }
  100% { left: calc(100% + 10px); opacity: 0; }
}
.sliding-coin {
  animation: slideCoin 36s linear infinite;
}

/* Remove background for panel 3 scene */
.sol-illust[data-panel="2"] .sol-scene {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .sol-tabs {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }
  .sol-tab-indicator {
    display: none;
  }
  .sol-tab-active {
    border-bottom: 3px solid var(--color-primary);
  }
  .solution-inner {
    padding: var(--spacing-xl);
    min-height: auto;
  }
  .sol-illustrations {
    padding: var(--spacing-sm) 0;
    min-height: 200px;
  }
}

.aimy-live-ui .demo-bubble p {
  margin-bottom: 12px;
}
.aimy-live-ui .demo-bubble ul, .aimy-live-ui .demo-bubble ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.aimy-live-ui .demo-bubble li {
  margin-bottom: 8px;
}
.aimy-live-ui .demo-bubble ul li::marker, .aimy-live-ui .demo-bubble ol li::marker {
  color: var(--color-primary);
  font-weight: 700;
}
.aimy-live-ui .demo-bubble h3 {
  font-size: 0.95rem;
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 700;
  color: #fff;
}

.aimy-blockquote {
  background: rgba(42, 42, 42, 0.4);
  border-left: 3px solid var(--color-primary);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-style: italic;
  color: #bbb;
  font-size: 0.8rem;
  line-height: 1.6;
}

.citation-btn {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.65rem;
  color: #aaa;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  vertical-align: middle;
  font-style: normal;
  transition: all 0.2s;
  margin-left: 6px;
}

.citation-btn:hover, .citation-btn.active {
  background: #3a3a3a;
  color: #ddd;
  border-color: #666;
}

.cursor-blink {
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}


@media (max-width: 768px) {
  .hero-text {
    text-align: left;
    align-items: flex-start;
  }
  .hero-text h1 {
    text-align: left;
  }
  .hero-text p {
    text-align: left;
    margin: 0;
    max-width: 80%;
  }
}

/* --- Desk Scene Parallax --- */
.desk-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.desk-item {
  position: absolute;
  top: var(--start-y);
  left: var(--start-x);
  color: rgba(0, 0, 0, 0.04); /* Subtle transparent black watermark over yellow */
  transform: translateY(calc(var(--scroll-y, 0) * var(--parallax) * 1px)) rotate(var(--rot));
  will-change: transform;
}



/* ============================================================
   Quick Actions section (gyorsműveletek) — replaces roles demo
   ============================================================ */
.qa-stage {
  flex: 1;
  height: 200px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px 18px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.qa-line {
  height: 3px;
  border-radius: 2px;
  background: #3a3a3a;
}

.qa-doc {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 12px;
  box-sizing: border-box;
}

.qa-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 24px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.qa-chip.gold {
  background: rgba(232, 194, 26, 0.08);
  color: var(--color-primary);
  border: 1px solid rgba(232, 194, 26, 0.35);
}
.qa-chip.red {
  background: rgba(224, 82, 82, 0.1);
  color: #e07070;
  border: 1px solid rgba(224, 82, 82, 0.4);
}

/* entrance: pop (scale) */
.qa-pop {
  opacity: 0;
  transform: scale(0.6);
  animation: qaPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes qaPop {
  to { opacity: 1; transform: scale(1); }
}

/* entrance: fade */
.qa-fadein {
  opacity: 0;
  animation: qaFade 0.6s ease forwards;
}
@keyframes qaFade {
  to { opacity: 1; }
}

/* growing line (translated text, bullets) — width via --w */
.qa-grow {
  width: 0;
  animation: qaGrow 0.7s ease-out forwards;
}
@keyframes qaGrow {
  to { width: var(--w, 80%); }
}

/* sweeping overlay (risk highlight, redaction) */
.qa-sweep {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: qaSweep 0.6s ease forwards;
}
@keyframes qaSweep {
  to { transform: scaleX(1); }
}

/* vertical timeline rail */
.qa-vline {
  position: absolute;
  width: 2px;
  background: rgba(232, 194, 26, 0.45);
  transform: scaleY(0);
  transform-origin: top;
  animation: qaVline 1.8s ease forwards;
}
@keyframes qaVline {
  to { transform: scaleY(1); }
}

.qa-more {
  margin-top: 14px;
  color: #555;
  font-size: 0.72rem;
  letter-spacing: 0.3px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .qa-stage { height: 180px; }
  .qa-more { font-size: 0.68rem; }
}


/* ===== Quick Actions v2: bolt button + open menu (like the real app) ===== */
.qa-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 9px;
  color: #8b8b8b;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.qa-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ddd;
}
.qa-menu-item .qa-mi-icon {
  display: flex;
  width: 18px;
  color: #777;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
.qa-menu-item.active {
  color: #fff;
  font-weight: 700;
}
.qa-menu-item.active .qa-mi-icon {
  color: var(--color-primary);
}

.qa-menu-open {
  animation: qaMenuIn 0.22s cubic-bezier(0.3, 1.4, 0.6, 1);
  transform-origin: bottom right;
}
@keyframes qaMenuIn {
  from { opacity: 0; transform: scale(0.92) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

#qa-bolt:hover {
  color: var(--color-primary) !important;
}

@media (max-width: 768px) {
  #qa-menu { width: 260px !important; right: 0 !important; }
}


/* ===== Quick Actions v3: fixed-open panel + mobile chip strip ===== */
.qa-panel {
  width: 250px;
  flex-shrink: 0;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}
.qa-panel-title {
  color: #777;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 6px 12px 8px;
  text-align: left;
}
.qa-panel .qa-menu-item {
  justify-content: flex-start;
  text-align: left;
}
.qa-panel-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin: 8px 4px 2px;
  padding: 10px 8px 4px;
  color: #888;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Mobile chip strip (hidden on desktop) */
.qa-chips {
  display: none;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 2px 12px;
}
.qa-chips::-webkit-scrollbar { display: none; }
.qa-chip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #999;
  font-size: 0.78rem;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.qa-chip-item.active {
  color: var(--color-primary);
  border-color: rgba(232, 194, 26, 0.5);
  background: rgba(232, 194, 26, 0.07);
  font-weight: 700;
}

@media (max-width: 768px) {
  .qa-panel { display: none; }
  .qa-chips { display: flex; }
  .qa-stage { height: 170px; }
  .roles-text #qa-display-desc { font-size: 1.15rem !important; }
  .roles-text #qa-display-icon svg { width: 28px; height: 28px; }
}

/* Quick Actions v3.1: mobil túllógás-javítás */
@media (max-width: 768px) {
  .roles-graphic {
    width: 100%;
    max-width: 100% !important;
    flex-basis: auto !important;
  }
  .aimy-input-box .input-placeholder {
    min-width: 0;
  }
  #qa-chip-name {
    display: inline-block;
    max-width: 38vw;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }
  .qa-more {
    font-size: 0.68rem;
  }
}

/* ===== Quick Actions v5: három szellős hasáb (panel | grafika+chat | leírás) ===== */
.qa-panel {
  position: static;
  z-index: auto;
  width: 236px;
}

@media (max-width: 768px) {
  .roles-section .container .roles-text {
    padding: 10px 0 !important;
  }
}

/* Quick Actions v6.1: mobilon nincs chat-input, szélesség-védelem */
@media (max-width: 768px) {
  .roles-section .aimy-input-box { display: none !important; }
  .roles-section .container { max-width: 100%; }
  .qa-chips { padding-bottom: 4px; }
}

/* v7: mobil vízszintes túlcsordulás-zár (a fixen jobbra parkolo .nav-links miatt) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    overflow-x: clip;
  }
}

/* v7.1: igazítás a főcím vizuális vonalához (animate-left -30px offset kiegyenlítése) */
@media (min-width: 769px) {
  .qa-panel { margin-left: -30px; }
  .roles-section .roles-text { margin-right: -30px; }
}


/* ============================================================
   AutoAimy section — automated workflow pipeline
   ============================================================ */
.aa-section {
  padding: 100px 5%;
  background: #111111;
  color: #fff;
  position: relative;
  height: 100dvh;
  height: 100svh;
  max-height: 100dvh;
  max-height: 100svh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-sizing: border-box;
}

.aa-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.aa-arrow:hover {
  color: var(--color-primary);
  border-color: rgba(232, 194, 26, 0.5);
}

.aa-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a3a3a;
  transition: background 0.3s ease;
}
.aa-dot.active {
  background: var(--color-primary);
}

.aa-pipe {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 1080px;
}

.aa-docstack {
  position: relative;
  width: 76px;
  height: 96px;
  flex-shrink: 0;
}
.aa-docstack .aa-mini {
  position: absolute;
  inset: 0;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  box-sizing: border-box;
}

.aa-rail {
  flex: 1;
  display: flex;
  align-items: center;
  padding-bottom: 26px; /* room for the labels */
}

.aa-node {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}
.aa-nodec {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #161616;
  border: 1.5px solid #333;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.aa-node.active .aa-nodec {
  border-color: var(--color-primary);
  color: var(--color-primary);
  animation: aaPulse 1s ease-in-out infinite;
}
.aa-node.done .aa-nodec {
  border-color: rgba(232, 194, 26, 0.6);
  color: var(--color-primary);
  background: rgba(232, 194, 26, 0.08);
  animation: none;
  box-shadow: none;
}
@keyframes aaPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(232, 194, 26, 0.15); }
  50% { box-shadow: 0 0 26px rgba(232, 194, 26, 0.45); }
}

.aa-label {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.68rem;
  letter-spacing: 0.4px;
  color: #666;
  transition: color 0.3s ease;
}
.aa-node.active .aa-label {
  color: var(--color-primary);
}
.aa-node.done .aa-label {
  color: #bbb;
}

.aa-seg {
  flex: 1;
  height: 2px;
  background: #2b2b2b;
  position: relative;
  margin: 0 8px;
}
.aa-seg-fill {
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  transform: scale(0);
  transform-origin: left top;
  transition: transform 0.8s linear;
}
.aa-seg.fill .aa-seg-fill {
  transform: scale(1);
}

.aa-result {
  width: 200px;
  min-height: 132px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  box-sizing: border-box;
}
.aa-out {
  position: relative;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 16px 13px 13px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .aa-section {
    height: auto !important;
    max-height: none !important;
    padding: 80px 5% 40px !important;
    overflow: visible !important;
  }
  .aa-section > .container.animate-left {
    text-align: center;
  }
  .aa-pipe {
    flex-direction: column;
    gap: 34px;
  }
  .aa-rail {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 0;
    align-self: center;
  }
  .aa-node {
    display: flex;
    align-items: center;
  }
  .aa-label {
    top: 50%;
    left: calc(100% + 14px);
    transform: translateY(-50%);
  }
  .aa-seg {
    width: 2px;
    height: 34px;
    flex: none;
    margin: 6px 0 6px 22px;
  }
  .aa-result {
    width: 100%;
    max-width: 250px;
  }
  #aa-wf-name {
    font-size: 1.2rem !important;
  }
}

/* AutoAimy: iratok kipipálása a futás elején */
.aa-doccheck {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* AutoAimy + Gyorsműveletek: mobil levegő és kompakt pipeline */
@media (max-width: 768px) {
  /* tér az alcím és a tartalom között mindkét szekcióban */
  .aa-section > .container.animate-left { margin-bottom: 28px; }
  .roles-section > .container.animate-left { margin-bottom: 26px; }

  /* léptető-sor: férjen el a képernyőn */
  .aa-wf-row { gap: 10px !important; width: 100%; justify-content: center; box-sizing: border-box; }
  .aa-wf-mid { min-width: 0 !important; flex: 1; max-width: 300px; }
  .aa-arrow { width: 34px; height: 34px; }

  /* folyamat-pontok közelebb egymáshoz */
  .aa-seg { height: 20px; margin: 4px 0 4px 22px; }
  .aa-pipe { gap: 26px; }
}


/* ============================================================
   AutoMatrix section — three-scene bulk analysis showcase
   ============================================================ */
.am-section {
  padding: 100px 5%;
  background: #111111;
  color: #fff;
  position: relative;
  height: 100dvh;
  height: 100svh;
  max-height: 100dvh;
  max-height: 100svh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-sizing: border-box;
}

.am-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 70px;
  min-height: 0;
}

/* Narrative steps (also act as manual scene switcher) */
.am-steps {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.am-step {
  display: flex;
  gap: 16px;
  cursor: pointer;
  opacity: 0.38;
  transition: opacity 0.35s ease, border-color 0.35s ease;
  border-left: 2px solid rgba(255, 255, 255, 0.09);
  padding-left: 18px;
}
.am-step.active {
  opacity: 1;
  border-left-color: var(--color-primary);
}
.am-step-num {
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding-top: 4px;
}
.am-step h4 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.am-step p {
  margin: 0;
  color: #8b8b8b;
  font-size: 0.85rem;
  line-height: 1.55;
}

/* Stage with crossfading scenes */
.am-stage {
  flex: 1;
  position: relative;
  height: 430px;
  min-width: 0;
}
.am-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.am-scene.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.am-mini {
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  height: 100%;
  padding: 24px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

/* Scene 1: category chips + playbook cards */
.am-chipbtn {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #999;
  font-size: 0.72rem;
  white-space: nowrap;
}
.am-chipbtn.turn-gold {
  animation: amOn 0.4s ease forwards;
}
@keyframes amOn {
  to {
    color: var(--color-primary);
    border-color: rgba(232, 194, 26, 0.55);
    background: rgba(232, 194, 26, 0.08);
    font-weight: 700;
  }
}
.am-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  padding: 15px 17px;
  background: #181818;
  position: relative;
}
.am-card.turn-sel {
  animation: amSel 0.45s ease forwards;
}
@keyframes amSel {
  to {
    border-color: rgba(232, 194, 26, 0.65);
    background: rgba(232, 194, 26, 0.05);
  }
}
.am-card-t {
  color: #eee;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.am-card-s {
  color: #777;
  font-size: 0.72rem;
}

/* Scene 2: matrix table */
.am-th {
  color: #6d6d6d;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.am-vcell {
  display: inline-block;
  font-size: 0.62rem;
  color: #d0d0d0;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
.am-vcell.warn {
  color: #e08585;
  background: rgba(224, 82, 82, 0.1);
  font-style: italic;
}

/* Scene 3: verified result + linked quote */
.am-rescard {
  background: #181818;
  border: 1px solid rgba(232, 194, 26, 0.35);
  border-radius: 11px;
  padding: 16px;
  box-sizing: border-box;
}
.am-quote {
  border-left: 3px solid var(--color-primary);
  background: rgba(232, 194, 26, 0.06);
  border-radius: 0 8px 8px 0;
  padding: 10px 12px;
  color: #ddd;
  font-size: 0.72rem;
  line-height: 1.6;
}
.am-conn {
  position: absolute;
  border-top: 1.5px dashed rgba(232, 194, 26, 0.55);
  transform: scaleX(0);
  transform-origin: left;
  animation: qaSweep 0.6s ease forwards;
}

@media (max-width: 768px) {
  .am-section {
    height: auto !important;
    max-height: none !important;
    padding: 80px 5% 40px !important;
    overflow: visible !important;
  }
  .am-section > .container.animate-left {
    text-align: center;
    margin-bottom: 28px;
  }
  .am-wrap {
    flex-direction: column;
    gap: 30px;
  }
  .am-steps {
    width: 100%;
    gap: 20px;
  }
  .am-step p { font-size: 0.8rem; }
  .am-stage {
    width: 100%;
    height: 380px;
  }
  .am-mini { padding: 16px; }
}

/* AutoMatrix mobil: korong-léptető + kompakt jelenetek */
@media (max-width: 768px) {
  .am-steps {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    row-gap: 18px;
  }
  .am-step {
    display: contents;
  }
  .am-step .am-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #888;
    padding: 0;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  }
  .am-step.active .am-step-num {
    color: var(--color-primary);
    border-color: rgba(232, 194, 26, 0.6);
    background: rgba(232, 194, 26, 0.08);
  }
  .am-step > div:not(.am-step-num) {
    display: none;
  }
  .am-step.active > div:not(.am-step-num) {
    display: block;
    width: 100%;
    order: 10;
    text-align: center;
    padding: 0 6px;
  }
  .am-stage { flex: none; width: 100%; height: 430px; }
  .am-scene .am-mini { padding: 15px; }
  .am-conn { display: none; }
  .am-scene[data-scene="2"] .am-mini { flex-direction: column; gap: 14px; }
  .am-ctx > .qa-line:nth-child(n+6) { display: none; }
  .am-vcell { font-size: 0.56rem; padding: 3px 6px; }
  .am-th { font-size: 0.55rem; }
}

/* Mobil: kompaktabb új szekciók (kisebb felső térköz, rövid cím, kisebb iratköteg) */
@media (max-width: 768px) {
  .aa-section, .am-section { padding: 48px 5% 36px !important; }
  .aa-section > .container.animate-left,
  .am-section > .container.animate-left { margin-top: 0 !important; }
  .aa-title-tail { display: none; }
  .aa-docstack { width: 54px; height: 68px; }
  .aa-docstack .aa-mini { padding: 8px 7px !important; gap: 5px !important; border-radius: 6px; }
  .aa-doccheck { width: 16px; height: 16px; }
  .aa-doccheck svg { width: 9px; height: 9px; }
  .aa-pipe { gap: 22px; }
}

/* AutoMatrix mobil: statikus jelenetek (nincs fix magasság, nincs levágás) + QA felső padding */
@media (max-width: 768px) {
  .roles-section { padding-top: 48px !important; }
  .am-stage { height: auto !important; min-height: 0; flex: none; width: 100%; }
  .am-scene { position: static; display: none; opacity: 1; transform: none; }
  .am-scene.on { display: block; }
  .am-scene .am-mini { height: auto; min-height: 320px; }
  .am-steps { padding-top: 4px; }
  .am-wrap { overflow: visible; }
}

/* Demó-sidebar: valós app-menü (v13.4.0 paritás) */
.aimy-sb-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 10px;
}
.aimy-sb-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px;
  color: #777;
  font-size: 0.68rem;
}
.aimy-sb-link svg { flex-shrink: 0; }
.aimy-live-ui .aimy-menu { gap: 3px; }
.aimy-live-ui .aimy-menu-item { padding: 7px 12px; }
.aimy-live-ui .aimy-history { margin-top: 12px; }
.aimy-live-ui .history-item { padding: 6px 14px; }

/* Demó: kattintható modul-menüpontok */
.aimy-menu-item[data-module] { cursor: pointer; font-weight: 700; }

/* Demó-sidebar: akkordeon al-menük a modulok alatt */
.aimy-submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.aimy-submenu.open {
  max-height: 130px;
}
.aimy-submenu .history-item {
  padding: 5px 10px 5px 40px;
  font-size: 0.63rem;
}

/* HOL SEGÍT?: a 3 pont (features-left középre) a cím és a szekcióalj között */
@media (min-width: 769px) {
  .features-left {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .features-left .feature-item:first-of-type { margin-top: auto; }
  .features-left .feature-item:last-of-type { margin-bottom: auto; }
}

/* AutoAimy: odahúzott fájl-kártyák a futás elején */
.aa-docstack { width: 96px; height: 100px; }
.aa-file {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 5px 8px;
  opacity: 0;
  animation: aaDragIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
@keyframes aaDragIn {
  0% { opacity: 0; transform: translate(-48px, -42px) rotate(-12deg) scale(0.92); }
  70% { opacity: 1; transform: translate(4px, 3px) rotate(var(--rot, 0deg)) scale(1.03); }
  100% { opacity: 1; transform: translate(0, 0) rotate(var(--rot, 0deg)); }
}
@media (max-width: 768px) {
  .aa-docstack { width: 96px; height: 100px; transform: scale(0.8); transform-origin: top center; }
}

/* Demó: chat-input pill-kerekítés a valódi app szerint */
.aimy-live-ui .aimy-input-box {
  border-radius: 28px;
  padding: 14px 20px;
}

/* Demó: demo input kompakt egysoros, betelt sornál két sorra nyílik */
.aimy-live-ui .aimy-input-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 0;
}
.aimy-live-ui .aimy-input-box .input-actions-left { grid-row: 1; grid-column: 1; }
.aimy-live-ui .aimy-input-box .input-placeholder { grid-row: 1; grid-column: 2; }
.aimy-live-ui .aimy-input-box .input-actions-right { grid-row: 1; grid-column: 3; }
.aimy-live-ui .aimy-input-box.expanded {
  row-gap: 12px;
}
.aimy-live-ui .aimy-input-box.expanded .input-placeholder { grid-row: 1; grid-column: 1 / 4; }
.aimy-live-ui .aimy-input-box.expanded .input-actions-left { grid-row: 2; grid-column: 1; }
.aimy-live-ui .aimy-input-box.expanded .input-actions-right { grid-row: 2; grid-column: 3; }

/* Lábléc: LinkedIn ikon */
.footer-linkedin {
  display: inline-flex;
  align-items: center;
  color: #888;
  transition: color 0.2s ease;
}
.footer-linkedin:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   ALOLDALAK + RÓLUNK  (v36)
   A főoldal szekciói 100dvh magasak a lapozó görgetés miatt; az aloldalak
   ezzel szemben normál, folyó dokumentumok — ezért saját osztályokat kapnak.
   ========================================================================== */

body.subpage {
  overflow-x: hidden;
}

body.subpage .navbar.scrolled {
  box-shadow: none;
}

body.subpage .navbar.has-shadow {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.about-page {
  display: block;
  padding-top: var(--nav-height);
}

/* A globális `section` szabály 100dvh magasra kényszeríti és elvágja a
   tartalmat (a főoldal lapozó görgetése miatt). Az aloldal folyó dokumentum,
   ezért ezt itt vissza kell venni. */
.about-page section {
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  display: block;
  padding: var(--spacing-3xl) 0;
}

/* --- Hero --- */
.about-hero {
  padding-top: var(--spacing-2xl) !important;
  padding-bottom: var(--spacing-xl) !important;
}

.about-eyebrow {
  font-family: var(--font-title);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: var(--spacing-sm);
}

.about-hero-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin-bottom: var(--spacing-lg);
}

.about-hero-lead {
  font-family: var(--font-secondary);
  font-size: var(--font-size-xl);
  line-height: 1.6;
  max-width: 680px;
  opacity: 0.9;
}

/* --- Miért létezik az Aimy --- */
.about-why-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: var(--spacing-2xl);
  align-items: center;
}

.about-why-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.about-why-text p {
  font-family: var(--font-secondary);
  font-size: var(--font-size-lg);
  line-height: 1.75;
  margin-bottom: var(--spacing-md);
  max-width: 620px;
}

.about-why-text p:last-child {
  margin-bottom: 0;
}

/* --- Csapat --- */
.about-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-xl);
  max-width: 940px;
}

.about-member-photo {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--spacing-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-member-name {
  font-family: var(--font-title);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.about-member-role {
  font-family: var(--font-title);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: var(--spacing-sm);
}

.about-member-bio {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: var(--spacing-sm);
}

.about-member-link {
  font-family: var(--font-title);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(26, 26, 26, 0.35);
  padding-bottom: 2px;
  transition: opacity var(--transition-fast);
}

.about-member-link:hover {
  opacity: 0.6;
}

/* --- Felelősségi keret --- */
.about-scope-box {
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  max-width: 820px;
}

.about-scope-box h2 {
  font-family: var(--font-title);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.about-scope-box p {
  font-family: var(--font-secondary);
  font-size: var(--font-size-lg);
  line-height: 1.7;
  opacity: 0.92;
}

/* --- Kapcsolat --- */
.about-contact-lead {
  font-family: var(--font-secondary);
  font-size: var(--font-size-lg);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

.about-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.about-btn {
  display: inline-block;
  font-family: var(--font-title);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--color-black);
  color: var(--color-white);
  border: 2px solid var(--color-black);
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.about-btn:hover {
  transform: translateY(-2px);
}

.about-btn-ghost {
  background: transparent;
  color: var(--color-black);
}

.about-btn-ghost:hover {
  background: var(--color-black);
  color: var(--color-white);
}

/* --- Impresszum --- */
.about-imprint {
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--spacing-xl) !important;
}

.about-imprint-title {
  font-family: var(--font-title);
  font-size: var(--font-size-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.65;
  margin-bottom: var(--spacing-md);
}

.about-imprint-list {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 10px var(--spacing-md);
  font-size: var(--font-size-sm);
  max-width: 720px;
}

.about-imprint-list dt {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: var(--font-size-xs);
  opacity: 0.6;
  padding-top: 2px;
}

.about-imprint-list dd {
  line-height: 1.5;
}

.about-imprint-list a {
  border-bottom: 1px solid rgba(26, 26, 26, 0.3);
}

.about-imprint-muted {
  opacity: 0.55;
  font-size: var(--font-size-xs);
}

/* --- Lábléc jogi sor (főoldalon is) --- */
.footer-legal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: var(--spacing-md);
  font-size: var(--font-size-xs);
  opacity: 0.6;
}

.footer-legal-row a {
  transition: opacity var(--transition-fast);
}

.footer-legal-row a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSZÍV
   ========================================================================== */

@media (max-width: 900px) {
  .about-why-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .about-why-media {
    max-width: 320px;
  }

  .about-imprint-list {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .about-imprint-list dd {
    margin-bottom: var(--spacing-sm);
  }
}

@media (max-width: 768px) {
  .about-page section {
    padding: var(--spacing-2xl) 0;
  }

  .about-hero-lead {
    font-size: var(--font-size-lg);
  }

  .about-team-grid {
    gap: var(--spacing-xl);
  }

  .about-member-photo {
    width: 140px;
    height: 140px;
  }

  .about-scope-box {
    padding: var(--spacing-lg);
  }
}

/* --- Fejléc szűk sávban (769–940 px): a 7. menüpont ("Rólunk") miatt itt
   összeérnek a fejléc elemei. A logó alcímét elrejtjük, és szűkítjük a menüt;
   a hamburger továbbra is csak 768 px alatt jelenik meg. --- */
@media (min-width: 769px) and (max-width: 940px) {
  .logo-subtitle {
    display: none;
  }

  .nav-links {
    gap: 1.15rem;
  }

  .nav-links a {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }
}

/* --- Rólunk: az alapítók bevezetője --- */
.about-team-lead {
  max-width: 720px;
  margin-top: var(--spacing-sm);
}

.about-team-lead p {
  font-family: var(--font-secondary);
  font-size: var(--font-size-lg);
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: var(--spacing-sm);
}

.about-team-lead p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   ALAPÍTÓK SÁV (főoldal, a Csomagok szekció előtt)
   A fotó MINDIG a teljes szélességet kapja, a saját arányában — nem vágjuk.
   Ami fölötte-alatta marad, az fekete, a kép széle maszkkal olvad bele.
   A szekció a lapozó görgetés miatt kötelezően 100dvh/svh.
   ========================================================================== */

.founders-band {
  position: relative;
  height: 100dvh;
  height: 100svh;
  min-height: 0;
  max-height: 100dvh;
  max-height: 100svh;
  overflow: hidden;
  box-sizing: border-box;
  display: block;
  padding: 0;
  background: #0B0B0B;
}

.founders-band-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* a lapozó a szekciót navHeight-tel lejjebb teszi: az alsó sáv takarva van,
     ezért a képet a LÁTHATÓ terület közepére igazítjuk */
  padding-bottom: var(--nav-height);
}

/* A képkeret magassága = a kép saját magassága, így a felirat hozzá igazodhat. */
.founders-band-frame {
  position: relative;
  width: 100%;
}

.founders-band-photo {
  display: block;
  width: 100%;
  height: auto;
  /* a kép négy széle beleolvad a fekete háttérbe */
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-image:
    linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Balról sötétítés a szöveg olvashatóságáért. */
.founders-band-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(11, 11, 11, 0.92) 0%,
      rgba(11, 11, 11, 0.80) 28%,
      rgba(11, 11, 11, 0.35) 48%,
      rgba(11, 11, 11, 0.05) 70%,
      rgba(11, 11, 11, 0.20) 100%);
}

/* Az áttetsző AIMY felirat a KÉP aljára ül, nem a szekcióéra. */
.founders-band-mark {
  position: absolute;
  left: 50%;
  bottom: -0.031em;
  transform: translateX(-50%);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: min(24vw, 42vh);
  line-height: 0.78;
  letter-spacing: 0.03em;
  color: rgba(232, 194, 26, 0.50);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.founders-band-content {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: max(calc(var(--nav-height) + var(--spacing-lg)), 17vh) var(--spacing-lg)
    calc(var(--spacing-xl) + var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--spacing-lg);
}

.founders-band-eyebrow {
  font-family: var(--font-title);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: var(--spacing-md);
}

.founders-band-lead {
  font-family: var(--font-secondary);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: var(--color-white);
  max-width: 34ch;
}

.founders-band-btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-black);
  border-radius: 999px;
  padding: 16px 36px;
  font-family: var(--font-title);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.founders-band-btn:hover {
  transform: translateY(-2px);
  background: var(--color-primary-light);
}

/* --- Mobil: ugyanaz az elv, csak az álló kivágással és alulra igazítva --- */
@media (max-width: 768px) {
  .founders-band {
    height: auto !important;
    min-height: 100dvh !important;
    min-height: 100svh !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  .founders-band-media {
    align-items: flex-end;
    padding-bottom: 0;
  }

  .founders-band-photo {
    -webkit-mask-image:
      linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 9%, #000 28%),
      linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image:
      linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 9%, #000 28%),
      linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  }

  .founders-band-shade {
    background: linear-gradient(180deg,
        rgba(11, 11, 11, 0) 30%,
        rgba(11, 11, 11, 0) 60%,
        rgba(11, 11, 11, 0.72) 100%);
  }

  .founders-band-mark {
    left: 6px;
    right: auto;
    bottom: 96px;
    transform: none;
    writing-mode: vertical-rl;
    rotate: 180deg;
    font-size: 22vw;
    line-height: 1;
  }

  .founders-band-content {
    min-height: 100dvh;
    min-height: 100svh;
    height: auto;
    justify-content: space-between;
    align-items: stretch;
    padding: calc(var(--nav-height) + var(--spacing-lg)) var(--spacing-md) var(--spacing-lg);
  }

  .founders-band-lead {
    font-size: 1.2rem;
    max-width: none;
  }

  .founders-band-btn {
    width: 100%;
    text-align: center;
    padding: 18px 24px;
  }
}

/* ==========================================================================
   MOBIL: a fejléc lefelé görgetve eltűnik, felfelé visszajön
   ========================================================================== */
@media (max-width: 768px) {
  /* FONTOS: se `will-change: transform`, se állandó transform nem lehet a
     .navbar-on — mindkettő pozicionálási kontextust hoz létre, amitől a benne
     lévő `position: fixed` mobil menü a fejléchez igazodna a képernyő helyett. */
  .navbar {
    transition: transform 0.3s ease, background-color var(--transition-base), box-shadow var(--transition-base);
  }

  .navbar.nav-hidden {
    transform: translateY(-100%);
  }

  /* Nyitott menünél biztosan nincs transform. */
  .navbar.menu-open,
  .navbar.menu-open.nav-hidden {
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar {
    transition: none;
  }
}

/* A bemutatkozó első bekezdésében a két alapító külön sorba kerül. */
.about-hero-lead .hero-person {
  display: block;
  margin-top: 0.45em;
}

/* A bemutatkozó két bekezdése között legyen látható levegő, és a második
   alapító blokkja után is — a szem így tagolja a hármas felsorolást. */
.about-hero-lead .hero-person:last-of-type {
  margin-bottom: 0.5em;
}

.about-hero-lead + .about-hero-lead {
  margin-top: 0.9em;
}

/* ==========================================================================
   MOBIL: visszafogott belépő animációk
   Az oldalirányú (±30 px) eltolás mobilon vízszintes túlnyúlást okoz, és
   remegésnek/mikrogörgetésnek látszik. Itt csak halvány függőleges mozgás van.
   ========================================================================== */
@media (max-width: 768px) {
  .animate-left,
  .animate-right,
  .animate-on-scroll {
    transform: translateY(14px);
  }

  .animate-left.visible,
  .animate-right.visible,
  .animate-on-scroll.visible {
    transform: translateY(0);
  }

  .animate-on-scroll.delay-1 { transition-delay: 0.05s; }
  .animate-on-scroll.delay-2 { transition-delay: 0.1s; }
  .animate-on-scroll.delay-3 { transition-delay: 0.15s; }
  .animate-on-scroll.delay-4 { transition-delay: 0.2s; }
}

/* Aki kéri, annak egyáltalán ne mozogjon semmi. */
@media (prefers-reduced-motion: reduce) {
  .animate-left,
  .animate-right,
  .animate-scale,
  .animate-on-scroll {
    transform: none;
    transition: opacity 0.3s ease;
  }
}

/* Hero kiemelt mondat a főcím alatt: mindenben a szövegtörzs stílusát viszi
   (a `.hero-text p` szabályból örökölve), csak külön sorban áll. */
.hero-text .hero-kicker {
  margin: var(--spacing-sm) 0 var(--spacing-xs);
}

/* A fekete dobozban három külön állítás van — legyen köztük levegő. */
.about-scope-box p + p {
  margin-top: 0.85em;
}

/* ==========================================================================
   RÓLUNK OLDAL — SÖTÉT VÁLTOZAT
   A `body.subpage` felülírja a sárga alapot; a fejléc sárga marad (márkajel és
   folytonosság a főoldallal), a lábléc pedig eleve fekete, így beleolvad.
   ========================================================================== */

body.subpage {
  /* Ugyanaz a hangulat, mint az „Intelligencia egy kattintásra" szekcióé:
     #111 alap + elmosott sárga fényfoltok. Ott egy blur(200px)-es kör csinálja,
     itt radiális átmenetek — extra elem nélkül, és görgetéskor helyben marad. */
  background-color: #111111;
  background-image:
    radial-gradient(620px 620px at 88% 12%, rgba(232, 194, 26, 0.08), transparent 68%),
    radial-gradient(760px 760px at 6% 58%, rgba(232, 194, 26, 0.055), transparent 70%),
    radial-gradient(520px 520px at 78% 92%, rgba(232, 194, 26, 0.05), transparent 68%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #EDEDED;
}

.subpage .about-eyebrow {
  color: var(--color-primary);
  opacity: 1;
}

.subpage .about-hero-title,
.subpage .section-title,
.subpage .about-member-name {
  color: var(--color-white);
}

.subpage .about-hero-lead,
.subpage .about-why-text p,
.subpage .about-contact-lead {
  color: rgba(255, 255, 255, 0.85);
}

.subpage .about-member-role {
  color: var(--color-primary);
  opacity: 1;
}

.subpage .about-member-bio {
  color: rgba(255, 255, 255, 0.8);
  opacity: 1;
}

.subpage .about-member-link {
  color: var(--color-primary);
  border-bottom-color: rgba(232, 194, 26, 0.5);
}

/* A közös fotó saját sötét háttere beleolvad az oldalba — az árnyék felesleges. */
.subpage .about-why-photo {
  box-shadow: none;
}

/* A hangsúlyos doboz megfordul: sárga alap, fekete szöveg. */
.subpage .about-scope-box {
  background: var(--color-primary);
  color: var(--color-black);
}

.subpage .about-scope-box h2 {
  color: var(--color-black);
}

.subpage .about-scope-box p {
  color: rgba(26, 26, 26, 0.92);
  opacity: 1;
}

.subpage .about-btn {
  background: var(--color-primary);
  color: var(--color-black);
  border-color: var(--color-primary);
}

.subpage .about-btn:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
}

.subpage .about-btn-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.45);
}

.subpage .about-btn-ghost:hover {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

.subpage .about-imprint {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.subpage .about-imprint-title {
  color: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

.subpage .about-imprint-list dt {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.subpage .about-imprint-list dd {
  color: rgba(255, 255, 255, 0.85);
}

.subpage .about-imprint-list a {
  color: var(--color-primary);
  border-bottom-color: rgba(232, 194, 26, 0.4);
}

.subpage .about-imprint-muted {
  color: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

/* A fejléc sárga marad, ezért ott a szöveg is feketén marad — különben a
   `body.subpage` világos alapszínét örökölné sárga alapon. */
.subpage .navbar,
.subpage .navbar a,
.subpage .navbar .logo-subtitle {
  color: var(--color-black);
}

.subpage .navbar .logo-name span {
  color: var(--color-white);
}
