/* Sofos Robotics - Reusable Components (Light Theme) */

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

.nav .container,
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 72px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links .nav-link {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
  color: var(--color-navy);
}

.nav-links .nav-link.active {
  font-weight: var(--weight-semibold);
  border-bottom: 2px solid var(--color-navy);
}

/* Nav CTA buttons — pill style for primary, ghost for secondary */
.nav-links .btn-primary.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
  color: var(--color-surface);
  background: var(--color-green);
  border: none;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  text-decoration: none;
  text-transform: none;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
  min-height: unset;
}

.nav-links .btn-primary.btn-sm:hover {
  background: var(--color-green-dark);
  color: var(--color-surface);
  box-shadow: 0 4px 16px rgba(26, 140, 48, 0.3);
  transform: none;
}

.nav-links .btn-primary.btn-sm:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 3px;
}

.nav-links .btn-secondary.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--color-navy);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-full);
  cursor: pointer;
  text-decoration: none;
  text-transform: none;
  transition: border-color var(--transition-fast), color var(--transition-fast);
  min-height: unset;
}

.nav-links .btn-secondary.btn-sm:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
  background: transparent;
  transform: none;
  box-shadow: none;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--space-md) var(--space-lg);
    gap: var(--space-md);
    z-index: var(--z-sticky);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}

/* Nav dropdowns */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-sm) 0;
  padding-top: calc(var(--space-sm) + 8px);
  margin-top: 0;
  list-style: none;
  z-index: var(--z-dropdown);
  /* visibility fade instead of display:none so we get a close delay */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility 0s linear 150ms;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility 0s linear 0ms;
}
.nav-dropdown-menu li a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: 13px;
  font-weight: var(--weight-normal);
  color: var(--color-text-body);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-dropdown-menu li a:hover { color: var(--color-navy); background: var(--color-bg); }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-primary);
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  border-radius: var(--border-radius-full);
  transition: background var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
}

/* Sizes */
.btn-lg {
  padding: 14px 32px;
  font-size: 15px;
}

.btn,
.btn-md {
  padding: 11px 24px;
  font-size: 13px;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 12px;
}

/* Primary — green fill */
.btn-primary {
  background: var(--color-green);
  color: var(--color-surface);
  border-color: var(--color-green);
}

.btn-primary:hover {
  background: var(--color-green-dark);
  border-color: var(--color-green-dark);
  color: var(--color-surface);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 3px;
}

.btn-primary:active {
  transform: translateY(1px);
}

/* Secondary — navy outline */
.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-secondary:hover {
  background: var(--color-navy);
  color: var(--color-surface);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 3px;
}

.btn-secondary:active {
  transform: translateY(1px);
}

/* Ghost — green outline */
.btn-ghost {
  background: transparent;
  color: var(--color-green);
  border-color: var(--color-green);
}

.btn-ghost:hover {
  background: var(--color-green);
  color: var(--color-surface);
}

.btn-ghost:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 3px;
}

.btn-ghost:active {
  transform: translateY(1px);
}

/* ============================================
   FORM INPUTS
   ============================================ */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-primary);
  font-size: 16px; /* Prevents iOS zoom on focus */
  color: var(--text-primary);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-base);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: var(--border-hover);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-faint);
  background: var(--white);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234A4A4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  background-size: 18px;
  padding-right: var(--space-3xl);
}

.form-select option {
  background: var(--white);
  color: var(--text-primary);
}

/* Form error state */
.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-error {
  color: #dc2626;
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
}

/* Inline field validation error state */
.form-input.field-error,
.form-textarea.field-error,
.form-select.field-error,
.quiz-form-input.field-error,
.quiz-form-textarea.field-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.field-error-message {
  display: block;
  color: #dc2626;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* ============================================
   BADGES & TAGS
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 1rem;
  padding: var(--space-xs, 0.25rem) var(--space-md, 1rem);
  font-size: 0.75rem;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 500;
  font-weight: var(--weight-medium, 500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  border-radius: var(--border-radius-full, 9999px);
  background: rgba(0, 47, 93, 0.1);
  background: var(--primary-faint, rgba(0, 47, 93, 0.1));
  color: #002f5d;
  color: var(--primary, #002f5d);
  border: 1px solid rgba(0, 47, 93, 0.1);
  border: 1px solid var(--primary-faint, rgba(0, 47, 93, 0.1));
}

.tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border-radius: var(--border-radius-sm);
}

/* ============================================
   DIVIDERS
   ============================================ */

.divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border-color),
    transparent
  );
  margin: var(--space-3xl) 0;
}

.divider-accent {
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent),
    transparent
  );
}

/* ============================================
   IMAGE & MEDIA
   ============================================ */

.img-responsive {
  width: 100%;
  height: auto;
  display: block;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-rounded {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Aspect ratio containers */
.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

/* ============================================
   LOADING STATES
   ============================================ */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-100) 0%,
    var(--gray-200) 50%,
    var(--gray-100) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--border-radius-md);
  will-change: background-position;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  will-change: transform;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   ICONS
   ============================================ */

.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }

/* ============================================
   TOOLTIP
   ============================================ */

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-xs);
  color: var(--white);
  background: var(--dark);
  border-radius: var(--border-radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  z-index: var(--z-dropdown);
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--color-surface);
  border-radius: var(--border-radius-card);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card-title {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}

.card-body {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--color-text-body);
  line-height: var(--leading-relaxed);
}

/* Feature card (icon + title + body) */
.feature-card {
  background: var(--color-surface);
  border-radius: var(--border-radius-card);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.feature-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.feature-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-md);
  background: rgba(26, 140, 48, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 22px;
}

.feature-card h3,
.feature-card .card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}

.feature-card p,
.feature-card .card-body {
  font-size: var(--text-sm);
  color: var(--color-text-body);
  line-height: var(--leading-relaxed);
}

/* Card grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* ============================================
   CASE STUDY CARD
   ============================================ */

.case-study-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.case-study-card:hover {
  border-color: var(--primary-faint);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.case-study-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  will-change: transform;
}

/* Image zoom on card hover - uses will-change for GPU acceleration */
.case-study-card:hover .case-study-image img {
  transform: scale(1.05);
}

.case-study-content {
  padding: var(--space-xl);
}

.case-study-industry {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.case-study-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.case-study-excerpt {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ============================================
   SERVICE/PRODUCT CARD
   ============================================ */

.service-card {
  padding: var(--space-2xl);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--accent)
  );
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  border-color: var(--primary-faint);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-faint);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--space-xl);
  color: var(--primary);
  font-size: 28px;
}

.service-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.service-description {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.service-link svg {
  transition: transform var(--transition-fast);
}

.service-link:hover svg {
  transform: translateX(4px);
}

/* ============================================
   TEAM CARD
   ============================================ */

.team-card {
  text-align: center;
}

.team-image {
  width: 200px;
  height: 200px;
  margin: 0 auto var(--space-lg);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border-color);
  transition: all var(--transition-base);
}

@media (max-width: 640px) {
  .team-image {
    width: 140px;
    height: 140px;
  }
}

.team-card:hover .team-image {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.team-role {
  font-size: var(--text-sm);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   QUOTE/TESTIMONIAL
   ============================================ */

.testimonial {
  padding: var(--space-2xl);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: var(--space-lg);
  left: var(--space-xl);
  font-size: 80px;
  font-family: Georgia, serif;
  color: var(--primary-faint);
  line-height: 1;
}

.testimonial-text {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  padding-left: var(--space-2xl);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-author-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
}

.testimonial-author-name {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.testimonial-author-company {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ============================================
   FEATURE LIST
   ============================================ */

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ============================================
   PRICING/SPEC TABLE
   ============================================ */

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.spec-table th {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.spec-table td {
  color: var(--text-secondary);
}

.spec-table tr:hover td {
  background: var(--bg-secondary);
}

/* ============================================
   FLIP CARDS (Applications Page)
   ============================================ */

.flip-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

@media (max-width: 1024px) {
  .flip-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .flip-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (max-width: 400px) {
  .flip-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual Flip Card */
.flip-card {
  perspective: 1000px;
  height: 320px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .flip-card {
    height: 220px;
  }
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  will-change: transform;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Jiggle animation on hover */
.flip-card:hover .flip-card-front {
  animation: jiggle 0.4s ease-in-out;
}

@keyframes jiggle {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  20% { transform: translateX(-5px) rotate(-1deg); }
  40% { transform: translateX(5px) rotate(1deg); }
  60% { transform: translateX(-3px) rotate(-0.5deg); }
  80% { transform: translateX(3px) rotate(0.5deg); }
}

/* Front and Back faces */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

/* Front face - white card with icon */
.flip-card-front {
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl);
}

.flip-card-icon {
  font-size: 56px;
  margin-bottom: var(--space-lg);
  line-height: 1;
}

.flip-card-front h3 {
  font-size: var(--text-xl);
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.flip-card-front p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 220px;
}

/* Back face - video/content */
.flip-card-back {
  background: var(--primary);
  transform: rotateY(180deg);
}

.flip-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-card-back-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-card-back-placeholder span {
  color: rgba(255, 255, 255, 0.3);
  font-size: var(--text-sm);
}

.flip-card-back-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 47, 93, 0.95) 0%,
    rgba(0, 47, 93, 0.4) 50%,
    rgba(0, 47, 93, 0.2) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
}

.flip-card-back h3 {
  color: var(--white);
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.flip-card-back p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* Hover shadow effect */
.flip-card:hover {
  filter: drop-shadow(0 10px 30px rgba(0, 47, 93, 0.15));
}

/* ============================================
   BRAND LOGOS STRIP (Home Page)
   ============================================ */

.brands-strip {
  background: var(--bg-secondary);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.brands-strip-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.brands-strip-header p {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.brands-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2xl);
}

.brand-logo {
  height: 32px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all var(--transition-base);
}

.brand-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Brand logo text fallback */
.brand-logo-text {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-base);
}

.brand-logo-text:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .brands-strip-inner {
    gap: var(--space-lg);
  }

  .brand-logo {
    height: 24px;
  }

  .brand-logo-text {
    font-size: var(--text-xs);
  }
}

/* ============================================
   VIDEO SECTION (Home Page)
   ============================================ */

.video-section {
  background: var(--bg-secondary);
  padding: var(--space-section) 0;
}

.video-section .section-header {
  margin-bottom: var(--space-2xl);
}

.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--black);
}

.video-wrapper video,
.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: none;
}

/* Video placeholder for when URL is not yet added */
.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  gap: var(--space-md);
}

.video-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.8;
}

.video-placeholder p {
  font-size: var(--text-sm);
  opacity: 0.7;
}

/* ============================================
   HOW IT WORKS STEPS (Home Page)
   ============================================ */

.steps-section {
  padding: var(--space-section) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
  position: relative;
}

/* Connector line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 2;
}

.step-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 2;
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

.step h4 {
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.step p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }

  .steps-grid::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .step-number,
  .step-icon {
    width: 40px;
    height: 40px;
    font-size: var(--text-base);
    margin-bottom: var(--space-md);
  }

  .step-icon svg {
    width: 20px;
    height: 20px;
  }

  .step h4 {
    font-size: var(--text-base);
  }

  .step p {
    font-size: var(--text-sm);
  }
}

@media (max-width: 400px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   VALUE PROPOSITION CARDS (Home Page)
   ============================================ */

.value-props {
  padding: var(--space-section) 0;
}

.value-props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.value-prop-card {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-base);
}

.value-prop-card:hover {
  border-color: var(--primary-faint);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.value-prop-icon {
  width: 72px;
  height: 72px;
  background: var(--primary-faint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xl);
  color: var(--primary);
}

.value-prop-icon svg {
  width: 32px;
  height: 32px;
}

.value-prop-card h3 {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.value-prop-card p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

@media (max-width: 1024px) {
  .value-props-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .value-props-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .value-prop-card {
    padding: var(--space-lg);
  }

  .value-prop-icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-md);
  }

  .value-prop-icon svg {
    width: 24px;
    height: 24px;
  }

  .value-prop-card h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-sm);
  }

  .value-prop-card p {
    font-size: var(--text-sm);
  }
}

@media (max-width: 640px) {
  .value-prop-card {
    padding: var(--space-md);
  }

  .value-prop-icon {
    width: 48px;
    height: 48px;
  }

  .value-prop-icon svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 400px) {
  .value-props-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ============================================
   APPLICATIONS PREVIEW (Home Page)
   ============================================ */

.apps-preview {
  padding: var(--space-section) 0;
  background: var(--bg-secondary);
}

.apps-preview-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.app-preview-item {
  text-align: center;
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-base);
}

.app-preview-item:hover {
  border-color: var(--primary-faint);
  box-shadow: var(--shadow-md);
}

.app-preview-item svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.app-preview-item span {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.apps-preview-cta {
  text-align: center;
}

@media (max-width: 1024px) {
  .apps-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .apps-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .apps-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .apps-preview-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto var(--space-2xl);
  }
}

/* ============================================
   QUOTE MODAL - Apple-Inspired Design
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 90%;
  max-width: 520px;
  max-height: 92vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  z-index: calc(var(--z-modal) + 1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              visibility 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  will-change: transform, opacity;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: transparent;
}

.modal-header h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0;
  letter-spacing: -0.02em;
}

.modal-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #86868b;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1d1d1f;
  transform: scale(1.05);
}

.modal-close svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.modal-body {
  padding: 1.5rem 1.75rem 1.75rem;
  overflow-y: auto;
  max-height: calc(92vh - 65px);
}

@media (max-width: 480px) {
  .modal-body {
    max-height: calc(85vh - 60px);
    padding: 1.25rem 1rem 1.5rem;
  }
}

/* Sleek scrollbar */
.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* Modern Form Styling */
.modal-form .form-group {
  margin-bottom: 1.125rem;
  position: relative;
}

.modal-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .modal-form .form-row {
    grid-template-columns: 1fr;
  }
}

.modal-form .form-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6e6e73;
  text-transform: none;
  letter-spacing: 0;
  transition: color 0.2s ease;
}

.modal-form .form-group:focus-within .form-label {
  color: var(--primary);
}

.modal-form .form-input,
.modal-form .form-select,
.modal-form .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 16px; /* Prevents iOS zoom on focus */
  font-weight: 400;
  color: #1d1d1f;
  background: rgba(0, 0, 0, 0.03);
  border: 1.5px solid transparent;
  border-radius: 10px;
  min-height: 48px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form .form-input,
.modal-form .form-textarea {
  -webkit-appearance: none;
  appearance: none;
}

.modal-form .form-input::placeholder,
.modal-form .form-textarea::placeholder {
  color: #aeaeb2;
  font-weight: 400;
}

.modal-form .form-input:hover,
.modal-form .form-select:hover,
.modal-form .form-textarea:hover {
  background: rgba(0, 0, 0, 0.05);
}

.modal-form .form-input:focus,
.modal-form .form-select:focus,
.modal-form .form-textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 47, 93, 0.1);
}

.modal-form .form-select {
  /* Use native dropdown arrow for Windows compatibility */
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  appearance: menulist;
  background-color: rgba(0, 0, 0, 0.03);
  padding-right: 1rem;
  cursor: pointer;
}

.modal-form .form-select:focus {
  background-color: #fff;
}

.modal-form .form-select:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Style dropdown options */
.modal-form .form-select option {
  background: #fff;
  color: #1d1d1f;
  padding: 0.5rem;
}

.modal-form .form-textarea {
  min-height: 80px;
  resize: vertical;
}

.modal-form .form-group:last-of-type {
  margin-bottom: 1.5rem;
}

/* Submit Button - Premium Style */
.modal-form .btn {
  width: 100%;
  padding: 0.9375rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--color-cta) 0%, var(--color-cta-hover) 100%);
  color: var(--color-surface);
  box-shadow:
    0 4px 12px rgba(26, 140, 48, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form .btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(26, 140, 48, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.modal-form .btn:active {
  transform: translateY(0);
  box-shadow:
    0 2px 8px rgba(26, 140, 48, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Helper text styling */
.modal-form .form-label span {
  font-weight: 400;
  font-size: 0.75rem;
}

/* Modal success state - Apple Style */
.modal-success {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.modal-success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.modal-success-icon svg {
  width: 36px;
  height: 36px;
  color: #fff;
  stroke-width: 2.5;
}

.modal-success h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.modal-success p {
  color: #6e6e73;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Hide success state by default */
.modal-success {
  display: none;
}

.modal-success.show {
  display: block;
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-form.hidden {
  display: none;
}

/* License type options for trial modal - Apple Style */
.license-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.license-option {
  cursor: pointer;
}

.license-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.license-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  min-height: 56px;
  background: rgba(0, 0, 0, 0.03);
  border: 1.5px solid transparent;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: manipulation;
}

.license-card strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1d1d1f;
}

.license-card span {
  font-size: 0.8125rem;
  color: #6e6e73;
}

.license-option:hover .license-card {
  background: rgba(0, 0, 0, 0.05);
}

.license-option input:checked + .license-card {
  border-color: var(--primary);
  background: rgba(0, 47, 93, 0.06);
  box-shadow: 0 0 0 3px rgba(0, 47, 93, 0.08);
}

.license-option input:checked + .license-card strong {
  color: var(--primary);
}

@media (max-width: 480px) {
  .license-options {
    grid-template-columns: 1fr;
  }
}

/* Trial modal intro text typewriter effect */
.trial-intro {
  min-height: 2.5em;
  line-height: 1.5;
  color: #6e6e73;
  font-size: 0.9375rem;
}

.trial-intro.typing::after {
  content: '|';
  display: inline-block;
  color: var(--primary);
  font-weight: bold;
  animation: blink 0.7s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Modules selection for trial license - Apple Style */
.modules-group {
  display: none;
  margin-top: 0.75rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.modules-group.show {
  display: block;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* slideDown keyframe is defined in styles.css */

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

@media (max-width: 480px) {
  .modules-grid {
    grid-template-columns: 1fr;
  }
}

/* .module-option styles are defined in styles.css */

/* ============================================
   SOLUTION NAVIGATION CARDS
   ============================================ */

.solution-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  gap: var(--space-lg, 1.5rem);
  margin-top: 3rem;
  margin-top: var(--space-2xl, 3rem);
}

.solution-nav-card {
  text-align: center;
  padding: 2rem;
  padding: var(--space-xl, 2rem);
  background: #FFFFFF;
  background: var(--white, #FFFFFF);
  border: 1px solid #E8E8E8;
  border: 1px solid var(--border-color, #E8E8E8);
  border-radius: 16px;
  border-radius: var(--border-radius-lg, 16px);
  cursor: pointer;
  transition: all 0.3s ease;
  transition: all var(--transition-base, 0.3s ease);
  text-decoration: none;
  color: #171717;
  display: block;
}

.solution-nav-card:hover {
  border-color: #002f5d;
  border-color: var(--primary, #002f5d);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, 0.1));
  transform: translateY(-4px);
}

.solution-nav-card svg {
  width: 48px;
  height: 48px;
  color: #002f5d;
  color: var(--primary, #002f5d);
  margin-bottom: 1rem;
  margin-bottom: var(--space-md, 1rem);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.solution-nav-card h3 {
  font-size: 1.125rem;
  font-size: var(--text-lg, 1.125rem);
  margin-bottom: 0.25rem;
  margin-bottom: var(--space-xs, 0.25rem);
  color: #171717;
  color: var(--text-primary, #171717);
}

.solution-nav-card p {
  font-size: 0.875rem;
  font-size: var(--text-sm, 0.875rem);
  color: #6B6B6B;
  color: var(--text-muted, #6B6B6B);
  margin: 0;
}

@media (max-width: 768px) {
  .solution-nav {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   QUIZ STEP 0 - INTEREST SELECTION CARDS
   ============================================ */

.interest-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.interest-card {
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.interest-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.interest-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(0, 47, 93, 0.1) 0%, rgba(0, 47, 93, 0.05) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.interest-card-icon svg {
  width: 28px;
  height: 28px;
}

.interest-card h3 {
  font-size: 1.125rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.interest-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.interest-card-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: 0.375rem;
  font-style: italic;
}

/* Mobile responsive - horizontal card layout */
@media (max-width: 768px) {
  .interest-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .interest-card {
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 1rem;
    min-height: 48px; /* Touch target compliance */
  }

  .interest-card-icon {
    margin: 0;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
  }

  .interest-card-content {
    flex: 1;
  }

  .interest-card h3 {
    margin-bottom: 0.25rem;
  }
}

/* ============================================
   MODULES SHOWCASE GRID
   ============================================ */

.modules-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  gap: var(--space-md, 1rem);
  margin: 2rem 0;
  margin: var(--space-xl, 2rem) 0;
}

.module-showcase-card {
  padding: 1rem;
  padding: var(--space-md, 1rem);
  background: #FAFAFA;
  background: var(--bg-secondary, #FAFAFA);
  border-radius: 8px;
  border-radius: var(--border-radius-md, 8px);
  text-align: center;
  font-size: 0.875rem;
  font-size: var(--text-sm, 0.875rem);
  border: 1px solid #E8E8E8;
  border: 1px solid var(--border-color, #E8E8E8);
  transition: all 0.3s ease;
  transition: all var(--transition-base, 0.3s ease);
}

.module-showcase-card:hover {
  border-color: rgba(0, 47, 93, 0.1);
  border-color: var(--primary-faint, rgba(0, 47, 93, 0.1));
  background: #FFFFFF;
  background: var(--white, #FFFFFF);
}

.module-showcase-card svg {
  width: 24px;
  height: 24px;
  color: #002f5d;
  color: var(--primary, #002f5d);
  margin-bottom: 0.25rem;
  margin-bottom: var(--space-xs, 0.25rem);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.module-showcase-card span {
  display: block;
  color: #171717;
  color: var(--text-primary, #171717);
  font-weight: 500;
}

@media (max-width: 968px) {
  .modules-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .modules-showcase {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (max-width: 400px) {
  .modules-showcase {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   TRAINING & CONSULTING SUB-SECTIONS
   ============================================ */

.service-subsections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  gap: var(--space-xl, 2rem);
  margin: 2rem 0;
  margin: var(--space-xl, 2rem) 0;
}

.service-subsection h4 {
  font-size: 1rem;
  font-size: var(--text-md, 1rem);
  color: #171717;
  color: var(--text-primary, #171717);
  margin-bottom: 1rem;
  margin-bottom: var(--space-md, 1rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--space-sm, 0.5rem);
}

.service-subsection h4 svg {
  width: 20px;
  height: 20px;
  color: #002f5d;
  color: var(--primary, #002f5d);
}

.service-subsection ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-subsection li {
  padding: 0.25rem 0;
  padding: var(--space-xs, 0.25rem) 0;
  color: #4A4A4A;
  color: var(--text-secondary, #4A4A4A);
  font-size: 0.875rem;
  font-size: var(--text-sm, 0.875rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--space-sm, 0.5rem);
}

.service-subsection li::before {
  content: '•';
  color: #002f5d;
  color: var(--primary, #002f5d);
  font-weight: bold;
}

@media (max-width: 640px) {
  .service-subsections {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Hide elements on mobile devices (768px and below) */
.hide-mobile {
  display: block;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
}

/* ========================================
   MOBILE EXPANDABLE SECTIONS
   ======================================== */
/* Use with <details class="mobile-expandable"><summary>Title</summary>Content</details> */

.mobile-expandable {
  /* Desktop: show content, hide toggle behavior */
  display: block;
}

.mobile-expandable > summary {
  display: none; /* Hide summary on desktop */
}

.mobile-expandable > *:not(summary) {
  display: block; /* Show all content on desktop */
}

@media (max-width: 768px) {
  .mobile-expandable {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    margin-top: 1rem;
    overflow: hidden;
  }

  .mobile-expandable > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: rgba(0, 47, 93, 0.04);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #002f5d;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 48px;
  }

  .mobile-expandable > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-expandable > summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: #6b6b6b;
    transition: transform 0.2s ease;
  }

  .mobile-expandable[open] > summary::after {
    content: '−';
  }

  .mobile-expandable[open] > summary {
    border-bottom: 1px solid #e8e8e8;
  }

  .mobile-expandable > *:not(summary) {
    padding: 1rem 1.25rem;
  }
}

/* ============================================
   FOOTER (shared — all pages)
   ============================================ */
.footer {
  padding: 4rem 0 2rem;
  background: var(--color-navy-dark);
  color: var(--color-surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer .logo-text {
  display: inline-block;
  margin-bottom: 1rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.375rem;
}

.footer .logo-sofos {
  color: var(--color-surface);
  font-weight: 800;
}

.footer .logo-robotics {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.footer-heading {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-surface);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-surface);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin: 0;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
