/* ==========================================================================
   Zync s.r.o. — Design System
   ========================================================================== */

:root {
  --primary: #00FFC2;
  --bg-light: #FFFFFF;
  --bg-dark: #0A0A0A;
  --bg-gray: #F5F5F5;
  --text-primary: #0A0A0A;
  --text-on-dark: #FFFFFF;
  --text-gray: #666666;
  --text-dark-body: #999999;
  --label-color: #888888;
  --border-color: #E5E5E5;
  --radius-card: 12px;
  --radius-pill: 100px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-gray {
  background: var(--bg-gray);
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--label-color);
  margin-bottom: 16px;
  text-transform: uppercase;
  font-weight: 700;
}

.section-dark .section-label {
  color: var(--primary);
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 72px;
  font-weight: 900;
}

h2 {
  font-size: 48px;
  font-weight: 800;
}

h3 {
  font-size: 24px;
  font-weight: 700;
}

p {
  color: var(--text-gray);
}

.section-dark p {
  color: var(--text-dark-body);
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 32px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-color: var(--bg-dark);
}

.btn-dark:hover {
  background: var(--primary);
  color: var(--text-primary);
  border-color: var(--primary);
}

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

.btn-outline:hover {
  background: var(--text-primary);
  color: var(--text-on-dark);
}

.btn-primary {
  background: var(--primary);
  color: var(--text-primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--text-on-dark);
  color: var(--text-primary);
  border-color: var(--text-on-dark);
}

.section-dark .btn-outline {
  color: var(--text-on-dark);
  border-color: var(--text-on-dark);
}

.section-dark .btn-outline:hover {
  background: var(--text-on-dark);
  color: var(--text-primary);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
}

.arrow-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

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

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-dark .logo-text,
.footer .logo-text {
  color: var(--text-on-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

/* .nav-links a would otherwise override the button's white text (black on black) */
.nav-links a.nav-cta-mobile {
  color: var(--text-on-dark);
}

.nav-links a.nav-cta-mobile:hover {
  color: var(--text-primary);
}

.nav-cta {
  flex-shrink: 0;
}

.nav-cta-mobile {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 80px 0 100px;
}

.hero-grid {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 0 0 52%;
}

.hero-content h1 {
  margin-bottom: 24px;
}

.hero-content .subtext {
  font-size: 18px;
  color: var(--text-gray);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 0 0 48%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== ZYNC HERO 3D LOGO ===== */
.hz-scene {
  width: min(620px, 100%);
  margin-inline: auto;
}
.hz-scene svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Celá scéna (podstavec + dlaždice) jemne pláva */
.hz-float { animation: hzFloat 7s ease-in-out infinite; }
@keyframes hzFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Dlaždice levitujú výraznejšie nad podstavcom */
.hz-tiles {
  transform: translateY(-26px);
  animation: hzTiles 5s ease-in-out infinite;
}
@keyframes hzTiles {
  0%, 100% { transform: translateY(-26px); }
  50%      { transform: translateY(-35px); }
}

/* Každá dlaždica má mikro-pohyb s fázovým posunom */
.hz-bob { animation: hzBob 4.5s ease-in-out infinite; }
.hz-b1 { animation-delay: 0s; }
.hz-b2 { animation-delay: 0.5s; }
.hz-b3 { animation-delay: 1.0s; }
.hz-b4 { animation-delay: 1.5s; }
@keyframes hzBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* Tieň dýcha opačne k letu (keď scéna stúpa, tieň sa zmenší a zosvetlí) */
.hz-shadow {
  animation: hzShadow 7s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes hzShadow {
  0%, 100% { transform: scaleX(1);    opacity: 1;   }
  50%      { transform: scaleX(0.92); opacity: 0.7; }
}

/* Kontaktné glow svetlá pulzujú s dlaždicami */
.hz-pads { animation: hzPads 5s ease-in-out infinite; }
@keyframes hzPads {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .hz-float, .hz-tiles, .hz-bob, .hz-shadow, .hz-pads { animation: none !important; }
}

/* ==========================================================================
   Social Proof Bar
   ========================================================================== */

.stats-bar {
  background: var(--bg-gray);
  padding: 56px 0;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
  gap: 32px;
}

.stat-item .stat-value {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 600;
}

/* ==========================================================================
   Problem Section
   ========================================================================== */

.problem-grid {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.problem-left {
  flex: 0 0 45%;
}

.problem-left h2 {
  font-size: 44px;
}

.problem-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 12px;
}

.pain-point {
  display: flex;
  gap: 16px;
  font-size: 19px;
  font-weight: 600;
  align-items: flex-start;
}

.pain-point .dash {
  color: var(--primary);
  font-weight: 900;
  flex-shrink: 0;
}

/* ==========================================================================
   Services Section / Cards
   ========================================================================== */

.services-header {
  margin-bottom: 56px;
}

.services-header h2 {
  font-size: 48px;
  max-width: 600px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.service-card .card-icon,
.service-card .card-icon svg,
.service-card .card-number {
  transition: var(--transition);
}

.service-card:hover .card-icon {
  background: var(--primary);
}

.service-card:hover .card-icon svg {
  stroke: var(--bg-dark);
}

.service-card:hover .card-number {
  color: var(--primary);
}

.service-card.large {
  grid-column: span 3;
}

.service-card.small {
  grid-column: span 2;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}

.card-number {
  font-size: 15px;
  font-weight: 800;
  color: var(--label-color);
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.price-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--primary);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
}

.services-cta {
  margin-top: 48px;
  text-align: center;
}

/* ==========================================================================
   Process Section (dark)
   ========================================================================== */

.process-header {
  margin-bottom: 64px;
  text-align: center;
}

.process-header h2 {
  font-size: 48px;
  max-width: 700px;
  margin: 0 auto;
}

.process-steps {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.process-step {
  flex: 1;
}

.process-step .step-number {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.process-step h3 {
  color: var(--text-on-dark);
  font-size: 22px;
  margin-bottom: 12px;
}

.process-step p {
  font-size: 15px;
}

.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
  flex-shrink: 0;
  padding-top: 4px;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-grid {
  display: flex;
  gap: 80px;
  margin-bottom: 64px;
}

.about-left {
  flex: 0 0 45%;
}

.about-left h2 {
  font-size: 44px;
}

.about-right {
  flex: 1;
  padding-top: 12px;
}

.about-right p {
  font-size: 18px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  border-top: 1px solid var(--border-color);
  padding-top: 48px;
}

.fact-item .fact-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.fact-item .fact-desc {
  font-size: 15px;
  color: var(--text-gray);
  font-weight: 600;
}

/* ==========================================================================
   CTA Banner (dark)
   ========================================================================== */

.cta-banner {
  text-align: center;
}

.cta-banner h2 {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--text-on-dark);
}

.cta-banner p {
  font-size: 18px;
  max-width: 480px;
  margin: 0 auto 40px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}

.footer-col .logo {
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 15px;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-dark-body);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  font-size: 14px;
  color: var(--text-dark-body);
}

/* ==========================================================================
   Inner Page Hero (smaller)
   ========================================================================== */

.page-hero {
  padding: 64px 0 80px;
  text-align: left;
}

.page-hero h1 {
  font-size: 60px;
  margin-bottom: 20px;
}

.page-hero .subtext {
  font-size: 18px;
  color: var(--text-gray);
  max-width: 600px;
}

/* ==========================================================================
   Services Page — Full Service Rows
   ========================================================================== */

.service-row {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color);
}

.service-row.dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-bottom: none;
}

.service-row.dark h3 {
  color: var(--text-on-dark);
}

.service-row.dark p {
  color: var(--text-dark-body);
}

.service-row.dark .card-icon {
  background: rgba(255, 255, 255, 0.08);
}

.service-row-grid {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.service-row-left {
  flex: 0 0 32%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-row-left .row-number {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.service-row-left h3 {
  font-size: 32px;
}

.service-row-left .card-icon {
  margin-bottom: 4px;
}

.service-row-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-row-right p {
  font-size: 17px;
  max-width: 640px;
}

.service-row-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-primary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition);
}

.faq-icon::before {
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 14px;
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.faq-answer p {
  padding-bottom: 28px;
  font-size: 16px;
  max-width: 680px;
}

.faq-item.active .faq-answer {
  max-height: 240px;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.contact-grid {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.contact-info {
  flex: 0 0 36%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-item .label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label-color);
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-info-item .value {
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  background: var(--bg-light);
  color: var(--text-primary);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.form-note {
  font-size: 14px;
  color: var(--text-gray);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 36px;
  }

  .section {
    padding: 60px 0;
  }

  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-light);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 40px 24px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }

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

  .nav-links a {
    font-size: 22px;
  }

  .nav-cta {
    display: none;
  }

  .nav-links .nav-cta-mobile {
    display: inline-flex;
    margin-top: 12px;
  }

  .hamburger {
    display: flex;
  }

  .hero-grid {
    flex-direction: column;
  }

  .hero-content {
    flex: none;
    width: 100%;
  }

  .hero-content .subtext {
    max-width: 100%;
  }

  .hero-visual {
    flex: none;
    width: 100%;
    margin-top: 40px;
  }

  /* Mobil: pod textom, na stred, primeraná veľkosť */
  .hz-scene {
    width: min(420px, 92vw);
  }

  .stats-grid {
    flex-direction: column;
    gap: 32px;
  }

  .problem-grid,
  .about-grid,
  .contact-grid,
  .service-row-grid {
    flex-direction: column;
    gap: 32px;
  }

  .problem-left,
  .about-left,
  .contact-info,
  .service-row-left {
    flex: none;
    width: 100%;
  }

  .problem-left h2,
  .about-left h2 {
    font-size: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card.large,
  .service-card.small {
    grid-column: span 1;
  }

  .process-steps {
    flex-direction: column;
    gap: 40px;
  }

  .process-arrow {
    transform: rotate(90deg);
  }

  .facts-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .page-hero h1 {
    font-size: 42px;
  }

  .form-row {
    flex-direction: column;
  }

  .cta-banner h2 {
    font-size: 36px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-content .subtext {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

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

  .service-row-left h3 {
    font-size: 26px;
  }

  .page-hero h1 {
    font-size: 34px;
  }
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0s);
}

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

/* ==========================================================================
   FAQ Hover (subtle)
   ========================================================================== */

.faq-question {
  transition: color var(--transition);
}

.faq-item:hover .faq-question {
  color: var(--text-primary);
}

.faq-item:hover .faq-icon::before,
.faq-item:hover .faq-icon::after {
  background: var(--primary);
}

/* ==========================================================================
   Page Loader (logo intro, once per session)
   ========================================================================== */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.page-loader.done {
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  display: grid;
  grid-template-columns: repeat(2, 30px);
  gap: 10px;
}

.loader-square {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  transform: scale(0);
  animation: loader-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.loader-square:nth-child(1) { background: var(--primary); animation-delay: 0s; }
.loader-square:nth-child(2) { border: 3px solid var(--primary); animation-delay: 0.1s; }
.loader-square:nth-child(3) { border: 3px solid var(--primary); animation-delay: 0.2s; }
.loader-square:nth-child(4) { background: var(--primary); animation-delay: 0.3s; }

@keyframes loader-pop {
  to { transform: scale(1); }
}

/* ==========================================================================
   Marquee Tech Strip
   ========================================================================== */

.marquee {
  background: var(--bg-gray);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  padding: 20px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
}

.marquee-item {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-gray);
  white-space: nowrap;
}

.marquee-dot {
  color: var(--primary);
  font-size: 16px;
  font-weight: 900;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Blog Grid & Cards
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.blog-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.blog-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.blog-card .blog-excerpt {
  font-size: 15px;
  margin-bottom: 24px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--label-color);
  margin-bottom: 20px;
}

.blog-card .arrow-link {
  align-self: flex-start;
  transition: color var(--transition);
}

.blog-card:hover .arrow-link {
  color: var(--primary);
}

/* ==========================================================================
   Article Pages
   ========================================================================== */

.article-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-hero {
  padding: 56px 0 24px;
}

.article-hero h1 {
  font-size: 44px;
  margin: 20px 0 16px;
}

.back-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-gray);
  transition: color var(--transition);
  margin-bottom: 24px;
}

.back-link:hover {
  color: var(--primary);
}

.article-meta {
  font-size: 14px;
  font-weight: 600;
  color: var(--label-color);
}

.article-body-section {
  padding: 40px 0 100px;
}

.article-body {
  font-size: 18px;
  line-height: 1.7;
}

.article-body p {
  color: #3A3A3A;
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 30px;
  margin: 56px 0 20px;
}

.article-body h3 {
  font-size: 21px;
  margin: 36px 0 14px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px 22px;
  color: #3A3A3A;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body blockquote {
  border-left: 3px solid var(--primary);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

.article-body strong {
  color: var(--text-primary);
}

/* Comparison table (article 3) */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.comparison-table th {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-weight: 700;
  text-align: left;
  padding: 14px 16px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comparison-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--border-color);
  color: #3A3A3A;
  vertical-align: top;
}

.comparison-table td:first-child {
  font-weight: 700;
  color: var(--text-primary);
}

/* Article CTA box */
.article-cta {
  background: var(--bg-dark);
  border-radius: var(--radius-card);
  padding: 40px;
  margin: 56px 0;
  text-align: center;
}

.article-cta h3 {
  color: var(--text-on-dark);
  font-size: 24px;
  margin-bottom: 24px;
}

/* Sources */
.article-sources {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  margin-top: 56px;
}

.article-sources h4 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label-color);
  margin-bottom: 16px;
}

.article-sources ul {
  list-style: none;
  margin-left: 0;
}

.article-sources li {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 8px;
}

/* ==========================================================================
   AI Assistant (demo)
   ========================================================================== */

/* --cookie-offset lifts floating elements above the cookie banner while it is visible */
.chat-bubble {
  position: fixed;
  bottom: calc(24px + var(--cookie-offset, 0px));
  right: 24px;
  z-index: 1100;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition);
}

.chat-bubble:hover {
  transform: scale(1.08);
}

.chat-bubble::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: chat-pulse 2.4s ease-out infinite;
}

@keyframes chat-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}

.chat-bubble svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary);
}

.chat-window {
  position: fixed;
  bottom: calc(96px + var(--cookie-offset, 0px));
  right: 24px;
  z-index: 1100;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: 520px;
  background: var(--bg-light);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

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

.chat-header {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header .online-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.chat-header .chat-title {
  font-weight: 800;
  font-size: 15px;
}

.chat-header .chat-note {
  font-size: 11px;
  color: var(--text-dark-body);
  margin-left: auto;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  max-height: 360px;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-msg.bot {
  background: var(--bg-gray);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg a {
  color: inherit;
  font-weight: 700;
}

.chat-typing {
  display: flex;
  gap: 5px;
  padding: 14px 16px;
  background: var(--bg-gray);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-gray);
  animation: typing-bounce 1s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--border-color);
}

.chat-input-row input {
  flex: 1;
  font-family: inherit;
  font-size: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  outline: none;
  transition: border-color var(--transition);
}

.chat-input-row input:focus {
  border-color: var(--primary);
}

.chat-input-row button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
  transition: var(--transition);
}

.chat-input-row button:hover {
  background: var(--bg-dark);
  color: var(--primary);
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner p {
  color: var(--text-dark-body);
  font-size: 14px;
  margin: 0;
}

.cookie-banner .cookie-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.cookie-banner .btn {
  padding: 10px 24px;
  font-size: 14px;
}

.cookie-banner .cookie-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-on-dark);
  text-decoration: underline;
  transition: color var(--transition);
}

.cookie-banner .cookie-more:hover {
  color: var(--primary);
}

/* ==========================================================================
   Sticky Mobile CTA
   ========================================================================== */

.sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .sticky-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + var(--cookie-offset, 0px));
    z-index: 1050;
    background: var(--primary);
    color: var(--text-primary);
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    padding: 17px 24px;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(140%);
    transition: transform var(--transition);
  }

  .sticky-cta.visible {
    transform: translateY(0);
  }

  /* Lift chat bubble above the sticky CTA so they never overlap */
  body.sticky-cta-active .chat-bubble {
    bottom: calc(88px + var(--cookie-offset, 0px));
  }

  body.sticky-cta-active .chat-window {
    bottom: calc(160px + var(--cookie-offset, 0px));
  }
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.page-404 {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.error-code {
  font-size: 180px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 3px var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.page-404 h1 {
  font-size: 40px;
  margin-bottom: 12px;
}

.page-404 .subtext {
  font-size: 18px;
  color: var(--text-gray);
  margin-bottom: 36px;
}

@media (max-width: 560px) {
  .error-code {
    font-size: 110px;
  }

  .page-404 h1 {
    font-size: 28px;
  }
}

/* ==========================================================================
   Footer Bottom (copyright + GDPR link)
   ========================================================================== */

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: var(--text-dark-body);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ==========================================================================
   Responsive — new components
   ========================================================================== */

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

  .article-hero h1 {
    font-size: 32px;
  }

  .comparison-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 560px) {
  .chat-window {
    right: 16px;
    bottom: 88px;
  }

  .chat-bubble {
    right: 16px;
    bottom: 16px;
  }

  .article-cta {
    padding: 32px 24px;
  }
}

/* ==========================================================================
   Reduced Motion — disable all animations
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
