/* ===== TOKENS ===== */
:root {
  --paper: #f3f1ea;
  --paper-2: #ebe8df;
  --ink: #15140f;
  --ink-soft: #57534a;
  --ink-dim: #908a7c;
  --line: #d9d5c9;
  --accent: #2438ff;          /* troque aqui pra mudar a cor de destaque */
  --accent-ink: #ffffff;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--paper); color: var(--ink);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .logo { font-family: 'Bricolage Grotesque', sans-serif; line-height: 1.0; letter-spacing: -.025em; font-weight: 700; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: var(--accent); }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 999px; font-family: 'Inter'; font-weight: 600; font-size: 1rem; border: 1.5px solid transparent; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn.lg { padding: 18px 38px; font-size: 1.08rem; }

/* ===== HEADER ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 150; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(243,241,234,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-size: 1.15rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.logo i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a { padding: 9px 16px; font-size: .96rem; font-weight: 500; color: var(--ink-soft); border-radius: 999px; transition: color .25s, background .25s; }
.nav > a:hover { color: var(--ink); }
.nav .nav-cta { background: var(--ink); color: var(--paper); }
.nav .nav-cta:hover { background: var(--accent); color: #fff; }
.menu-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { width: 26px; height: 2px; background: var(--ink); transition: .3s; }

/* ===== HERO ===== */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 130px 0 40px; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 34px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #22b04b; box-shadow: 0 0 0 0 rgba(34,176,75,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(34,176,75,.5)} 70%{box-shadow:0 0 0 8px rgba(34,176,75,0)} 100%{box-shadow:0 0 0 0 rgba(34,176,75,0)} }
.hero-title { font-size: clamp(2.6rem, 8vw, 6.6rem); font-weight: 700; letter-spacing: -.03em; margin-bottom: 32px; }
.hero-title .l { display: block; }
.hero-title em { font-style: normal; color: var(--accent); }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%,60%,100%{transform:rotate(0)} 10%{transform:rotate(16deg)} 20%{transform:rotate(-10deg)} 30%{transform:rotate(16deg)} 40%{transform:rotate(-6deg)} 50%{transform:rotate(12deg)} }
.hero-sub { font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--ink-soft); max-width: 600px; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 50px; font-size: .88rem; color: var(--ink-dim); font-weight: 500; }
.hero-scroll { font-family: 'Inter'; }

/* anim entrada */
.anim { opacity: 0; transform: translateY(26px); animation: rise .9s var(--ease) forwards; }
.hero .anim:nth-child(1){animation-delay:.05s} .hero .anim:nth-child(2){animation-delay:.15s} .hero .anim:nth-child(3){animation-delay:.25s} .hero .anim:nth-child(4){animation-delay:.35s} .hero .anim:nth-child(5){animation-delay:.45s}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ===== MARQUEE ===== */
.marquee { overflow: hidden; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: 18px 0; background: var(--ink); }
.marquee-track { display: inline-flex; align-items: center; gap: 22px; white-space: nowrap; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: 'Bricolage Grotesque'; font-size: clamp(1.4rem, 3.4vw, 2.4rem); font-weight: 600; color: var(--paper); }
.marquee-track i { color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== SECTIONS ===== */
.section { padding: 130px 0; }
.section-tint { background: var(--paper-2); }
.sec-head { margin-bottom: 64px; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.kicker.light { color: rgba(255,255,255,.7); }
.sec-head h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: 700; }

/* reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== WORKS ===== */
.works { border-top: 1.5px solid var(--line); }
.work { position: relative; display: grid; grid-template-columns: 64px 1fr auto; gap: 28px; align-items: center; padding: 36px 12px; border-bottom: 1.5px solid var(--line); transition: padding .45s var(--ease), color .3s; }
.work::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--accent); z-index: 0; transition: width .45s var(--ease); }
.work > * { position: relative; z-index: 1; }
.work:hover { padding-left: 32px; padding-right: 32px; color: var(--accent-ink); }
.work:hover::before { width: 100%; }
.work-num { font-size: .92rem; font-weight: 600; color: var(--ink-dim); transition: color .3s; }
.work:hover .work-num { color: rgba(255,255,255,.75); }
.work-main h3 { font-size: clamp(1.7rem, 4vw, 3rem); font-weight: 700; margin-bottom: 8px; }
.work-main p { font-size: 1rem; color: var(--ink-soft); max-width: 560px; margin-bottom: 14px; transition: color .3s; }
.work:hover .work-main p { color: rgba(255,255,255,.85); }
.work-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.work-tags span { font-size: .78rem; font-weight: 500; color: var(--ink-dim); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; transition: color .3s, border-color .3s; }
.work:hover .work-tags span { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.4); }
.work-links { display: flex; flex-direction: column; gap: 10px; min-width: 130px; }
.work-links a { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 600; white-space: nowrap; }
.work-links .lnk-live { color: var(--accent); }
.work-links .lnk-live::after { content: '↗'; transition: transform .3s var(--ease); }
.work-links .lnk-code { color: var(--ink-soft); }
.work:hover .work-links a { color: var(--accent-ink); }
.work-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.work-links a:hover.lnk-live::after { transform: translate(3px,-3px); }
.work-links .lnk-soon { color: var(--ink-dim); cursor: default; }
.works-more { margin-top: 44px; }
.works-more a { font-size: 1.15rem; font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 3px; }
.works-more a:hover { color: var(--accent); }

/* ===== SERVICES ===== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; }
.srv { background: var(--paper-2); padding: 38px 30px; transition: background .3s, transform .3s; }
.section-tint .srv { background: var(--paper); }
.srv:hover { background: var(--ink); }
.srv:hover h3, .srv:hover p, .srv:hover .srv-i { color: var(--paper); }
.srv:hover .srv-i { color: var(--accent); }
.srv-i { display: block; font-family: 'Bricolage Grotesque'; font-size: 1rem; font-weight: 600; color: var(--accent); margin-bottom: 26px; }
.srv h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; transition: color .3s; }
.srv p { font-size: .98rem; color: var(--ink-soft); transition: color .3s; }

/* ===== ABOUT ===== */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; }
.about-l h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.about-r p { font-size: 1.18rem; color: var(--ink-soft); margin-bottom: 22px; }
.about-r strong { color: var(--ink); font-weight: 600; }
.about-stats { display: flex; gap: 48px; margin-top: 40px; padding-top: 36px; border-top: 1.5px solid var(--line); }
.about-stats strong { display: block; font-family: 'Bricolage Grotesque'; font-size: 2.8rem; font-weight: 700; color: var(--accent); line-height: 1; }
.about-stats span { font-size: .92rem; color: var(--ink-dim); }

/* ===== CONTACT ===== */
.contact { background: var(--ink); color: var(--paper); padding: 140px 0; text-align: center; }
.contact-title { font-size: clamp(2.6rem, 8vw, 6rem); font-weight: 700; margin-bottom: 22px; }
.contact > .container > p { font-size: 1.2rem; color: rgba(243,241,234,.7); max-width: 520px; margin: 0 auto 40px; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 50px; }
.contact .btn-line { border-color: var(--paper); color: var(--paper); }
.contact .btn-line:hover { background: var(--paper); color: var(--ink); }
.contact-links { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.contact-links a { font-size: .98rem; color: rgba(243,241,234,.65); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color .25s, border-color .25s; }
.contact-links a:hover { color: var(--paper); border-bottom-color: var(--accent); }

/* ===== FOOTER ===== */
.site-footer { padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; color: var(--ink-dim); }

/* ===== RESPONSIVE ===== */
@media (max-width: 940px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 680px) {
  .container { padding: 0 22px; }
  .nav { position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1.5px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
  .nav.open { max-height: 320px; padding: 12px 0; }
  .nav > a { width: 100%; padding: 15px 28px; border-radius: 0; }
  .nav .nav-cta { margin: 10px 22px; }
  .menu-toggle { display: flex; }
  .menu-toggle.active span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2){ transform: translateY(-8px) rotate(-45deg); }
  .services { grid-template-columns: 1fr; }
  .work { grid-template-columns: 40px 1fr 36px; }
  .work-tags { display: none; }
  .about-stats { gap: 30px; }
  .about-stats strong { font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .anim, .reveal { opacity: 1 !important; transform: none !important; }
}
