:root {
  --ink: #090b0b;
  --panel: #101313;
  --panel-light: #171b1a;
  --line: #29302e;
  --muted: #99a39f;
  --paper: #edf1ee;
  --acid: #c8ff35;
  --cyan: #78d8d2;
  --font-display: "Space Grotesk", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--ink); color: var(--paper); font-family: var(--font-body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.noise { position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .025; background-image: repeating-linear-gradient(0deg, transparent 0, transparent 2px, #fff 3px); }

.topbar { position: relative; z-index: 20; border-bottom: 1px solid var(--line); }
.topbar__conteudo { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; text-decoration: none; }
.brand__mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--acid); color: var(--acid); font-size: .72rem; }
.nav { display: none; align-items: center; gap: 28px; }
.nav a { color: var(--muted); font-size: .78rem; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.nav a:hover { color: var(--paper); }
.topbar__status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .68rem; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.topbar__status span { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 14px var(--acid); }

.hero { border-bottom: 1px solid var(--line); background: radial-gradient(circle at 82% 20%, rgba(120,216,210,.07), transparent 26%), var(--ink); }
.hero__conteudo { min-height: 620px; display: grid; align-items: center; gap: 40px; padding-block: 64px; }
.terminal { color: var(--muted); font-family: monospace; font-size: .68rem; letter-spacing: .08em; }
.terminal span { color: var(--acid); }
.hero h1 { max-width: 780px; margin: 18px 0 22px; font-family: var(--font-display); font-size: clamp(3.3rem, 12vw, 7.4rem); line-height: .88; letter-spacing: -.07em; }
.hero h1 em { color: var(--muted); font-style: normal; }
.hero__descricao { max-width: 600px; color: #b3bbb7; font-size: 1.05rem; line-height: 1.7; }
.hero__acoes { display: flex; align-items: center; gap: 26px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 18px; min-height: 54px; border: 1px solid transparent; padding: 14px 18px; font-size: .82rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.btn--primary { background: var(--acid); color: var(--ink); }
.btn--primary:hover { background: var(--paper); }
.hero__spec { margin: 0; color: var(--muted); font-size: .68rem; line-height: 1.7; text-transform: uppercase; }
.hero__spec strong { color: var(--paper); }
.system-panel { min-height: 390px; border: 1px solid var(--line); background: rgba(16,19,19,.9); }
.system-panel__head { height: 52px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0 18px; color: var(--muted); font-family: monospace; font-size: .68rem; }
.system-panel__status { color: var(--acid); }
.system-panel__grid { display: grid; grid-template-columns: 1fr 1fr; }
.system-panel__grid div { min-height: 92px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px; }
.system-panel__grid div:nth-child(even) { border-right: 0; }
.system-panel__grid span { color: var(--muted); font-family: monospace; font-size: .62rem; }
.system-panel__grid strong { margin-top: 8px; font-family: var(--font-display); font-size: .78rem; }
.system-panel__graph { height: 145px; display: flex; align-items: end; gap: 8px; padding: 24px 18px 18px; }
.system-panel__graph i { flex: 1; height: 20%; background: var(--cyan); opacity: .35; }
.system-panel__graph i:nth-child(2) { height: 54%; } .system-panel__graph i:nth-child(3) { height: 35%; } .system-panel__graph i:nth-child(4) { height: 72%; } .system-panel__graph i:nth-child(5) { height: 46%; background: var(--acid); opacity: .8; } .system-panel__graph i:nth-child(6) { height: 88%; } .system-panel__graph i:nth-child(7) { height: 57%; } .system-panel__graph i:nth-child(8) { height: 68%; } .system-panel__graph i:nth-child(9) { height: 32%; }

.projects { padding: 80px 0 96px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 32px; }
.section-heading h2, .license h2 { margin: 10px 0 0; font-family: var(--font-display); font-size: clamp(2.6rem, 8vw, 5.2rem); line-height: 1; letter-spacing: -.055em; }
.section-heading > p { display: none; color: var(--muted); font-family: monospace; font-size: .65rem; text-align: right; text-transform: uppercase; }
.section-heading > p span { color: var(--acid); font-family: var(--font-display); font-size: 2.4rem; }
.template-grid { display: grid; gap: 16px; }
.template-card { overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.template-card__image { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #202521; }
.template-card__image img { display: none; }
.template-card__image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 100%); }
.template-card__image::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(135deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 100%); }
.template-card__image:hover::before { background: linear-gradient(135deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,0) 100%); }
.template-card__image:hover::after { background: linear-gradient(135deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 100%); }
.template-card__index { position: absolute; right: 10px; top: 10px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.45); background: rgba(9,11,11,.72); font-family: monospace; font-size: .68rem; }
.template-card__content { min-height: 188px; display: flex; flex-direction: column; padding: 22px; }
.template-card__content > p { margin: 0 0 12px; color: var(--acid); font-family: monospace; font-size: .62rem; text-transform: uppercase; }
.template-card h3 { max-width: 300px; margin: 0; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.05; }
.template-card__link { display: flex; justify-content: space-between; margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: .76rem; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.template-card__link span { color: var(--acid); }
.template-card__actions { display: grid; gap: 8px; margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.template-card__actions a { min-height: 42px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); padding: 10px 12px; color: var(--paper); font-size: .72rem; font-weight: 700; text-decoration: none; }
.template-card__demo { background: transparent; }
.template-card__demo::after { content: "↗"; color: var(--cyan); }
.template-card__buy { background: var(--acid); color: var(--ink) !important; border-color: var(--acid) !important; }
.template-card__buy.is-disabled { background: transparent; color: var(--muted) !important; border-style: dashed !important; border-color: var(--line) !important; cursor: not-allowed; }
.template-card__custom { background: var(--panel-light); }
.template-card__custom::after { content: "WA"; color: var(--acid); font-family: monospace; }
.template-card__actions a:hover { filter: brightness(1.08); }
.template-card__actions a:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }

.about-services { border-top: 1px solid var(--line); padding: 80px 0; background: radial-gradient(circle at 85% 30%, rgba(200,255,53,.06), transparent 24%); }
.about-services__conteudo { display: grid; gap: 32px; }
.about-services h2 { max-width: 650px; margin: 12px 0 0; font-family: var(--font-display); font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1; letter-spacing: -.055em; }
.about-services__conteudo > div:last-child > p { max-width: 650px; color: var(--muted); line-height: 1.75; }
.about-services__cta { margin-top: 18px; }

.license { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 80px 0; }
.license__conteudo { display: grid; gap: 36px; }
.license h2 { max-width: 620px; }
.license__grid { display: grid; gap: 12px; }
.license__grid article { min-height: 210px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); padding: 22px; }
.license__grid article > span { color: var(--acid); font-family: monospace; font-size: .68rem; }
.license__grid h3 { margin: 34px 0 8px; font-family: var(--font-display); font-size: 1.35rem; }
.license__grid p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.license__grid a { display: flex; justify-content: space-between; margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; color: var(--paper); font-size: .72rem; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.license__grid a span { color: var(--acid); }

.contact-bar { border-bottom: 1px solid var(--line); padding: 72px 0; background: var(--ink); }
.contact-bar__conteudo { display: grid; gap: 32px; }
.contact-bar p { margin: 0 0 12px; color: var(--acid); font-family: monospace; font-size: .68rem; text-transform: uppercase; }
.contact-bar h2 { max-width: 620px; margin: 0; font-family: var(--font-display); font-size: clamp(2.2rem, 7vw, 4.6rem); line-height: 1; letter-spacing: -.05em; }
.contact-bar__dados { display: flex; flex-direction: column; gap: 12px; }
.contact-bar__dados a, .contact-bar__dados span { color: var(--muted); font-size: .85rem; }
.contact-bar__dados a { text-decoration: none; }
.contact-bar__dados a:hover { color: var(--acid); }

.portfolio-footer { padding: 24px 0; }
.portfolio-footer__conteudo { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-family: monospace; font-size: .65rem; }
.portfolio-footer p { margin: 0; }
.portfolio-footer p span { color: var(--acid); }

@media (min-width: 768px) {
  .nav { display: flex; }
  .hero__conteudo { grid-template-columns: 62% 38%; min-height: 700px; }
  .section-heading > p { display: block; }
  .projects { padding: 110px 0 130px; }
  .template-grid { grid-template-columns: repeat(2, 1fr); }
  .template-card--featured { grid-column: span 2; display: grid; grid-template-columns: 58% 42%; }
  .template-card--featured .template-card__image { aspect-ratio: 16 / 9; }
  .template-card--featured .template-card__content { min-height: 330px; }
  .license { padding: 110px 0; }
  .license__conteudo { grid-template-columns: 42% 58%; align-items: start; }
  .license__grid { grid-template-columns: repeat(3, 1fr); }
  .contact-bar { padding: 110px 0; }
  .contact-bar__conteudo { grid-template-columns: 58% 42%; align-items: end; }
  .portfolio-footer__conteudo { flex-direction: row; justify-content: space-between; }
  .template-card__actions { grid-template-columns: 1fr 1fr; }
  .template-card__actions .template-card__demo { grid-column: 1 / -1; }
  .about-services { padding: 110px 0; }
  .about-services__conteudo { grid-template-columns: 56% 44%; align-items: end; }
}

@media (min-width: 1080px) {
  .hero__conteudo { grid-template-columns: 68% 32%; }
  .template-grid { grid-template-columns: repeat(3, 1fr); }
  .template-card--featured { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .template-card__image img { transition: none; }
}

.template-preview { position: absolute; inset: 0; overflow: hidden; background: #111; }
.template-preview__chrome { height: 22%; display: flex; align-items: center; gap: 5px; border-bottom: 1px solid rgba(255,255,255,.12); padding: 0 12px; background: rgba(255,255,255,.035); }
.template-preview__chrome i { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); opacity: .75; }
.template-preview__chrome i:nth-child(2) { background: var(--cyan); }
.template-preview__chrome i:nth-child(3) { background: #fff; }
.template-preview__chrome span { margin-left: auto; color: rgba(255,255,255,.45); font-family: monospace; font-size: .52rem; letter-spacing: .08em; }
.template-preview__body { position: relative; height: 78%; display: grid; align-content: center; gap: 10px; padding: 8% 12%; }
.template-preview__body::after { content: ""; position: absolute; right: 7%; top: 12%; width: 26%; height: 76%; border: 1px solid currentColor; opacity: .2; transform: skewY(-8deg); }
.template-preview__body b { position: relative; z-index: 2; max-width: 70%; font-family: var(--font-display); font-size: clamp(.9rem, 2vw, 1.7rem); line-height: .9; }
.template-preview__body > span { position: relative; z-index: 2; width: 58%; height: 3px; background: currentColor; opacity: .22; }
.template-preview__body > span:nth-of-type(2) { width: 42%; }
.template-preview__body em { position: relative; z-index: 2; width: max-content; margin-top: 4px; border: 1px solid currentColor; padding: 6px 8px; font-family: monospace; font-size: .48rem; font-style: normal; }
.template-preview--01 { background: linear-gradient(135deg, #17352e 0 58%, #b96f55 58% 62%, #ede7dc 62%); color: #fff; }
.template-preview--02 { background: linear-gradient(145deg, #ede7dc 0 68%, #53685b 68%); color: #252921; }
.template-preview--02 .template-preview__chrome { background: rgba(37,41,33,.07); border-color: rgba(37,41,33,.12); }
.template-preview--03 { background: linear-gradient(135deg, #eee7df 0 62%, #6e3848 62%); color: #30282a; }
.template-preview--03 .template-preview__body::after { border-radius: 50%; }
.template-preview--04 { background: linear-gradient(135deg, #cc7357 0 62%, #f2b84b 62%); color: #26352f; }
.template-preview--04 .template-preview__body::after { border-radius: 50%; }
.template-preview--05 { background: linear-gradient(135deg, #efeee6 0 64%, #b9d36f 64%); color: #191b1a; }
.template-preview--05 .template-preview__body { text-transform: uppercase; }
.template-preview--06 { background: linear-gradient(145deg, #234f61 0 64%, #dce8e8 64%); color: #263238; }
.template-preview--06 .template-preview__chrome { background: rgba(255,255,255,.06); }
