/* =========================================================
   BASE.CSS — Premium Design System | Rodrigo Leite 2026
   ---------------------------------------------------------
   Dark, high-contrast, conversion-focused design.
   Inspired by top-tier agency sites & SaaS landing pages.
   ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Sora:wght@600;700;800&display=swap');

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Sora', sans-serif;

  /* Backgrounds */
  --bg-primary:   #0a0a0f;
  --bg-alt:       #0f0f17;
  --bg-elevated:  #14141e;
  --bg-card:      #16161f;
  --bg-glass:     rgba(255,255,255,0.04);

  /* Text */
  --text-primary:   #f0f0f8;
  --text-secondary: rgba(240,240,248,0.70);
  --text-muted:     rgba(240,240,248,0.45);

  /* Brand — electric indigo + neon green accent */
  --primary:        #6c63ff;
  --primary-light:  #8b85ff;
  --primary-dark:   #5248e0;
  --accent:         #00e5a0;
  --accent-dark:    #00c488;
  --accent-glow:    rgba(0,229,160,0.18);

  /* Borders */
  --border:         rgba(255,255,255,0.08);
  --border-hover:   rgba(108,99,255,0.45);

  /* Metrics */
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all .3s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Typography Scale */
  --fs-900: clamp(2.8rem, 5.5vw + 0.8rem, 5rem);
  --fs-800: clamp(2.2rem, 4vw + 0.5rem, 3.5rem);
  --fs-700: clamp(1.6rem, 2.5vw + 0.5rem, 2.4rem);
  --fs-600: clamp(1.25rem, 1.5vw + 0.4rem, 1.6rem);
  --fs-500: 1.15rem;
  --fs-400: 1rem;
  --fs-300: 0.875rem;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img, picture { display: block; max-width: 100%; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; }
a { text-decoration: none; color: var(--primary); transition: color .2s ease; }
a:hover { color: var(--primary-light); }
h1,h2,h3,h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: var(--fs-900); }
h2 { font-size: var(--fs-700); }
h3 { font-size: var(--fs-600); }
h4 { font-size: var(--fs-500); }
p  { font-size: var(--fs-400); max-width: 65ch; }

/* ---------- 3. LAYOUT UTILITIES ---------- */
.container { width: min(92%, 72rem); margin-inline: auto; }

/* ---------- 4. BUTTONS ---------- */
.cta-principal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #050510;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 0 24px var(--accent-glow);
  white-space: nowrap;
}
.cta-principal:hover {
  background: var(--accent-dark);
  color: #050510;
  transform: translateY(-3px);
  box-shadow: 0 0 36px rgba(0,229,160,0.28);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-primary);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border-hover);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-secondary:hover {
  background: rgba(108,99,255,0.12);
  border-color: var(--primary-light);
  color: var(--text-primary);
  transform: translateY(-3px);
}

/* ---------- 5. SECTION LABELS ---------- */
.section-eyebrow {
  display: inline-block;
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-700);
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: var(--fs-500);
  color: var(--text-secondary);
  max-width: 55ch;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

/* ---------- 6. NAVBAR ---------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 72px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.logo img { height: 38px; width: auto; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.25rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  position: relative;
  letter-spacing: 0.01em;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .3s ease;
  border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--accent) !important;
  color: #050510 !important;
  padding: 0.55rem 1.25rem !important;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 0 18px var(--accent-glow);
}
.nav-cta:hover {
  background: var(--accent-dark) !important;
  color: #050510 !important;
  box-shadow: 0 0 28px rgba(0,229,160,0.3);
}
.nav-cta::after { display: none !important; }

/* ---------- 7. HAMBURGER / MOBILE MENU ---------- */
.hamburger-menu {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1001;
}
.hamburger-menu .bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .navbar .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background-color: var(--bg-alt);
    transform: translateX(100%);
    transition: transform 0.35s ease-in-out;
    border-top: 1px solid var(--border);
  }
  .navbar .nav-links.active { transform: translateX(0); }
  .navbar .nav-links a {
    color: var(--text-secondary);
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font-display);
  }
  .hamburger-menu { display: block; }
  .hamburger-menu.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger-menu.open .bar:nth-child(2) { opacity: 0; }
  .hamburger-menu.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- 8. FOOTER ---------- */
.footer {
  background: var(--bg-alt);
  padding-block: 4rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .footer-logo {
  height: 34px;
  margin-bottom: 1rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: var(--fs-300);
  max-width: 28ch;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-300);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  color: var(--text-secondary);
  font-size: var(--fs-300);
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-300);
}

/* ---------- 9. NOISE TEXTURE OVERLAY ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}
