/* ============================================
   ALEXO DIGITAL — Design System
   Premium dark theme with GSAP/Lenis animations
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #2863BC;
  --primary-light: #4a85d4;
  --primary-glow: rgba(40, 99, 188, 0.3);
  --primary-gradient: linear-gradient(135deg, #2863BC, #4a85d4);

  --bg: #050508;
  --bg-elevated: #0c0c12;
  --bg-card: #111118;
  --bg-card-hover: #16161f;
  --bg-nav: rgba(5, 5, 8, 0.8);

  --text: #ffffff;
  --text-secondary: #8a8a9a;
  --text-tertiary: #5a5a6a;

  --accent: #00d4aa;
  --accent-glow: rgba(0, 212, 170, 0.2);
  --urgency: #ff6b35;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 1000px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px var(--primary-glow);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --max-width: 1200px;
  --max-width-narrow: 800px;
  --section-spacing: clamp(60px, 8vw, 120px);
  --container-padding: clamp(20px, 5vw, 40px);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

img, video, iframe {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 680px;
}

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

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

.text-small {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

section {
  padding: var(--section-spacing) 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--primary);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 var(--container-padding);
  transition: var(--transition-base);
}

.nav--scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav__logo-mark {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  color: white;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav__link {
  position: relative;
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 450;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

/* Services dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__dropdown-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.nav__dropdown:hover .nav__dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-item {
  display: block;
  padding: 10px 14px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav__dropdown-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav__dropdown-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Nav CTA */
.nav__cta {
  margin-left: 8px;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition-base);
}

.nav__hamburger--open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger--open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.nav__mobile--open {
  display: flex;
}

.nav__mobile a {
  font-family: 'Instrument Serif', serif;
  font-size: 2rem;
  color: var(--text);
  opacity: 0;
  transform: translateY(20px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.9375rem;
  font-weight: 550;
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 2px 12px var(--primary-glow);
}

.btn--primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}

.btn--ghost {
  background: transparent;
  color: var(--primary-light);
  padding: 8px 0;
}

.btn--ghost:hover {
  color: var(--text);
}

.btn--ghost svg,
.btn--primary svg,
.btn--secondary svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--large {
  padding: 18px 40px;
  font-size: 1.0625rem;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(40, 99, 188, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-light);
}

.card__title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 10px;
}

.card__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary-light);
  transition: var(--transition-fast);
}

.card__link:hover {
  color: var(--text);
}

.card__link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.card__link:hover svg {
  transform: translateX(4px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__gradient {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: float 20s ease-in-out infinite;
}

.hero__gradient--1 {
  top: -200px;
  right: -100px;
  background: var(--primary);
}

.hero__gradient--2 {
  bottom: -200px;
  left: -100px;
  background: var(--accent);
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 840px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(40, 99, 188, 0.1);
  border: 1px solid rgba(40, 99, 188, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 .word {
  display: inline-block;
  overflow: hidden;
}

.hero h1 .char {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}

/* Metrics bar */
.hero__metrics {
  display: flex;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero__metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__metric-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero__metric-label {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-weight: 450;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.service-card__number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.service-card__features {
  list-style: none;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.service-card__features li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--primary-light);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

/* --- Proof / Case Study --- */
.proof__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.proof__stat {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.proof__stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.proof__stat-label {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.proof__story {
  max-width: 720px;
}

.proof__quote {
  position: relative;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 40px;
}

.proof__quote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 24px;
  font-family: 'Instrument Serif', serif;
  font-size: 4rem;
  color: var(--primary);
  line-height: 1;
}

.proof__quote p {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
}

.proof__quote-author {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-style: normal;
}

/* --- Qualification / Who For --- */
.qual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.qual-col h3 {
  margin-bottom: 24px;
}

.qual-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qual-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.qual-list--yes li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.qual-list--no li::before {
  content: '✗';
  color: var(--urgency);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- FAQ --- */
.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 24px 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  font-weight: 550;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary-light);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item--open .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}

.faq-answer__inner {
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-answer p + p {
  margin-top: 12px;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: var(--section-spacing) 0;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  margin: 0 auto 32px;
  max-width: 560px;
}

.cta__urgency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.cta__urgency-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* --- Footer --- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__text {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--text);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
}

/* --- Dividers --- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .proof__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .qual-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__metrics {
    flex-direction: column;
    gap: 24px;
  }

  .proof__stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* --- Utility --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-24 { gap: 24px; }
