/**
 * Bandicam.io – Design system
 * Professional screen & game recorder site – typography, spacing, components
 */

:root {
  /* Brand */
  --color-primary: #b91c1c;
  --color-primary-hover: #991b1b;
  --color-primary-light: #fef2f2;
  --color-accent: #047857;

  /* Neutrals */
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;

  /* Layout */
  --container-max: 72rem;
  --section-padding-y: 5rem;
  --section-padding-y-sm: 3.5rem;

  /* Surfaces */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
  --shadow-card-hover: 0 25px 50px -12px rgb(0 0 0 / 0.15);
}

/* Base */
body {
  font-family: 'Source Sans 3', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus for accessibility */
.focus-ring:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Section label (uppercase small) */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-slate-500);
}

/* ----- Header ----- */
.site-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-slate-200);
  box-shadow: var(--shadow-sm);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-slate-600);
  border-radius: var(--radius-md);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--color-primary);
  background: var(--color-slate-50);
}

.nav-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.nav-more {
  position: relative;
}

.nav-link-more {
  cursor: default;
}

.nav-link-more::after {
  content: '';
  display: inline-block;
  margin-left: 0.25rem;
  border: 4px solid transparent;
  border-top-color: currentColor;
  vertical-align: 0.2em;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 11rem;
  margin-top: 0.25rem;
  padding: 0.5rem 0;
  background: #fff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 50;
}

.nav-more:hover .nav-dropdown,
.nav-more:focus-within .nav-dropdown {
  display: block;
}

/* Language dropdown (reuses nav-more / nav-dropdown) */
.nav-lang .nav-link-more::after {
  margin-left: 0.2rem;
  vertical-align: 0.15em;
}
.nav-lang .nav-dropdown {
  right: 0;
  left: auto;
  min-width: 10rem;
}
details.nav-lang-mobile summary {
  list-style: none;
  cursor: pointer;
}
details.nav-lang-mobile summary::-webkit-details-marker {
  display: none;
}
details.nav-lang-mobile[open] summary::after {
  transform: rotate(180deg);
}
details.nav-lang-mobile summary::after {
  content: '';
  display: inline-block;
  margin-left: 0.25rem;
  border: 4px solid transparent;
  border-top-color: currentColor;
  vertical-align: 0.2em;
  transition: transform 0.2s ease;
}

.nav-dropdown-link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-slate-700);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-dropdown-link:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(185, 28, 28, 0.3);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.35);
}

.nav-cta:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.mobile-nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-slate-600);
  border-radius: var(--radius-md);
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--color-primary);
  background: var(--color-slate-50);
}

/* ----- Hero ----- */
.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-slides {
  min-height: 420px;
}

@media (min-width: 768px) {
  .hero-slides {
    min-height: 520px;
  }
}

@media (min-width: 1024px) {
  .hero-slides {
    min-height: 56vh;
    max-height: 640px;
  }
}

.hero-slide .hero-content {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-control {
  transition: background 0.2s ease, transform 0.15s ease;
}

.hero-control:hover {
  transform: scale(1.05);
}

/* Carousel dots */
.hero-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero-dot.is-active {
  background: #fff;
  transform: scale(1.25);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
}

/* ----- Stats / value cards ----- */
.stat-card {
  background: #fff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(185, 28, 28, 0.25);
  transform: translateY(-2px);
}

.stat-card .stat-value {
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ----- Feature / content cards ----- */
.card-hover {
  background: #fff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.card-hover:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(185, 28, 28, 0.2);
  transform: translateY(-3px);
}

.card-hover .card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ----- Trust strip ----- */
.trust-strip {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.trust-strip .trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #e2e8f0;
  font-size: 0.9375rem;
  font-weight: 500;
}

.trust-strip .trust-item svg {
  flex-shrink: 0;
  color: #86efac;
}

/* ----- CTA block ----- */
.cta-block {
  background: linear-gradient(180deg, var(--color-slate-50) 0%, #fff 100%);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px 0 rgba(185, 28, 28, 0.35);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 6px 20px 0 rgba(185, 28, 28, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-secondary:hover {
  background: #065f46;
  transform: translateY(-1px);
}

/* ----- Quick links box ----- */
.quick-links-box {
  background: #fff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

/* ----- Footer ----- */
.site-footer {
  background: var(--color-slate-50);
  border-top: 1px solid var(--color-slate-200);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .site-footer {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

.site-footer .grid {
  align-items: start;
}

.site-footer .footer-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-slate-500);
  margin-bottom: 0.75rem;
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
  width: fit-content;
}

.site-footer .grid > div > p {
  margin-top: 0;
  color: var(--color-slate-600);
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 20rem;
}

.site-footer .grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Pages column: 2-column grid so links don’t stack in one long column */
.site-footer .grid > div:nth-child(2) ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1.5rem;
  column-gap: 1.5rem;
  row-gap: 0.25rem;
}

.site-footer .grid li {
  margin-bottom: 0.5rem;
}

.site-footer .grid > div:nth-child(2) li {
  margin-bottom: 0.25rem;
}

.site-footer .grid li a {
  color: var(--color-slate-600);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  padding: 0.125rem 0;
  font-size: 0.875rem;
}

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

/* Footer bottom bar (copyright + sitemap) */
.site-footer .footer-bottom,
.site-footer > div > div:last-child {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-slate-200);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-slate-500);
  line-height: 1.65;
}

.site-footer .footer-bottom p,
.site-footer > div > div:last-child p {
  margin: 0;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.site-footer .footer-bottom a,
.site-footer > div > div:last-child a {
  color: var(--color-slate-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer .footer-bottom a:hover,
.site-footer > div > div:last-child a:hover {
  color: var(--color-primary);
}

/* ----- Page sections spacing ----- */
.section-spacing {
  padding-top: var(--section-padding-y-sm);
  padding-bottom: var(--section-padding-y-sm);
}

@media (min-width: 640px) {
  .section-spacing {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
  }
}

/* ----- Content typography ----- */
.heading-display {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--color-slate-900);
}

/* Hero: force white text so it’s not overridden */
.hero-content .heading-display,
.hero-content h1,
.hero-content h2 {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.hero-content p {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.heading-section {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-slate-900);
}

.prose-custom p {
  color: var(--color-slate-700);
  line-height: 1.65;
}

.prose-custom a {
  color: var(--color-primary);
  font-weight: 500;
}

.prose-custom a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* ----- Divider ----- */
.section-divider {
  border-top: 1px solid var(--color-slate-200);
  border-bottom: 1px solid var(--color-slate-200);
}

/* ----- Badges / pills ----- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.badge-neutral {
  background: var(--color-slate-100);
  color: var(--color-slate-700);
}

/* ----- Highlight panels ----- */
.panel {
  background: #fff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.panel-muted {
  background: var(--color-slate-50);
}

/* ----- Media cards ----- */
.media-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-slate-200);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

@media (min-width: 768px) {
  .media-card {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 380px;
  }
}

.media-card .media-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.25rem;
}

@media (min-width: 640px) {
  .media-card .media-card-content {
    padding: 2rem 1.75rem;
  }
}

@media (min-width: 768px) {
  .media-card .media-card-content {
    padding: 2.5rem 2rem;
    max-width: 36rem;
  }
}

@media (min-width: 1024px) {
  .media-card .media-card-content {
    padding: 3rem 2.5rem;
  }
}

.media-card .media-card-image {
  position: relative;
  min-height: 240px;
  background: var(--color-slate-100);
}

@media (min-width: 768px) {
  .media-card .media-card-image {
    min-height: 380px;
  }
}

.media-card .media-card-image img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: center top;
}

@media (min-width: 768px) {
  .media-card .media-card-image img {
    position: absolute;
    inset: 0;
    min-height: 0;
  }
}

/* ----- Feature cards with image ----- */
.feature-card-img {
  display: block;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-slate-200);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.feature-card-img:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(185, 28, 28, 0.2);
  transform: translateY(-3px);
}

.feature-card-img .feature-card-img-wrap {
  aspect-ratio: 16 / 10;
  background: var(--color-slate-100);
  overflow: hidden;
}

.feature-card-img .feature-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.feature-card-img .feature-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

@media (min-width: 640px) {
  .feature-card-img .feature-card-body {
    padding: 1.5rem 1.5rem 1.75rem;
  }
}

/* ----- Section image block (e.g. workflow) ----- */
.section-img-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-slate-200);
  background: var(--color-slate-50);
}

.section-img-block img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ----- Timeline ----- */
.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.35rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-slate-200);
}

.timeline-item {
  position: relative;
  padding: 0.25rem 0 1.5rem;
  padding-left: 1.25rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: calc(0.35rem - 0.375rem);
  top: 0.4rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

/* ----- Logo wall ----- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .logo-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.625rem;
  }
}

.logo-tile {
  background: #fff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.75rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--color-slate-700);
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.logo-tile:hover {
  border-color: var(--color-slate-300);
  box-shadow: var(--shadow-sm);
}

/* ----- Testimonial ----- */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}

.testimonial-quote {
  color: var(--color-slate-700);
  line-height: 1.7;
}

.testimonial-meta {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-slate-600);
}

.testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--color-slate-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-slate-700);
}

/* ----- Stat tiles ----- */
.stat-tile {
  background: #fff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stat-tile .value {
  font-weight: 700;
  color: var(--color-slate-900);
  font-size: 1.125rem;
}

/* ----- Info list ----- */
.info-list {
  display: grid;
  gap: 0.75rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-slate-700);
}

.info-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ----- Split callout ----- */
.split-callout {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .split-callout {
    grid-template-columns: 1.2fr 1fr;
    padding: 2rem;
  }
}

/* Resource links (e.g. in split-callout) */
.resource-link {
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

/* ----- Compact table ----- */
.table-compact {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table-compact th,
.table-compact td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-slate-200);
  text-align: left;
}

.table-compact thead th {
  color: var(--color-slate-900);
  font-weight: 600;
  background: var(--color-slate-50);
}

.table-compact thead tr:first-child th:first-child {
  border-radius: var(--radius-md) 0 0 0;
}

.table-compact thead tr:first-child th:last-child {
  border-radius: 0 var(--radius-md) 0 0;
}
