/* ============================================================
   AlakAI Studio — main.css
   Dark theme, Apple-style, GSAP-powered
   ============================================================ */

/* ---------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   -------------------------------------------------------------- */
:root {
  --bg:            #0a0a0a;
  --bg-card:       #111111;
  --bg-card-hover: #161616;
  --bg-elevated:   #1a1a1a;
  --border:        rgba(255,255,255,.08);
  --border-hover:  rgba(255,255,255,.16);

  --text:          #ffffff;
  --text-muted:    rgba(255,255,255,.55);
  --text-subtle:   rgba(255,255,255,.35);

  --purple:        #7c3aed;
  --blue:          #2563eb;
  --green:         #10b981;
  --grad:          linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  --grad-text:     linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);

  --radius-sm:     8px;
  --radius:        16px;
  --radius-lg:     24px;
  --radius-xl:     32px;

  --shadow-card:   0 4px 24px rgba(0,0,0,.6);
  --shadow-glow:   0 0 60px rgba(124,58,237,.2);

  --nav-h:         72px;
  --transition:    cubic-bezier(0.4, 0, 0.2, 1);
  --spring:        cubic-bezier(0.34, 1.56, 0.64, 1);

  --container:     1200px;
  --section-py:    clamp(80px, 10vw, 140px);
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI',
               'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }
svg { flex-shrink: 0; }
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------- */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-desc {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-header .section-desc { margin: 0 auto; }

/* ---------------------------------------------------------------
   LAYOUT UTILITIES
   -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* ---------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--transition),
              box-shadow 0.2s var(--transition),
              background 0.2s var(--transition),
              border-color 0.2s var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.06);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124,58,237,.4);
}
.btn--primary:hover {
  box-shadow: 0 8px 32px rgba(124,58,237,.5);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-hover);
}
.btn--outline:hover {
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.04);
}

.btn--secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn--lg { padding: 18px 36px; font-size: 1rem; }
.btn--sm { padding: 10px 20px; font-size: 0.875rem; }
.btn--full { width: 100%; justify-content: center; }

/* Spinner inside button */
.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn--loading .btn-text { display: none; }
.btn--loading .btn-loader { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------
   NAVIGATION
   -------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s var(--transition),
              backdrop-filter 0.3s var(--transition),
              box-shadow 0.3s var(--transition);
}
.site-header.scrolled {
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--grad);
  border-radius: 8px;
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.06); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  background: var(--grad);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { box-shadow: 0 4px 20px rgba(124,58,237,.5); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
  margin-left: auto;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(255,255,255,.06); }
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--transition), opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0;
  background: rgba(10,10,10,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px 24px;
  z-index: 999;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s var(--spring);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link {
  display: block;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.mobile-nav-link:hover { background: rgba(255,255,255,.06); color: var(--text); }
.mobile-cta {
  margin-top: 12px;
  background: var(--grad);
  color: #fff !important;
  text-align: center;
}

/* ---------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  overflow: hidden;
  text-align: center;
}

/* Particle canvas */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Gradient orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.hero__orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}
.hero__orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #2563eb 0%, transparent 70%);
  bottom: -10%;
  left: -5%;
  animation-delay: 2s;
}
.hero__orb--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.15;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  33%       { transform: translateY(-30px) scale(1.05); }
  66%       { transform: translateY(15px) scale(0.97); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border-hover);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
}
.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

.hero__headline {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 28px;
  overflow: hidden;
}
.hero__word {
  display: inline-block;
  /* Words animated by GSAP on load */
}

.hero__subtext {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Hero stats */
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 48px);
  padding: 24px 32px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}
.hero__stat {
  text-align: center;
}
.hero__stat-number {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
  color: var(--text-subtle);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fadeInUp 1s 1.5s both;
}
.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--text-subtle);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--text-subtle);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  80%       { transform: translateY(10px); opacity: 0; }
}

/* ---------------------------------------------------------------
   SERVICES SECTION
   -------------------------------------------------------------- */
.services {
  padding: var(--section-py) 0;
  background: var(--bg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s var(--transition),
              border-color 0.3s,
              box-shadow 0.3s;
  /* GSAP reveals from below */
  opacity: 0;
  transform: translateY(60px);
}
.service-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.service-card:hover {
  transform: translateY(-6px) !important;
  border-color: var(--border-hover);
  box-shadow: 0 24px 48px rgba(0,0,0,.5), var(--shadow-glow);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(124,58,237,.1);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.service-card:hover .service-card__icon {
  background: rgba(124,58,237,.2);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.service-card__features {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-card__features li {
  font-size: 0.82rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
}
.service-card__features li::before {
  content: '✓';
  color: var(--green);
  font-size: 0.75rem;
}

.service-card__cta {
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.service-card:hover .service-card__cta { gap: 8px; }

/* ---------------------------------------------------------------
   SHOWCASE / DEVICE SECTION
   -------------------------------------------------------------- */
.showcase {
  padding: var(--section-py) 0;
  background: var(--bg);
  overflow: hidden;
}

.showcase__sticky-wrapper {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.showcase__text { text-align: center; }

/* Laptop Mockup */
.laptop-scene {
  width: 100%;
  max-width: 720px;
  perspective: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.laptop {
  width: 100%;
  position: relative;
}

.laptop__lid {
  width: 100%;
  background: #1c1c1e;
  border-radius: 14px 14px 0 0;
  padding: 12px;
  transform-origin: bottom center;
  transform: rotateX(var(--lid-angle, 80deg));
  box-shadow: 0 -4px 40px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform 0.1s;
  will-change: transform;
}

.laptop__screen {
  background: #0a0a0a;
  border-radius: 8px;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.laptop__screen-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.laptop__camera {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2a2a2a;
}

.laptop__base {
  background: linear-gradient(180deg, #2a2a2a 0%, #1c1c1e 100%);
  border-radius: 0 0 8px 8px;
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.8);
}
.laptop__keyboard {
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.04) 0px,
    rgba(255,255,255,.04) 3px,
    transparent 3px,
    transparent 6px
  );
  border-radius: 4px;
}
.laptop__hinge {
  height: 4px;
  background: linear-gradient(90deg, #1a1a1a, #2a2a2a, #1a1a1a);
  border-radius: 0 0 4px 4px;
}

/* Project slides */
.project-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s var(--transition);
}
.project-slide.active { opacity: 1; }
.project-slide img { width: 100%; height: 100%; object-fit: cover; }
.project-slide__placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Placeholder UI skeleton */
.placeholder-ui {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}
.placeholder-bar {
  height: 16px;
  background: linear-gradient(90deg, var(--border) 0%, rgba(255,255,255,.06) 50%, var(--border) 100%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: shimmer 1.5s linear infinite;
}
.placeholder-bar--short { width: 60%; }
.placeholder-blocks {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.placeholder-block {
  flex: 1;
  height: 60px;
  background: linear-gradient(90deg, var(--border) 0%, rgba(255,255,255,.06) 50%, var(--border) 100%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: shimmer 1.5s linear infinite;
}
.placeholder-block:nth-child(2) { animation-delay: 0.2s; }
.placeholder-block:nth-child(3) { animation-delay: 0.4s; }
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

.slide-dots {
  display: flex;
  gap: 8px;
}
.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-hover);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}
.slide-dot.active {
  background: var(--purple);
  transform: scale(1.3);
}

/* ---------------------------------------------------------------
   PINNED STATEMENT
   -------------------------------------------------------------- */
.pinned-statement {
  /* Each panel takes 100vh */
}
.pin-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.6s var(--transition);
}
.pin-panel--1 { background: var(--bg); }
.pin-panel--2 { background: #0c0818; }
.pin-panel--3 { background: #040d18; }

.pin-text {
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  text-align: center;
  line-height: 1;
  /* GSAP animates opacity & y */
  opacity: 0;
  transform: translateY(40px);
}

/* ---------------------------------------------------------------
   FEATURES / FLOATING ICONS
   -------------------------------------------------------------- */
.features {
  padding: var(--section-py) 0;
  background: var(--bg);
}

.features__grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  /* GSAP initial state */
}
.float-from-left  { opacity: 0; transform: translateX(-60px); }
.float-from-right { opacity: 0; transform: translateX(60px); }
.feature-item.revealed {
  opacity: 1;
  transform: translateX(0);
}
.feature-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px) !important;
}

.feature-item__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(124,58,237,.1);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.feature-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------------------------------------------------------------
   STATS SECTION
   -------------------------------------------------------------- */
.stats-section {
  padding: var(--section-py) 0;
  background: linear-gradient(180deg, var(--bg) 0%, #0c0818 50%, var(--bg) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.stat-item {
  padding: 48px 32px;
  text-align: center;
  background: rgba(255,255,255,.02);
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,.04); }

.stat-item__number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------------------------------------------------------------
   PRICING
   -------------------------------------------------------------- */
.pricing {
  padding: var(--section-py) 0;
  background: var(--bg);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  transition: transform 0.3s var(--transition), box-shadow 0.3s, border-color 0.3s;
  /* GSAP: initial hidden state */
  opacity: 0;
  transform: translateY(60px);
}
.pricing-card.revealed { opacity: 1; transform: translateY(0); }
.pricing-card:hover {
  transform: translateY(-8px) !important;
  border-color: var(--border-hover);
  box-shadow: 0 32px 64px rgba(0,0,0,.5);
}

.pricing-card--featured {
  border-color: rgba(124,58,237,.5);
  background: linear-gradient(180deg, rgba(124,58,237,.08) 0%, var(--bg-card) 50%);
  box-shadow: 0 0 0 1px rgba(124,58,237,.2), var(--shadow-glow);
  transform: scale(1.03) !important;
}
.pricing-card--featured:hover {
  transform: scale(1.03) translateY(-8px) !important;
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-card__header { text-align: center; }

.pricing-card__tier {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 12px 0 4px;
}
.pricing-card__currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
}
.pricing-card__amount {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-card__cycle {
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pricing-card__features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-card__features .check {
  color: var(--green);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.pricing-card__feature--dim {
  opacity: 0.35;
}

/* ---------------------------------------------------------------
   HOW IT WORKS
   -------------------------------------------------------------- */
.how-it-works {
  padding: var(--section-py) 0;
  background: var(--bg);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 32px;
  padding: 40px 0;
  position: relative;
  /* GSAP initial */
  opacity: 0;
  transform: translateY(40px);
}
.step.revealed { opacity: 1; transform: translateY(0); }

.step__number {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.2;
  flex-shrink: 0;
  width: 80px;
  line-height: 1;
}

.step__connector {
  position: absolute;
  left: 95px;
  top: 90px;
  z-index: 0;
}

.connector-line line {
  transition: stroke-dashoffset 1s var(--transition);
}
.step.revealed .connector-line line { stroke-dashoffset: 0; }

.step__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: rgba(124,58,237,.1);
  border: 1px solid rgba(124,58,237,.25);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  transition: background 0.3s;
}
.step:hover .step__icon { background: rgba(124,58,237,.2); }

.step__content { flex: 1; }
.step__content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.step__content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ---------------------------------------------------------------
   CONTACT SECTION
   -------------------------------------------------------------- */
.contact {
  padding: var(--section-py) 0;
  background: linear-gradient(180deg, var(--bg) 0%, #08040f 100%);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact__left { padding-top: 8px; }
.contact__left .section-desc { margin-bottom: 32px; }

.contact__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(37,211,102,.1);
  border: 1px solid rgba(37,211,102,.25);
  border-radius: 50px;
  color: #25d366;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.2s;
}
.contact__whatsapp:hover {
  background: rgba(37,211,102,.18);
  transform: translateY(-2px);
}

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.form-group label span { color: rgba(124,58,237,.8); }

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,.4)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-group select option { background: #1a1a1a; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-subtle);
}

.form-response {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}
.form-response.success {
  display: block;
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.3);
  color: #10b981;
}
.form-response.error {
  display: block;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  color: #ef4444;
}

/* ---------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(124,58,237,.15) 0%, transparent 70%);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px clamp(20px, 5vw, 48px) 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 12px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.social-link:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(255,255,255,.06);
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a, .footer-links li {
  font-size: 0.9rem;
  color: var(--text-subtle);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-subtle);
}
.footer-bottom a { transition: color 0.2s; }
.footer-bottom a:hover { color: var(--text); }
.footer-credit { display: flex; align-items: center; gap: 6px; }

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform 0.2s var(--spring), box-shadow 0.2s;
  animation: fabIn 0.5s 2s var(--spring) both;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,.5);
}
@keyframes fabIn {
  from { transform: scale(0) rotate(-180deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ---------------------------------------------------------------
   BLOG / INDEX PAGE
   -------------------------------------------------------------- */
.blog-main {
  padding: calc(var(--nav-h) + 60px) 0 var(--section-py);
}
.blog-header {
  margin-bottom: 48px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--transition), box-shadow 0.3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.blog-card__thumb { aspect-ratio: 16/9; overflow: hidden; }
.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-card__thumb img { transform: scale(1.05); }
.blog-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.blog-card__meta { font-size: 0.8rem; color: var(--text-subtle); display: flex; gap: 8px; }
.blog-card__title { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.blog-card__title a:hover { color: var(--text-muted); }
.blog-card__excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; flex: 1; }

.no-posts {
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Pagination */
.nav-links.pagination { display: flex; gap: 8px; justify-content: center; }
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s;
}
.page-numbers:hover, .page-numbers.current {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

/* ---------------------------------------------------------------
   ANIMATIONS (CSS keyframes for GSAP-complementary effects)
   -------------------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------- */
@media (max-width: 1024px) {
  .contact__inner { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu   { display: block; }

  .hero__stats { gap: 20px; }
  .hero__stat-divider { display: none; }

  .form-row { grid-template-columns: 1fr; }

  .contact-form { padding: 24px 20px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .step { gap: 16px; }
  .step__number { font-size: 2.5rem; width: 60px; }
  .step__connector { left: 73px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item  { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }

  .pricing__grid { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none !important; }
  .pricing-card--featured:hover { transform: translateY(-8px) !important; }

  .whatsapp-fab { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .btn--lg    { padding: 16px 24px; font-size: 0.95rem; }
  .hero__stats { padding: 18px 20px; }
}

/* ---------------------------------------------------------------
   REDUCED MOTION
   -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__orb, .scroll-dot { animation: none; }
  .service-card, .feature-item, .pricing-card, .step, .pin-text {
    opacity: 1 !important;
    transform: none !important;
  }
}
