:root {
  --c-primary: #0EA5E9;
  --c-primary-dark: #0284C7;
  --c-secondary: #22C55E;
  --c-secondary-dark: #16A34A;
  --c-bg: #FFFFFF;
  --c-text: #0B1220;
  --c-muted: #374151;
  --c-surface: #F3F4F6;
  --c-border: #E5E7EB;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #0B1220;
    --c-text: #F3F4F6;
    --c-muted: #9CA3AF;
    --c-surface: #111827;
    --c-border: #1F2937;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--c-primary-dark);
}

a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
  animation: slideDown 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  .header {
    background: rgba(11, 18, 32, 0.95);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo-text {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #0EA5E9 0%, #22C55E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 80px 0 100px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.hero h1 {
  font-size: 48px;
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.6s ease;
}

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

.hero p {
  color: var(--c-muted);
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.1s backwards;
}

.hero > div > div:first-of-type {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
  background: linear-gradient(135deg, var(--c-secondary) 0%, var(--c-secondary-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Badges */
.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  animation: fadeInUp 0.6s ease 0.3s backwards;
}

.badge {
  background: var(--c-surface);
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero SVG */
.hero figure {
  margin: 0;
  animation: fadeInRight 0.8s ease;
}

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

.hero svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(var(--shadow-lg));
}

/* Sections */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--c-border);
}

.section h2 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Grid */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

/* Cards */
.card {
  background: var(--c-surface);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-secondary) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-text);
}

.card p {
  margin: 0;
  color: var(--c-muted);
  line-height: 1.6;
}

.card strong {
  display: block;
  font-size: 24px;
  color: var(--c-primary);
  margin-bottom: 8px;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--c-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--c-bg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  color: var(--c-text);
  transition: background 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q::after {
  content: '+';
  font-size: 24px;
  color: var(--c-primary);
  transition: transform 0.3s ease;
}

.faq-q[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-q:hover {
  background: rgba(14, 165, 233, 0.05);
}

.faq-a {
  padding: 0 20px 20px;
  display: none;
  color: var(--c-text);
  line-height: 1.7;
  animation: fadeIn 0.3s ease;
  opacity: 0.85;
}

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

/* Form */
.input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: inherit;
}

select {
  cursor: pointer;
}

select option {
  background: var(--c-bg);
  color: var(--c-text);
  padding: 10px;
}

.input:focus, select:focus, textarea:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

label {
  font-weight: 600;
  display: block;
  margin: 16px 0 8px;
  color: var(--c-text);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Footer */
.footer {
  padding: 40px 0;
  color: var(--c-muted);
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
}

.footer a {
  color: var(--c-muted);
  transition: color 0.2s ease;
}

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

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-top: 16px;
  font-weight: 500;
  animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
}

.alert-error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.small {
  font-size: 14px;
  color: var(--c-muted);
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-menu .list {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-menu .list a {
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu .list a:not(.btn):hover {
  color: var(--c-primary);
}

/* Cookie Bar */
#cookieBar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  animation: slideInUp 0.5s ease;
  max-width: 600px;
}

#cookieBar .card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-xl);
}

/* Brands Carousel */
.brands-carousel {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.brands-track {
  display: flex;
  gap: 60px;
  animation: scroll 30s linear infinite;
  width: fit-content;
}

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

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.brand-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 80px;
  padding: 16px;
  background: var(--c-surface);
  border-radius: 12px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.brand-item:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-md);
}

.brand-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: filter 0.3s ease;
}

.brand-item:hover img {
  filter: grayscale(0%) opacity(1);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 0 80px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero figure {
    order: -1;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .row {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section h2 {
    font-size: 28px;
  }
  
  .nav {
    flex-direction: column;
    gap: 16px;
    padding: 12px 0;
  }
  
  .nav-menu .list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  
  .nav-menu .list a:not(.btn) {
    font-size: 14px;
  }
  
  .nav-menu .list .btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .logo img {
    width: 44px;
    height: 44px;
  }
  
  .logo-text {
    font-size: 24px;
  }
  
  #cookieBar {
    left: 16px;
    right: 16px;
    transform: none;
    max-width: none;
  }
  
  #cookieBar .card {
    flex-direction: column;
  }
  
  .brands-track {
    gap: 40px;
  }
  
  .brand-item {
    width: 100px;
    height: 60px;
    padding: 12px;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
