/**
 * COZQ - COMPLETELY NEW WEBSITE DESIGN
 * Fresh, Bold, Unique - Built from Scratch
 */

/* ==========================================
   CUSTOM FONTS
   ========================================== */

@font-face {
  font-family: 'OTSono';
  src: url('../fonts/OTSono.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================
   DESIGN TOKENS - BRAND NEW SYSTEM
   ========================================== */

:root {

  --primary: #ffffff;
  --primary-dark: #75aa1b;
  --primary-light: #beff50;
  --secondary: #1A1A2E;
  --accent: #000000;
  
  /* Neutrals */
  --white: #FFFFFF;
  --black: #0F0F0F;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Typography - OTSono for Everything */
  --font-heading: 'OTSono', sans-serif;
  --font-body: 'OTSono', sans-serif;
  
  /* Fluid Type Scale */
  --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --fs-sm: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
  --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.375rem);
  --fs-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.75rem);
  --fs-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 2.25rem);
  --fs-3xl: clamp(2rem, 1.7rem + 1.5vw, 3rem);
  --fs-4xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  --fs-5xl: clamp(3rem, 2.25rem + 3.75vw, 5.5rem);
  --fs-6xl: clamp(3.75rem, 2.75rem + 5vw, 7rem);
  
  /* Spacing - 8px base */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 2.5rem;
  --s-6: 3rem;
  --s-8: 4rem;
  --s-10: 5rem;
  --s-12: 6rem;
  --s-16: 8rem;
  --s-20: 10rem;
  
  /* Borders */
  --br-sm: 8px;
  --br-md: 16px;
  --br-lg: 24px;
  --br-xl: 32px;
  --br-full: 9999px;
  
  /* Shadows - Dramatic */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
  --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.24);
  
  /* Transitions */
  --ease-1: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-2: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-3: cubic-bezier(0.87, 0, 0.13, 1);
}

/* ==========================================
   RESET & BASE
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ==========================================
   LAYOUT
   ========================================== */

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--s-3);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--s-4);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--s-6);
  }
}

/* ==========================================
   HEADER - SPLIT DESIGN
   ========================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 3px solid var(--black);
  transition: transform 0.3s var(--ease-1);
}

.site-header.hide {
  transform: translateY(-100%);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: var(--s-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-xl);
  color: var(--black);
  position: relative;
}

.brand::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-1);
}

.brand:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.logo {
  height: 70px;
  width: auto;
}

.logo-menu {
  height: 40px;
  width: auto;
}

.mobile-nav-toggle {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  background: var(--black);
  color: var(--white);
  border: 3px solid var(--black);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s var(--ease-2);
}

.mobile-nav-toggle:hover {
  background: var(--accent);
  border-color: var(--primary-light);
}

.mobile-nav-toggle:active {
  transform: scale(0.95);
}

/* ==========================================
   MOBILE MENU - SLIDE IN
   ========================================== */

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 500px;
  background: var(--black);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-3);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
}

.mobile-nav--open {
  transform: translateX(0);
}

.mobile-nav__header {
  padding: var(--s-4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-close {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: var(--fs-3xl);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-2);
}

.mobile-nav-close:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: rotate(90deg);
}

.mobile-nav__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-8) var(--s-4);
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.menu-link {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-4xl);
  color: var(--primary-light);
  display: inline-block;
  position: relative;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.3s var(--ease-1);
}

.mobile-nav--open .menu-link {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav--open .menu-list li:nth-child(1) .menu-link { transition-delay: 0.1s; }
.mobile-nav--open .menu-list li:nth-child(2) .menu-link { transition-delay: 0.15s; }
.mobile-nav--open .menu-list li:nth-child(3) .menu-link { transition-delay: 0.2s; }
.mobile-nav--open .menu-list li:nth-child(4) .menu-link { transition-delay: 0.25s; }

.menu-link::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 4px;
  background: var(--primary);
  transition: width 0.3s var(--ease-1);
}

.menu-link:hover {
  color: var(--primary);
  transform: translateX(10px);
}

.menu-link:hover::before {
  width: 12px;
}

.mobile-nav__footer {
  padding: var(--s-4);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  color: var(--gray-400);
  font-size: var(--fs-sm);
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-1);
  backdrop-filter: blur(4px);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */

.site-main {
  margin-top: 80px;
}

/* ==========================================
   HERO - BOLD & ASYMMETRIC
   ========================================== */

.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: var(--s-10) 0;
  background: #beff50;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0.08;
  border-radius: 50%;
  filter: blur(80px);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--s-8);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--s-4);
  animation: slideDown 0.6s var(--ease-1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title {
  font-size: var(--fs-6xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--s-4);
  animation: slideUp 0.6s var(--ease-1) 0.1s both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title .highlight {
  position: relative;
  display: inline-block;
  color: var(--primary);
}

.hero__title .highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 115px;
  background: var(--accent);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 0.8s var(--ease-1) 0.5s forwards;
}

@keyframes underline {
  to { transform: scaleX(1); }
}

.hero__description {
  font-size: var(--fs-xl);
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: var(--s-6);
  animation: slideUp 0.6s var(--ease-1) 0.2s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  animation: slideUp 0.6s var(--ease-1) 0.3s both;
}

.hero__image {
  position: relative;
  animation: slideUp 0.6s var(--ease-1) 0.4s both;
}

.hero__image-wrapper {
  position: relative;
  border-radius: var(--br-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 4px solid var(--black);
  transform: rotate(2deg);
  transition: transform 0.3s var(--ease-1);
  aspect-ratio: 4/3;
  min-height: 400px;
}

.hero__image-wrapper:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero__image-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-image-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.8s ease-in-out;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-8);
}

.stat {
  text-align: center;
  padding: var(--s-4);
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: var(--br-md);
  transition: all 0.3s var(--ease-2);
}

.stat:hover {
  transform: translateY(-8px) rotate(-2deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.stat__value {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: 800;
  color: var(--black);
  line-height: 1;
  margin-bottom: var(--s-1);
}

.stat__label {
  font-size: var(--fs-sm);
  color: var(--gray-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-base);
  border-radius: var(--br-full);
  transition: all 0.3s var(--ease-2);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-1);
  z-index: -1;
  text-decoration: none;
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--black);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn-secondary {
  background: var(--white);
  color: var(--black);
  border-color: var(--black);
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn-accent {
  background: var(--white);
  color: var(--black);
  border-color: var(--black);
  text-decoration: none;
}

.btn-accent:hover {
  background: var(--black);
  color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

/* ==========================================
   SECTIONS
   ========================================== */

.section {
  padding: var(--s-16) 0;
  position: relative;
}

.section--dark {
  background: var(--primary-light);
  color: var(--black);
}

.section--dark h2,
.section--dark h3 {
  color: var(--black);
}

.section--gray {
  background: var(--gray-50);
}

.section__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--s-10);
}

.section__badge {
  display: inline-block;
  padding: var(--s-1) var(--s-3);
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--s-3);
}

.section__title {
  font-size: var(--fs-5xl);
  font-weight: 800;
  margin-bottom: var(--s-4);
}

.section__title .highlight {
  color: var(--black);
  position: relative;
}

.section__description {
  font-size: var(--fs-lg);
  color: var(--black);
  line-height: 1.7;
}

.section--dark .section__description {
  color: var(--black);
}

/* ==========================================
   CARDS
   ========================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-4);
}

.card {
  padding: var(--s-6);
  background: var(--primary-light);
  border: 3px solid var(--black);
  border-radius: var(--br-lg);
  transition: all 0.3s var(--ease-2);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-1);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: var(--shadow-xl);
}

.card__icon {
  height: 64px;
  color: var(--white);
  border-radius: var(--br-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-3xl);
  margin-bottom: var(--s-4);
}

.card__title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin-bottom: var(--s-2);
}

.card__description {
  color: var(--gray-600);
  line-height: 1.7;
}

/* Home – Software section */
.home-software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s-6);
}

.home-software-card {
  padding: 0;
  overflow: hidden;
  background: var(--white);
  border: 3px solid var(--black);
}

.home-software-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.home-software-card__image-wrap {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--gray-100);
  overflow: hidden;
}

.home-software-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease-1);
}

.home-software-card:hover .home-software-card__image {
  transform: scale(1.05);
}

.home-software-card__badges {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  right: var(--s-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
}

.home-software-card__badge {
  padding: var(--s-1) var(--s-2);
  background: var(--black);
  color: var(--white);
  border-radius: var(--br-full);
  font-weight: 700;
  font-size: var(--fs-xs);
}

.home-software-card__title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin: var(--s-4) var(--s-4) var(--s-2);
  color: var(--black);
}

.home-software-card__tagline {
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0 var(--s-4) var(--s-2);
  font-size: var(--fs-base);
}

.home-software-card__price {
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 var(--s-4) var(--s-3);
  font-size: var(--fs-sm);
}

.home-software-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 var(--s-4) var(--s-4);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: var(--fs-base);
}

@media (max-width: 768px) {
  .home-software-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
  background: var(--black);
  color: var(--white);
  padding: var(--s-12) 0 var(--s-4);
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-8);
  margin-bottom: var(--s-8);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: var(--s-3);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.footer-col a {
  color: var(--gray-400);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-text {
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 400px;
}

.footer-bottom {
  padding-top: var(--s-4);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--gray-500);
  font-size: var(--fs-sm);
}

.footer-bottom p {
  margin-bottom: var(--s-2);
}

.footer-bottom p:last-child {
  margin-bottom: 0;
}

.footer-legal a {
  color: var(--gray-400);
  text-decoration: underline;
}

.footer-legal a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: Show content if JS doesn't load */
.no-js .reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Show content immediately if animations are disabled */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================
   LIGHTBOX
   ========================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-1);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.lightbox__content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  padding: var(--s-4);
  transform: scale(0.9);
  transition: transform 0.3s var(--ease-2);
}

.lightbox.is-open .lightbox__content {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--black);
  color: var(--black);
  font-size: var(--fs-3xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-2);
  z-index: 3;
}

.lightbox__close:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: rotate(90deg);
}

.lightbox__image {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  border: 4px solid var(--white);
  border-radius: var(--br-lg);
  box-shadow: var(--shadow-2xl);
}

.lightbox__caption {
  margin-top: var(--s-3);
  text-align: center;
  color: var(--white);
  font-size: var(--fs-lg);
  font-weight: 600;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* ==========================================
   RESPONSIVE DESIGN - TABLET & BELOW
   ========================================== */

@media (max-width: 1024px) {
  /* Hero Section */
  .hero {
    padding-top: 120px;
    padding-bottom: var(--s-10);
  }
  
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }
  
  .hero__image {
    order: -1;
  }
  
  .hero__title {
    font-size: var(--fs-6xl);
  }
  
  .hero__description {
    font-size: var(--fs-lg);
  }
  
  /* Sections */
  .section {
    padding: var(--s-12) 0;
  }
  
  .section__title {
    font-size: var(--fs-4xl);
  }
  
  /* Grids */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-5);
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-5);
  }
  
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-5);
  }
  
  /* Contact Page */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }
  
  .contact-info-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Showcase Page */
  .showcase-filters {
    flex-wrap: wrap;
    gap: var(--s-3);
  }
  
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  
  /* About Page */
  .approach-grid {
    grid-template-columns: 1fr;
  }
  
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6);
  }

  .hero__title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 95px;
    background: var(--accent);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    animation: underline 0.8s var(--ease-1) 0.5s forwards;
}
}

/* ==========================================
   RESPONSIVE DESIGN - MOBILE
   ========================================== */

@media (max-width: 768px) {
  /* Base */
  .container {
    padding-left: var(--s-4);
    padding-right: var(--s-4);
  }
  
  /* Header */
  .site-header {
    padding: var(--s-2) var(--s-4);
  }
  
  .site-logo {
    height: 28px;
  }

  .logo {
    height: 40px;
    width: auto;
}
  
  /* Hero Section */
  .hero {
    padding-top: 100px;
    padding-bottom: var(--s-8);
  }
  
  .hero__title {
    font-size: var(--fs-4xl);
    margin-bottom: var(--s-4);
  }
  
  .hero__description {
    font-size: var(--fs-base);
    margin-bottom: var(--s-6);
  }
  
  .hero__actions {
    flex-direction: column;
    gap: var(--s-3);
    width: 100%;
  }
  
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero__image-wrapper {
    min-height: 300px;
  }
  
  /* Sections */
  .section {
    padding: var(--s-10) 0;
  }
  
  .section__title {
    font-size: var(--fs-3xl);
    margin-bottom: var(--s-3);
  }
  
  .section__description {
    font-size: var(--fs-base);
  }
  
  .section__badge {
    font-size: var(--fs-xs);
    padding: var(--s-1) var(--s-2);
  }
  
  /* Stats */
  .stats-row {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
  
  .stat-card {
    padding: var(--s-5);
  }
  
  .stat-card__number {
    font-size: var(--fs-4xl);
  }
  
  /* Cards & Grids */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
  
  .card {
    padding: var(--s-5);
  }
  
  .card__title {
    font-size: var(--fs-xl);
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }
  
  /* Buttons */
  .btn {
    padding: var(--s-3) var(--s-5);
    font-size: var(--fs-sm);
    border: 3px solid transparent;
  }
  
  /* Contact Page */
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info-cards {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
  
  .contact-card {
    padding: var(--s-5);
  }
  
  /* Showcase Page */
  .showcase-filters {
    gap: var(--s-2);
  }
  
  .filter-btn {
    padding: var(--s-2) var(--s-4);
    font-size: var(--fs-sm);
  }
  
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  
  /* Showcase Detail */
  .showcase-detail-hero {
    padding: var(--s-10) 0;
  }
  
  .showcase-detail-title {
    font-size: var(--fs-3xl);
  }
  
  .showcase-detail-grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  
  .showcase-detail-sidebar {
    position: static;
  }
  
  .showcase-detail-gallery {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
  
  .related-projects-grid {
    grid-template-columns: 1fr;
  }
  
  /* About Page */
  .approach-grid {
    grid-template-columns: 1fr;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  
  .footer-col h3 {
    font-size: var(--fs-xl);
  }
  
  /* Mobile Menu */
  .mobile-nav {
    width: 100%;
    max-width: 100%;
  }
  
  .menu-link {
    font-size: var(--fs-3xl);
  }

  .hero__title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--accent);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    animation: underline 0.8s var(--ease-1) 0.5s forwards;
  }
}


/* ==========================================
   RESPONSIVE DESIGN - SMALL MOBILE
   ========================================== */

@media (max-width: 480px) {
  /* Hero */
  .hero__title {
    font-size: var(--fs-3xl);
  }
  
  .hero__image-wrapper {
    min-height: 250px;
  }
  
  /* Sections */
  .section {
    padding: var(--s-8) 0;
  }
  
  .section__title {
    font-size: var(--fs-2xl);
  }
  
  /* Stats */
  .stat-card__number {
    font-size: var(--fs-3xl);
  }
  
  .stat-card__label {
    font-size: var(--fs-sm);
  }
  
  /* Mobile Menu */
  .menu-link {
    font-size: var(--fs-2xl);
  }
  
  /* Showcase Detail */
  .showcase-detail-title {
    font-size: var(--fs-2xl);
  }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.bg-primary { background: var(--primary); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ==========================================
   COOKIE CONSENT BANNER – UK/EU
   ========================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: var(--s-4);
  background: var(--black);
  color: var(--white);
  border-top: 3px solid var(--primary-light);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-3);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner--dismissed {
  display: none !important;
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.cookie-banner__content {
  flex: 1 1 280px;
}

.cookie-banner__title {
  font-size: var(--fs-lg);
  font-weight: 800;
  margin-bottom: var(--s-2);
  color: var(--white);
}

.cookie-banner__text {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--gray-300);
  margin: 0;
}

.cookie-banner__text a {
  color: var(--primary-light);
  font-weight: 700;
  text-decoration: underline;
}

.cookie-banner__text a:hover {
  text-decoration: none;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: var(--s-2) var(--s-4);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  border-radius: var(--br-sm);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}

.cookie-banner__btn--reject {
  background: transparent;
  color: var(--gray-300);
  border-color: var(--gray-500);
}

.cookie-banner__btn--reject:hover {
  background: var(--gray-800);
  color: var(--white);
  border-color: var(--gray-400);
}

.cookie-banner__btn--accept {
  background: var(--primary-light);
  color: var(--black);
  border-color: var(--primary-light);
}

.cookie-banner__btn--accept:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-banner__actions {
    justify-content: center;
  }
}

/* ==========================================
   SOFTWARE DIRECTORY – Filters & Grid
   ========================================== */

.software-directory-section {
  padding: var(--s-2) 0;
}

.software-directory-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Filter form – minimal chip design */
.software-filters {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--br-sm);
  padding: var(--s-3);
  margin-bottom: var(--s-4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.software-filters__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--gray-100);
}

.software-filters__title {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--black);
  margin: 0;
}

.software-filters__count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-left: auto;
}

.software-filters__clear {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.software-filters__clear:hover {
  background: var(--primary-light);
  color: var(--black);
}

.software-filters__groups {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-4);
  align-items: flex-start;
}

.software-filters__group {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}

.software-filters__legend {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.375rem;
  padding: 0;
}

.software-filters__hint {
  font-weight: 500;
  color: var(--gray-400);
  text-transform: none;
}

.software-filters__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.software-filters__options--audience {
  gap: 0.25rem;
}

.software-filters__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.software-filters__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--br-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.software-filters__chip:hover {
  border-color: var(--gray-400);
  background: var(--gray-200);
}

/* Selected: :has() so multiple chips can be on at once */
.software-filters__chip:has(.software-filters__input:checked),
.software-filters__chip--on {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.software-filters__chip:has(.software-filters__input:checked):hover,
.software-filters__chip--on:hover {
  background: var(--gray-800);
  border-color: var(--gray-800);
}

.software-filters__chip-label {
  pointer-events: none;
}

.software-filters__empty {
  font-size: 0.7rem;
  color: var(--gray-500);
}

.software-filters__actions {
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px solid var(--gray-100);
}

.software-filters__submit {
  min-width: 0;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

/* Results count & empty state */
.software-results-count {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: var(--s-3);
}

.software-empty {
  text-align: center;
  padding: var(--s-6) var(--s-4);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--br-sm);
}

.software-empty__icon {
  font-size: var(--fs-5xl);
  display: block;
  margin-bottom: var(--s-4);
}

.software-empty__title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  margin-bottom: var(--s-3);
  color: var(--black);
}

.software-empty__text {
  color: var(--gray-600);
  margin-bottom: var(--s-6);
  font-size: var(--fs-lg);
}

/* Software directory – stacked list */
.software-stack {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}


.software-stack__item:last-child {
  border-bottom: none;
}

.software-stack__link {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-4) var(--s-3);
  border-radius: var(--br-md);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.software-stack__link:hover {
  background: var(--primary-light);
  box-shadow: 0 4px 16px rgba(190, 255, 80, 0.25);
}

.software-stack__media {
  position: relative;
  border-radius: var(--br-md);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--gray-100);
}

.software-stack__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease-1);
}

.software-stack__link:hover .software-stack__image {
  transform: scale(1.03);
}

.software-stack__badges {
  position: absolute;
  top: var(--s-2);
  left: var(--s-2);
  right: var(--s-2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.software-stack__badge {
  padding: 0.2rem 0.5rem;
  background: var(--black);
  color: var(--white);
  border-radius: var(--br-full);
  font-weight: 700;
  font-size: 0.7rem;
}

.software-stack__body {
  min-width: 0;
}

.software-stack__title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin-bottom: var(--s-1);
  color: var(--black);
}

.software-stack__tagline {
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: var(--s-2);
  font-size: var(--fs-base);
}

.software-stack__price {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--s-3);
  font-size: var(--fs-sm);
}

.software-stack__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--black);
  color: var(--white);
  border-radius: var(--br-sm);
  padding: 0.5em 1.2em;
  font-weight: 700;
  font-size: 0.9375rem;
  font-family: inherit;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background 0.2s;
}

.software-stack__link:hover .software-stack__btn {
  background: var(--gray-800);
}

@media (max-width: 768px) {
  .software-stack__link {
    grid-template-columns: 1fr;
    gap: var(--s-3);
    padding: var(--s-4) 0;
  }
  .software-stack__media {
    order: -1;
    max-width: 100%;
  }
  .software-filters__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .software-filters__count {
    margin-left: 0;
  }
}

/* ==========================================
   SOFTWARE DETAIL PAGE
   ========================================== */

/* Hero - full-width with optional cover image and overlay */
.software-detail-hero {
  position: relative;
  padding: var(--s-10) 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.software-detail-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, #e8f5c4 50%, var(--gray-100) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.software-detail-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.92) 55%, rgba(255,255,255,0.75) 100%);
  pointer-events: none;
}

.software-detail-hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.software-detail-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  align-items: center;
}

@media (min-width: 900px) {
  .software-detail-hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--s-10);
    min-height: 0;
  }
}

.software-detail-hero__content {
  max-width: 640px;
}

.software-detail-hero__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.software-detail-hero__image-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: var(--br-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 4px solid var(--black);
  transform: rotate(-1deg);
  transition: transform 0.3s var(--ease-1);
}

.software-detail-hero__image-wrap:hover {
  transform: rotate(0deg) scale(1.02);
}

.software-detail-hero__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/10;
}

.software-detail-hero__actions {
  margin-top: var(--s-4);
}

.software-detail-breadcrumb {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  margin-bottom: var(--s-3);
}

.software-detail-breadcrumb a {
  color: var(--gray-600);
  font-weight: 600;
  text-decoration: none;
}

.software-detail-breadcrumb a:hover {
  color: var(--black);
  text-decoration: underline;
}

.software-detail-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

.software-detail-badge {
  display: inline-block;
  padding: var(--s-1) var(--s-3);
  background: var(--black);
  color: var(--white);
  border-radius: var(--br-full);
  font-weight: 700;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.software-detail-title {
  font-size: var(--fs-5xl);
  font-weight: 800;
  color: var(--black);
  margin-bottom: var(--s-3);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.software-detail-tagline {
  font-size: var(--fs-xl);
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--s-2);
}

.software-detail-value {
  font-size: var(--fs-lg);
  color: var(--gray-700);
  font-weight: 600;
  margin-bottom: var(--s-3);
}

.software-detail-price {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: var(--s-4);
}

.software-detail-alert {
  padding: var(--s-3);
  background: var(--gray-100);
  border: 2px solid var(--black);
  border-radius: var(--br-sm);
  font-weight: 600;
  margin-bottom: var(--s-4);
}

/* Checkout referral step (minimal page before Stripe) */
.checkout-referral-page {
  min-height: 100vh;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
}
.checkout-referral {
  width: 100%;
  max-width: 420px;
}
.checkout-referral__card {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: var(--br-md);
  padding: var(--s-5);
  box-shadow: 6px 6px 0 var(--black);
}
.checkout-referral__back {
  display: inline-block;
  font-size: var(--fs-xs);
  color: var(--gray-600);
  text-decoration: none;
  margin-bottom: var(--s-4);
}
.checkout-referral__back:hover {
  color: var(--black);
  text-decoration: underline;
}
.checkout-referral__title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  margin: 0 0 var(--s-2);
  color: var(--black);
}
.checkout-referral__question {
  font-size: var(--fs-base);
  color: var(--gray-700);
  margin: 0 0 var(--s-4);
}
.checkout-referral__buttons {
  display: flex;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.checkout-referral__btn {
  flex: 1;
  padding: var(--s-2) var(--s-3);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  border: 2px solid var(--black);
  border-radius: var(--br-sm);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
.checkout-referral__btn:hover {
  background: var(--gray-100);
}
.checkout-referral__btn[aria-pressed="true"] {
  background: var(--black);
  color: var(--white);
}
.checkout-referral__btn--no:not([aria-pressed="true"]):hover,
.checkout-referral__btn--yes[aria-pressed="true"] {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}
.checkout-referral__detail-wrap {
  margin-bottom: var(--s-3);
}
.checkout-referral__label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--s-1);
  color: var(--gray-800);
}
.checkout-referral__input {
  width: 100%;
  padding: var(--s-2) var(--s-3);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  border: 2px solid var(--gray-300);
  border-radius: var(--br-sm);
  box-sizing: border-box;
}
.checkout-referral__input:focus {
  outline: none;
  border-color: var(--black);
}
.checkout-referral__submit-wrap {
  margin-top: var(--s-3);
}
.checkout-referral__submit {
  width: 100%;
  padding: var(--s-2) var(--s-4);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  background: var(--primary-dark);
  color: var(--white);
  border: 2px solid var(--primary-dark);
  border-radius: var(--br-sm);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.checkout-referral__submit:hover {
  background: var(--black);
  border-color: var(--black);
}

.checkout-referral__submit--full {
  margin-top: var(--s-3);
}

.checkout-referral__card--affiliate {
  text-align: center;
}
.checkout-referral__affiliate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--s-4);
  width: 100%;
}
.checkout-referral__affiliate-logo {
  margin-bottom: var(--s-4);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.checkout-referral__affiliate-logo img {
  display: block;
  max-height: 160px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}
.checkout-referral__affiliate-message {
  font-size: var(--fs-lg);
  color: var(--gray-800);
  margin: 0;
  max-width: 100%;
}
.checkout-referral__card--affiliate .checkout-referral__form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.checkout-referral__card--affiliate .checkout-referral__submit {
  width: 100%;
}

.software-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* Section blocks */
.software-detail-section {
  padding: var(--s-8) 0;
}

.software-detail-section__title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--black);
  margin-bottom: var(--s-5);
  text-align: center;
}

.software-detail-section__title--center {
  text-align: center;
}

/* Alternating section background – subtle colour on every other section */
.software-detail-section--tint {
  background: linear-gradient(180deg, rgb(190 255 80) 0%, rgb(190 255 80) 100%);
}

.software-detail-content-box {
  max-width: 900px;
  margin: 0 auto;
}

.software-detail-prose {
  color: var(--gray-700);
  line-height: 1.8;
  font-size: var(--fs-lg);
}

.software-detail-prose p {
  margin-bottom: var(--s-3);
}

.software-detail-prose p:last-child {
  margin-bottom: 0;
}

/* Gallery / Screenshots */
.software-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-4);
  list-style: none;
}

.software-detail-gallery__item {
  border-radius: var(--br-md);
  overflow: hidden;
  border: 3px solid var(--black);
  background: var(--gray-100);
  aspect-ratio: 16/10;
}

.software-detail-gallery__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.software-detail-gallery__link:hover {
  opacity: 0.92;
}

.software-detail-gallery__link:focus {
  outline: 3px solid var(--primary-dark);
  outline-offset: 2px;
}

.software-detail-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Features – refined card grid with clear hierarchy */
.software-detail-features-section .software-detail-section__title {
  margin-bottom: var(--s-6);
}

.software-detail-features {
  max-width: 1000px;
  margin: 0 auto;
  min-width: 0;
}

.software-detail-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-4);
  min-width: 0;
}

.software-detail-features-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  color: var(--gray-800);
  line-height: 1.55;
  background: var(--white);
  border-radius: var(--br-lg);
  font-weight: 500;
  font-size: var(--fs-base);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-100);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  min-width: 0;
  overflow-wrap: break-word;
}

.software-detail-features-list li:hover {
  border-color: rgba(117, 170, 27, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.software-detail-features-check {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #5a8616 100%);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: bold;
  line-height: 1;
  margin-top: 0.15em;
  box-shadow: 0 2px 6px rgba(117, 170, 27, 0.35);
}

.software-detail-features-check::before {
  content: "✓";
}

.software-detail-features-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Audience chips – centered */
.software-detail-audience {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
}

.software-detail-audience__chip {
  padding: var(--s-2) var(--s-4);
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: var(--br-md);
  font-weight: 700;
  font-size: var(--fs-base);
}

/* Demos – inviting card layout */
.software-detail-demos-section {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.software-detail-demos-lead {
  text-align: center;
  font-size: var(--fs-lg);
  color: var(--gray-600);
  margin-bottom: var(--s-6);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.software-detail-demos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-4);
  margin: 0 auto;
}

.software-detail-demo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: var(--br-lg);
  text-decoration: none;
  color: var(--black);
  font-weight: 700;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.software-detail-demo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  background: var(--primary-light);
  border-color: var(--primary-dark);
}

.software-detail-demo-card__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
}

.software-detail-demo-card__label {
  font-size: var(--fs-lg);
}

.software-detail-demo-card__type {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Pricing */
/* Pricing – centered */
.software-detail-pricing-box {
  text-align: center;
}

.software-detail-pricing-lead {
  font-size: var(--fs-lg);
  color: var(--gray-700);
  margin-bottom: var(--s-4);
}

.software-detail-pricing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
}

/* Licensing – centered, refined badges */
.software-detail-licensing-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.software-detail-licensing {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
}

.software-detail-licensing-badge {
  padding: var(--s-2) var(--s-4);
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: var(--br-full);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 0 var(--black);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.software-detail-licensing-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--black);
}

/* Integrations – very large logo, refined card design */
.software-detail-integrations {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-6);
  margin: 0;
  padding: 0;
}

.software-detail-integration {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--s-6);
  background: var(--white);
  border-radius: var(--br-lg);
  min-width: 200px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.software-detail-integration:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.software-detail-integration__logo-wrap {
  width: 176px;
  height: 176px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
  flex-shrink: 0;
  background: var(--gray-50);
  border-radius: var(--br-md);
  padding: var(--s-4);
}

.software-detail-integration__logo {
  width: 176px;
  height: 176px;
  object-fit: contain;
}

.software-detail-integration__logo-placeholder {
  width: 176px;
  height: 176px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--br-sm);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--gray-400);
}

.software-detail-integration__name {
  font-weight: 600;
  font-size: var(--fs-xs);
  color: var(--gray-600);
  line-height: 1.35;
  max-width: 160px;
}

/* Changelog */
.software-detail-changelog {
  padding: var(--s-8) 0;
}

.software-detail-changelog-tabs {
  display: flex;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 0;
}

.software-detail-changelog-tab {
  padding: var(--s-2) var(--s-4);
  font-size: var(--fs-base);
  font-weight: 700;
  font-family: var(--font-body);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  color: var(--gray-500);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.software-detail-changelog-tab:hover {
  color: var(--gray-700);
}

.software-detail-changelog-tab--active {
  color: var(--black);
  border-bottom-color: var(--black);
}

.software-detail-changelog-panel--hidden {
  display: none !important;
}

.software-detail-changelog-empty {
  color: var(--gray-500);
  font-size: var(--fs-base);
}

.software-detail-changelog-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 640px;
}

.software-detail-changelog-entry {
  padding: var(--s-4) 0;
  border-bottom: 2px solid var(--gray-200);
}

.software-detail-changelog-entry:last-child {
  border-bottom: none;
}

.software-detail-changelog-entry__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}

.software-detail-changelog-version {
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--black);
}

.software-detail-changelog-date {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  font-weight: 500;
}

.software-detail-changelog-roadmap-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-dark);
}

.software-detail-changelog-notes {
  font-size: var(--fs-base);
  color: var(--gray-700);
  line-height: 1.7;
}

/* Changelog release notes as bullet list – check and text aligned with flex */
.software-detail-changelog-notes-list {
  list-style: none;
  padding: 0;
  margin: var(--s-2) 0 0;
}

.software-detail-changelog-notes-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  padding: var(--s-1) 0;
  color: var(--gray-700);
  line-height: 1.6;
  font-size: var(--fs-base);
}


.software-detail-changelog-notes-list .software-detail-features-check {
  position: relative;
  top: 0;
  left: 0;
  transform: none;
  flex-shrink: 0;
  margin-top: 0.2em;
}

.software-detail-changelog-note-line {
  flex: 1;
  min-width: 0;
}

.software-detail-changelog-notes br {
  display: block;
  content: "";
  margin-top: 0.25em;
}

/* Reviews */
.software-detail-reviews {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-6);
  max-width: 800px;
}

.software-detail-review {
  padding: var(--s-6);
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: var(--br-lg);
}

.software-detail-review__stars {
  margin-bottom: var(--s-2);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.software-detail-review__star {
  color: var(--gray-300);
}

.software-detail-review__star--on {
  color: var(--primary-dark);
}

.software-detail-review__quote {
  font-size: var(--fs-lg);
  color: var(--gray-800);
  margin: 0 0 var(--s-3);
  line-height: 1.6;
}

.software-detail-review__cite {
  font-style: normal;
  font-weight: 700;
  color: var(--gray-600);
}

/* CTA */
.software-detail-cta {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .software-detail-hero {
    padding: var(--s-6) 0;
    min-height: 0;
  }
  .software-detail-hero__overlay {
    background: linear-gradient(to bottom, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.95) 100%);
  }
  .software-detail-hero__media {
    order: -1;
  }
  .software-detail-hero__image-wrap {
    max-width: 100%;
    transform: none;
  }
  .software-detail-gallery {
    grid-template-columns: 1fr;
  }
  .software-detail-title {
    font-size: var(--fs-4xl);
  }
  .software-detail-features-list {
    grid-template-columns: 1fr;
  }
  .software-detail-demo-card {
    min-width: 260px;
  }
}

