/* ============================================
   orkLab Landing — Theme & Base
   ============================================ */

:root {
  --bg: #0a0a0f;
  --bg-elev: #14141f;
  --bg-alt: #0d0d14;
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --purple-dark: #6d28d9;
  --purple-glow: rgba(139, 92, 246, .4);
  --text: #f5f5f7;
  --text-dim: #a1a1aa;
  --border: rgba(139, 92, 246, .15);
  --container: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --space-section: clamp(80px, 12vw, 140px);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

ul { list-style: none; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Typography helpers */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

.container--narrow {
  max-width: 760px;
  text-align: center;
}

/* Section */
.section {
  padding: var(--space-section) 0;
  position: relative;
}

.section--alt { background: var(--bg-alt); }

.section__label {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 18px;
}

.section__title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 24px;
  max-width: 760px;
}

.section__lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 680px;
  margin-bottom: 56px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(139, 92, 246, .25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--purple-glow);
}

.btn--lg { padding: 18px 36px; font-size: 17px; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

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

/* Stagger children with reveal */
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }
.reveal:nth-child(6) { transition-delay: .40s; }

/* No-JS fallback: show all reveals */
.no-js .reveal { opacity: 1; transform: none; }

/* Reduced motion: disable animations and smooth scroll */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero__chevron { animation: none; }
  .sobre__blob { animation: none; }
}

/* ============================================
   Header
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(10, 10, 15, .8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.02em;
}

.logo__ork { color: var(--text); }
.logo__lab { color: var(--purple); }

.nav__list {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .2s var(--ease);
  position: relative;
}

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

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: width .25s var(--ease);
}

.nav__link:hover::after { width: 100%; }

.header__cta { padding: 10px 22px; font-size: 14px; }

.hamburger {
  display: none;
  width: 32px;
  height: 32px;
  padding: 4px;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.menu-open .hamburger span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.menu-open .hamburger span:nth-child(2) { opacity: 0; }
.menu-open .hamburger span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(10, 10, 15, .97);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}

.mobile-menu[hidden] { display: flex; }

.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
}

.mobile-menu__cta { margin-top: 12px; }

@media (max-width: 768px) {
  .nav, .header__cta { display: none; }
  .hamburger { display: flex; }
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(139, 92, 246, .12) 0%, transparent 55%),
    var(--bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(139, 92, 246, .08) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10, 10, 15, .35) 0%, rgba(10, 10, 15, .55) 70%, var(--bg) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
}

.hero__title {
  font-size: clamp(36px, 7vw, 76px);
  margin-bottom: 24px;
  letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff 0%, #d4d4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.05;
}

.hero__subtitle {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--text-dim);
  margin-bottom: 44px;
  letter-spacing: .005em;
  line-height: 1.5;
}

.hero__subtitle .accent {
  color: var(--text);
  font-weight: 500;
}

.hero__subtitle .dot {
  color: var(--purple);
  margin: 0 .5em;
  font-weight: 600;
  opacity: .85;
}

.hero__subtitle .dot {
  color: var(--purple);
  margin: 0 4px;
}

/* Glow text effect on "super poderes" — same font as h1 */
.glow-text {
  display: inline-block;
  position: relative;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  text-transform: lowercase;
  /* Match h1 rhythm exactly */
  letter-spacing: -.03em;
  font-size: 1em;
  line-height: 1.05;
  color: transparent;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #e9e0ff 20%,
    #c4b5fd 45%,
    #8b5cf6 75%,
    #3b1d6e 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 14px rgba(139, 92, 246, .55))
    drop-shadow(0 0 32px rgba(139, 92, 246, .25))
    drop-shadow(0 2px 4px rgba(0, 0, 0, .4));
  isolation: isolate;
  padding: 0 .02em;
  vertical-align: baseline;
}

/* Animated edge reflection — clipped to text glyphs, sweeps across */
.glow-text::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: transparent;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 255, 255, .15) 42%,
    rgba(255, 255, 255, .9) 50%,
    rgba(255, 255, 255, .15) 58%,
    transparent 70%
  );
  background-size: 300% 100%;
  background-position: 200% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: edge-sweep 4s ease-in-out infinite;
  z-index: 1;
  /* Mask: opaque at top + bottom (edges), transparent in middle — only edge reflections visible */
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    transparent 18%,
    transparent 82%,
    #000 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    transparent 18%,
    transparent 82%,
    #000 100%
  );
}

/* Horizontal seam reflection */
.glow-text::after {
  content: '';
  position: absolute;
  left: 5%;
  right: 5%;
  top: 50%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(196, 181, 253, .8) 50%,
    rgba(255, 255, 255, 0) 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  background-position: 0% 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: edge-sweep 4s ease-in-out infinite;
  filter: blur(.5px);
}

@keyframes edge-sweep {
  0% { background-position: 200% 50%; }
  100% { background-position: -100% 50%; }
}

.no-js .glow-text {
  color: #c4b5fd;
}

/* Sweeping shine band — solid color highlight, clipped to text glyphs */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: .6;
}

.hero__chevron {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  animation: chevron-bounce 2s infinite var(--ease);
}

@keyframes chevron-bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: .6; }
  50% { transform: rotate(45deg) translate(6px, 6px); opacity: .3; }
}

/* ============================================
   Problema section
   ============================================ */

.problema__copy {
  max-width: 760px;
  margin-bottom: 56px;
}

.problema__copy p {
  font-size: 17px;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.problema__copy p:last-child { margin-bottom: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}

.stat:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 56px);
  color: var(--purple);
  line-height: 1;
  margin-bottom: 12px;
}

.stat__label {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .stats { grid-template-columns: 1fr; }
}

/* ============================================
   Sobre section
   ============================================ */

.sobre__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.sobre__text p {
  font-size: 17px;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.sobre__text p strong { color: var(--text); font-weight: 600; }

.sobre__visual {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sobre__blob {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--purple) 0%, var(--purple-dark) 50%, transparent 80%);
  filter: blur(40px);
  opacity: .7;
  animation: blob-pulse 8s ease-in-out infinite;
}

@keyframes blob-pulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.1); opacity: .9; }
}

@media (max-width: 900px) {
  .sobre__grid { grid-template-columns: 1fr; gap: 40px; }
  .sobre__visual { max-width: 360px; margin: 0 auto; }
}

/* ============================================
   Squad section
   ============================================ */

.squad__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.role-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}

.role-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
}

.role-card__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--purple);
  letter-spacing: .1em;
  margin-bottom: 16px;
}

.role-card__title {
  font-size: 22px;
  margin-bottom: 14px;
}

.role-card__desc {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

.trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  padding: 24px;
  background: rgba(139, 92, 246, .05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.trust-strip__item {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 900px) {
  .squad__grid { grid-template-columns: 1fr; }
}

/* ============================================
   Automações section
   ============================================ */

.autos__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.auto-card {
  grid-column: span 2;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
  position: relative;
  overflow: hidden;
}

.auto-card:nth-child(4),
.auto-card:nth-child(5) {
  grid-column: span 3;
}

.auto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple) 0%, transparent 100%);
  opacity: 0;
  transition: opacity .25s var(--ease);
}

.auto-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
  background: rgba(139, 92, 246, .04);
}

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

.auto-card__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--purple);
  letter-spacing: .1em;
  margin-bottom: 16px;
}

.auto-card__title {
  font-size: 22px;
  margin-bottom: 14px;
}

.auto-card__desc {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .autos__grid { grid-template-columns: repeat(2, 1fr); }
  .auto-card, .auto-card:nth-child(4), .auto-card:nth-child(5) { grid-column: span 1; }
}

@media (max-width: 640px) {
  .autos__grid { grid-template-columns: 1fr; }
}

/* ============================================
   Resultados section
   ============================================ */

.resultados {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-elev) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.resultados__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.big-stat__number {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 96px);
  background: linear-gradient(180deg, var(--purple-light) 0%, var(--purple-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -.04em;
}

.big-stat__label {
  display: block;
  font-size: 15px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .1em;
}

@media (max-width: 768px) {
  .resultados__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================
   Final CTA section
   ============================================ */

.cta {
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, .12) 0%, transparent 70%);
  text-align: center;
}

.cta .section__title { margin-left: auto; margin-right: auto; }
.cta .section__lead { margin-left: auto; margin-right: auto; }

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__tagline {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 14px;
  max-width: 320px;
}

.footer__heading {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 18px;
}

.footer__list li {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-dim);
}

.footer__list a {
  transition: color .2s var(--ease);
}

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

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__legal {
  font-size: 12px;
  opacity: .75;
  letter-spacing: .02em;
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
}