:root {
  --azure: #007aff;
  --cobalt: #0055ff;
  --cyan: #38bdf8;
  --graphite: #1e293b;
  --obsidian: #090d16;
  --surface: #0f1522;
  --line: rgb(255 255 255 / 0.08);
  --text: #ffffff;
  --muted: #94a3b8;
  --grad: linear-gradient(135deg, var(--azure), var(--cobalt));
  --radius: 14px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); background: var(--obsidian); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
ol, ul { list-style: none; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--azure); padding: .5rem 1rem; z-index: 99; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { color: var(--cyan); font-size: .75rem; font-weight: 600; letter-spacing: .4em; text-transform: uppercase; margin-bottom: 1rem; }
.lead { color: var(--muted); font-size: 1.125rem; max-width: 56ch; margin-block: 1.25rem 2rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; font-weight: 600; text-decoration: none; padding: .9rem 1.5rem; border: 0; border-radius: 10px; cursor: pointer; font: 600 1rem var(--font); transition: transform .2s, box-shadow .2s; box-shadow: 0 10px 30px -12px rgb(0 122 255 / .7); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgb(0 122 255 / .9); }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }
.link { color: var(--cyan); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgb(9 13 22 / .78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__logo { height: 46px; width: auto; }
.brand__name { font-weight: 800; font-size: 1.2rem; display: flex; flex-direction: column; line-height: 1; }
.brand__name small { font-size: .5rem; font-weight: 600; letter-spacing: .4em; color: var(--azure); margin-top: .3rem; }
.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__menu a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav__menu a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.nav__toggle span { display: block; height: 2px; width: 24px; background: var(--text); margin-inline: auto; transition: transform .25s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 10vw, 8rem); }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 60vw; height: 60vw; background: radial-gradient(circle, rgb(0 85 255 / .22), transparent 60%); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; position: relative; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.hero__mark { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.hero__mark img { width: 72%; filter: drop-shadow(0 30px 60px rgb(0 122 255 / .35)); animation: float 7s ease-in-out infinite; }
.delta-lines { position: absolute; inset: 0; background: repeating-linear-gradient(60deg, transparent 0 38px, var(--line) 38px 39px); clip-path: polygon(50% 2%, 100% 98%, 0 98%); opacity: .9; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* Sections */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 3rem; max-width: 640px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card { position: relative; padding: 2rem 1.75rem; background: linear-gradient(180deg, rgb(30 41 59 / .55), rgb(30 41 59 / .2)); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, transform .25s; overflow: hidden; }
.card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 90px; height: 90px; background: var(--grad); clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: .12; transition: opacity .25s; }
.card:hover { border-color: rgb(0 122 255 / .5); transform: translateY(-4px); }
.card:hover::after { opacity: .35; }
.card__n { color: var(--azure); font-weight: 700; font-size: .85rem; letter-spacing: .1em; }
.card h3 { margin-block: 1rem .6rem; }
.card p { color: var(--muted); font-size: .95rem; }

.finfly { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.finfly__steps { display: grid; gap: 1rem; counter-reset: s; }
.finfly__steps li { counter-increment: s; display: grid; gap: .25rem; padding: 1.4rem 1.5rem 1.4rem 4.2rem; position: relative; background: var(--obsidian); border: 1px solid var(--line); border-radius: var(--radius); }
.finfly__steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 1.5rem; top: 1.4rem; font-weight: 800; color: var(--cyan); }
.finfly__steps span { color: var(--muted); font-size: .95rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.steps li { border-top: 2px solid var(--graphite); padding-top: 1.5rem; }
.steps li span { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 8px; background: var(--grad); font-weight: 700; margin-bottom: 1rem; }
.steps p { color: var(--muted); font-size: .95rem; margin-top: .5rem; }

.why { display: grid; grid-template-columns: .8fr 2fr; gap: 3rem; }
.why__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why__list li { color: var(--muted); font-size: .95rem; border-left: 2px solid var(--azure); padding-left: 1.25rem; }
.why__list strong { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: .4rem; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact__info { display: grid; gap: 1rem; }
.contact__info li { display: grid; }
.contact__info span { font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.contact__info a { font-weight: 600; text-decoration: none; }
.contact__info a:hover { color: var(--cyan); }
.form { display: grid; gap: 1rem; padding: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 500; color: var(--muted); }
.form input, .form textarea { font: inherit; color: var(--text); background: var(--obsidian); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--azure); outline: none; box-shadow: 0 0 0 3px rgb(0 122 255 / .25); }
.form__status { font-size: .9rem; color: var(--cyan); min-height: 1.4em; }

.footer { border-top: 1px solid var(--line); padding-block: 2.5rem; color: var(--muted); font-size: .85rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer img { width: 140px; height: auto; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero__grid, .finfly, .contact, .why { grid-template-columns: 1fr; }
  .hero__mark { max-width: 340px; margin-inline: auto; order: -1; }
  .steps, .why__list { grid-template-columns: 1fr 1fr; }
  .nav__toggle { display: flex; }
  .nav__menu { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.25rem 1.5rem; background: var(--obsidian); border-bottom: 1px solid var(--line); display: none; }
  .nav__menu.open { display: flex; }
  .nav__menu a { padding: .8rem 0; }
  .nav__menu .btn { margin-top: .5rem; }
}
@media (max-width: 560px) { .steps, .why__list { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Projetos em destaque */
.project { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-top: clamp(3rem, 6vw, 5rem); }
.project--flip { grid-template-columns: 1fr 1.25fr; }
.project--flip .project__shot { order: 2; }
.project__shot { text-decoration: none; }
.project__shot { display: block; border-radius: 16px; overflow: hidden; background: var(--graphite); border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .8), 0 0 0 1px rgb(0 122 255 / .15); transition: transform .4s, box-shadow .4s; }
.project__shot:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 50px 90px -30px rgb(0 85 255 / .45), 0 0 0 1px rgb(0 122 255 / .4); }
.project__bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; background: #121a2b; border-bottom: 1px solid var(--line); }
.project__bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.project__bar em { margin-left: .8rem; font-style: normal; font-size: .78rem; color: var(--muted); }
.project__shot img { width: 100%; height: auto; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); border: 1px solid rgb(56 189 248 / .35); padding: .35rem .7rem; border-radius: 999px; }
.project__copy h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; margin-block: 1rem .8rem; }
.project__copy > p { color: var(--muted); margin-bottom: 1.5rem; }
.project__facts { display: grid; gap: .5rem; margin-bottom: 2rem; }
.project__facts li { padding-left: 1.4rem; position: relative; }
.project__facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--grad); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.project__results { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 2rem; }
.project__results li { display: grid; gap: .2rem; padding: 1rem; background: var(--obsidian); border: 1px solid var(--line); border-radius: 12px; font-size: .82rem; color: var(--muted); }
.project__results strong { color: var(--text); font-size: 1rem; }
@media (max-width: 860px) {
  .project, .project--flip { grid-template-columns: 1fr; }
  .project--flip .project__shot { order: 0; }
  .project__results { grid-template-columns: 1fr; }
}

/* ===== Versão clara (remova class="light" do <body> para voltar ao escuro) ===== */
body.light {
  --obsidian: #ffffff;
  --surface: #f5f8fc;
  --line: rgb(15 23 42 / 0.09);
  --text: #0b1220;
  --muted: #526077;
  --cyan: #0369a1;
}
.light .nav { background: rgb(255 255 255 / .85); }
.light .hero::before { background: radial-gradient(circle, rgb(0 122 255 / .12), transparent 60%); }
.light .hero__mark img { filter: drop-shadow(0 30px 50px rgb(0 85 255 / .2)); }
.light .card { background: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / .04), 0 12px 30px -18px rgb(15 23 42 / .18); }
.light .project__shot { background: #fff; box-shadow: 0 40px 70px -35px rgb(15 23 42 / .35), 0 0 0 1px rgb(15 23 42 / .06); }
.light .project__shot:hover { box-shadow: 0 50px 80px -30px rgb(0 85 255 / .3), 0 0 0 1px rgb(0 122 255 / .3); }
.light .project__bar { background: #eef2f7; }
.light .project__bar i { background: #cbd5e1; }
.light .tag { border-color: rgb(3 105 161 / .3); background: rgb(56 189 248 / .08); }
.light .project__results li { background: #fff; }
.light .delta-lines { opacity: .6; }
