/* ── Reset ── */

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

:root {
  --orange: #ff6a00;
  --black: #111111;
  --white: #ffffff;
  --gray: #777777;
  --border: #e8e8e8;
  --subtle: #f8f8f8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilities ── */

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 52px;
}

.accent { color: var(--orange); }

.eyebrow {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 28px;
}

.section-heading {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.link-arrow {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--orange);
  text-decoration: none;
  transition: opacity 0.2s;
}
.link-arrow:hover { opacity: 0.65; }

/* ── Logo ── */

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ── Buttons ── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 7px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s;
}
.btn-text:hover { color: var(--orange); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--black);
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* ── Navbar ── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 52px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--orange); }

.nav-link.active {
  color: var(--orange);
  font-weight: 500;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.navbar.scrolled {
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  padding: 4px;
  line-height: 0;
}

/* ── Hero ── */

.hero {
  padding: 100px 0 52px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 52px;
}

.hero-content { max-width: 420px; }

.hero-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 18px;
}

.hero-desc {
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--gray);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Hero visual */

.hero-visual {
  flex: 1;
  position: relative;
  height: 240px;
}

.viz-box {
  position: absolute;
  top: 10px;
  left: 0;
  right: 64px;
  bottom: 50px;
  border: 1px solid var(--border);
}

.viz-mark {
  position: absolute;
  font-size: 0.78rem;
  color: var(--orange);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.viz-box .top-right    { top: -7px;  right: -7px; }
.viz-box .center-right { top: 50%;   right: -7px; transform: translateY(-50%); }
.viz-box .center-mid   { top: 55%;   left: 44%;   font-size: 0.55rem; opacity: 0.55; }
.hero-visual .far-bottom { bottom: 0; right: 0; }

.viz-glow {
  position: absolute;
  bottom: -30px;
  right: -20px;
  width: 220px;
  height: 190px;
  background: radial-gradient(ellipse at 65% 65%, rgba(255,106,0,0.14) 0%, transparent 66%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gray);
}

/* ── Sections ── */

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

/* ── Sobre ── */

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.sobre-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-top: 4px;
}

.sobre-body p {
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--gray);
}

/* ── Projetos ── */

.section-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.section-row .eyebrow { margin-bottom: 0; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  border-color: #c5c5c5;
  box-shadow: 0 3px 16px rgba(0,0,0,0.05);
}

.card-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card-desc {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--gray);
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 4px; }

.tag {
  font-size: 0.62rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--gray);
}

.card-arrow {
  color: var(--orange);
  text-decoration: none;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.card-arrow:hover { transform: translateX(3px); }

.card-soon {
  align-items: center;
  justify-content: center;
  background: var(--subtle);
  border-style: dashed;
  gap: 8px;
}
.card-plus { font-size: 1.4rem; font-weight: 300; color: #c0c0c0; line-height: 1; }
.card-soon p { font-size: 0.75rem; color: #aaa; text-align: center; line-height: 1.5; }

.card-empty { background: var(--subtle); border-style: dashed; border-color: #e2e2e2; }

/* ── Processo ── */

.processo-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: start;
}

.processo-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 40px;
}
.processo-item:first-child { padding-left: 0; }
.processo-item:last-child  { padding-right: 0; }

.processo-sep { background: var(--border); align-self: stretch; }

.processo-icon { color: var(--orange); }

.processo-item h3 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.processo-item p {
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--gray);
}

/* ── GitHub ── */

.github-grid {
  display: flex;
  align-items: center;
  gap: 56px;
}

.github-stats {
  flex: 1;
  display: flex;
  gap: 36px;
}

.github-soon {
  flex: 1;
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ── Footer ── */

.footer { padding: 60px 0 0; }

.footer-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 60px;
  align-items: start;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}

.footer-cta p {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-col-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--black);
}

.footer-col a {
  font-size: 0.72rem;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  padding: 18px 0;
  font-size: 0.62rem;
  color: #bbb;
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 960px) {
  .navbar { padding: 14px 28px; }
  .nav-list { gap: 20px; }
  .container { padding: 0 28px; }

  .hero { padding: 72px 0 40px; }
  .hero-inner { flex-direction: column; gap: 0; margin-bottom: 36px; }
  .hero-content { max-width: 100%; }
  .hero-visual { display: none; }

  .section { padding: 72px 0; }

  .sobre-grid { grid-template-columns: 1fr; gap: 24px; }

  .projects-grid { grid-template-columns: 1fr 1fr; }
  .card-empty { display: none; }

  .github-grid { flex-direction: column; align-items: flex-start; gap: 28px; }
  .github-stats { flex-wrap: wrap; gap: 20px 32px; }

  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { flex-wrap: wrap; gap: 24px 40px; }
}

/* Mobile */
@media (max-width: 620px) {
  .navbar { padding: 14px 20px; }
  .container { padding: 0 20px; }
  .menu-btn { display: flex; }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .nav-list.open { display: flex; }
  .nav-list li { width: 100%; }
  .nav-link { display: block; padding: 12px 20px; }
  .nav-link.active::after { display: none; }

  .hero { padding: 56px 0 36px; }
  .hero-title { margin-bottom: 14px; }
  .hero-desc { margin-bottom: 22px; }
  .hero-inner { margin-bottom: 28px; }

  .section { padding: 56px 0; }

  .projects-grid { grid-template-columns: 1fr; }
  .card-soon { display: none; }

  .processo-grid { grid-template-columns: 1fr; gap: 28px; }
  .processo-sep { display: none; }
  .processo-item,
  .processo-item:first-child,
  .processo-item:last-child { padding: 0; }

  .github-stats { gap: 16px 28px; }
  .stat-num { font-size: 1.3rem; }

  .footer { padding: 44px 0 0; }
  .footer-main { gap: 24px; padding-bottom: 32px; }
  .footer-links { flex-direction: column; gap: 18px; }
  .footer-bottom { font-size: 0.58rem; }
}
