/* ============================================================
   CASSIO KASSAMATSU — "CENTRAL DE SISTEMAS"
   THESIS: sites inteligentes, feitos com meios inteligentes —
   o estúdio tratado como uma central de sistemas modulares, não
   como agência genérica.
   OWN-WORLD: sinalização Bauhaus/industrial — preto como base,
   amarelo-sinal como cor de comprometimento, branco para leitura.
   Formas primárias (círculo, triângulo, quadrado) como motivo
   recorrente. Tipografia geométrica contundente (Archivo Black)
   + corpo humanista (Work Sans). Cantos retos, nunca arredondados.
   ============================================================ */
:root {
  --ink: #0d0d0c;
  --ink-soft: #55534c;
  --paper: #ffffff;
  --paper-warm: #faf8f0;
  --yellow: #ffc800;
  --yellow-deep: #b88900;
  --yellow-pale: #fff3cc;
  --line: rgba(13,13,12,0.14);
  --line-on-dark: rgba(255,255,255,0.16);
  --shadow: 0 24px 60px -20px rgba(13,13,12,0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1240px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--paper); color: var(--ink); line-height: 1.65; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px,4vw,40px); }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper-warm); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--paper-warm); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--ink); padding: 12px 20px; z-index: 10000; font-weight: 700; }
.skip-link:focus { left: 16px; top: 16px; }

/* ===== type ===== */
h1, h2, h3, .display { font-family: 'Archivo Black', 'Work Sans', sans-serif; font-weight: 400; line-height: 1.02; letter-spacing: -0.01em; text-transform: uppercase; }
h1 { font-size: clamp(36px, 5.6vw, 68px); }
h2 { font-size: clamp(28px, 4vw, 46px); }
h3 { font-size: clamp(18px, 2vw, 22px); font-family: 'Work Sans', sans-serif; font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1.25; }
.lede { font-size: clamp(16px, 1.8vw, 19px); color: var(--ink-soft); max-width: 48ch; }
em.hl { font-style: normal; background: var(--yellow); padding: 4px 10px; line-height: 1.5; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.on-dark { color: var(--paper); }
.on-dark .lede { color: rgba(255,255,255,0.72); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.eyebrow .sw { width: 10px; height: 10px; background: var(--yellow); flex: none; }
.eyebrow.on-dark { color: var(--paper); }

/* ===== buttons — square signal shape ===== */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; font-family: 'Work Sans', sans-serif; font-weight: 700; font-size: 15px; border: 2px solid var(--ink); cursor: pointer; transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--ink); color: var(--yellow); transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--yellow); color: var(--ink); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline.on-dark { color: var(--paper); border-color: var(--paper); }
.btn-outline.on-dark:hover { background: var(--paper); color: var(--ink); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 12px 22px; font-size: 13px; }
.microcopy { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; }

/* ===== header ===== */
.navbar { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-bottom: 2px solid var(--ink); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: 'Archivo Black', sans-serif; font-size: 16px; text-transform: uppercase; display: block; line-height: 1.1; }
.brand-role { font-size: 10.5px; color: var(--ink-soft); letter-spacing: 1px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a:not(.btn) { font-size: 14px; font-weight: 700; color: var(--ink-soft); transition: color 0.2s; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px; background: var(--yellow); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 6px 0; }
@media (max-width: 880px) {
  .mobile-toggle { display: block; }
  .nav-links { position: fixed; top: 78px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 26px; gap: 22px; border-bottom: 2px solid var(--ink); transform: translateY(-120%); transition: transform 0.35s var(--ease); z-index: 999; align-items: flex-start; }
  .nav-links.active { transform: translateY(0); }
}

/* ===== sections ===== */
.section { padding: clamp(60px,8vw,110px) 0; }
.section.dark { background: var(--ink); color: var(--paper); }
.section.warm { background: var(--paper-warm); }
.section-head { max-width: 680px; margin-bottom: clamp(36px,5vw,56px); }
.section-head h2 { margin-bottom: 14px; }

/* ===== hero ===== */
.hero { background: var(--ink); color: var(--paper); padding: clamp(56px,8vw,96px) 0 0; position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 880px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 em.hl { background: var(--yellow); color: var(--ink); }
.hero .lede { color: rgba(255,255,255,0.75); margin-bottom: 34px; font-size: clamp(17px,2vw,20px); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }

.stat-strip { border-top: 2px solid var(--line-on-dark); margin-top: clamp(48px,7vw,72px); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-item { padding: 28px clamp(8px,2vw,24px); border-right: 2px solid var(--line-on-dark); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Archivo Black', sans-serif; font-size: clamp(30px,4vw,44px); color: var(--yellow); line-height: 1; }
.stat-label { font-size: 12.5px; color: rgba(255,255,255,0.65); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
@media (max-width: 700px) { .stat-grid { grid-template-columns: 1fr; } .stat-item { border-right: none; border-bottom: 2px solid var(--line-on-dark); } .stat-item:last-child { border-bottom: none; } }

/* ===== pillars ===== */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--ink); }
.pillar { background: var(--paper); padding: 34px 30px; }
.pillar .shape { width: 46px; height: 46px; margin-bottom: 22px; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--ink-soft); font-size: 14.5px; }
@media (max-width: 820px) { .pillars-grid { grid-template-columns: 1fr; } }
.pillar-link { display: block; text-decoration: none; color: inherit; transition: background-color 0.2s; }
.pillar-link:hover { background: var(--yellow-pale); }

/* ===== trajetória / journey ===== */
.journey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--ink); border: 2px solid var(--ink); margin-top: 8px; }
.journey-step { background: var(--paper); padding: 32px 28px; }
.journey-step .num { font-family: 'Archivo Black', sans-serif; font-size: 40px; color: var(--yellow-deep); line-height: 1; margin-bottom: 14px; }
.journey-step h3 { margin-bottom: 8px; }
.journey-step p { color: var(--ink-soft); font-size: 14.5px; }
@media (max-width: 820px) { .journey-grid { grid-template-columns: 1fr; } }

/* ===== featured clients strip ===== */
.clients-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 2px; background: var(--line); border: 2px solid var(--ink); }
.client-chip { background: var(--paper); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; transition: background-color 0.2s; }
.client-chip:hover { background: var(--yellow-pale); }
.client-chip .cc-name { font-weight: 700; font-size: 15px; }
.client-chip .cc-meta { font-size: 12.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.5px; }
.client-chip .cc-link { font-size: 13px; font-weight: 700; margin-top: 4px; }

/* ===== CTA banner ===== */
.cta-banner { background: var(--yellow); padding: clamp(48px,7vw,80px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { max-width: 640px; }
@media (max-width: 700px) { .cta-inner { flex-direction: column; align-items: flex-start; } }

/* ===== clientes page ===== */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn { padding: 10px 20px; border: 2px solid var(--ink); background: var(--paper); font-weight: 700; font-size: 13px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-btn.active { background: var(--ink); color: var(--paper); }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.client-card { background: var(--paper); padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.client-card .badge { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; background: var(--yellow-pale); color: var(--ink); padding: 4px 10px; }
.client-card h3 { font-size: 17px; }
.client-card .city { font-size: 13px; color: var(--ink-soft); }
.client-card .rating { font-size: 13px; font-weight: 700; color: var(--yellow-deep); }
.client-card .visit { margin-top: auto; font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.client-card .visit svg { width: 15px; height: 15px; }

/* ===== projetos page ===== */
.case-list { display: grid; gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.case-item { background: var(--paper); padding: clamp(28px,4vw,44px); display: grid; grid-template-columns: 200px 1fr auto; gap: clamp(20px,3vw,40px); align-items: center; }
.case-item .case-tag { font-family: 'Archivo Black', sans-serif; font-size: 13px; text-transform: uppercase; color: var(--yellow-deep); }
.case-item h3 { margin-bottom: 8px; }
.case-item p { color: var(--ink-soft); font-size: 14.5px; max-width: 62ch; }
@media (max-width: 820px) { .case-item { grid-template-columns: 1fr; text-align: left; } }

.roadmap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.roadmap-card { background: var(--paper); padding: 30px 26px; position: relative; }
.roadmap-card .tag-soon { position: absolute; top: 20px; right: 20px; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: var(--ink); color: var(--yellow); padding: 4px 10px; }
.roadmap-card .shape { width: 40px; height: 40px; margin-bottom: 18px; }
.roadmap-card h3 { margin-bottom: 8px; padding-right: 90px; color: var(--ink); }
.roadmap-card p { color: var(--ink-soft); font-size: 14px; }

/* ===== contact ===== */
.contact-section { background: var(--ink); color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-direct-list { display: grid; gap: 2px; margin-top: 28px; }
.contact-direct-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: rgba(255,255,255,0.05); transition: background-color 0.2s; }
.contact-direct-item:hover { background: rgba(255,255,255,0.1); }
.contact-direct-item svg { width: 22px; height: 22px; flex: none; color: var(--yellow); }
.contact-direct-item .lbl { font-size: 11px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 1px; }
.contact-direct-item .val { font-weight: 700; font-size: 15px; }

.contact-form { background: var(--paper); color: var(--ink); padding: clamp(28px,4vw,40px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; color: var(--ink-soft); }
.form-control { width: 100%; border: 2px solid var(--line); padding: 13px 14px; font-size: 14.5px; font-family: 'Work Sans', sans-serif; color: var(--ink); background: var(--paper-warm); transition: border-color 0.2s; }
.form-control:focus { border-color: var(--ink); outline: none; }
textarea.form-control { min-height: 100px; resize: vertical; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } .contact-grid { grid-template-columns: 1fr; } }

/* ===== footer ===== */
.footer { background: var(--paper); color: var(--ink); padding: 56px 0 24px; border-top: 2px solid var(--ink); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h5 { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 18px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: var(--ink-soft); transition: color 0.2s; }
.footer-links a:hover { color: var(--ink); }
.footer-brand p { font-size: 14px; color: var(--ink-soft); margin-top: 14px; max-width: 42ch; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; text-align: center; font-size: 12.5px; color: var(--ink-soft); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 9999; width: 58px; height: 58px; background: var(--yellow); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: transform 0.3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: var(--ink); }

/* ===== sunflower motif + scroll flow =====
   Petals are triangles, not literal flower curves — "lembra" um girassol
   sem desenhar um. --scroll (0→1) é atualizado no scroll e alimenta tanto
   a rotação extra quanto a variação de matiz das pétalas. */
:root { --scroll: 0; }
.deco-host { position: relative; overflow: hidden; }
.deco-host > .container { position: relative; z-index: 2; }
.petal-burst { position: absolute; pointer-events: none; z-index: 1; filter: hue-rotate(calc(var(--scroll) * 18deg)) saturate(calc(1 + var(--scroll) * 0.3)); }
.petal-burst svg { width: 100%; height: 100%; display: block; }
.pb-petal-y { fill: var(--yellow); }
.pb-petal-w { fill: #ffffff; opacity: 0.85; }
.pb-petal-i { fill: var(--ink); }
.pb-core { fill: var(--ink); stroke: var(--yellow); stroke-width: 4; }
.pb-core-y { fill: var(--yellow); stroke: none; }
.pb-scrollspin { transform: rotate(calc(var(--scroll) * 300deg)); transform-origin: 50% 50%; transition: transform 0.05s linear; }
.pb-spin { transform-origin: 50% 50%; animation: pbSpin var(--pb-speed, 50s) linear infinite; }
.pb-reverse .pb-spin { animation-direction: reverse; }
.pb-core { animation: pbPulse 4.5s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes pbSpin { to { transform: rotate(360deg); } }
@keyframes pbPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) {
  .pb-spin, .pb-core { animation: none; }
  .pb-scrollspin { transform: none; }
  .petal-burst { filter: none; }
}

.pb-hero-a { width: clamp(220px,26vw,360px); height: clamp(220px,26vw,360px); top: -12%; right: -8%; opacity: 0.95; }
.pb-hero-b { width: clamp(140px,16vw,220px); height: clamp(140px,16vw,220px); bottom: 4%; left: 6%; opacity: 0.4; --pb-speed: 70s; }
@media (max-width: 780px) { .pb-hero-a, .pb-hero-b { display: none; } }

.pb-corner { width: 220px; height: 220px; opacity: 0.1; --pb-speed: 90s; }
.pb-corner.pb-tr { top: -70px; right: -70px; }
.pb-corner.pb-bl { bottom: -70px; left: -70px; }
@media (max-width: 700px) { .pb-corner { width: 140px; height: 140px; } }

/* ===== scroll progress + parallax (movimento contínuo ao rolar) ===== */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 4px; background: var(--yellow); transform: scaleX(var(--scroll)); transform-origin: 0 center; z-index: 1001; pointer-events: none; }

[data-parallax] { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { transform: none; }
  [data-parallax] { transform: none !important; }
}

/* ===== reveals ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .reveal-up.visible { opacity: 1; transform: translateY(0); }
  .reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .reveal-scale.visible { opacity: 1; transform: scale(1); }
}
