/* ============================================
   NIMBRO SITES — Obsidian Architect Design System
   Paleta: Purple (#8B5CF6) + Cyan (#06B6D4) + Obsidian (#0a0a14)
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Surfaces */
  --surface:               #0a0a14;
  --surface-container-lowest: #080810;
  --surface-container-low: #111120;
  --surface-container:     #17172a;
  --surface-container-high:#1e1e34;
  --surface-container-highest:#28283f;
  --surface-variant:       #2a2a42;

  /* Primary — Purple */
  --primary:               #8B5CF6;
  --primary-dim:           #7C3AED;
  --primary-bright:        #A78BFA;
  --primary-container:     #8B5CF6;
  --on-primary-container:  #f8f7ff;

  /* Secondary — Deep Purple */
  --secondary:             #d0bcff;
  --secondary-container:   #571bc1;

  /* Tertiary — Cyan */
  --tertiary:              #06B6D4;
  --tertiary-dim:          #0891B2;
  --tertiary-bright:       #22D3EE;

  /* Text */
  --on-surface:            #e3e0f8;
  --on-surface-variant:    #a0a3b5;
  --outline-variant:       rgba(66, 70, 86, 0.15);

  /* Spacing */
  --container-max:         1280px;
  --section-padding:       120px;
  
  /* Transitions */
  --ease-out-expo:         cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--surface);
  color: var(--on-surface);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--primary);
  color: white;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Utility Classes --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--tertiary-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(42, 42, 66, 0.35);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--outline-variant);
}

.label-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* --- Background Orbs (Ambient Light) --- */
.bg-orbs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}

.orb--purple {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -10%; left: -10%;
  animation: orbFloat 20s ease-in-out infinite alternate;
}

.orb--violet {
  width: 400px; height: 400px;
  background: var(--secondary-container);
  bottom: -10%; right: -10%;
  animation: orbFloat 25s ease-in-out infinite alternate-reverse;
}

.orb--cyan {
  width: 300px; height: 300px;
  background: var(--tertiary);
  top: 40%; right: 20%;
  animation: orbFloat 18s ease-in-out infinite alternate;
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -20px) scale(1.1); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

/* --- Particles --- */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(139, 92, 246, 0.4);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ============================================
   NAVIGATION — Floating Glass Pill
   ============================================ */
.nav {
  position: sticky;
  top: 24px;
  z-index: 100;
  max-width: 900px;
  margin: 24px auto 0;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 9999px;
  background: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.05);
  transition: all 0.4s var(--ease-out-expo);
}

.nav:hover {
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.1);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__logo img {
  height: 24px;
  width: auto;
}

.nav__logo-text {
  font-size: 24px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}

.nav__logo-dot {
  color: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

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

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

.nav__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface-variant);
  transition: color 0.3s;
  letter-spacing: -0.01em;
}

.nav__link:hover, .nav__link--active {
  color: white;
}

.nav__link--active {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

.nav__cta {
  background: linear-gradient(135deg, var(--primary), var(--tertiary));
  color: white;
  padding: 10px 24px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}

.nav__cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 160px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero__badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 9999px;
  margin-bottom: 32px;
  color: var(--tertiary-bright);
}

.hero__title {
  font-size: clamp(36px, 7vw, 80px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  max-width: 900px;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--on-surface-variant);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary-container));
  color: white;
  padding: 16px 40px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-bright), var(--tertiary));
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: 9999px;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.35);
}

.btn-primary span { position: relative; z-index: 1; }

.btn-ghost {
  padding: 16px 40px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  color: white;
  transition: all 0.3s;
}

.btn-ghost:hover {
  background: var(--surface-variant);
}

/* Floating Mockups */
.hero__mockups {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 400px;
  margin-top: 64px;
}

.mockup-card {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s var(--ease-out-expo);
}

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

.mockup-card--left {
  width: 320px; height: 200px;
  left: 0; top: 40px;
  transform: perspective(1000px) rotateY(15deg) rotateX(-5deg);
  opacity: 0.85;
}

.mockup-card--center {
  width: 500px; height: 300px;
  left: 50%; top: -20px;
  transform: translateX(-50%) perspective(1000px);
  z-index: 10;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.mockup-card--right {
  width: 320px; height: 200px;
  right: 0; top: 60px;
  transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
  opacity: 0.85;
}

.mockup-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.03);
  z-index: 20;
  opacity: 1;
}

.mockup-card--center:hover {
  transform: translateX(-50%) perspective(1000px) scale(1.03);
}

/* Stats */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 700px;
  width: 100%;
  margin-top: 80px;
  padding-bottom: 40px;
}

.stat {
  text-align: center;
  position: relative;
}

.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -24px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(139, 92, 246, 0.15);
}

.stat__number {
  font-size: 36px;
  font-weight: 800;
  color: white;
}

.stat__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--on-surface-variant);
  margin-top: 8px;
}

/* ============================================
   PORTFOLIO — Full-Width Showcase
   ============================================ */
.portfolio {
  padding: var(--section-padding) 0;
  background: var(--surface-container-low);
}

.portfolio__header {
  padding: 0 32px;
  margin-bottom: 64px;
}

.portfolio__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 16px;
}

.project-card {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  max-height: 820px;
  overflow: hidden;
  cursor: pointer;
}

.project-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%);
  transition: all 0.7s var(--ease-out-expo);
}

.project-card:hover .project-card__img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--surface) 0%, rgba(10,10,20,0.3) 40%, transparent 100%);
}

.project-card__content {
  position: absolute;
  bottom: 48px;
  max-width: 600px;
}

.project-card__content--left { left: 48px; }
.project-card__content--right { right: 48px; text-align: right; }

.project-card__name {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 12px;
}

.project-card__desc {
  font-size: 18px;
  color: var(--on-surface-variant);
  margin-bottom: 24px;
  line-height: 1.6;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: white;
  transition: gap 0.3s;
}

.project-card__link:hover { gap: 16px; }

.project-card__link svg {
  width: 16px; height: 16px;
  transition: transform 0.3s;
}

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

/* ============================================
   DIFFERENTIALS
   ============================================ */
.differentials {
  padding: var(--section-padding) 24px;
}

.differentials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.diff-card {
  padding: 48px;
  border-radius: 24px;
  transition: all 0.5s var(--ease-out-expo);
  border: 1px solid transparent;
}

.diff-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
  transform: translateY(-4px);
}

.diff-card__icon {
  font-size: 40px;
  margin-bottom: 24px;
  display: block;
  transition: transform 0.3s;
}

.diff-card:nth-child(1) .diff-card__icon { color: var(--tertiary-bright); }
.diff-card:nth-child(2) .diff-card__icon { color: var(--primary); }
.diff-card:nth-child(3) .diff-card__icon { color: var(--secondary); }
.diff-card:nth-child(4) .diff-card__icon { color: white; }

.diff-card:nth-child(1):hover { border-color: var(--tertiary); }
.diff-card:nth-child(3):hover { border-color: var(--secondary); }
.diff-card:nth-child(4):hover { border-color: rgba(255,255,255,0.3); }

.diff-card__title {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.diff-card__desc {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.7;
}

/* ============================================
   FOUNDER
   ============================================ */
.founder {
  padding: var(--section-padding) 24px;
  background: var(--surface-container-lowest);
}

.founder__card {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.06);
}

.founder__photo {
  width: 280px;
  min-height: 320px;
  flex-shrink: 0;
}

.founder__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  margin: 8px;
}

.founder__info {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.founder__name {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-top: 8px;
  margin-bottom: 16px;
}

.founder__quote {
  font-style: italic;
  color: var(--on-surface-variant);
  line-height: 1.7;
  margin-bottom: 24px;
}

.founder__social {
  display: flex;
  gap: 12px;
}

.founder__social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  cursor: pointer;
}

.founder__social-link:hover {
  background: var(--primary);
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
  padding: var(--section-padding) 24px;
}

.pricing__header {
  text-align: center;
  margin-bottom: 80px;
}

.pricing__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: white;
}

.pricing__subtitle {
  color: var(--on-surface-variant);
  margin-top: 12px;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.price-card {
  padding: 48px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.4s var(--ease-out-expo);
}

.price-card:hover {
  transform: translateY(-8px);
}

.price-card--featured {
  background: var(--surface-container-high);
  border: 1px solid var(--primary);
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.15);
  transform: scale(1.05);
  position: relative;
  z-index: 5;
}

.price-card--featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.price-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--primary), var(--tertiary));
  color: white;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 9999px;
  white-space: nowrap;
}

.price-card__tier {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.price-card:nth-child(1) .price-card__tier { color: var(--tertiary-bright); }
.price-card:nth-child(2) .price-card__tier { color: var(--primary); }
.price-card:nth-child(3) .price-card__tier { color: var(--secondary); }

.price-card__amount {
  font-size: 48px;
  font-weight: 900;
  color: white;
  margin-bottom: 8px;
}

.price-card__billing {
  font-size: 13px;
  color: var(--on-surface-variant);
  opacity: 0.7;
  margin-bottom: 32px;
}

.price-card__amount span {
  font-size: 16px;
  font-weight: 400;
  color: var(--on-surface-variant);
}

.price-card__features {
  list-style: none;
  flex-grow: 1;
  margin-bottom: 32px;
}

.price-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--on-surface-variant);
}

.price-card__features li svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

.price-card:nth-child(1) .price-card__features svg { color: var(--primary-bright); }
.price-card:nth-child(2) .price-card__features svg { color: var(--primary); }
.price-card:nth-child(3) .price-card__features svg { color: var(--secondary); }

.price-card__btn {
  width: 100%;
  padding: 16px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.price-card__btn--ghost {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
}

.price-card__btn--ghost:hover {
  background: white;
  color: var(--surface);
}

.price-card__btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--tertiary));
  color: white;
}

.price-card__btn--primary:hover {
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  padding: 96px 24px 48px;
  text-align: center;
  overflow: hidden;
}

.footer__gradient-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
}

.footer__watermark {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

.footer__content {
  position: relative;
  z-index: 1;
}

.footer__heading {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 40px;
}

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

.footer__link {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--on-surface-variant);
  transition: color 0.3s;
}

.footer__link:hover { color: var(--primary); }

.footer__copy {
  font-size: 11px;
  color: var(--on-surface-variant);
  opacity: 0.6;
}

.footer__cnpj {
  font-size: 10px;
  color: var(--on-surface-variant);
  opacity: 0.4;
  margin-top: 8px;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
}

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

.whatsapp-float svg {
  width: 32px; height: 32px;
  fill: white;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out-expo);
}

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

/* ============================================
   RESPONSIVE — Mobile First
   ============================================ */
@media (max-width: 1024px) {
  .differentials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  
  .price-card--featured {
    transform: none;
    order: -1;
  }
  
  .price-card--featured:hover {
    transform: translateY(-8px);
  }
}

@media (max-width: 768px) {
  :root { --section-padding: 80px; }

  .nav {
    margin: 12px 16px 0;
    padding: 10px 20px;
  }

  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .hero { padding: 120px 16px 60px; }
  .hero__mockups { display: none; }
  .hero__stats { gap: 20px; margin-top: 40px; }
  .stat__number { font-size: 28px; }
  .stat:not(:last-child)::after { right: -10px; }

  .portfolio__header { padding: 0 16px; }
  .project-card { height: 50vh; min-height: 350px; }
  .project-card__content { bottom: 24px; }
  .project-card__content--left { left: 24px; }
  .project-card__content--right { right: 24px; }
  .project-card__name { font-size: 28px; }

  .differentials__grid { grid-template-columns: 1fr; }
  .diff-card { padding: 32px; }

  .founder__card { flex-direction: column; }
  .founder__photo { width: 100%; height: 250px; }
  .founder__photo img { margin: 0; border-radius: 24px 24px 0 0; }
  .founder__info { padding: 32px; }

  .footer__watermark { font-size: 5rem; }
}

@media (max-width: 480px) {
  .hero__buttons { flex-direction: column; width: 100%; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
  .hero__stats { grid-template-columns: 1fr; gap: 24px; }
  .stat:not(:last-child)::after { display: none; }
}
