:root {
  --black: #000000;
  --white: #ffffff;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --text-secondary: rgba(255, 255, 255, 0.45);
  --text-tertiary: rgba(255, 255, 255, 0.2);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-bg-hover: rgba(255, 255, 255, 0.07);
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  cursor: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis {
  height: auto;
}

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

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

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

/* Typography & General */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

.tag-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 32px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 64px;
}

.body-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 300;
}

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

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background-color: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s;
  mix-blend-mode: difference;
}

.custom-cursor.hover {
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.2);
  border: 1px solid var(--white);
  mix-blend-mode: normal;
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .custom-cursor { display: none; }
}

/* Noise */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
}

/* Ribbon Canvas Background */
#ribbon-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: var(--black);
}

main, .footer {
  position: relative;
  z-index: 1;
}

/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--black);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-logo {
  font-size: 24px;
  font-weight: 700;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
  z-index: 100;
  transition: background 0.4s, padding 0.4s, border-bottom 0.4s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.dot { color: #8a2be2; } /* Vibrant purple accent point */
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-item {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}
.nav-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.3s ease;
}
.nav-item:hover { color: var(--white); }
.nav-item:hover::after { width: 100%; }

.btn-ghost {
  font-size: 14px;
  padding: 12px 24px;
  border: 1px solid var(--white);
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--black);
  letter-spacing: 0.05em;
}

.btn-primary {
  font-size: 14px;
  padding: 12px 24px;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: 500;
  cursor: pointer;
}
.btn-primary:hover {
  background: transparent;
  color: var(--white);
  letter-spacing: 0.05em;
  box-shadow: 0 0 30px rgba(255,255,255,0.4);
}

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

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0 5%;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.hero-title {
  font-size: clamp(60px, 10vw, 150px);
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 32px;
  letter-spacing: -0.04em;
}
.hero-title .line {
  overflow: hidden;
  display: block;
}
.hero-desc {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 48px;
  line-height: 1.5;
}
.hero-buttons {
  display: flex;
  gap: 16px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(38px, 8vw, 70px);
    margin-bottom: 24px;
  }
  .hero-desc {
    font-size: 16px;
    margin-bottom: 32px;
  }
  .hero-buttons { 
    flex-direction: column; 
    width: 100%;
  }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-ghost {
    width: 100%;
    text-align: center;
  }
}

/* Marquee */
.marquee-container {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  padding: 24px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}
.marquee-content span {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-right: 24px;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* About */
.about {
  padding: 160px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.stat-card {
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 12px;
  background: var(--card-bg);
}
.stat-number-wrapper {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
}
.stat-seo {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 8px;
}
.stat-suffix {
  font-size: 24px;
  font-weight: 300;
  color: var(--text-secondary);
}
.stat-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about { padding: 80px 0; }
}

/* Services */
.services {
  padding: 160px 0;
  background: rgba(255,255,255,0.01);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  position: relative;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  background: var(--card-bg-hover);
  border-color: var(--border-hover);
}
.card-number {
  font-family: var(--font-mono);
  font-size: 48px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
  font-weight: 300;
}
.card-icon {
  margin-bottom: 24px;
  color: var(--white);
}
.card-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}
.card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}
.card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(255,255,255,0.1);
  padding: 4px 8px;
  border-radius: 4px;
  align-self: flex-start;
  letter-spacing: 0.1em;
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .services { padding: 80px 0; }
}

/* Processo (Horizontal Scroll) */
.process-wrapper {
  padding: 160px 0;
  overflow: hidden;
  background: var(--black);
}
.process-header-container {
  padding: 0 5%;
  max-width: 1280px;
  margin: 0 auto 64px auto;
}
.process-scroll {
  width: 100%;
}
.process-track {
  display: flex;
  gap: 0;
  width: max-content;
  padding-left: 5vw;
  padding-right: 35vw;
}
.step-card {
  width: 80vw;
  max-width: 600px;
  position: relative;
  flex-shrink: 0;
  padding-right: 80px;
}
.step-bg-number {
  font-size: 160px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-hover);
  position: absolute;
  top: -40px;
  left: 0;
  z-index: 1;
}
.step-content {
  position: relative;
  z-index: 2;
  padding-top: 60px;
}
.step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.step-line {
  height: 1px;
  background: var(--border-hover);
  width: 100%;
  margin-bottom: 32px;
}
.step-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}
.step-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .process-wrapper { padding: 80px 0; }
  .process-track {
    width: 100%;
    flex-direction: column;
    gap: 64px;
    padding-left: 0;
    padding: 0 5%;
  }
  .step-card {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
  }
}

/* CTA Section */
.cta-section {
  padding: 160px 0;
}
.cta-wrapper {
  position: relative;
  padding: 1px; /* Border thickness */
  border-radius: 24px;
  overflow: hidden;
  background: var(--border);
}

.cta-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, var(--white) 20%, transparent 40%);
  animation: border-spin 3s linear infinite;
  z-index: 1;
}

@keyframes border-spin {
  100% { transform: rotate(360deg); }
}

.cta-card {
  position: relative;
  background: var(--black);
  border-radius: 23px;
  padding: 80px 40px;
  z-index: 2;
  text-align: center;
}
.cta-title {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 40px;
}
.cta-list {
  list-style: none;
  display: inline-block;
  text-align: left;
  margin-bottom: 48px;
}
.cta-list li {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}
.cta-list .check {
  color: var(--white);
  margin-right: 12px;
  font-weight: bold;
}
.cta-btn {
  font-size: 16px;
  padding: 16px 40px;
}

@media (max-width: 768px) {
  .cta-section { padding: 80px 0; }
  .cta-card { padding: 40px 20px; }
  .cta-list li { font-size: 16px; }
}

/* FAQ */
.faq-section {
  padding: 80px 0 160px 0;
}
.faq-header {
  margin-bottom: 64px;
}
.faq-list {
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.3s;
}
.faq-question h4 {
  font-size: 20px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}
.faq-question:hover h4 {
  color: var(--white);
}
.faq-icon {
  transition: transform 0.4s ease;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--white);
}
.faq-item.active .faq-question h4 {
  color: var(--white);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.faq-answer p {
  padding-bottom: 32px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  max-width: 800px;
}

@media (max-width: 768px) {
  .faq-question h4 { font-size: 18px; }
  .faq-question { padding: 24px 0; }
  .faq-section { padding: 40px 0 80px 0; }
}

/* Contact Section */
.contact-section {
  padding: 160px 0;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-form-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.form-group-row {
  display: flex;
  gap: 24px;
}
.form-group label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  transition: all 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-tertiary);
}
.form-submit {
  margin-top: 16px;
  width: 100%;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-section { padding: 80px 0; }
  .contact-form-wrapper { padding: 32px 24px; }
  .form-group-row { flex-direction: column; gap: 24px; }
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 80px;
}
.footer-desc {
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 250px;
}
.footer-col h4 {
  font-size: 16px;
  margin-bottom: 24px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul a {
  color: var(--text-secondary);
  transition: color 0.3s;
  font-size: 14px;
}
.footer-col ul a:hover {
  color: var(--white);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 32px 5%;
}
.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 12px;
  font-family: var(--font-mono);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom-flex {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
  }
}

/* Utilities */
.mt-4 { margin-top: 32px; }

/* Reveal Animation Base */
.reveal-text {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}
.reveal-line {
  position: relative;
  display: inline-block;
}
.reveal-line::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
}
