/* ============================================
   Landing Page — Design System & Styles
   Mobile-First | Dark Premium Theme
   ============================================ */

/* === CSS VARIABLES === */
:root {
  --primary: #6C3CE9;
  --primary-light: #8B5CF6;
  --secondary: #3B82F6;
  --gradient: linear-gradient(135deg, #6C3CE9, #3B82F6);
  --gradient-hover: linear-gradient(135deg, #7C4CF9, #4B92FF);
  --bg: #07070B;
  --bg-alt: #0A0A12;
  --surface: #111119;
  --surface-elevated: #1A1A28;
  --border-subtle: rgba(108, 60, 233, 0.12);
  --border-card: rgba(241, 241, 243, 0.06);
  --text-primary: #F1F1F3;
  --text-secondary: #9494A8;
  --text-muted: #5C5C72;
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.08);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.08);
  --whatsapp: #25D366;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); }

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

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.section__title {
  margin-bottom: 16px;
}

.section__subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 60, 233, 0.3);
}

.btn--primary:hover {
  background: var(--gradient-hover);
  box-shadow: 0 6px 28px rgba(108, 60, 233, 0.45);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.8125rem;
}

.btn--large {
  padding: 18px 36px;
  font-size: 1.0625rem;
  border-radius: var(--radius);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn--outline:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: rgba(108,60,233,0.06);
  transform: translateY(-2px);
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(7, 7, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
  padding: 12px 0;
}

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

.header__logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.header__logo span {
  opacity: 0.6;
  font-weight: 400;
}

/* Nav */
.nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(7,7,11,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav.active { display: flex; }
.nav__link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav__link:hover { color: var(--text-primary); }
.nav__cta { font-size: 1rem; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 201;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* === HERO === */
.hero {
  position: relative;
  padding: 100px 0 0;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(108,60,233,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(59,130,246,0.08) 0%, transparent 60%);
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(108,60,233,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero__badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-light);
  border: 1px solid rgba(108,60,233,0.25);
  background: rgba(108,60,233,0.06);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero__title {
  margin-bottom: 20px;
  max-width: 700px;
}
.hero__subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 32px;
}
.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 40px;
}

/* Trust Strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 48px;
  max-width: 540px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trust-item__value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.trust-item__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Carousel */
.carousel {
  position: relative;
  z-index: 1;
  padding: 0 20px 48px;
  max-width: 1120px;
  margin: 0 auto;
}
.carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding: 4px 0;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: all var(--transition);
}
.carousel__card:hover {
  border-color: var(--border-subtle);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.carousel__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(108,60,233,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  margin-bottom: 12px;
}
.carousel__icon svg { width: 20px; height: 20px; }
.carousel__card h3 {
  font-size: 0.9375rem;
  margin-bottom: 6px;
}
.carousel__card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.carousel__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-card);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel__arrow:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}
.carousel__dots {
  display: flex;
  gap: 6px;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--text-muted);
  opacity: 0.3;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.carousel__dot.active {
  opacity: 1;
  background: var(--primary-light);
  width: 24px;
  border-radius: 4px;
}

/* === AUTHORITY CARDS === */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.cards-grid--4 {
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

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

.card:hover {
  border-color: var(--border-subtle);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

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

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

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 12px;
}

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

.card__stat {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

/* === PROBLEM VS SOLUTION === */
.comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.comparison__side {
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}

.comparison__side--problem {
  background: var(--danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.12);
}

.comparison__side--solution {
  background: var(--success-bg);
  border: 1px solid rgba(16, 185, 129, 0.12);
}

.comparison__side h3 {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
}

.comparison__side--problem h3 {
  color: var(--danger);
}

.comparison__side--solution h3 {
  color: var(--success);
}

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

.comparison__list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.comparison__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.comparison__side--problem .comparison__icon {
  color: var(--danger);
}

.comparison__side--solution .comparison__icon {
  color: var(--success);
}

/* === PORTFOLIO === */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-card:hover {
  border-color: var(--border-subtle);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.project-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-card__type {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(108, 60, 233, 0.2);
  background: rgba(108, 60, 233, 0.06);
}

.project-card__link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  background: rgba(255, 255, 255, 0.04);
}

.project-card__link:hover {
  color: var(--primary-light);
  background: rgba(108, 60, 233, 0.1);
}

.project-card__link svg {
  width: 16px;
  height: 16px;
}

.project-card h3 {
  font-size: 1.125rem;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-card__tag {
  font-size: 0.6875rem;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-weight: 500;
}

/* Case study */
.case-study {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-study__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--success);
}

.case-study__stat {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.case-study p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* === ABOUT === */
.about-card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.about__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 3px solid transparent;
  background-clip: padding-box;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 3px var(--primary), 0 8px 32px rgba(108, 60, 233, 0.2);
}

.about__photo svg {
  width: 40px;
  height: 40px;
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__text {
  max-width: 520px;
}

.about__text p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.about__text p + p {
  margin-top: 16px;
}

.about__text p:last-child {
  color: var(--text-muted);
  font-size: 0.875rem;
}



/* === CTA FINAL === */
.cta-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 100%, rgba(108, 60, 233, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 30% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta__microcopy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 20px;
}

/* === FOOTER === */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-card);
  text-align: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer__link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  transition: all var(--transition);
}

.footer__link:hover {
  color: var(--primary-light);
  background: rgba(108, 60, 233, 0.1);
  transform: translateY(-2px);
}

.footer__link svg {
  width: 18px;
  height: 18px;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer__author {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* === WHATSAPP FLOAT === */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

@keyframes whatsapp-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0);
  }
}

/* === ANIMATIONS === */
.animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.animate[data-delay="1"] { transition-delay: 0.1s; }
.animate[data-delay="2"] { transition-delay: 0.2s; }
.animate[data-delay="3"] { transition-delay: 0.3s; }
.animate[data-delay="4"] { transition-delay: 0.4s; }

/* === DIVIDER === */
.section--alt {
  background: var(--bg-alt);
}

/* === MEDIA QUERIES === */
@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(4, 1fr); }
  .carousel__card { flex: 0 0 240px; }
}

@media (min-width: 768px) {
  .container { padding: 0 32px; }
  .section { padding: 100px 0; }
  .hero__subtitle { font-size: 1.125rem; }
  .comparison { grid-template-columns: 1fr 1fr; gap: 24px; }
  .about-card { flex-direction: row; text-align: left; padding: 48px 40px; gap: 40px; }
  .about__photo { width: 180px; height: 180px; }
  /* Desktop nav */
  .nav {
    display: flex;
    position: static;
    background: none;
    backdrop-filter: none;
    flex-direction: row;
    gap: 28px;
    align-items: center;
  }
  .nav__link { font-size: 0.875rem; }
  .hamburger { display: none; }
  .carousel { padding: 0 32px 60px; }
}

@media (min-width: 1024px) {
  .container { padding: 0 40px; }
  .section { padding: 120px 0; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .card { padding: 36px 28px; }
  .hero { padding: 120px 0 0; }
  .cta-section { padding: 120px 0; }
  .carousel { padding: 0 40px 80px; }
  .carousel__card { flex: 0 0 220px; }
}
