:root {
  --wenge: #4b3b3b;
  --dim-gray: #6e6e6e;
  --isabelline: #f5f5f5;
  --sandy-brown: #f4a261;
  --amber: #f59e0b;
  --orange: #fb923c;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background-color: var(--isabelline);
  color: var(--wenge);
  overflow-x: hidden;
}

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

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

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Scroll reveal animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition-smooth), 
              transform 0.8s var(--transition-smooth);
}

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

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--transition-smooth) forwards;
}

/* Containers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header container layout: keep logo and nav on the same line */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0; /* container handles spacing */
  transition: background 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
  min-height: 72px; /* desktop visual header height, allow expansion on small screens */
  background: rgba(255,255,255,0.98); /* keep opaque so it doesn't mix with page content */
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  backdrop-filter: blur(6px);
}

/* Header height is dynamic; JS will set body padding to avoid overlap */
/* Keep header padding for natural spacing */

/* Reserve space so content doesn't hide under fixed header on desktop only */
@media (min-width: 769px) {
  body { padding-top: 72px; }
}
/* Menu toggle (hamburger) styling */
.menu-toggle {
  display: none; /* shown on small screens */
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.menu-toggle:focus { outline: 2px solid var(--amber); outline-offset: 3px; }
.menu-toggle .hamburger {
  width: 22px;
  height: 2px;
  background: var(--wenge);
  display: block;
  position: relative;
  transition: background 0.2s ease;
}
.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after{
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--wenge);
  transition: transform 0.25s ease, top 0.25s ease;
}
.menu-toggle .hamburger::before{ top: -7px; }
.menu-toggle .hamburger::after{ top: 7px; }

/* When menu is open, the button shows a close state */
.menu-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.menu-toggle[aria-expanded="true"] .hamburger::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger::after { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* When the checkbox is checked, show the close state on the hamburger label */
.nav-toggle:checked + .menu-toggle .hamburger { background: transparent; }
.nav-toggle:checked + .menu-toggle .hamburger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .menu-toggle .hamburger::after { transform: translateY(-7px) rotate(-45deg); }

/* Prevent body scroll when mobile menu open */
.no-scroll { overflow: hidden; }

.site-header.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--wenge);
}

/* Limit logo image size so it doesn't appear huge in the header */
.site-header .logo img {
  max-height: 44px; /* fit within header comfortably */
  width: auto;
  height: auto;
  display: inline-block;
}

.site-header .logo span {
  font-size: 1.125rem; /* slightly smaller than before */
}

/* Language switcher - CSS-only using <details> */
.lang-switcher {
  position: relative;
  margin-left: 1rem;
  font-size: 0.95rem;
}
.lang-switcher summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid transparent;
}
.lang-switcher summary:focus {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-summary { display: inline-flex; align-items: center; gap: 0.5rem; }
.lang-code { font-size: 0.8rem; opacity: 0.8; padding-left: 0.25rem; }
.lang-list {
  position: absolute;
  right: 0;
  margin-top: 0.5rem;
  background: #fff;
  border-radius: 0.6rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  list-style: none;
  padding: 0.4rem 0.25rem;
  min-width: 160px;
  z-index: 1500;
  border: 1px solid rgba(0,0,0,0.06);
}
.lang-list li { padding: 0; }
.lang-list li a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: var(--wenge);
  border-radius: 0.45rem;
}
.lang-list li a:hover, .lang-list li a:focus { background: linear-gradient(90deg, rgba(245,158,11,0.08), rgba(251,146,60,0.06)); color: var(--amber); }

/* Hide the menu by default via details behavior; ensure it stays above header shadow */
.lang-switcher[open] .lang-list { display: block; }
.lang-switcher .lang-list { display: none; }

/* On small screens, place language switcher as a full-width item inside the stacked header */
@media (max-width: 768px) {
  /* Compact header: keep logo, language switcher and burger on one row */
  .site-header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .logo span { display: none; } /* hide logo text to save horizontal space */
  .lang-switcher { margin-left: 0; margin-right: 0.5rem; height: auto; }
  .lang-switcher summary { width: auto; justify-content: center; padding: 0.15rem 0.5rem; font-size: 0.9rem; }
  .lang-switcher .lang-code { display: none; }
  .lang-switcher[open] .lang-list { position: static; width: 100%; box-shadow: none; border: none; background: transparent; padding: 0.25rem 0; }
  .lang-list li a { padding-left: 0; padding-right: 0; }

  /* Slightly smaller hamburger to match compact layout */
  .menu-toggle { padding: 0.35rem; }
  .menu-toggle .hamburger { width: 20px; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Keep header navigation compact so it fits within header height */
.site-header .nav a { padding-top: 0.2rem; padding-bottom: 0.2rem; }
.site-header .nav .btn-primary, .site-header .nav .btn-secondary, .site-header .nav .btn-outline { padding: 0.45rem 0.9rem; }
.site-header .nav a { font-size: 0.95rem; }

.nav a {
  font-weight: 500;
  transition: color 0.3s;
}

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

.btn-primary, .btn-secondary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before,
.btn-outline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before,
.btn-outline:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(90deg, var(--amber), var(--orange));
  color: #fff;
  padding: 0.8rem 2rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  border: 2px solid var(--dim-gray);
  padding: 0.8rem 2rem;
  color: var(--dim-gray);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.btn-outline {
  border: 2px solid var(--amber);
  color: var(--amber);
  padding: 0.8rem 2rem;
  background: transparent;
}

.btn-outline:hover {
  background: var(--amber);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 6rem;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--isabelline), #fff);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-bg .circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(100px);
  animation: pulse 8s infinite alternate ease-in-out;
  will-change: transform, opacity;
}

.circle1 {
  width: 24rem;
  height: 24rem;
  top: -10rem;
  right: -8rem;
  background: var(--amber);
}

.circle2 {
  width: 20rem;
  height: 20rem;
  bottom: -8rem;
  left: -10rem;
  background: var(--orange);
  animation-delay: 2s;
}

@keyframes pulse {
  0% { 
    transform: scale(1) rotate(0deg); 
    opacity: 0.3; 
  }
  50% { 
    transform: scale(1.15) rotate(5deg); 
    opacity: 0.5; 
  }
  100% { 
    transform: scale(1) rotate(0deg); 
    opacity: 0.3; 
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content .badge {
  display: inline-flex;
  align-items: center;
  background: var(--amber);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  animation: float 3s ease-in-out infinite;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content h1 span {
  background: linear-gradient(90deg, var(--amber), var(--orange));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-benefits {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-benefits > div {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  transition: transform 0.3s var(--transition-smooth), 
              box-shadow 0.3s var(--transition-smooth);
  min-width: 200px;
}

.hero-benefits > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.hero-benefits .icon {
  display: inline-block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  animation: float 2s ease-in-out infinite;
}

.hero-benefits > div:nth-child(2) .icon {
  animation-delay: 0.5s;
}

.hero-benefits > div:nth-child(3) .icon {
  animation-delay: 1s;
}

/* Features */
.features {
  padding: 6rem 0;
  text-align: center;
}

.features h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.features h2 span {
  color: var(--amber);
  position: relative;
}

.features h2 span::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  border-radius: 2px;
}

.features p {
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-cards .card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.4s var(--transition-smooth), 
              box-shadow 0.4s var(--transition-smooth),
              background 0.4s var(--transition-smooth);
  border: 1px solid rgba(245, 158, 11, 0.1);
  position: relative;
  overflow: hidden;
}

.feature-cards .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(251, 146, 60, 0.05));
  opacity: 0;
  transition: opacity 0.4s var(--transition-smooth);
}

.feature-cards .card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.2);
  background: rgba(255,255,255,0.95);
}

.feature-cards .card:hover::before {
  opacity: 1;
}

.feature-cards .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform 0.4s var(--transition-bounce);
  position: relative;
  z-index: 1;
}

.feature-cards .card:hover .icon {
  transform: scale(1.2) rotateZ(5deg);
}

.feature-cards h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.feature-cards p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  line-height: 1.7;
}

/* How it Works */
.how-it-works {
  padding: 6rem 0;
  background: linear-gradient(to bottom, #f9f9f9, #fff);
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.03), transparent 70%);
  pointer-events: none;
}

.how-it-works .container {
  position: relative;
  z-index: 1;
}

.how-it-works h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.how-it-works h2 span {
  color: var(--amber);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  position: relative;
}

.steps article {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s var(--transition-smooth), 
              box-shadow 0.4s var(--transition-smooth);
  position: relative;
}

.steps article::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -2.5rem;
  transform: translateY(-50%);
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
}

.steps article:last-child::after {
  display: none;
}

.steps article:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.15);
}

.steps .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.steps article:nth-child(2) .icon {
  animation-delay: 0.5s;
}

.steps article:nth-child(3) .icon {
  animation-delay: 1s;
}

.steps h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--wenge);
}

.steps p {
  line-height: 1.7;
  color: var(--dim-gray);
}

/* CTA */
.cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: moveBackground 20s linear infinite;
  opacity: 0.3;
}

@keyframes moveBackground {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: nowrap;
}

.cta-text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 600px;
  text-align: left;
}

.cta h2 {
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.cta p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  max-width: 550px;
  line-height: 1.7;
  opacity: 0.95;
}

.cta-buttons {
  margin: 2rem 0;
}

.btn-large {
  font-size: 1.15rem;
  padding: 1rem 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s var(--transition-smooth);
}

.btn-large:hover .btn-icon {
  transform: scale(1.1) rotateZ(5deg);
}

.cta a.btn-primary {
  background: #fff;
  color: var(--amber);
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta a.btn-primary:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.launch-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  opacity: 0.95;
  animation: float 2s ease-in-out infinite;
}

/* QR Code Section */
.cta-qr {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 300px;
}

.qr-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s var(--transition-smooth),
              box-shadow 0.4s var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(245, 158, 11, 0.1) 50%, 
    transparent 70%);
  animation: qrShine 3s ease-in-out infinite;
}

@keyframes qrShine {
  0%, 100% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  50% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.qr-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
}

.qr-code-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  margin: 0 0 1.5rem 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  padding: 0.5rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.qr-code {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 0.5rem;
  transition: transform 0.3s var(--transition-smooth);
}

.qr-card:hover .qr-code {
  transform: scale(1.05);
}

.qr-text {
  text-align: center;
  color: var(--wenge);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
}

.qr-icon {
  font-size: 1.5rem;
  animation: phoneWiggle 2s ease-in-out infinite;
}

@keyframes phoneWiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}

/* Desktop/Tablet - Force side by side layout */
@media (min-width: 769px) {
  .cta-content {
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  
  .cta-text {
    flex: 1 1 auto;
    max-width: 600px;
  }
  
  .cta-qr {
    flex: 0 0 300px;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cta-content {
    flex-direction: column;
    flex-wrap: wrap;
    text-align: center;
    gap: 3rem;
  }
  
  .cta-text {
    text-align: center;
    max-width: 100%;
  }
  
  .cta h2 {
    font-size: 2rem;
  }
  
  .cta p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-qr {
    width: 100%;
    min-width: auto;
  }
  
  .qr-card {
    padding: 1.5rem;
  }
  
  .qr-code-wrapper {
    width: 180px;
    height: 180px;
  }
}

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.site-footer p {
  margin: 1rem 0;
}

.site-footer a {
  margin: 1rem 0;
  display: inline-block;
}

.footer-logo {
  width: 80px;
  margin-bottom: 0.5rem;
}

/* Footer two-column layout */
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-top .footer-tagline { margin: 0; }
.footer-bottom { text-align: center; }
.footer-bottom .btn-outline { margin-top: 0.5rem; }
.copyright { margin-top: 0.5rem; font-size: 0.9rem; opacity: 0.85; }

@media (min-width: 769px) {
  /* On larger screens we still align items horizontally but keep top above bottom visually */
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-logo { width: 80px; }
}

/* Responsive */
@media (max-width: 768px) {
  /* make header occupy flow on small screens to avoid content overlap */
  .site-header { position: sticky; top: 0; }
  .lang-switcher { height: auto; }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .nav {
    flex-direction: column;
    gap: 1rem;
  }

  /* On small screens stack the header container so logo and nav don't squeeze */
    /* Keep header items in a row on mobile for proper alignment */
    .site-header .container {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
    }
  .hero-buttons {
    flex-direction: column;
  }
  .hero-benefits {
    flex-direction: column;
  }

  /* show hamburger, hide nav until opened */
  .menu-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; }
  /* checkbox-based toggle: when nav-toggle is checked, show the nav overlay */
  .nav-toggle:checked + .menu-toggle + .nav { display: flex; }
  .nav-toggle:checked + .menu-toggle + .nav { flex-direction: column; gap: 0.75rem; position: absolute; left: 0; right: 0; top: 100%; background: rgba(255,255,255,0.98); padding: 1rem 1.25rem; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
  .site-header .logo { width: auto; }
  .site-header .logo img { width: 40px; }
  
  .features h2, .how-it-works h2, .cta h2 {
    font-size: 2rem;
  }
  
  .feature-cards {
    grid-template-columns: 1fr;
  }
  
  .steps article::after {
    display: none;
  }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
  .feature-cards .card,
  .steps article,
  .hero-benefits > div {
    border: 2px solid currentColor;
  }
}

/* Print styles */
@media print {
  .site-header,
  .hero-bg,
  .cta {
    display: none;
  }
  
  body {
    background: #fff;
  }
}

