/* ==========================================================================
   Synergy Tecnologia — synergytec.com.br
   Warm paper · ink · Locus blue. Apple system type (SF Pro), Inter elsewhere.
   ========================================================================== */

:root {
  --paper: #F4F1EA;
  --paper-2: #FAF8F3;
  --ink: #15140F;
  --ink-2: #3E3B33;
  --muted: #7A756B;
  --hair: rgba(21, 20, 15, .11);
  --hair-strong: rgba(21, 20, 15, .22);
  --accent: #2F6FE0;
  --accent-2: #4A8DEF;
  --accent-soft: rgba(47, 111, 224, .10);

  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --r-xl: 1.75rem;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 48px);

  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(62% 48% at 84% -4%, rgba(47, 111, 224, .08), transparent 62%),
    radial-gradient(48% 40% at 6% 104%, rgba(226, 160, 70, .10), transparent 60%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
  overflow-x: clip;
}

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }

::selection { background: var(--accent); color: #fff; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type ---------- */
.display {
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.1;
  font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.5rem);
  text-wrap: balance;
}
.display--xl {
  font-size: clamp(2.2rem, 1.3rem + 2.7vw, 3.6rem);
  line-height: 1.07;
  letter-spacing: -.028em;
}
.display em {
  font-style: normal;
  background: linear-gradient(92deg, #1F5FD6 0%, #4A8DEF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 9px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .35);
  line-height: 1.2;
}
.eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.lede {
  font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: -.01em;
  color: var(--ink-2);
  max-width: 36em;
  text-wrap: pretty;
}

.tabular { font-variant-numeric: tabular-nums; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 24px -12px rgba(21, 20, 15, .55);
  transition: transform .5s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease);
}
.btn:hover { background: #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 16px 30px -12px rgba(21, 20, 15, .6); }
.btn:active { transform: scale(.98); }
.btn__icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .14);
  transition: transform .6s var(--ease), background .6s var(--ease);
}
.btn__icon svg { width: 14px; height: 14px; }
.btn:hover .btn__icon { transform: translate(2px, -1px) scale(1.06); background: var(--accent); }
.btn--small { padding: 5px 5px 5px 15px; font-size: 13.5px; }
.btn--small .btn__icon { width: 27px; height: 27px; }
.btn__short { display: none; }

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink);
  padding-bottom: 2px;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right;
}
.link:hover::after { animation: underline-run .8s var(--ease) forwards; }
@keyframes underline-run {
  0%   { transform: scaleX(1); transform-origin: right; }
  50%  { transform: scaleX(0); transform-origin: right; }
  51%  { transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}
.link svg { width: 13px; height: 13px; transition: transform .6s var(--ease); }
.link:hover svg { transform: translate(2px, -2px); }
.link--ext { font-size: 14px; color: var(--accent); }
.link--ext::after { background: var(--accent); opacity: .5; }

/* ---------- double-bezel shell ---------- */
.shell {
  background: rgba(21, 20, 15, .045);
  border: 1px solid var(--hair);
  border-radius: var(--r-xl);
  padding: 6px;
}
.core {
  background: var(--paper-2);
  border: 1px solid rgba(21, 20, 15, .06);
  border-radius: calc(var(--r-xl) - 6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 1px 2px rgba(21, 20, 15, .04),
    0 24px 60px -40px rgba(21, 20, 15, .25);
  overflow: hidden;
}

/* ---------- layout primitives ---------- */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
}
.section__head {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(32px, 4.5vw, 52px);
}
.section__sub {
  font-size: 1.05rem;
  line-height: 1.5;
  letter-spacing: -.01em;
  color: var(--ink-2);
  max-width: 40em;
  text-wrap: pretty;
}

/* ---------- top bar ---------- */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.015em;
}
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__sub { color: var(--muted); font-weight: 400; }
.nav { display: flex; gap: 26px; }
.nav a {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink-2);
  transition: color .4s var(--ease);
}
.nav a:hover { color: var(--ink); }

/* ---------- hero (centered) ---------- */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(130px, 14vw, 170px) var(--gutter) clamp(24px, 4vw, 48px);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 22px;
}
.hero .display--xl { max-width: 13.4em; }
.hero .lede { max-width: 34em; }
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ---------- portfolio ---------- */
.product { margin-bottom: 22px; }
.product .core {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: stretch;
}
.product--flip .core { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.product--flip .product__copy { order: 2; }
.product__copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  padding: clamp(28px, 4vw, 48px);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag__sep { width: 14px; height: 1px; background: var(--hair-strong); }
.product__name {
  font-weight: 600;
  font-size: clamp(1.5rem, 1.2rem + .9vw, 1.95rem);
  letter-spacing: -.024em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.product__desc { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; letter-spacing: -.005em; max-width: 32em; text-wrap: pretty; }
.product__copy .link { margin-top: 8px; }

/* clickable visual panel: screenshot fully inside, framed as a browser window */
.product__visual {
  display: grid;
  place-items: center;
  padding: clamp(20px, 3vw, 36px);
  cursor: pointer;
}
.product__visual--sog {
  background:
    radial-gradient(70% 60% at 30% 20%, rgba(255, 255, 255, .06), transparent 70%),
    linear-gradient(160deg, #2A231C 0%, #171310 100%);
}
.product__visual--locus {
  background:
    radial-gradient(70% 60% at 70% 15%, rgba(255, 255, 255, .7), transparent 70%),
    linear-gradient(160deg, #E4EAF3 0%, #D3DCE8 100%);
}
.browser {
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(21, 20, 15, .10),
    0 30px 60px -28px rgba(21, 20, 15, .55),
    0 10px 20px -14px rgba(21, 20, 15, .3);
  transform: translateY(0) scale(1);
  transition: transform 1s var(--ease);
}
.product__visual:hover .browser { transform: translateY(-5px) scale(1.012); }
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: #F3F1EC;
  border-bottom: 1px solid rgba(21, 20, 15, .08);
}
.browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(21, 20, 15, .16); }
.browser__bar em {
  margin-left: 12px;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(21, 20, 15, .05);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  color: var(--muted);
  font-style: normal;
}
.browser img { width: 100%; height: auto; }
.browser--dark { background: #15110E; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -28px rgba(0, 0, 0, .8), 0 10px 20px -14px rgba(0, 0, 0, .5); }
.browser--dark .browser__bar { background: #221C17; border-bottom-color: rgba(255, 255, 255, .06); }
.browser--dark .browser__bar i { background: rgba(255, 255, 255, .16); }
.browser--dark .browser__bar em { background: rgba(255, 255, 255, .06); color: rgba(244, 241, 234, .6); }

/* ---------- mission ---------- */
.mission {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
  padding-top: clamp(40px, 5vw, 64px);
}
.mission .display { max-width: 18ch; }
.mission__body {
  display: grid;
  gap: 18px;
  max-width: 44em;
  margin-top: 6px;
}
.mission__body p {
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  line-height: 1.55;
  letter-spacing: -.01em;
  color: var(--ink-2);
  text-wrap: pretty;
}
.mission__body .mission__pull {
  margin-top: 10px;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.2;
  color: var(--ink);
}

/* ---------- company (compact) + footer ---------- */
.footer {
  max-width: var(--container);
  margin: clamp(32px, 4vw, 56px) auto 0;
  padding: 0 var(--gutter) 36px;
}
.company {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 40px 0 44px;
  border-top: 1px solid var(--hair);
}
.company__intro { display: grid; gap: 14px; align-content: start; justify-items: start; }
.company__blurb { font-size: 14.5px; line-height: 1.5; letter-spacing: -.005em; color: var(--ink-2); max-width: 26em; text-wrap: pretty; }
.company__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 28px;
}
.fact { display: grid; gap: 5px; align-content: start; }
.fact dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact dd { font-size: 14px; line-height: 1.5; letter-spacing: -.005em; color: var(--ink-2); }
.fact dd a { border-bottom: 1px solid var(--hair-strong); transition: color .4s var(--ease), border-color .4s var(--ease); }
.fact dd a:hover { color: var(--accent); border-color: var(--accent); }

.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
}
.footer__copy { font-size: 13.5px; color: var(--muted); font-weight: 400; letter-spacing: -.005em; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { font-size: 13.5px; letter-spacing: -.005em; color: var(--ink-2); transition: color .4s var(--ease); }
.footer__links a:hover { color: var(--ink); }

/* ---------- reveal choreography ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition:
    opacity 1s var(--ease-out) var(--d, 0s),
    transform 1s var(--ease-out) var(--d, 0s),
    filter 1s var(--ease-out) var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .btn, .btn__icon, .browser, .link svg { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .product .core, .product--flip .core { grid-template-columns: minmax(0, 1fr); }
  .product--flip .product__copy { order: 0; }
  .company { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .company__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .topbar { padding: 18px var(--gutter); }
  .nav { display: none; }
  .btn__long { display: none; }
  .btn__short { display: inline; }
  .hero { padding-top: 112px; gap: 18px; text-align: left; justify-items: start; }
  .hero .display--xl { max-width: none; }
  .hero__actions { justify-content: flex-start; gap: 16px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section__head { justify-items: start; text-align: left; margin-left: 0; }
  .product__copy { padding: 26px 22px 28px; }
  .product__visual { padding: 16px; }
  .browser__bar { height: 26px; }
  .mission { text-align: left; justify-items: start; padding-top: 24px; }
  .company { padding: 32px 0 36px; }
  .company__facts { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .footer__bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer__links { gap: 16px; }
}
