:root {
  --primary: #d32f2f;
  --accent: #0b6ef6;
  --muted: #666;
  --light: #f5f5f5;
  --max: 1200px;
  --transition: all 320ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  color: #333;
  line-height: 1.6;
  background: #fff;
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* Header & Navigation */
header.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

header .container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

header .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  color: #222;
  transition: color 220ms;
  flex: 0 0 auto;
  margin-right: 1.5rem;
}

header .logo img {
  max-height: 42px;
  width: auto;
  display: block;
}

header .logo-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.22;
}

header .logo-copy strong {
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

header .logo-copy span {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #4f4f4f;
}

header .logo:hover {
  color: var(--primary);
}

nav.nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: nowrap;
  align-items: center;
  flex: 1 1 0%;
  min-width: 0;
  overflow-x: auto;
}

nav.nav a {
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}

.language-flags {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-flag {
  width: 38px;
  height: 38px;
  border: 1px solid #d0d0d0;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: border-color 220ms ease, transform 220ms ease;
}

.lang-flag.active,
.lang-flag:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.language-select,
.sound-toggle {
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
  background: #fff;
  color: #333;
  min-width: 5.5rem;
  text-align: center;
}

.sound-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

nav.nav a {
  color: #555;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 220ms;
  position: relative;
  display: inline-block;
}

nav.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 220ms ease;
}

nav.nav a:hover {
  color: var(--primary);
}

nav.nav a:hover::after {
  width: 100%;
}

/* Container */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.28) 100%);
  z-index: 1;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 1s ease, filter 1s ease;
  filter: brightness(0.78);
  z-index: 1;
  pointer-events: none;
}

.hero-slider .slide.current {
  opacity: 1;
  z-index: 3;
  transform: scale(1);
  filter: brightness(1);
}

.slide-copy {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 2.5rem;
  max-width: 42rem;
  padding: 1.5rem 1.5rem 1.2rem;
  background: rgba(0, 0, 0, 0.42);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.slide-copy h2 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  line-height: 1.05;
}

.slide-copy p {
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: 1rem;
  line-height: 1.55;
}

.hero-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2rem;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 0 1.5rem;
  pointer-events: none;
}

.hero-bullets {
  position: absolute;
  left: 50%;
  bottom: 4.5rem;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-bullet {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
  pointer-events: auto;
}

.hero-bullet.active {
  background: #fff;
  transform: scale(1.15);
}

.hero-bullet::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.75rem);
  transform: translateX(-50%) scale(0.9);
  width: 120px;
  height: 72px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  background-image: var(--preview-image);
}

.hero-bullet:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px) scale(1);
}

.hero-nav-btn {
  pointer-events: auto;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.35);
  color: #fff;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hero-nav-btn:hover {
  transform: scale(1.05);
  background: rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.45);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 6rem 1rem;
  text-align: center;
  color: #fff;
  width: 100%;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: 3rem;
  font-weight: 800;
  animation: slideUp 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) both;
  letter-spacing: -1px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  margin: 0 0 2rem;
  max-width: 600px;
  animation: fadeIn 0.9s 0.15s ease both;
  font-weight: 300;
}

.hero .btn {
  animation: slideUp 0.8s 0.3s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: 2px solid var(--primary);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:hover {
  background: #b71c1c;
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(211, 47, 47, 0.3);
}

.btn.secondary {
  background: transparent;
  color: var(--primary);
}

.btn.secondary:hover {
  background: var(--primary);
  color: #fff;
}

.highlights {
  padding: 3rem 1rem;
}

.highlights h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.cta {
  background: var(--accent);
  color: #fff;
  padding: 4rem 1rem;
  margin: 3rem 0;
  text-align: center;
  border-radius: 16px;
}

.cta .btn {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

.cta .btn:hover {
  background: #e3f2fd;
  color: #0b47c7;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
}

.showcase {
  padding: 4rem 1rem;
  background: #fafafa;
}

.showcase h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.showcase-card {
  min-height: 320px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  padding: 1.5rem;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.showcase-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.65));
}

.card-copy {
  position: relative;
  z-index: 1;
}

.card-copy h3 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
}

.card-copy p {
  margin: 0;
  color: rgba(255,255,255,0.9);
}
}

/* Page transition */
.page {
  transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 320ms ease;
}

.page.entering {
  transform: translateX(20px);
  opacity: 0;
}

.page.entered {
  transform: translateX(0);
  opacity: 1;
}

.page.exiting {
  transform: translateX(-20px);
  opacity: 0;
}

/* Cards & Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 2rem;
  transition: var(--transition);
  text-align: center;
  animation: slideUp 0.6s ease both;
  overflow: hidden;
}

.card .card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
  font-weight: 300;
  overflow: hidden;
}

.card .card-image svg {
  width: 80px;
  height: 80px;
  opacity: 0.3;
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}

.card:nth-child(1) .card-image {
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(2) .card-image {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
}

.card:nth-child(3) {
  animation-delay: 0.3s;
}

.card:nth-child(3) .card-image {
  background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.card h2, .card h3 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  color: #222;
}

.card p {
  color: #666;
  margin: 0;
  font-size: 0.95rem;
}

/* Features section */
.features {
  background: var(--light);
  padding: 3rem 1rem;
  margin: 3rem 0;
}

.features .container {
  padding: 3rem 1rem;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin: 0 0 3rem 0;
  color: #222;
  font-weight: 700;
}

/* Product Showcase */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 3rem 0;
}

.product-showcase-image {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  border-radius: 8px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-showcase-image svg {
  width: 200px;
  height: 200px;
  opacity: 0.3;
}

.product-showcase-content h3 {
  font-size: 1.8rem;
  margin-top: 0;
  color: #222;
}

/* Certification & Trust Section */
.certifications {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.cert-badge {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 2rem 1rem;
  transition: var(--transition);
}

.cert-badge:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 16px rgba(211, 47, 47, 0.1);
}

.cert-badge-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cert-badge p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Contact Form */
.contact {
  padding: 3rem 1rem;
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
}

.contact h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

label {
  display: block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: #333;
}

input,
textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 220ms;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
.site-footer {
  background: #222;
  color: #fff;
  border-top: 4px solid var(--primary);
  padding: 2rem 1rem;
  text-align: center;
}

.site-footer small {
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Main page styling */
main.container {
  min-height: 400px;
}

main.container h1 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 2rem;
  font-weight: 700;
}

main.container h2 {
  font-size: 1.5rem;
  color: #333;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

main.container ul {
  list-style: none;
  padding: 0;
}

main.container li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
  color: #666;
}

main.container li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Animations */
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  nav.nav {
    gap: 1rem;
  }
  nav.nav a {
    font-size: 0.9rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .hero {
    padding: 3rem 1rem;
    min-height: 300px;
  }
  header .container {
    flex-direction: column;
    gap: 1rem;
  }
  nav.nav {
    justify-content: center;
  }
}