:root {
  --bg-main: #0d1117;
  --bg-card: #161b22;
  --bg-soft: #21262d;
  --border: #30363d;
  --text-main: #e6edf3;
  --text-muted: #8b949e;
  --blue: #58a6ff;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-text-description {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
}

.hero {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.hero-image-bg {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  mask-image: linear-gradient(90deg, transparent 0%, black 25%, black 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 25%, black 100%);
}

.hero-image-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 17, 23, 0.3) 40%, rgba(13, 17, 23, 1) 100%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-image-bg::after {
    height: 200px;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 17, 23, 0.3) 40%, rgba(13, 17, 23, 1) 100%);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1100px;
  width: 100%;
  padding: 0 24px;
  margin: 0 auto;
}

.hero-text-section {
  display: flex;
  flex-direction: column;
  max-width: 600px;
}

@media (max-width: 900px) {
  .hero {
    padding: 60px 0;
    min-height: auto;
  }
  
  .hero-image-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    mask-image: linear-gradient(90deg, transparent 0%, black 25%, black 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 25%, black 100%);
    border-radius: 0;
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 40px 0;
    min-height: auto;
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }
  
  .hero-image-bg {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 300px;
    mask-image: none;
    -webkit-mask-image: none;
    border-radius: 0;
    order: 2;
    margin: 0 auto;
    overflow: hidden;
  }
  
  .hero-image-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 17, 23, 0.3) 50%, rgba(13, 17, 23, 1) 100%);
    pointer-events: none;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: flex-start;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    order: 1;
  }
  
  .hero-text-section {
    order: 1;
    max-width: 100%;
    margin-bottom: 20px;
  }
  
  .hero h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 25px 0;
  }
  
  .hero h1 {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }
  
  .hero-image-bg {
    height: 280px;
    max-width: 280px;
    position: relative;
    overflow: hidden;
  }
  
  .hero-image-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 17, 23, 0.3) 50%, rgba(13, 17, 23, 1) 100%);
    pointer-events: none;
  }
  
  .hero-content {
    gap: 25px;
    padding: 0 12px;
  }
}

.hero-subtitle {
  color: var(--blue);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 0.95rem;
  }
}

.hero-text {
  max-width: 700px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .hero-text {
    margin-bottom: 30px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero-text {
    margin-bottom: 20px;
    font-size: 0.9rem;
  }
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}

.section {
  padding: 60px 0;
}

.section-dark {
  background: #0b0f14;
}

@media (max-width: 768px) {
  .section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 30px 0;
  }
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 40px;
  color: #59a6ff;
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@keyframes borderShine {
  0% {
    box-shadow: inset 0 0 0 1px rgba(89, 166, 255, 0), 0 0 20px rgba(89, 166, 255, 0);
  }
  50% {
    box-shadow: inset 0 0 0 1px rgba(89, 166, 255, 0.8), 0 0 30px rgba(89, 166, 255, 0.4);
  }
  100% {
    box-shadow: inset 0 0 0 1px rgba(89, 166, 255, 0), 0 0 20px rgba(89, 166, 255, 0);
  }
}

.card {
  background: var(--bg-card);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.card:hover {
  animation: borderShine 1.5s ease-in-out;
  border-color: #59a6ff;
}

.card h3 {
  margin-bottom: 10px;
}

@media (max-width: 480px) {
  .card {
    padding: 16px;
  }
}

.steps {
  list-style: none;
  max-width: 700px;
}

.steps li {
  margin-bottom: 8px;
  color: var(--text-muted);
}

.steps strong {
  color: var(--text-main);
}

@media (max-width: 768px) {
  .steps li {
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .steps li {
    margin-bottom: 12px;
    font-size: 0.9rem;
  }
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.stack span {
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .stack span {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
}

.projects-note {
  color: var(--text-muted);
  max-width: 700px;
}

.contact-actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .contact-actions {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .contact-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .contact-actions .btn {
    width: 100%;
    text-align: center;
  }
}

.btn {
  padding: 12px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  display: inline-block;
}

@media (max-width: 480px) {
  .btn {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}

.btn.primary {
  background: var(--blue);
  color: #000;
  border-color: var(--blue);
}

.btn.secondary {
  background: transparent;
  color: var(--text-main);
}

.btn:hover {
  animation: borderShine 1.5s ease-in-out;
  border-color: #59a6ff;
  opacity: 1;
}

.footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===============================
   HIERARQUIA VISUAL
================================ */

.hero h1 {
  max-width: 900px;
  line-height: 1.25;
}

.hero-subtitle {
  font-weight: 500;
  letter-spacing: 0.2px;
}

.hero-text {
  max-width: 720px;
  font-size: 1rem;
}

/* ===============================
   ESPAÇAMENTO DE SEÇÕES
================================ */

.container p {
  max-width: 760px;
}

/* ===============================
   DESTAQUE PARA MENTORIA
================================ */

.section-dark h2 {
  margin-bottom: 32px;
}

.section-dark p {
  margin-bottom: 16px;
}

/* ===============================
   CTA MAIS CLARO
================================ */

.btn.primary {
  font-weight: 600;
}

.btn.secondary {
  opacity: 0.9;
}

/* ===============================
   HEADER / NAV (PC + MOBILE)
================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(13, 17, 23, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
}

.nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(135deg, #59a6ff, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav a:hover {
  color: var(--text-main);
  border-color: #59a6ff;
  background: rgba(88, 166, 255, 0.05);
  animation: borderShine 1.5s ease-in-out;
}

.nav a:hover::before {
  opacity: 1;
}

.nav-cta {
  color: #000 !important;
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  font-weight: 600;
}

.nav-cta:hover {
  animation: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(88, 166, 255, 0.3);
}

/* smooth anchor scroll */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 80px;
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 70px;
  }
}

/* ===== Mobile menu (CSS-only) ===== */

.nav-toggle {
  display: none;
}

.nav-toggle-btn {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid #59a6ff;
  border-radius: 10px;
  background: rgba(88, 166, 255, 0.05);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  flex-direction: column;
}

.nav-toggle-btn:hover {
  border-color: #59a6ff;
  background: rgba(88, 166, 255, 0.1);
  box-shadow: 0 0 15px rgba(88, 166, 255, 0.2);
}

.nav-toggle-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #59a6ff;
  opacity: 0.9;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  cursor: pointer;
  pointer-events: auto;
}

@media (max-width: 820px) {
  .nav-toggle:checked ~ .nav-backdrop {
    display: block;
  }
}

/* Mobile layout */
@media (max-width: 820px) {
  .nav-toggle-btn {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    right: 16px;
    top: 68px;
    width: min(360px, calc(100vw - 32px));
    background: var(--bg-card);
    border: 1px solid #59a6ff;
    border-radius: 16px;
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    box-shadow: 0 12px 40px rgba(88, 166, 255, 0.15);
    backdrop-filter: blur(10px);
    z-index: 1000;
  }

  .nav a {
    padding: 14px 16px;
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 10px;
    font-size: 0.95rem;
    text-align: center;
    color: var(--text-muted);
  }
  
  .nav a:hover {
    background: rgba(88, 166, 255, 0.08);
    border-color: #59a6ff;
    color: #59a6ff;
  }
  
  .nav-cta {
    background: var(--blue) !important;
    color: #000 !important;
    border-color: var(--blue) !important;
  }
  
  .nav-cta:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.3);
  }

  /* Toggle open */
  .nav-toggle:checked ~ .nav {
    display: flex;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-decoration: none;
  z-index: 300;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-icon {
    width: 26px;
    height: 26px;
  }
}

