@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #d27218;
  --primary-hover: #d27218;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-color);
  min-height: 100vh;
}

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

header {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  margin-bottom: 40px;
  color: white;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23ffffff10" x="0" y="0" width="100" height="100"/></svg>');
  opacity: 0.1;
  transform: rotate(-5deg) scale(2);
}

h1 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
}

.subtitle {
  font-size: 1.2em;
  opacity: 0.9;
  font-weight: 500;
}

.drivers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
  padding: 20px;
}

.driver-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 420px;
  gap: 20px;
}

.driver-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.driver-card:hover {
  transform: translateY(-5px);
}

.driver-card:hover::before {
  opacity: 1;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  object-position: left;
}

.card-header {
  display: grid;
  gap: 15px;
}

.card-header h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.card-info {
  display: grid;
  gap: 10px;
}

.driver-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.driver-card ul li {
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
}

.driver-card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.download-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
  flex: 1;
  min-width: 100px;
  text-align: center;
}

.download-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px -1px rgba(99, 102, 241, 0.3);
}

.guides-section .download-btn {
  min-width: 150px;
}

.compatibility {
  color: var(--text-secondary);
  font-size: 0.9em;
  margin: 10px 0;
  padding: 8px 12px;
  background-color: #f1f5f9;
  border-radius: 6px;
  display: inline-block;
}

footer {
  margin-top: 80px;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  border-top: 1px solid #e2e8f0;
  background-color: white;
}

.guides-section {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

.guides-section h2 {
  color: var(--text-primary);
  margin-bottom: 30px;
  font-weight: 600;
}

.guides-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  animation: toast-in 0.3s ease forwards;
}

.toast-hide {
  animation: toast-out 0.3s ease forwards;
}

@keyframes toast-in {
  from {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@keyframes toast-out {
  from {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  to {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
}
