/* ============================================
   SINGULLAR TECH — Institutional Site Draft
   ============================================ */

:root {
  --deep-navy: #0A1628;
  --navy-light: #0F1D32;
  --navy-lighter: #162440;
  --electric-blue: #3B82F6;
  --electric-blue-light: #2563EB;
  --white: #FFFFFF;
  --grafite: #374151;
  --cinza-frio: #9CA3AF;
  --cinza-muted: #6B7280;
  --azul-gelo: #DBEAFE;
  --azul-gelo-muted: rgba(219, 234, 254, 0.06);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-code: 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--deep-navy);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Navigation ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.08);
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 0.85rem 2rem;
  background: rgba(10, 22, 40, 0.95);
}

.nav-logo svg {
  height: 56px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--cinza-frio);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  color: var(--electric-blue) !important;
  font-weight: 500 !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cinza-frio);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ---- Sections ---- */
section {
  padding: 6rem 2rem;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--electric-blue);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.3px;
}

h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

p {
  color: var(--cinza-frio);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-tagline {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--electric-blue);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  margin-bottom: 1.75rem;
}

.hero h1 .accent {
  color: var(--electric-blue);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--cinza-frio);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 3rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  background: var(--electric-blue);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.hero-cta:hover {
  background: var(--electric-blue-light);
  transform: translateY(-1px);
}

.hero-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.hero-cta:hover svg {
  transform: translateX(3px);
}

/* Subtle grid background */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ============================================
   ABOUT (Quem Somos)
   ============================================ */
.about {
  background: var(--navy-light);
  border-top: 1px solid rgba(59, 130, 246, 0.06);
  border-bottom: 1px solid rgba(59, 130, 246, 0.06);
}

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

.about-text p {
  margin-bottom: 1.25rem;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pillar {
  padding: 1.5rem;
  background: rgba(59, 130, 246, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.08);
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.pillar:hover {
  border-color: rgba(59, 130, 246, 0.2);
}

.pillar-number {
  font-family: var(--font-code);
  font-size: 0.7rem;
  color: var(--electric-blue);
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.pillar h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.pillar p {
  font-size: 0.95rem;
  color: var(--cinza-muted);
  line-height: 1.6;
}

/* ============================================
   WHAT WE DO (O que Fazemos)
   ============================================ */
.what-we-do {
  position: relative;
}

.what-we-do-intro {
  max-width: 680px;
  margin-bottom: 3.5rem;
}

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

.diff-card {
  padding: 2rem;
  background: var(--navy-light);
  border: 1px solid rgba(59, 130, 246, 0.06);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.diff-card:hover {
  border-color: rgba(59, 130, 246, 0.15);
  background: var(--navy-lighter);
}

.diff-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 8px;
  color: var(--electric-blue);
}

.diff-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.diff-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--cinza-muted);
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio {
  background: var(--navy-light);
  border-top: 1px solid rgba(59, 130, 246, 0.06);
  border-bottom: 1px solid rgba(59, 130, 246, 0.06);
}

.portfolio-intro {
  max-width: 720px;
  margin-bottom: 3.5rem;
}

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

.portfolio-card {
  padding: 2.5rem 2rem;
  background: var(--deep-navy);
  border: 1px solid rgba(59, 130, 246, 0.08);
  border-radius: 8px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--electric-blue), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.portfolio-card:hover {
  border-color: rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.portfolio-tag {
  font-family: var(--font-code);
  font-size: 0.7rem;
  color: var(--electric-blue);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.portfolio-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.portfolio-card p {
  font-size: 0.95rem;
  color: var(--cinza-muted);
  line-height: 1.65;
}

.portfolio-topics {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portfolio-topic {
  font-family: var(--font-code);
  font-size: 0.7rem;
  color: var(--cinza-frio);
  background: rgba(59, 130, 246, 0.06);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact p {
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--electric-blue);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  border: 1.5px solid var(--electric-blue);
  border-radius: 6px;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.contact-cta:hover {
  background: var(--electric-blue);
  color: var(--white);
  transform: translateY(-1px);
}

.contact-email {
  margin-top: 1.5rem;
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--cinza-muted);
}

.contact-email a {
  color: var(--cinza-frio);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-email a:hover {
  color: var(--electric-blue);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(59, 130, 246, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-container {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo svg {
  height: 30px;
  width: auto;
  opacity: 0.5;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--cinza-muted);
  font-family: var(--font-body);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.08);
    gap: 1.25rem;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1.05rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .contact h2 {
    font-size: 2rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  .differentials {
    gap: 1rem;
  }
}

/* ---- Subtle fade-in ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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