/* ============================================
   NIIVORATECH — STYLESHEET
   ============================================ */

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

:root {
  --bg-0:        #0a0f1e;
  --bg-1:        #0f1628;
  --bg-2:        #141d35;
  --bg-card:     #111827;
  --border:      rgba(0, 212, 245, 0.12);
  --border-h:    rgba(0, 212, 245, 0.35);
  --cyan:        #00d4f5;
  --cyan-dim:    #00b4cc;
  --cyan-glow:   rgba(0, 212, 245, 0.18);
  --text-1:      #e8f4f8;
  --text-2:      #8fa8b8;
  --text-3:      #5a7585;
  --white:       #ffffff;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --shadow-card: 0 4px 32px rgba(0,0,0,0.35);
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font:        'Inter', system-ui, sans-serif;
  --max-w:       1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 3px; }

/* ---------- UTILITY ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, #7ee8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 212, 245, 0.1);
  border: 1px solid rgba(0, 212, 245, 0.25);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #00aec8 100%);
  color: var(--bg-0);
  box-shadow: 0 0 20px rgba(0, 212, 245, 0.3);
}
.btn--primary:hover {
  box-shadow: 0 0 32px rgba(0, 212, 245, 0.55);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
}
.btn--outline:hover {
  background: var(--cyan-glow);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-1);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-h);
  transform: translateY(-2px);
}

.btn--full { width: 100%; justify-content: center; }

/* ---------- SECTION COMMON ---------- */
.section {
  padding: 6rem 0;
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section__header p {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.navbar__logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.navbar__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.navbar__links a {
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar__links a:hover {
  color: var(--cyan);
  background: var(--cyan-glow);
}

.navbar__cta {
  flex-shrink: 0;
  font-size: 0.85rem;
  padding: 0.55rem 1.2rem;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero__bg-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,212,245,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero visual */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__card-stack {
  position: relative;
  width: 320px;
  height: 320px;
}

.hero__orb {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 40% 40%, rgba(0,212,245,0.25) 0%, rgba(0,150,200,0.1) 60%, transparent 100%);
  border-radius: 50%;
  border: 1.5px solid rgba(0,212,245,0.2);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-1);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
}

.float-card__icon { font-size: 1.2rem; }

.float-card--1 { top: 20px; left: 0; animation: float1 6s ease-in-out infinite; }
.float-card--2 { top: 50%; right: -10px; transform: translateY(-50%); animation: float2 5s ease-in-out infinite 1s; }
.float-card--3 { bottom: 20px; left: 20px; animation: float1 7s ease-in-out infinite 0.5s; }

@keyframes float1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(6px); }
}

/* Scroll hint */
.hero__scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  color: var(--text-3);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
  0% { opacity: 0; transform: translateY(-8px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(8px); }
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--bg-1);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,245,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,212,245,0.1);
}

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

.service-card__icon {
  width: 52px;
  height: 52px;
  color: var(--cyan);
  margin-bottom: 1.25rem;
  background: rgba(0, 212, 245, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--white);
}

.service-card p {
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.service-card__tags li {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 212, 245, 0.08);
  border: 1px solid rgba(0, 212, 245, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

.service-card--cta {
  background: linear-gradient(135deg, rgba(0,212,245,0.08) 0%, rgba(0,100,150,0.06) 100%);
  border-color: rgba(0, 212, 245, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ============================================
   DIFERENCIAIS
   ============================================ */
.diferenciais {
  background: var(--bg-0);
}

.diferenciais__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.diferencial-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.diferencial-item:hover {
  border-color: var(--border-h);
}

.diferencial-item__num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(0, 212, 245, 0.15);
  line-height: 1;
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.diferencial-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.diferencial-item p {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ============================================
   PROCESSO
   ============================================ */
.processo {
  background: var(--bg-1);
}

.processo__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.step__circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
  color: var(--bg-0);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0,212,245,0.35);
}

.step__line {
  position: absolute;
  top: 26px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, rgba(0,212,245,0.4), rgba(0,212,245,0.1));
}

.step:last-child .step__line { display: none; }

.step__content {
  margin-top: 1.25rem;
  padding: 0 0.75rem;
}

.step__content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.step__content p {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ============================================
   CONTATO
   ============================================ */
.contato {
  background: var(--bg-0);
}

.contato__inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

/* Form */
.contato__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  background: rgba(0, 212, 245, 0.05);
}

.form-group select option { background: var(--bg-1); }

.form__success {
  grid-column: 1 / -1;
  display: none;
  text-align: center;
  color: #4ade80;
  font-size: 0.95rem;
  padding: 0.75rem;
  background: rgba(74, 222, 128, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.form__success.show { display: block; }

/* Contato info */
.contato__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  transition: var(--transition);
}

.info-card:hover { border-color: var(--border-h); }

.info-card__icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 245, 0.08);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.info-card strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-card span {
  font-size: 0.92rem;
  color: var(--text-1);
}

.contato__promise {
  margin-top: 0.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(0,212,245,0.06) 0%, transparent 100%);
  border: 1px solid rgba(0, 212, 245, 0.15);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--text-2);
  font-size: 0.9rem;
}

.contato__promise strong { color: var(--cyan); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}

.footer__logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.footer__copy {
  color: var(--text-3);
  font-size: 0.85rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  color: var(--text-2);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer__links a:hover { color: var(--cyan); }

/* ============================================
   ANIMATIONS / SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .processo__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .step__line { display: none; }
  .contato__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar__links,
  .navbar__cta { display: none; }

  .navbar__toggle { display: flex; }

  .navbar__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 15, 30, 0.98);
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 800;
    backdrop-filter: blur(12px);
  }

  .navbar__links.open a {
    font-size: 1.3rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__visual { display: none; }

  .hero__actions { justify-content: center; }

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

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

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

  .contato__form {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }

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

@media (max-width: 480px) {
  .section { padding: 4rem 0; }
  .hero { padding: 6rem 0 3rem; }
}
