
/* ============================================
   Self-hosted Inter font (variable weight)
   ============================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}

/* ============================================
   Isotrax Design System
   ============================================ */

/* --- Design Tokens --- */
:root {
  --bs-primary: #7C3AED;
  --bs-primary-rgb: 124, 58, 237;

  --primary: #7C3AED;
  --primary-50: #F5F3FF;
  --primary-100: #EDE9FE;
  --primary-200: #DDD6FE;
  --primary-400: #A78BFA;
  --primary-600: #7C3AED;
  --primary-700: #6D28D9;
  --primary-800: #5B21B6;
  --primary-900: #4C1D95;

  --gradient: linear-gradient(135deg, #7C3AED 0%, #6D28D9 50%, #5B21B6 100%);
  --gradient-hero: linear-gradient(135deg, #1a0a2e 0%, #2d1154 30%, #4c1d95 60%, #6D28D9 100%);
  --gradient-cta: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);

  --shadow-sm: 0 1px 3px rgba(124,58,237,0.06);
  --shadow: 0 4px 16px rgba(124,58,237,0.08);
  --shadow-md: 0 8px 30px rgba(124,58,237,0.10);
  --shadow-lg: 0 16px 48px rgba(124,58,237,0.12);
  --shadow-xl: 0 24px 64px rgba(124,58,237,0.16);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  --bs-primary-text-emphasis: #4C1D95;
  --bs-primary-bg-subtle: #F5F3FF;
  --bs-primary-border-subtle: #DDD6FE;
  --bs-link-color: var(--primary);
  --bs-link-hover-color: #6D28D9;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Typography --- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Buttons --- */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--primary-700);
  --bs-btn-hover-border-color: var(--primary-700);
  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--primary-800);
  --bs-btn-active-border-color: var(--primary-800);
  border-radius: var(--radius-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.3);
}

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

.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-active-bg: var(--primary-800);
  --bs-btn-active-border-color: var(--primary-800);
  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.25);
}

.btn-outline-light {
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
}

.btn-outline-light:hover {
  transform: translateY(-1px);
}

.btn-light {
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
}

.btn-light:hover {
  transform: translateY(-1px);
}

.btn-link {
  --bs-btn-color: var(--primary);
  --bs-btn-hover-color: var(--primary-700);
  text-decoration-color: var(--primary);
}

.btn-lg {
  border-radius: var(--radius);
  padding: 0.75rem 2rem;
}

/* --- Navbar --- */
.navbar-isotrax {
  background: var(--gradient-hero) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 1px 6px rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.navbar-isotrax .navbar-brand img {
  transition: var(--transition);
}

.navbar-isotrax .navbar-brand:hover img {
  filter: brightness(1.1);
}

.navbar-isotrax .nav-link {
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar-isotrax .nav-link:hover {
  background: rgba(255,255,255,0.1);
}

/* --- Cards --- */
.card {
  border-radius: var(--radius-md) !important;
  transition: var(--transition);
}

.card.shadow-sm {
  box-shadow: var(--shadow) !important;
}

.card:not(.card-cover):hover {
  box-shadow: var(--shadow-md) !important;
}

.card-cover {
  border-radius: var(--radius-lg) !important;
  transition: var(--transition);
}

.card-cover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl) !important;
}

/* --- Hero sections --- */
.hero-modern {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-modern::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(167,139,250,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-modern > * {
  position: relative;
  z-index: 1;
}

/* --- Hero with truck background --- */
.hero-truck {
  background:
    linear-gradient(135deg, rgba(30,27,75,0.85) 0%, rgba(76,29,149,0.75) 50%, rgba(91,33,182,0.70) 100%),
    url('../img/truck_purple_sunset.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero-truck > * {
  position: relative;
  z-index: 1;
}

/* --- CTA sections --- */
.cta-modern {
  background: var(--gradient-cta);
  position: relative;
  overflow: hidden;
}

.cta-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.04) 0%, transparent 50%);
}

.cta-modern > * {
  position: relative;
  z-index: 1;
}

/* --- FAQ accordion --- */
.accordion-item {
  border-radius: var(--radius) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.accordion-button {
  font-weight: 500;
  border-radius: var(--radius) !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-50);
  color: var(--primary-900);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.accordion-button::after {
  transition: var(--transition);
}

/* --- Forms --- */
.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid #e2e8f0;
  padding: 0.625rem 1rem;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

/* --- Section styling --- */
.section-subtle {
  background: linear-gradient(180deg, #f8f6ff 0%, #f1f5f9 100%);
}

/* --- Icon boxes --- */
.icon-box {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(124,58,237,0.25);
}

/* --- Use case icons --- */
.use-case-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  border-radius: 50%;
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.use-case-icon:hover {
  background: var(--gradient);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.25);
}

/* --- Gradient text --- */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Footer --- */
footer {
  border-top: 1px solid #e2e8f0;
}

footer h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 600;
}

footer a.link-secondary {
  transition: var(--transition);
  font-size: 0.9rem;
}

footer a.link-secondary:hover {
  color: var(--primary) !important;
}

footer li {
  margin-bottom: 0.35rem;
}

/* --- Cookie banner --- */
#cookieConsent {
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* --- Alert variants --- */
.alert-info {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  color: var(--primary-900);
  border-radius: var(--radius);
}

/* --- Utility classes --- */
.note {
  background: var(--primary-50);
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.warning {
  background: #FFF7ED;
  border-left: 4px solid #F59E0B;
  padding: 12px 16px;
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.screenshot {
  margin: 18px 0;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  font-style: italic;
  border-radius: var(--radius);
}

/* --- Smooth page entrance --- */
main {
  animation: fadeIn 0.4s ease-out;
}

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

/* --- Scroll smooth --- */
html {
  scroll-behavior: smooth;
}

/* --- Custom scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-400); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-modern::before,
  .hero-modern::after { display: none; }
  .btn-lg { padding: 0.65rem 1.5rem; }
}
