/* =========================================================
   Lucas Furlan · LF Coding Solutions
   Design system compartilhado entre o CV e o site da empresa.
   Trocar a "cara" da pagina = mudar data-brand no <body>.
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  /* superficies (tema escuro = padrao) */
  --ink:        #0a0c10;
  --ink-2:      #0e1218;
  --panel:      #12161d;
  --panel-2:    #171c25;
  --line:       rgba(255, 255, 255, .085);
  --line-strong:rgba(255, 255, 255, .16);

  /* texto */
  --fg:         #e9edf3;
  --fg-2:       #b6c0cf;
  --fg-3:       #7b8798;

  /* acento — CV (teal) */
  --accent:     #4adec0;
  --accent-2:   #2bb9a2;
  --accent-ink: #04120f;
  --glow:       rgba(74, 222, 192, .16);

  /* tipografia */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", "Cascadia Code", ui-monospace, monospace;

  /* ritmo */
  --maxw:   1140px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --radius-lg: 20px;

  color-scheme: dark;
}

/* acento — LF Coding Solutions (ambar) */
[data-brand="lf"] {
  --accent:     #f7a95c;
  --accent-2:   #e08a37;
  --accent-ink: #180d02;
  --glow:       rgba(247, 169, 92, .16);
}

/* tema claro */
[data-theme="light"] {
  --ink:        #f7f8fa;
  --ink-2:      #ffffff;
  --panel:      #ffffff;
  --panel-2:    #f2f4f8;
  --line:       rgba(10, 12, 16, .10);
  --line-strong:rgba(10, 12, 16, .20);
  --fg:         #10141b;
  --fg-2:       #454f5e;
  --fg-3:       #6c7789;
  --accent:     #0f9b85;
  --accent-2:   #0b7d6b;
  --accent-ink: #ffffff;
  --glow:       rgba(15, 155, 133, .14);
  color-scheme: light;
}
[data-theme="light"][data-brand="lf"] {
  --accent:     #c26a12;
  --accent-2:   #a2560c;
  --accent-ink: #ffffff;
  --glow:       rgba(194, 106, 18, .14);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- utilitarios ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.accent { color: var(--accent); }
.muted { color: var(--fg-2); }

.section { padding: clamp(64px, 9vw, 118px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }

.sec-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }
.sec-head .mono { color: var(--accent); display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.sec-head .mono::before { content: ""; width: 26px; height: 1px; background: var(--accent); flex: none; }
.sec-head h2 { font-size: clamp(1.85rem, 4.2vw, 2.75rem); }
.sec-head p { color: var(--fg-2); margin-top: 14px; font-size: 1.03rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 18px; height: 66px; }

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; margin-right: auto; }
.brand-mark {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700; letter-spacing: -.02em;
}
.brand-txt small { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px; font-size: .89rem; color: var(--fg-2);
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--fg); background: var(--panel); }
.nav-links a.cross { color: var(--accent); }

.icon-btn {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 9px; background: var(--panel);
  color: var(--fg-2); cursor: pointer; transition: color .18s, border-color .18s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--line-strong); }
.icon-btn svg { width: 17px; height: 17px; }
[data-theme="light"] .icon-sun { display: none; }
.icon-moon { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.nav-toggle { display: none; }

/* ---------- botoes ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 10px;
  font-size: .92rem; font-weight: 500; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s, background .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(64px, 10vw, 116px) 0 clamp(56px, 8vw, 92px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 30% 40% -20%;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 75%);
}
.hero-in { position: relative; z-index: 1; }

.tag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px 6px 9px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--panel);
  color: var(--fg-2); font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 3px var(--glow); }

.hero h1 {
  font-size: clamp(2.3rem, 6.4vw, 4.15rem);
  margin: 24px 0 0;
  max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { margin-top: 22px; max-width: 60ch; font-size: clamp(1rem, 1.9vw, 1.16rem); color: var(--fg-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; margin-top: clamp(46px, 7vw, 72px);
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.hero-stats li { background: var(--ink-2); padding: 22px 24px; }
.hero-stats b { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 600; letter-spacing: -.03em; }
.hero-stats span { display: block; color: var(--fg-3); font-size: .82rem; margin-top: 2px; }

/* ---------- sobre ---------- */
.about { display: grid; grid-template-columns: 1.35fr .95fr; gap: clamp(32px, 6vw, 76px); align-items: start; }
.about-body p + p { margin-top: 18px; }
.about-body p { color: var(--fg-2); font-size: 1.03rem; }
.about-body strong { color: var(--fg); font-weight: 600; }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px;
}
.facts li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.facts li:first-child { padding-top: 0; }
.facts .k { color: var(--fg-3); min-width: 96px; flex: none; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding-top: 4px; }
.facts .v { margin: 0; color: var(--fg); }

/* ---------- especialidades ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 18px; }
.spec {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; position: relative; overflow: hidden;
  transition: transform .22s, border-color .22s;
}
.spec::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0; transition: opacity .22s;
}
.spec:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.spec:hover::before { opacity: 1; }
.spec-ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--glow); color: var(--accent); margin-bottom: 18px;
}
.spec-ico svg { width: 20px; height: 20px; }
.spec h3 { font-size: 1.08rem; }
.spec p { color: var(--fg-2); font-size: .92rem; margin-top: 9px; }
.spec ul { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.spec ul li {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 6px; background: var(--panel-2); color: var(--fg-3);
  border: 1px solid var(--line);
}

/* ---------- stack ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stack-col { background: var(--ink-2); padding: 26px; }
.stack-col h3 { font-size: .78rem; font-family: var(--font-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips li {
  padding: 6px 11px; border-radius: 8px; font-size: .84rem;
  background: var(--panel); border: 1px solid var(--line); color: var(--fg-2);
  transition: color .16s, border-color .16s;
}
.chips li:hover { color: var(--fg); border-color: var(--line-strong); }
.chips li.is-core { color: var(--fg); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--glow); }

/* ---------- projetos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter {
  padding: 7px 14px; border-radius: 999px; font-size: .84rem; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--fg-3);
  font-family: var(--font-body); transition: all .18s;
}
.filter:hover { color: var(--fg); border-color: var(--line-strong); }
.filter.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 500; }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.proj {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column;
  transition: transform .22s, border-color .22s, background .22s;
}
.proj:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--panel-2); }
.proj[hidden] { display: none !important; }
.proj-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.proj-kind { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.proj-year { font-family: var(--font-mono); font-size: .7rem; color: var(--fg-3); }
.proj h3 { font-size: 1.14rem; }
.proj > p { color: var(--fg-2); font-size: .93rem; margin-top: 10px; }
.proj-hi { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.proj-hi li { position: relative; padding-left: 18px; font-size: .87rem; color: var(--fg-2); margin-bottom: 7px; }
.proj-hi li::before { content: "\25B8"; position: absolute; left: 0; color: var(--accent); font-size: .8rem; }
.proj-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 18px; }
.proj-tech li {
  font-family: var(--font-mono); font-size: .66rem; padding: 3px 8px;
  border-radius: 5px; background: var(--ink); border: 1px solid var(--line); color: var(--fg-3);
}

/* ---------- timeline ---------- */
.tl { position: relative; padding-left: 30px; max-width: 780px; }
.tl::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 7px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--ink); border: 2px solid var(--line-strong);
}
.tl-item.is-now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.tl-role { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.tl-role h3 { font-size: 1.08rem; }
.tl-when { font-family: var(--font-mono); font-size: .72rem; color: var(--fg-3); letter-spacing: .06em; }
.tl-item p { color: var(--fg-2); font-size: .94rem; margin-top: 8px; }

/* ---------- servicos (LF) ---------- */
.svc {
  display: grid; grid-template-columns: 46px 1fr; gap: 20px;
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--panel); transition: border-color .22s, transform .22s;
}
.svc:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.svc-num { font-family: var(--font-mono); font-size: .86rem; color: var(--accent); padding-top: 3px; }
.svc h3 { font-size: 1.1rem; }
.svc p { color: var(--fg-2); font-size: .93rem; margin-top: 9px; }
.svc ul { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.svc ul li { font-family: var(--font-mono); font-size: .68rem; padding: 4px 9px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); color: var(--fg-3); }

/* ---------- processo ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.step { background: var(--ink-2); padding: 26px; }
.step b { font-family: var(--font-mono); font-size: .72rem; color: var(--accent); letter-spacing: .12em; }
.step h3 { font-size: 1.02rem; margin-top: 12px; }
.step p { color: var(--fg-2); font-size: .89rem; margin-top: 8px; }

/* ---------- cta / contato ---------- */
.cta {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--panel), var(--ink-2));
  padding: clamp(32px, 6vw, 56px); position: relative; overflow: hidden;
}
.cta::before { content: ""; position: absolute; inset: -50% 55% 20% -10%; background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); max-width: 18ch; }
.cta p { color: var(--fg-2); margin-top: 14px; max-width: 55ch; }

.contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 30px; }
.contact-list a {
  display: flex; align-items: center; gap: 13px; padding: 15px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink);
  transition: border-color .18s, transform .18s;
}
.contact-list a:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-list svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.contact-list b { display: block; font-size: .93rem; font-weight: 500; }
.contact-list span { display: block; font-size: .78rem; color: var(--fg-3); font-family: var(--font-mono); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 34px 0; }
.foot-in { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.foot p { font-size: .84rem; color: var(--fg-3); }
.foot nav { display: flex; gap: 18px; font-size: .84rem; }
.foot nav a { color: var(--fg-3); transition: color .18s; }
.foot nav a:hover { color: var(--accent); }

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

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--ink-2); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px; gap: 2px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s;
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 10px; font-size: .95rem; }
  .hero h1 { max-width: none; }
  .facts li { flex-direction: column; gap: 2px; }
  .facts .k { padding-top: 0; }
  .svc { grid-template-columns: 1fr; gap: 10px; }
}

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

@media print {
  .nav, .hero::after, .hero::before, .filters, .foot nav, .icon-btn { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 18px 0; break-inside: avoid; }
  .proj, .spec, .card { break-inside: avoid; border-color: #ccc; }
}

/* ---------- code inline ---------- */
code {
  font-family: var(--font-mono); font-size: .88em;
  padding: 2px 7px; border-radius: 6px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--accent);
}
.sec-head h2 code { font-size: .78em; vertical-align: 2px; }
