/* ==========================================================================
   Lucas Alberto — Design tokens
   ========================================================================== */

:root {
  --ink: #10161d;
  --ink-soft: #1a222b;
  --ink-line: rgba(237, 239, 240, 0.14);

  --paper: #edeff0;
  --paper-dim: #e2e5e5;

  --text-on-paper: #161c22;
  --text-on-paper-muted: #4b555e;

  --text-on-ink: #edeff0;
  --text-on-ink-muted: #9aa5ac;

  --signal: #3aa6a0;
  --signal-strong: #2c8580;

  --whatsapp: #2fae72;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;

  --gutter: clamp(1.5rem, 5vw, 5rem);
  --radius: 4px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}


/* ==========================================================================
   Reset básico
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-on-paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2 {
  font-family: var(--font-display);
  margin: 0;
}

p {
  margin: 0 0 1em;
}

button {
  font-family: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}


/* ==========================================================================
   Acessibilidade
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--signal);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 999;
}

.skip-link:focus {
  left: var(--gutter);
  top: 1rem;
}


/* ==========================================================================
   Layout helpers
   ========================================================================== */

.section-inner {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-block: calc(var(--gutter) + 3rem) var(--gutter);
}

/* Conteúdo um pouco acima do centro no desktop */
.section > .section-inner {
  position: relative;
  top: -2.5rem;
}

.section--dark {
  background: var(--ink);
  color: var(--text-on-ink);
}

.section--light {
  background: var(--paper);
  color: var(--text-on-paper);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--signal);
  margin: 0 0 1rem;
  font-weight: 500;
}

.eyebrow--dark {
  color: var(--signal-strong);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.section-title--onDark {
  color: var(--text-on-ink);
}


/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   Navegação entre seções
   ========================================================================== */

.section-next {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translateX(-50%);

  border: 1px solid var(--ink-line);
  border-radius: 50%;

  color: var(--signal);

  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;

  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease);

  animation: sectionArrow 2s ease-in-out infinite;
}

.section-next:hover,
.section-next:focus-visible {
  color: var(--text-on-ink);
  background: rgba(58, 166, 160, 0.1);
  border-color: var(--signal);

  transform: translateX(-50%) translateY(-3px);
}

.section--light .section-next {
  border-color: var(--paper-dim);
  color: var(--signal-strong);
}

.section--light .section-next:hover,
.section--light .section-next:focus-visible {
  color: var(--signal-strong);
  background: rgba(58, 166, 160, 0.08);
  border-color: var(--signal-strong);
}

@keyframes sectionArrow {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(5px);
  }
}


/* ==========================================================================
   Botões e links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.9em;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 1rem;

  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease);

  border: 1px solid transparent;
}

.btn--primary {
  background: var(--signal);
  color: #06120f;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #46bdb6;
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #06180f;
  font-size: 1.05rem;
  padding: 1.05em 2.4em;
}

.btn--whatsapp:hover,
.btn--whatsapp:focus-visible {
  background: #38c684;
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--signal);
  border-bottom: 1px solid var(--signal-strong);
  padding-bottom: 2px;

  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.link-arrow:hover,
.link-arrow:focus-visible {
  color: #6fc9c3;
  border-color: #6fc9c3;
}


/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;

  background: rgba(16, 22, 29, 0.82);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--ink-line);
}

.nav-container {
  max-width: 1180px;
  margin-inline: auto;

  padding: 1.1rem var(--gutter);

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-on-ink);
}

.nav-logo span {
  color: var(--signal);
}

.nav-menu {
  display: flex;
  gap: 2.25rem;
}

.nav-link {
  position: relative;

  font-size: 0.95rem;
  color: var(--text-on-ink-muted);

  padding-block: 0.3rem;

  transition: color 0.2s var(--ease);
}

.nav-link::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -2px;

  width: 0;
  height: 1px;

  background: var(--signal);

  transition: width 0.25s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-on-ink);
}

.nav-link.is-active {
  color: var(--text-on-ink);
}

.nav-link.is-active::after {
  width: 100%;
}


/* ==========================================================================
   Menu mobile
   ========================================================================== */

.nav-toggle {
  display: none;

  flex-direction: column;
  gap: 5px;

  background: none;
  border: none;

  padding: 0.5rem;

  cursor: pointer;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;

  background: var(--text-on-ink);

  transition:
    transform 0.25s var(--ease),
    opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================================================
   Language toggle
   ========================================================================== */

.lang-toggle {
  background: transparent;
  border: 1px solid var(--ink-line);

  color: var(--text-on-ink-muted);

  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);

  cursor: pointer;

  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  color: var(--text-on-ink);
  border-color: var(--signal);
  background: rgba(58, 166, 160, 0.08);
}


/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  overflow: hidden;
}

.hero-line {
  position: absolute;

  top: 0;
  bottom: 0;

  left: calc(var(--gutter) + 1px);

  width: 1px;

  background: var(--ink-line);
}

.hero-inner {
  max-width: 720px;
}

.hero-title {
  font-size: clamp(2.75rem, 8vw, 5rem);

  font-weight: 700;
  line-height: 1.02;

  letter-spacing: -0.02em;

  margin-bottom: 0.75rem;
}

.hero-role {
  font-family: var(--font-display);

  font-size: clamp(1.1rem, 2vw, 1.4rem);

  color: var(--signal);

  margin-bottom: 1rem;
}

.hero-text {
  color: var(--text-on-ink-muted);

  font-size: 1.05rem;

  max-width: 32ch;

  margin-bottom: 2.25rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;

  gap: 1.5rem;

  margin-top: 2.5rem;

  color: var(--text-on-ink-muted);

  font-size: 0.9rem;
}

.hero-meta > span {
  display: flex;
  gap: 0.4rem;

  align-items: baseline;
}

.hero-meta strong {
  color: var(--text-on-ink);
}

.hero-visual {
  position: absolute;

  right: var(--gutter);
  bottom: var(--gutter);

  width: min(30vw, 260px);

  aspect-ratio: 3/4;

  border: 1px solid var(--ink-line);

  border-radius: var(--radius);

  display: none;
}

@media (min-width: 960px) {
  .hero-visual {
    display: block;
  }
}


/* ==========================================================================
   Serviços
   ========================================================================== */

.services-grid {
  display: grid;

  grid-template-columns: 1.1fr 1fr;

  gap: clamp(2rem, 6vw, 5rem);

  align-items: center;
}

.tabs {
  display: flex;
  gap: 0.5rem;

  border-bottom: 1px solid var(--paper-dim);

  margin-bottom: 1.75rem;
}

.tab {
  background: none;
  border: none;

  border-bottom: 2px solid transparent;

  padding: 0.75rem 0.25rem;

  margin-right: 1.75rem;

  font-size: 1rem;
  font-weight: 500;

  color: var(--text-on-paper-muted);

  cursor: pointer;

  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.tab:hover,
.tab:focus-visible {
  color: var(--text-on-paper);
}

.tab.is-active {
  color: var(--signal-strong);

  border-color: var(--signal-strong);
}

.tab-panel {
  animation: fadeIn 0.35s var(--ease);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-list li {
  padding: 0.85rem 0;

  border-bottom: 1px solid var(--paper-dim);

  font-size: 1.05rem;
}

.service-list li:first-child {
  padding-top: 0;
}

.service-cards {
  display: flex;
  flex-direction: column;

  gap: 1px;

  background: var(--paper-dim);

  border: 1px solid var(--paper-dim);
}

.service-card {
  background: var(--paper);

  padding: 1.15rem 1.25rem;

  border-left: 2px solid transparent;

  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.service-card:hover,
.service-card:focus-within {
  border-left-color: var(--signal-strong);

  background: #fff;
}

.service-card-title {
  font-family: var(--font-display);

  font-size: 1.05rem;
  font-weight: 600;

  margin: 0 0 0.3rem;

  color: var(--text-on-paper);
}

.service-card-text {
  margin: 0;

  color: var(--text-on-paper-muted);

  font-size: 0.95rem;

  max-width: 42ch;
}


/* ==========================================================================
   Tecnologias
   ========================================================================== */

.tech-stack {
  margin-top: 1.5rem;
}

.tech-stack-label {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  gap: 1rem;

  margin: 0;

  padding: 0.65rem 0.95rem;

  border: 1px solid var(--paper-dim);
  border-radius: var(--radius);

  background: transparent;

  color: var(--text-on-paper);

  font-size: 0.95rem;
  font-weight: 500;

  cursor: pointer;

  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.tech-stack-label:hover,
.tech-stack-label:focus-visible {
  color: var(--signal-strong);
  border-color: var(--signal-strong);
  background: rgba(58, 166, 160, 0.06);
}

.tech-toggle-icon {
  display: inline-block;

  font-size: 1rem;

  transition:
    transform 0.25s var(--ease);
}

.tech-stack-label.is-open .tech-toggle-icon {
  transform: rotate(180deg);
}

.tech-stack-list {
  display: grid;

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

  gap: 0.5rem;

  margin-top: 0.8rem;
}

.tech-stack-list[hidden] {
  display: none;
}

.tech-stack-list li {
  padding: 0.6rem 0.75rem;

  border: 1px solid var(--paper-dim);
  border-radius: var(--radius);

  background: rgba(255, 255, 255, 0.35);

  color: var(--text-on-paper-muted);

  font-size: 0.9rem;
}


/* ==========================================================================
   Imagens / blocos visuais
   ========================================================================== */

.visual-frame {
  border-radius: var(--radius);

  overflow: hidden;

  border: 1px solid var(--paper-dim);

  background: var(--ink-soft);

  aspect-ratio: 4/5;
}

.visual-frame img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.visual-frame--round {
  border-radius: 50%;

  aspect-ratio: 1/1;

  max-width: 380px;

  margin-inline: auto;
}


/* ==========================================================================
   Sobre
   ========================================================================== */

.about-grid {
  display: grid;

  grid-template-columns: 1.15fr 0.85fr;

  gap: clamp(2rem, 6vw, 5rem);

  align-items: center;
}

.about-grid .about-visual {
  order: 2;
}

.about-grid .about-text {
  order: 1;
}

.about-text p {
  color: var(--text-on-ink-muted);

  max-width: 52ch;
}

.about-text p:first-of-type {
  color: var(--text-on-ink);

  font-size: 1.15rem;
}

.about-highlight {
  display: flex;
  flex-wrap: wrap;

  gap: 1.5rem;

  margin-top: 2rem;

  padding-top: 1.5rem;

  border-top: 1px solid var(--ink-line);
}

.about-stat {
  display: flex;
  flex-direction: column;

  gap: 0.15rem;
}

.about-stat strong {
  font-family: var(--font-display);

  font-size: 1.1rem;

  color: var(--text-on-ink);
}

.about-stat span {
  font-size: 0.85rem;

  color: var(--text-on-ink-muted);
}


/* ==========================================================================
   Contato
   ========================================================================== */

.contact-inner {
  text-align: center;

  max-width: 620px;
}

.contact-text {
  color: var(--text-on-paper-muted);

  font-size: 1.05rem;

  margin-bottom: 2.25rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 1rem;
}


/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--ink);

  color: var(--text-on-ink-muted);

  padding-block: 2rem;
}

.footer-inner {
  display: flex;

  flex-wrap: wrap;

  gap: 1rem;

  align-items: center;
  justify-content: space-between;

  font-size: 0.9rem;
}

.footer-social {
  display: flex;

  gap: 1.5rem;
}

.footer-social a {
  color: var(--text-on-ink-muted);

  transition: color 0.2s var(--ease);
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--signal);
}


/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 959px) {

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

  .about-grid .about-visual {
    order: 1;

    max-width: 260px;

    margin-inline: auto;
  }

  .about-grid .about-text {
    order: 2;

    text-align: left;
  }

  .services-visual {
    max-width: 320px;

    margin-inline: auto;

    width: 100%;
  }
}


/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 720px) {

  .nav-menu {
    position: fixed;

    top: 64px;

    right: 0;
    left: 0;

    background: var(--ink);

    border-bottom: 1px solid var(--ink-line);

    flex-direction: column;

    gap: 0;

    padding: 0.5rem 0;

    transform: translateY(-8px);

    opacity: 0;

    pointer-events: none;

    transition:
      opacity 0.2s var(--ease),
      transform 0.2s var(--ease);
  }

  .nav-menu.is-open {
    opacity: 1;

    transform: translateY(0);

    pointer-events: auto;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;

    padding: 1rem var(--gutter);
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding-block: 6rem 3rem;
  }

  /*
    Mantemos o deslocamento que já estava no celular.
    Depois ajustamos essa medida separadamente.
  */
  .section > .section-inner {
    top: -1.5rem;
  }

  .tech-stack-list {
    grid-template-columns: 1fr;
  }

  .section-next {
    animation: none;
  }
}