/* ==========================================================================
   OrbitsWeb — estilos da página única

   1. Tokens
   2. Base
   3. Componentes (container, botões, cabeçalho de seção, logo)
   4. Navbar e menu mobile
   5. Hero (#inicio)
   6. Serviços (#servicos)
   7. Portfólio (#portfolio)
   8. Processo (#processo)
   9. Sobre (#sobre)
   10. Dúvidas (#duvidas)
   11. Contato (#contato)
   12. Footer
   13. Animações (.reveal e movimento reduzido)
   14. Responsivo (960px e 520px; o JS não depende desses valores)
   ========================================================================== */


/* 1. Tokens
   Identidade "Gravidade". Contraste medido sobre --bg.
   -------------------------------------------------------------------------- */
:root {
  --bg: #0B0F0C;
  --bg2: #151B17;          /* cards e superfícies */
  --bg-alt: #080B09;       /* seções alternadas */
  --bg-deep: #050705;      /* footer */
  --nav-bg: rgba(11, 15, 12, 0.9);

  --accent: #B6F23A;       /* 14.5:1 no --bg, 13.1:1 no --bg2 */
  --accent-2: #7FB51E;     /* 7.8:1 */
  --on-accent: #0B0F0C;    /* texto sobre --accent, 14.5:1 */
  --white: #E9F0E6;        /* 16.6:1 */
  --muted: #8E9A8C;        /* 6.6:1 no --bg, 6.0:1 no --bg2 */
  --border: rgba(182, 242, 58, 0.14);
  --line: rgba(233, 240, 230, 0.12);

  --whatsapp: #25D366;     /* verde do WhatsApp, só no botão do contato */
  --whatsapp-hover: #3EE07B;

  --font-display: 'Unbounded', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius: 4px;
  --container: 1160px;
  --gutter: 24px;
  --section-y: 100px;
  --nav-h: 69px;           /* altura da navbar no mobile; o menu abre logo abaixo */
}


/* 2. Base
   Fontes servidas pelo próprio site, em assets/fonts/ (licença OFL), nos
   recortes latin e latin-ext do Google Fonts. O DM Sans é variável (400 e 500
   saem do mesmo arquivo).
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/unbounded-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/unbounded-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

section { padding: var(--section-y) 0; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; }

h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.08; letter-spacing: -.02em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.15; letter-spacing: -.02em;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 3px; }


/* 3. Componentes
   -------------------------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border: none; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  letter-spacing: .02em; text-decoration: none;
  cursor: pointer; transition: all .25s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-whatsapp {
  background: var(--whatsapp); color: var(--on-accent);
  font-size: 1rem; padding: 16px 36px;
}
.btn-whatsapp:hover { background: var(--whatsapp-hover); }

.section-header { margin-bottom: 64px; }
.section-header-center { text-align: center; }
.section-sub {
  color: var(--muted); font-size: 1.05rem; line-height: 1.7;
  max-width: 540px; margin-top: 14px;
}

/* Logo: símbolo inline (viewBox 32) + nome em texto */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 32px; height: 32px; flex-shrink: 0; color: var(--white); }
.logo-text { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--white); }
.mark-line { stroke-linecap: butt; }
.mark-pixel { fill: var(--accent); }


/* 4. Navbar e menu mobile
   -------------------------------------------------------------------------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  transition: all .3s ease;
}
#navbar.scrolled { background: rgba(11, 15, 12, 0.98); }
#navbar .inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
}

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 400;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta { margin-left: 16px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all .3s;
}

.mobile-menu {
  display: none; flex-direction: column; gap: 20px;
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  padding: 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu .mob-link {
  color: var(--muted); text-decoration: none; font-size: 1rem;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { justify-content: center; }


/* 5. Hero (#inicio)
   -------------------------------------------------------------------------- */
#inicio {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding: 160px 0 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
#orbit-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }

.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.hero-sub {
  max-width: 480px; margin-bottom: 40px;
  color: var(--muted); font-size: 1.1rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Símbolo grande: a espiral se desenha uma vez e o pixel aparece no fim */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-mark { width: clamp(200px, 24vw, 300px); height: auto; color: var(--white); overflow: visible; }
.hero-mark .mark-line {
  stroke-dasharray: 160; stroke-dashoffset: 160;
  animation: mark-draw 2.2s steps(28, end) .3s forwards;
}
.hero-mark .mark-pixel { opacity: 0; animation: mark-pixel .01s linear 2.5s forwards; }
@keyframes mark-draw { to { stroke-dashoffset: 0; } }
@keyframes mark-pixel { to { opacity: 1; } }


/* 6. Serviços (#servicos)
   -------------------------------------------------------------------------- */
#servicos { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 32px; }
.service-icon { color: var(--accent); margin-bottom: 20px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.service-features {
  list-style: none; margin-top: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.service-features li {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 0.85rem;
}
.service-features li::before {
  content: ''; flex-shrink: 0;
  width: 8px; height: 1px; background: var(--accent);
}
.service-features { margin-bottom: 24px; }
.service-card .service-price {   /* fica no pé do card, alinhado entre os três */
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  color: var(--white);
}


/* 7. Portfólio (#portfolio)
   Cada .case: prints (computador + celular sobreposto) e texto.
   Os cases pares invertem o lado do print.
   -------------------------------------------------------------------------- */
#portfolio { background: var(--bg-alt); }
.cases { display: flex; flex-direction: column; gap: 96px; }
.case { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.case:nth-child(even) .case-shots { order: 2; }

.case-shots { position: relative; padding-bottom: 40px; }
.case-shots img { display: block; height: auto; border: 1px solid var(--line); }
.shot-desktop { width: 88%; border-radius: var(--radius); }
.shot-mobile {
  position: absolute; right: 0; bottom: 0;
  width: 24%; border-radius: 10px;
  box-shadow: 0 0 0 6px var(--bg-alt);   /* recorte da cor do fundo em volta do celular */
}

.case-type { color: var(--accent); font-size: 0.85rem; margin-bottom: 8px; }
.case-info h3 { font-size: 1.5rem; margin-bottom: 14px; }
.case-info > p:not(.case-type) { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.case-items { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.case-items li,
.tech-tag {
  padding: 4px 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--white);
}
.case-items li { font-size: 0.8rem; }
.case-link {
  color: var(--accent); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.case-link:hover { color: var(--white); }
.cases-note { margin-top: 72px; color: var(--muted); font-size: 0.85rem; }


/* 8. Processo (#processo)
   -------------------------------------------------------------------------- */
#processo { background: var(--bg); }
.process-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-grid::before {   /* linha que liga os números */
  content: ''; position: absolute;
  top: 28px; left: 10%; right: 10%; height: 1px;
  background: var(--line);
}
.process-step { position: relative; padding-top: 8px; text-align: center; }
.step-num {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin: 0 auto 24px;
  background: var(--bg);
  border: 1px solid var(--accent); border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
}
.process-step h3 { font-size: 1rem; margin-bottom: 10px; }
.process-step p { color: var(--muted); font-size: 0.86rem; line-height: 1.6; }


/* 9. Sobre (#sobre)
   -------------------------------------------------------------------------- */
#sobre { background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-card {
  padding: 32px;
  background: var(--bg2);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.about-card p { color: var(--muted); font-size: .9rem; line-height: 1.7; margin-bottom: 20px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tech-tag { font-size: 0.82rem; }

.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.value-list { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.value-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; }
.value-list .icon { display: flex; flex-shrink: 0; margin-top: 3px; color: var(--accent); }


/* 10. Dúvidas (#duvidas)
   <details> nativo: abre e fecha sem JS, com teclado incluído.
   -------------------------------------------------------------------------- */
#duvidas { background: var(--bg); }
.faq { max-width: 760px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; flex-shrink: 0;
  color: var(--accent); font-size: 1.4rem; line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq-item p { max-width: 640px; padding-bottom: 22px; color: var(--muted); line-height: 1.7; }


/* 11. Contato (#contato)
   -------------------------------------------------------------------------- */
#contato { background: var(--bg); padding: 120px 0; }
.cta-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta-inner h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 20px; }
.cta-inner p { color: var(--muted); font-size: 1.05rem; margin-bottom: 40px; }


/* 12. Footer
   -------------------------------------------------------------------------- */
footer {
  padding: 48px 0 32px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: space-between; align-items: center;
}
.footer-copy { color: var(--muted); font-size: 0.86rem; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--muted); font-size: 0.86rem; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }


/* 13. Animações
   .reveal entra ao rolar (o JS adiciona .visible).
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-mark .mark-line { stroke-dashoffset: 0; }
  .hero-mark .mark-pixel { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}


/* 14. Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .hero-mark { width: 150px; }

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

  .cases { gap: 72px; }
  .case { grid-template-columns: 1fr; gap: 32px; }
  .case:nth-child(even) .case-shots { order: 0; }

  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
}

@media (max-width: 520px) {
  :root { --section-y: 72px; }
  .process-grid { gap: 16px; }
}
