
:root{
  --bg:#090b12;
  --surface:#111520;
  --surface2:#171c2a;
  --text:#f7f8fb;
  --muted:#aeb6c6;
  --primary:#8f6cff;
  --primary2:#b89cff;
  --border:rgba(255,255,255,.10);
  --shadow:0 24px 70px rgba(0,0,0,.35);
  --radius:22px;
  --max:1240px;
}

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

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  font-family:Arial,Helvetica,sans-serif;
  background:
    radial-gradient(circle at 15% 15%,rgba(143,108,255,.18),transparent 30%),
    radial-gradient(circle at 85% 10%,rgba(184,156,255,.10),transparent 25%),
    var(--bg);
  color:var(--text);
  line-height:1.7;
  min-height:100vh;
  overflow-x:hidden;
}

img,svg,video{
  max-width:100%;
  height:auto;
}

a{
  color:inherit;
  overflow-wrap:anywhere;
}

button,input,textarea,select{
  font:inherit;
}

.container{
  width:min(calc(100% - 40px),var(--max));
  margin:0 auto;
  min-width:0;
}

header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(9,11,18,.90);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}

.nav{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}

.brand{
  flex:0 0 auto;
  font-size:1.08rem;
  font-weight:900;
  text-decoration:none;
  letter-spacing:.2px;
  white-space:nowrap;
}

.brand span{
  color:var(--primary2);
}

nav{
  min-width:0;
  display:flex;
  gap:19px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}

nav a{
  color:var(--muted);
  text-decoration:none;
  font-size:.93rem;
  font-weight:700;
  white-space:nowrap;
  transition:color .18s ease;
}

nav a:hover,
nav a[aria-current="page"]{
  color:var(--text);
}

main{
  min-height:70vh;
}

.hero{
  padding:72px 0 58px;
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(330px,.82fr);
  gap:48px;
  align-items:center;
}

.hero-grid > *{
  min-width:0;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  padding:8px 12px;
  border:1px solid rgba(184,156,255,.28);
  background:rgba(143,108,255,.08);
  border-radius:999px;
  color:#d7caff;
  font-weight:700;
  font-size:.85rem;
  margin-bottom:18px;
  line-height:1.35;
}

h1{
  max-width:820px;
  font-size:clamp(2.55rem,4.45vw,4.35rem);
  line-height:1.02;
  letter-spacing:-2.3px;
  text-wrap:balance;
}

h2{
  font-size:clamp(1.65rem,3vw,2.55rem);
  line-height:1.15;
  letter-spacing:-.8px;
  text-wrap:balance;
}

h3{
  font-size:1.12rem;
  line-height:1.35;
}

.gradient{
  background:linear-gradient(90deg,#fff,#cbbcff,#8f6cff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.lead{
  margin-top:22px;
  color:var(--muted);
  max-width:760px;
  font-size:clamp(1rem,1.35vw,1.08rem);
}

.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:28px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 19px;
  border-radius:14px;
  text-decoration:none;
  font-weight:800;
  border:1px solid var(--border);
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
  text-align:center;
}

.btn:hover{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.25);
}

.btn-primary{
  background:linear-gradient(135deg,var(--primary),#6f4be7);
  border-color:transparent;
}

.btn-secondary{
  background:rgba(255,255,255,.04);
}

.card,
.hero-card,
.article{
  border:1px solid var(--border);
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
  border-radius:var(--radius);
  min-width:0;
}

.hero-card{
  width:100%;
  padding:26px;
  box-shadow:var(--shadow);
}

.hero-card h2{
  font-size:1.08rem;
  margin-bottom:16px;
}

.mini-list{
  display:grid;
  gap:12px;
}

.mini{
  min-width:0;
  padding:15px;
  background:rgba(255,255,255,.035);
  border:1px solid var(--border);
  border-radius:14px;
}

.mini-title{
  display:block;
  margin:0 0 8px;
  color:var(--text);
  font-weight:800;
  line-height:1.35;
}

.mini p{
  margin:0;
  color:var(--muted);
  font-size:.94rem;
  line-height:1.55;
}

.mini strong{display:block;margin-bottom:5px;color:var(--text);line-height:1.35;}
.mini span{display:block;color:var(--muted);font-size:.94rem;line-height:1.55;}

.muted{
  color:var(--muted);
}

section{
  padding:64px 0;
}

.section-title{
  max-width:790px;
  margin-bottom:28px;
}

.section-title p{
  color:var(--muted);
  margin-top:10px;
}

.grid-2,
.grid-3{
  display:grid;
  gap:18px;
}

.grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.grid-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.card{
  padding:24px;
}

.card p{
  color:var(--muted);
  margin-top:8px;
}

.num{
  display:inline-flex;
  width:36px;
  height:36px;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  margin-bottom:16px;
  background:rgba(143,108,255,.14);
  border:1px solid rgba(184,156,255,.24);
  color:#d8ceff;
  font-weight:900;
}

.page-head{
  padding:58px 0 24px;
}

.page-head h1{
  font-size:clamp(2.15rem,4.4vw,4rem);
}

.page-head p{
  color:var(--muted);
  max-width:820px;
  margin-top:16px;
}

.breadcrumb{
  font-size:.88rem;
  color:var(--muted);
  margin-bottom:16px;
}

.breadcrumb a{
  color:#d8ceff;
  text-decoration:none;
}

.prose{
  width:100%;
  max-width:900px;
}

.prose p,
.prose ul,
.prose ol{
  margin:14px 0;
  color:#d5d9e3;
}

.prose h2{
  margin-top:34px;
  font-size:clamp(1.5rem,2.5vw,1.9rem);
}

.prose h3{
  margin-top:24px;
}

.prose ul,
.prose ol{
  padding-left:22px;
}

.prose strong{
  color:#fff;
}

.article{
  padding:30px;
}

.article-meta{
  color:var(--muted);
  font-size:.9rem;
  margin-top:10px;
}

.article-list{
  display:grid;
  gap:16px;
}

.article-card{
  min-width:0;
  padding:22px;
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(255,255,255,.03);
}

.article-card h2,
.article-card h3{
  margin-bottom:6px;
}

.article-card p{
  color:var(--muted);
}

.article-card a{
  display:inline-block;
  margin-top:12px;
  color:#d8ceff;
  font-weight:800;
  text-decoration:none;
}

.project-card{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.project-card .btn{
  margin-top:auto;
}

.badge{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(143,108,255,.12);
  border:1px solid rgba(184,156,255,.24);
  color:#d8ceff;
  font-size:.82rem;
  font-weight:800;
}

.callout{
  padding:20px;
  border-left:4px solid var(--primary);
  background:rgba(143,108,255,.08);
  border-radius:12px;
  margin:24px 0;
  color:#e9e7f5;
}

.contact-grid{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:20px;
}

.contact-link{
  display:block;
  padding:16px 18px;
  border-radius:14px;
  background:rgba(255,255,255,.035);
  border:1px solid var(--border);
  text-decoration:none;
  margin-top:10px;
  overflow-wrap:anywhere;
}

.contact-link small{
  display:block;
  color:var(--muted);
}

footer{
  border-top:1px solid var(--border);
  padding:30px 0 42px;
  color:var(--muted);
  font-size:.9rem;
  margin-top:50px;
}

.footer-grid{
  display:flex;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

.footer-links{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.footer-links a{
  text-decoration:none;
}

.notice{
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,.025);
  color:var(--muted);
}

/* Tablets e notebooks menores */
@media (max-width:1050px){
  :root{--max:940px}

  .hero{
    padding-top:58px;
  }

  .hero-grid{
    grid-template-columns:1fr;
    gap:28px;
  }

  .hero-card{
    max-width:none;
  }

  h1{
    max-width:900px;
    font-size:clamp(2.55rem,7vw,4.1rem);
  }

  .grid-3{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* Tablet / navegação compacta */
@media (max-width:760px){
  .container{
    width:min(calc(100% - 28px),var(--max));
  }

  header{
    position:sticky;
  }

  .nav{
    min-height:auto;
    padding:14px 0 10px;
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
  }

  nav{
    width:100%;
    flex-wrap:nowrap;
    justify-content:flex-start;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scrollbar-width:none;
    padding-bottom:5px;
  }

  nav::-webkit-scrollbar{
    display:none;
  }

  nav a{
    flex:0 0 auto;
    padding:5px 0;
  }

  .hero{
    padding:46px 0 42px;
  }

  .eyebrow{
    border-radius:16px;
  }

  h1{
    font-size:clamp(2.25rem,11vw,3.45rem);
    letter-spacing:-1.7px;
  }

  h2{
    font-size:clamp(1.55rem,7vw,2.25rem);
  }

  section{
    padding:50px 0;
  }

  .grid-2,
  .grid-3,
  .contact-grid{
    grid-template-columns:1fr;
  }

  .page-head{
    padding:46px 0 18px;
  }

  .article{
    padding:23px;
  }
}

/* Celulares */
@media (max-width:520px){
  .container{
    width:calc(100% - 22px);
  }

  .brand{
    font-size:1rem;
  }

  nav{
    gap:15px;
  }

  nav a{
    font-size:.9rem;
  }

  .hero{
    padding-top:38px;
  }

  h1{
    font-size:clamp(2.05rem,12vw,2.9rem);
    line-height:1.04;
  }

  .lead{
    font-size:.98rem;
  }

  .hero-card,
  .card,
  .article{
    border-radius:18px;
  }

  .hero-card,
  .card{
    padding:19px;
  }

  .article{
    padding:20px;
  }

  .actions{
    flex-direction:column;
  }

  .actions .btn,
  .project-card .btn{
    width:100%;
  }

  .mini{
    padding:13px;
  }

  .footer-grid{
    flex-direction:column;
  }
}

/* Telas muito estreitas */
@media (max-width:360px){
  .container{
    width:calc(100% - 16px);
  }

  h1{
    font-size:2rem;
  }

  .eyebrow{
    font-size:.78rem;
  }

  .btn{
    padding-left:14px;
    padding-right:14px;
  }
}


/* ===== Melhorias visuais gerais ===== */
html,body{
  max-width:100%;
}

p, li, h1, h2, h3, .lead, .article-card p, .card p, .contact-link, .notice{
  overflow-wrap:anywhere;
  word-break:normal;
}

.nav-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  gap:16px;
}

.menu-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:46px;
  height:46px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
}

.menu-toggle span{
  display:block;
  width:19px;
  height:2px;
  border-radius:999px;
  background:currentColor;
  transition:transform .2s ease, opacity .2s ease;
}

.site-nav{
  transition:max-height .25s ease, opacity .2s ease;
}

.hero-card,
.card,
.article-card,
.article,
.contact-link{
  box-shadow:0 14px 40px rgba(0,0,0,.16);
}

.hero-card{
  position:relative;
  overflow:hidden;
}

.hero-card::after{
  content:"";
  position:absolute;
  inset:auto -60px -60px auto;
  width:160px;
  height:160px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(143,108,255,.18), transparent 70%);
  pointer-events:none;
}

.quick-points{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:24px;
}

.quick-point{
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:16px;
  background:rgba(255,255,255,.035);
}

.quick-point strong{
  display:block;
  margin-bottom:4px;
  font-size:1rem;
  line-height:1.3;
}

.quick-point span{
  display:block;
  color:var(--muted);
  font-size:.92rem;
  line-height:1.5;
}

.section-title{
  margin-bottom:30px;
}

.section-title h2{
  margin-bottom:8px;
}

.article-card,
.card,
.contact-link{
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}

.article-card:hover,
.card:hover,
.contact-link:hover{
  transform:translateY(-3px);
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.045);
}

.prose p,
.prose li{
  max-width:70ch;
}

.prose h2,
.prose h3{
  max-width:30ch;
}

/* Tablets e notebooks menores */
@media (max-width:1050px){
  .quick-points{
    grid-template-columns:1fr;
  }
}

/* Tablet / navegação compacta */
@media (max-width:760px){
  .nav{
    min-height:auto;
    padding:12px 0;
    align-items:stretch;
    flex-direction:column;
    gap:10px;
  }

  .menu-toggle{
    display:inline-flex;
    flex-direction:column;
  }

  .site-nav{
    width:100%;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    overflow:hidden;
    padding-top:2px;
  }

  .site-nav.is-open{
    display:flex;
  }

  .site-nav a{
    width:100%;
    padding:12px 14px;
    border-radius:12px;
    background:rgba(255,255,255,.035);
    border:1px solid transparent;
  }

  .site-nav a + a{
    margin-top:8px;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"]{
    background:rgba(143,108,255,.10);
    border-color:rgba(184,156,255,.22);
  }

  body.menu-open{
    overflow:hidden;
  }

  .quick-points{
    grid-template-columns:1fr;
    gap:10px;
  }

  .hero-grid{
    gap:24px;
  }
}

/* Celulares */
@media (max-width:520px){
  .quick-point{
    padding:13px 14px;
  }

  .hero-card h2{
    margin-bottom:14px;
  }

  .mini-title{
    font-size:1rem;
  }

  .menu-toggle{
    width:44px;
    height:44px;
  }
}


/* ===== Correção específica do menu desktop ===== */
@media (min-width:761px){
  .nav{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    flex-wrap:nowrap;
  }

  .nav-top{
    width:auto;
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:flex-start;
  }

  .menu-toggle{
    display:none !important;
  }

  .site-nav{
    display:flex !important;
    width:auto;
    flex:0 1 auto;
    margin-left:auto;
    flex-direction:row;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:nowrap;
    gap:19px;
    max-height:none;
    opacity:1;
    overflow:visible;
  }

  .site-nav a{
    flex:0 0 auto;
    width:auto;
    margin:0 !important;
    padding:0;
    background:transparent;
    border:0;
  }
}

/* Mobile: topo com logo à esquerda e hambúrguer à direita */
@media (max-width:760px){
  .nav-top{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
  }
}
