/* Hero-specific overrides */
.display-heading {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

/* Hero */
#hero {
  text-align: center;
  padding: 5rem 2rem 2rem;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-photo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.12);
  margin-bottom: 2rem;
}

.hero-accent {
  color: var(--color-accent);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.05);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: heroBadgePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes heroBadgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-subtitle {
  font-size: 1rem;
  opacity: 0.5;
  margin-bottom: 2.5rem;
  letter-spacing: 0.5px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.social-link:hover {
  transform: translateY(-3px);
}

.social-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-link:hover svg {
  transform: scale(1.12);
}

.social-linkedin {
  background: rgba(0, 119, 181, 0.2);
  border: 1px solid rgba(0, 119, 181, 0.3);
}

.social-linkedin::before {
  background: linear-gradient(135deg, rgba(0, 119, 181, 0.35), rgba(0, 160, 230, 0.2));
}

.social-linkedin:hover {
  border-color: rgba(0, 160, 230, 0.45);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(0, 119, 181, 0.15);
}

.social-linkedin:hover::before {
  opacity: 1;
}

/* Marquee ticker */
.marquee {
  overflow: hidden;
  padding: 1.25rem 0;
  white-space: nowrap;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-bg), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-bg), transparent);
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  animation: marquee 22s linear infinite;
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
  color: rgba(255, 255, 255, 0.35);
}

.marquee-track span {
  transition: color 0.4s ease;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  opacity: 0.5;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Stats bar */
#stats {
  padding: 2.5rem 2rem;
  position: relative;
}

#stats::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
  background: linear-gradient(160deg, rgba(30, 30, 30, 0.5) 0%, rgba(14, 14, 14, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2rem 1rem;
  position: relative;
}

.stat-item {
  text-align: center;
  flex: 1;
  padding: 0.75rem 1rem;
  position: relative;
}

.stat-item:hover .stat-number {
  text-shadow: 0 0 24px rgba(16, 185, 129, 0.3);
}

.stat-number {
  display: block;
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--color-accent);
  transition: text-shadow 0.4s ease;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.35;
  margin-top: 0.4rem;
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  flex-shrink: 0;
}

/* Products */
#products {
  text-align: center;
  padding: 3rem 2rem;
}

#products .section-heading {
  margin-bottom: 2.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(16, 185, 129, 0.06) 0%, transparent 60%),
    linear-gradient(160deg, rgba(35, 35, 35, 0.7) 0%, rgba(14, 14, 14, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 2.25rem 2rem 2rem;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  text-align: left;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.15), transparent 40%, transparent 60%, rgba(16, 185, 129, 0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.product-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(16, 185, 129, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

.product-card:hover::after {
  opacity: 1;
}

.product-card:hover .product-icon {
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.2), 0 0 8px rgba(16, 185, 129, 0.1);
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.3);
}

.product-card:hover .product-cta svg {
  transform: translateX(4px);
}

.product-card:hover h3 {
  color: #fff;
}

.product-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 14px;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-icon--soon {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: #777;
}

.product-card:hover .product-icon--soon {
  background: rgba(16, 185, 129, 0.07);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--color-accent-light);
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 1.1rem;
  width: fit-content;
}

.badge--live {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.badge--soon {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
}

.soon-dot {
  width: 6px;
  height: 6px;
  background: #888;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(136, 136, 136, 0.4);
}

.product-card h3 {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.product-card p {
  font-size: 0.88rem;
  opacity: 0.55;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  width: 100%;
  transition: color 0.3s ease;
}

.product-cta svg {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-cta--soon {
  color: #777;
}

.product-card--soon {
  opacity: 0.7;
}

.product-card--soon::after {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
}

.product-card--soon:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.product-card--soon:hover .product-cta--soon {
  color: var(--color-accent-light);
}

/* Client logo strip */
#clients {
  padding: 2rem 2rem;
  text-align: center;
}

.clients-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #666;
  margin-bottom: 1.5rem;
}

.clients-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.3px;
}

.clients-strip span {
  padding: 0 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.3s ease;
}

.clients-strip span:last-child {
  border-right: none;
}

.clients-strip span:hover {
  color: #888;
}

/* Story */
#story {
  padding: 4rem 2rem;
  text-align: center;
}

.story-content {
  max-width: 680px;
  margin: 0 auto;
}

.story-content .section-heading {
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.story-accent {
  color: var(--color-accent);
}

.story-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  opacity: 0.65;
  margin-bottom: 1rem;
}

.story-sub {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.4;
  margin-bottom: 2rem;
  font-style: italic;
}

.story-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.18);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-cta svg {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .story-cta:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.08);
    transform: translateY(-2px);
  }

  .story-cta:hover svg {
    transform: translateX(3px);
  }
}

/* Footer */
footer {
  padding: 3rem 2rem 2rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--color-text-heading);
}

.footer-brand p {
  font-size: 0.85rem;
  opacity: 0.35;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  color: #777;
  transition: color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-social a:hover {
  color: var(--color-accent);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-hire {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.footer-hire:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.08);
}

.footer-copy {
  font-size: 0.7rem;
  opacity: 0.25;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  #hero {
    padding: 4.5rem 1.5rem 2.5rem;
  }

  .hero-photo {
    width: 100px;
    height: 100px;
  }

  .social-link {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
  }

  #products,
  #story {
    padding: 3.5rem 1.5rem;
  }

  #stats {
    padding: 3rem 1rem;
  }

  .stat-divider {
    display: none;
  }

  .stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .stat-item {
    padding: 0.75rem 0.5rem;
  }
}

/* =====================================================
   LIGHT MODE — home
   ===================================================== */

html[data-theme="light"] .marquee {
  border-top-color: rgba(0, 0, 0, 0.05);
  border-bottom-color: rgba(0, 0, 0, 0.05);
}
html[data-theme="light"] .marquee-track { color: rgba(0, 0, 0, 0.2); }
html[data-theme="light"] .marquee:hover .marquee-track { color: rgba(0, 0, 0, 0.4); }

html[data-theme="light"] .stats-bar {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.8) 0%, rgba(245, 244, 240, 0.9) 100%);
  border-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .social-linkedin {
  background: rgba(0, 119, 181, 0.08);
  border-color: rgba(0, 119, 181, 0.18);
}

html[data-theme="light"] .product-card {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(16, 185, 129, 0.04) 0%, transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 247, 244, 0.98) 100%);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
html[data-theme="light"] .product-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 0 40px rgba(16, 185, 129, 0.04);
  border-color: rgba(16, 185, 129, 0.2);
}
html[data-theme="light"] .product-card--soon:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
}
html[data-theme="light"] .product-icon {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.14);
}
html[data-theme="light"] .product-icon--soon {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.07);
  color: #aaa;
}

html[data-theme="light"] .clients-strip span {
  color: #ccc;
  border-right-color: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .clients-strip span:hover { color: #999; }

/* Prevent hardcoded #fff hover text from appearing on light backgrounds */
html[data-theme="light"] .product-card:hover h3 { color: var(--color-text-heading); }
html[data-theme="light"] .product-card:hover .product-cta { color: var(--color-accent); }

html[data-theme="light"] .hero-badge {
  background: rgba(5, 150, 105, 0.06);
  border-color: rgba(5, 150, 105, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge-dot { animation: none; }
  .story-cta { transition: none; }
}
