:root {
  --bg: #0d1210;
  --bg-secondary: #0a0e0c;
  --bg-elevated: rgba(52, 211, 153, 0.05);
  --accent: #34d399;
  --accent-to: #6ee7b7;
  --highlight: #a7f3d0;
  --gradient: linear-gradient(135deg, #34d399 0%, #6ee7b7 100%);
  --white: #ffffff;
  --text-muted: rgba(167, 243, 208, 0.4);
  --line: rgba(52, 211, 153, 0.12);
  --line-soft: rgba(52, 211, 153, 0.07);
  --radius: 16px;
  --transition: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--white);
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body.no-scroll,
body.menu-open {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

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

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: min(1320px, 92%);
  margin-inline: auto;
}

.section {
  padding: 130px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 18px;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  line-height: 1.05;
  color: var(--white);
}

h2 {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
}

.large-text {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 26px;
}

/* BADGE */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  padding: 10px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 10px var(--accent);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 36px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: all 0.4s var(--transition);
  will-change: transform;
}

.btn-gradient {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 0 0 rgba(52, 211, 153, 0);
}

.btn-gradient:hover {
  box-shadow: 0 8px 30px rgba(52, 211, 153, 0.45), 0 0 40px rgba(110, 231, 183, 0.25);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--highlight);
}

.btn-whatsapp {
  background: #25d366;
  color: #06210f;
  font-weight: 600;
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
}

.btn-whatsapp:hover {
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.btn-small {
  min-height: 46px;
  padding: 0 22px;
}

/* PRELOADER */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.preloader-inner {
  width: min(560px, 86vw);
  text-align: center;
  color: var(--white);
}

.preloader-logo {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.preloader-count {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(5rem, 18vw, 12rem);
  line-height: 0.9;
  margin-bottom: 26px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.preloader-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border-radius: 100px;
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gradient);
}

/* CUSTOM CURSOR */

.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: -100px;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.cursor-outline {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(52, 211, 153, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.cursor-text {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-outline {
    display: none;
  }
}

/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  padding: 22px 0;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.site-header.scrolled {
  background: rgba(13, 18, 16, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
  padding: 14px 0;
}

body.menu-open .site-header {
  background: transparent;
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo-img {
  height: 48px;
  width: auto;
}

.logo-fallback {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-logo .logo-fallback {
  font-size: 0.95rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--transition);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 18px;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.35s ease, background 0.35s ease;
}

.menu-toggle span:first-child {
  top: 0;
}

.menu-toggle span:last-child {
  bottom: 0;
}

.menu-toggle.active span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-close {
  display: none;
}

/* HERO */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
  color: var(--white);
}

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

.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transform: scale(1.18);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(13, 18, 16, 0.55),
    rgba(13, 18, 16, 0.85) 55%,
    var(--bg)
  );
}

.hero-glow {
  position: absolute;
  inset: -20%;
  z-index: 1;
  background:
    radial-gradient(circle at 20% 20%, rgba(52, 211, 153, 0.35), transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(110, 231, 183, 0.25), transparent 45%);
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.35'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-title {
  color: var(--white);
  font-size: clamp(3.2rem, 8.5vw, 7.2rem);
  margin-bottom: 24px;
}

.mask {
  display: block;
  overflow: hidden;
}

.mask-inner {
  display: block;
}

.hero-subtitle {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.hero-scroll-line {
  width: 1px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 30%;
  background: var(--gradient);
  animation: heroScroll 1.8s ease infinite;
}

@keyframes heroScroll {
  0% {
    top: -30%;
  }
  100% {
    top: 100%;
  }
}

.hero-scroll-text {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* INITIAL JS STATES */

.js [data-hero-reveal] {
  opacity: 0;
  transform: translateY(40px);
}

.js .hero-title .mask-inner {
  transform: translateY(115%) rotate(3deg);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(50px);
}

.js .title-lines .line {
  display: block;
  overflow: hidden;
}

.js .title-lines .line-inner {
  display: block;
  transform: translateY(115%);
}

.js [data-image-reveal] {
  clip-path: inset(0 0 100% 0);
}

/* SECTION HEAD */

.section-head {
  margin-bottom: 70px;
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: start;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.pillar {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.pillar span {
  font-size: 0.75rem;
  color: var(--highlight);
  letter-spacing: 0.18em;
}

.pillar h3 {
  font-size: 1.5rem;
  margin: 10px 0 8px;
}

.pillar p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--text-muted);
}

.image-reveal {
  overflow: hidden;
  height: 78vh;
  min-height: 520px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.image-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  will-change: transform;
}

/* PORTFOLIO HORIZONTAL */

.portfolio {
  position: relative;
  background: var(--bg);
  color: var(--white);
  height: 100vh;
  overflow: hidden;
}

.portfolio-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.panel {
  position: relative;
  width: 100vw;
  height: 100%;
  flex: 0 0 100vw;
  overflow: hidden;
}

.panel-intro,
.panel-end {
  display: flex;
  align-items: center;
  padding: 0 8vw;
  background: var(--bg-secondary);
}

.panel-intro-content {
  max-width: 760px;
}

.panel-title {
  color: var(--white);
  font-size: clamp(3rem, 7vw, 6.5rem);
  margin-bottom: 24px;
}

.panel-intro p,
.panel-end p {
  color: var(--text-muted);
  max-width: 520px;
}

.panel-hint {
  display: inline-block;
  margin-top: 28px;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.progress-line {
  width: 220px;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  margin-top: 34px;
  border-radius: 100px;
  overflow: hidden;
}

.progress-line span {
  display: block;
  height: 100%;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
}

.panel-end {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.project-panel {
  display: flex;
  align-items: flex-end;
}

.panel-media {
  position: absolute;
  inset: 0;
}

.panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
}

.panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 18, 16, 0.2),
    rgba(13, 18, 16, 0.88)
  );
}

.panel-index {
  position: absolute;
  top: 10vh;
  left: 6vw;
  z-index: 2;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 10vw, 9rem);
  color: rgba(255, 255, 255, 0.12);
}

.panel-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 6vh 6vw;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.panel-info {
  max-width: 640px;
}

.panel-info h3 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 4rem);
  margin: 14px 0 12px;
}

.panel-badge {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--gradient);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.panel-style {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 12px;
  border-radius: 100px;
}

.panel-description {
  color: var(--text-muted);
  margin: 14px 0 16px;
  max-width: 52ch;
}

.panel-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

/* SERVICES */

.services-list {
  border-top: 1px solid var(--line-soft);
}

.service-row {
  display: grid;
  grid-template-columns: 90px 1fr 60px;
  gap: 30px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: background 0.4s ease, padding-left 0.4s ease;
}

.service-row:hover {
  background: var(--bg-elevated);
  padding-left: 18px;
}

.service-number {
  color: var(--highlight);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
}

.service-content h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  margin-bottom: 12px;
}

.service-content p {
  color: var(--text-muted);
  max-width: 62ch;
}

.service-arrow {
  font-size: 1.6rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: right;
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: start;
}

.contact-intro p {
  color: var(--text-muted);
  margin-bottom: 34px;
  max-width: 46ch;
}

.contact-intro .btn-whatsapp {
  margin-bottom: 40px;
}

.contact-details {
  display: grid;
  gap: 26px;
}

.contact-details h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.contact-details p,
.contact-details a {
  color: var(--text-muted);
}

.contact-details a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.social-links a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
}

.social-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--transition);
}

.social-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 42px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

input,
select,
textarea {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 12px 0;
  font-size: 1rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
  appearance: none;
}

select option {
  background: var(--bg);
  color: var(--white);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .btn {
  margin-top: 30px;
  width: 100%;
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  min-height: 22px;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #f87171;
}

/* FOOTER */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--line-soft);
  color: var(--text-muted);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer-logo img {
  height: 34px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a,
.footer-social a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-social a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* RESPONSIVE */

@media (max-width: 1080px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .image-reveal {
    height: 60vh;
  }

  .service-row {
    grid-template-columns: 60px 1fr;
  }

  .service-arrow {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 88vw);
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.5s var(--transition);
    padding: 110px 34px 34px;
    z-index: 950;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .nav-close {
    display: block;
    position: absolute;
    top: 26px;
    right: 26px;
    color: var(--white);
    font-size: 2rem;
    line-height: 1;
  }

  .menu-toggle {
    display: block;
  }

  .portfolio {
    height: auto;
    overflow: visible;
  }

  .portfolio-track {
    flex-direction: column;
    transform: none !important;
  }

  .panel {
    width: 100%;
    flex: auto;
    min-height: 86vh;
  }

  .panel-intro,
  .panel-end {
    padding: 110px 24px;
  }

  .panel-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 24px 40px;
  }

  .panel-index {
    top: 90px;
    left: 24px;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 95px 0;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .about-pillars {
    grid-template-columns: 1fr;
  }

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

  .contact-form {
    padding: 28px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Texto destaque teal */
.text-accent {
  color: #2de8a2;
}

/* Título contato sempre visível sem depender do GSAP */
.js .contact-title .line-inner {
  transform: translateY(0) !important;
}
