/* Reset CSS */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --azul: #3268eb;
  --laranja: #f97821;
  --navy: #0f172a;
  --cinza-bg: #f1f5f9;
  --branco: #ffffff;
  --texto: #334155;
  --texto-leve: #64748b;
  --borda: #e2e8f0;
  
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--texto);
  background-color: var(--branco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }

p {
  margin-bottom: 1rem;
  color: var(--texto);
}

a {
  text-decoration: none;
  color: var(--azul);
  transition: color 0.2s ease;
}

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

/* Layout & Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

.bg-cinza { background-color: var(--cinza-bg); }
.bg-navy { background-color: var(--navy); color: var(--branco); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy p { color: var(--branco); }
.bg-navy p { opacity: 0.8; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn-laranja {
  background-color: var(--laranja);
  color: var(--branco);
}
.btn-laranja:hover {
  background-color: #e0691b;
  color: var(--branco);
}

.btn-azul {
  background-color: var(--azul);
  color: var(--branco);
}
.btn-azul:hover {
  background-color: #2854c2;
  color: var(--branco);
}

.btn-outline-branco {
  background-color: transparent;
  border-color: var(--branco);
  color: var(--branco);
}
.btn-outline-branco:hover {
  background-color: var(--branco);
  color: var(--navy);
}

.btn-link {
  background-color: transparent;
  color: var(--azul);
  padding: 0;
}
.btn-link:hover {
  color: #2854c2;
  text-decoration: underline;
}

.btn-full {
  width: 100%;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  background-color: var(--branco);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--texto);
  font-weight: 500;
}

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

.nav-actions {
  display: none;
}

.hamburger {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--navy);
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.hamburger span:last-child {
  margin-bottom: 0;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--branco);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--texto);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--borda);
}

.mobile-menu .btn {
  margin-top: 0.5rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: var(--cinza-bg);
  color: var(--texto);
  border: 1px solid var(--borda);
  margin-bottom: 1rem;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
}

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

.hero-content h1 {
  font-size: 2.5rem;
}

.hero-content .highlight {
  color: var(--laranja);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--texto-leve);
  margin-bottom: 2rem;
}

.hero-credentials {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--texto);
}

.credential-item svg {
  color: var(--azul);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Mockup CSS */
.mockup-container {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.mockup-phone {
  background-color: var(--navy);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
}

.mockup-screen {
  background-color: var(--branco);
  border-radius: 24px;
  height: 500px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.mockup-header {
  height: 40px;
  background-color: var(--cinza-bg);
  border-bottom: 1px solid var(--borda);
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.mockup-logo {
  width: 40px;
  height: 12px;
  background-color: var(--navy);
  border-radius: 4px;
}

.mockup-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mockup-hero {
  height: 100px;
  background-color: var(--azul);
  border-radius: 8px;
  opacity: 0.1;
}

.mockup-text-1 {
  height: 16px;
  background-color: var(--cinza-bg);
  border-radius: 4px;
  width: 80%;
}

.mockup-text-2 {
  height: 16px;
  background-color: var(--cinza-bg);
  border-radius: 4px;
  width: 60%;
}

.mockup-btn {
  height: 32px;
  background-color: var(--laranja);
  border-radius: 4px;
  width: 50%;
  margin-top: 0.5rem;
}

.mockup-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background-color: var(--branco);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  border: 1px solid var(--borda);
  z-index: 10;
}

.mockup-badge svg {
  color: var(--azul);
}

/* Grid & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.card {
  background-color: var(--branco);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--borda);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-border-azul {
  border: 2px solid var(--azul);
  position: relative;
}

.card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--azul);
  color: var(--branco);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.card-list {
  list-style: none;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.card-list svg {
  color: var(--azul);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Steps */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

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

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--cinza-bg);
  color: var(--azul);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  border: 2px solid var(--azul);
}

.step-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--texto-leve);
}

/* Contact Block */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--cinza-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azul);
  font-size: 1.25rem;
}

.separator {
  height: 1px;
  background-color: var(--borda);
  margin: 2rem 0;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--cinza-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: all 0.2s ease;
}

.social-icon:hover {
  background-color: var(--azul);
  color: var(--branco);
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--borda);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--texto);
  background-color: var(--branco);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(50, 104, 235, 0.1);
}

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-checkbox input {
  margin-top: 0.25rem;
}

.form-checkbox label {
  font-size: 0.875rem;
  color: var(--texto-leve);
}

/* Footer */
.footer {
  background-color: var(--navy);
  color: var(--branco);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--branco);
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.footer-tagline {
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--branco);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--branco);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Responsive Breakpoints */
@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .steps-container {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .step {
    flex: 1;
  }
  
  .steps-container::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: transparent;
    border-top: 2px dashed var(--borda);
    z-index: 0;
  }
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
  
  .nav-actions {
    display: block;
  }
  
  .hamburger {
    display: none;
  }
  
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-content h1 {
    font-size: 3.25rem;
  }
  
  .hero-credentials {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tool-icon {
  margin-bottom: 1rem;
}

.tool-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.tool-desc {
  color: var(--texto-leve);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tool-link {
  font-weight: 600;
  font-size: 0.875rem;
  align-self: flex-start;
}

/* Tool Pages */
.tool-container {
  max-width: 720px;
  margin: 0 auto;
}

.tool-input-group {
  margin-bottom: 1.5rem;
}

.tool-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.tool-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.tool-input:focus {
  outline: none;
  border-color: var(--azul);
}

.tool-btn {
  background-color: var(--azul);
  color: var(--branco);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;
}

.tool-btn:hover {
  background-color: #2551c2;
}

.tool-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.tool-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.tool-result-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.tool-result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 0.5rem;
}

.tool-result-label {
  font-size: 0.875rem;
  color: var(--texto-leve);
  font-weight: 500;
}

@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .tool-input-grid {
    grid-template-columns: 1fr;
  }
  .tool-result-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1280px) {
  .container {
    padding: 0 2rem;
  }
}
