:root {
  --bg: #07080c;
  --panel: #10131c;
  --panel-2: #161a25;
  --text: #f7f7f2;
  --muted: #a5adbb;
  --line: rgba(255, 255, 255, .13);
  --lime: #d9ff42;
  --cyan: #56f7dd;
  --violet: #8d7cff;
  --shadow: 0 28px 80px rgba(0, 0, 0, .34);
  --r: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 8, 12, .72);
  backdrop-filter: blur(18px);
  padding: 8px 10px 8px 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
}

.brand img {
  width: 38px;
  height: 38px;
  filter: invert(1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: rgba(247, 247, 242, .78);
  font-size: 14px;
  font-weight: 850;
  padding: 0 13px;
}

.nav a:hover { color: white; background: rgba(255,255,255,.08); }
.nav .nav-pill { background: white; color: #08090d; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: white;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 132px 0 0;
  background:
    linear-gradient(180deg, rgba(7,8,12,.2), var(--bg) 86%),
    radial-gradient(circle at 15% 20%, rgba(86, 247, 221, .26), transparent 32%),
    radial-gradient(circle at 82% 24%, rgba(141, 124, 255, .24), transparent 30%);
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black, transparent 80%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  padding-bottom: 88px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: normal; }

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(44px, 6.4vw, 86px);
  line-height: .93;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(247, 247, 242, .76);
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--lime); color: #08090d; border-color: var(--lime); box-shadow: 0 20px 44px rgba(217,255,66,.18); }
.btn.secondary { background: rgba(255,255,255,.08); color: white; }

.hero-proof {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(217,255,66,.10), transparent 28%),
    rgba(255,255,255,.045);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
}

.hero-proof article {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 6px;
  border-left: 1px solid var(--line);
  padding: 18px 22px;
}

.hero-proof article:last-child {
  border-right: 1px solid var(--line);
}

.hero-proof strong {
  font-size: 20px;
  line-height: 1;
}

.hero-proof span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.section {
  padding: 104px 0;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(520px, 1fr);
  gap: 60px;
  align-items: start;
}

.section-copy {
  position: sticky;
  top: 120px;
}

.section-copy.narrow {
  position: static;
  max-width: 860px;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1;
}

.section-copy p,
.contact-panel p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.service-stack {
  display: grid;
  gap: 14px;
}

.service-card {
  min-height: 190px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 22px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.03)),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 24px;
  transform-style: preserve-3d;
}

.service-card span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--lime);
  color: #08090d;
  font-weight: 950;
}

.service-card h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
}

.service-card p {
  grid-column: 2;
  margin: -52px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.work-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #07080c 0%, #0b0e16 52%, #08090d 100%);
}

.work-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, transparent, black 18%, black 84%, transparent);
}

.work-section .container {
  position: relative;
  z-index: 1;
}

.work-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .52fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

.work-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.work-side {
  display: grid;
  gap: 22px;
}

.work-controls {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  padding: 7px;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: #08090d;
  font-size: 26px;
  line-height: 1;
  font-weight: 950;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

.carousel-btn:hover {
  transform: translateY(-1px);
  background: var(--lime);
}

.carousel-btn:disabled {
  cursor: not-allowed;
  opacity: .38;
  transform: none;
}

.work-controls span {
  min-width: 72px;
  color: white;
  font-size: 13px;
  font-weight: 950;
  text-align: center;
}

.projects-carousel {
  position: relative;
}

.projects-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--lime) rgba(255,255,255,.08);
  border-radius: 32px;
  padding: 2px 2px 22px;
}

.projects-viewport::-webkit-scrollbar {
  height: 10px;
}

.projects-viewport::-webkit-scrollbar-track {
  background: rgba(255,255,255,.08);
  border-radius: 999px;
}

.projects-viewport::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  border-radius: 999px;
}

.projects-track {
  display: flex;
  gap: 18px;
}

.project-card {
  flex: 0 0 min(760px, calc(100vw - 74px));
  min-height: 535px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.095), rgba(255,255,255,.025)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  opacity: .74;
  transform: scale(.985);
  transition: opacity .25s ease, transform .25s ease, border-color .25s ease;
}

.project-card.active {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(217,255,66,.42);
}

.project-preview {
  position: relative;
  min-height: 286px;
  padding: 14px;
  overflow: hidden;
  background: #11151f;
}

.project-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,8,12,.18), rgba(7,8,12,.72));
  opacity: .38;
  z-index: 3;
}

.preview-toolbar,
.preview-window {
  position: relative;
  z-index: 2;
}

.preview-toolbar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.16);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: rgba(7,8,12,.76);
  padding: 0 13px;
  backdrop-filter: blur(14px);
}

.preview-toolbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  opacity: .86;
}

.preview-toolbar span:nth-child(2) {
  background: var(--cyan);
}

.preview-toolbar span:nth-child(3) {
  background: var(--violet);
}

.preview-toolbar strong {
  min-width: 0;
  margin-left: 6px;
  color: rgba(247,247,242,.78);
  font-size: 12px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-window {
  height: 220px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 0 0 20px 20px;
  background: white;
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(0,0,0,.28);
}

.preview-window iframe {
  display: block;
  width: 1280px;
  height: 820px;
  border: 0;
  pointer-events: none;
  transform: scale(.56);
  transform-origin: 0 0;
}

.project-preview.aura {
  background:
    linear-gradient(135deg, rgba(225, 176, 149, .92), rgba(118, 69, 63, .86)),
    #ecd6ca;
}

.project-preview.luma {
  background:
    linear-gradient(135deg, #f5ead8, #caa875 52%, #27372c),
    #efe3cf;
}

.project-preview.nexo {
  background:
    linear-gradient(135deg, #f2f5f8, #4e6484 48%, #111827),
    #dfe8f1;
}

.project-preview.vitta {
  background:
    linear-gradient(135deg, #eaf8f4, #57b6a9 48%, #124c5a),
    #eaf8f4;
}

.project-preview.bruma {
  background:
    linear-gradient(135deg, rgba(126,31,44,.88), rgba(23,17,14,.92)),
    #17110e;
}

.project-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.project-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(247,247,242,.76);
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.project-card h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: .95;
}

.project-card p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 24px;
}

.project-tags span {
  border-radius: 999px;
  background: rgba(217,255,66,.12);
  color: var(--lime);
  font-size: 12px;
  font-weight: 950;
  padding: 7px 10px;
}

.project-link {
  margin-top: auto;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  border-radius: 999px;
  background: white;
  color: #08090d;
  font-size: 14px;
  font-weight: 950;
  padding: 0 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255,255,255,.13);
}

.proposal-section {
  background: #f4f0e6;
  color: #08090d;
}

.proposal-section .eyebrow { color: #2646df; }
.proposal-section .section-copy p { color: #4d5564; }

.proposal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.proposal-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 26px;
  background: white;
  box-shadow: 0 22px 70px rgba(7,8,12,.1);
  padding: 24px;
}

.proposal-card strong {
  font-size: 34px;
  line-height: 1;
}

.proposal-card p {
  color: #596170;
  line-height: 1.6;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(520px, 1fr);
  gap: 60px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.step {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel-2);
  padding: 24px;
}

.step span {
  color: var(--lime);
  font-weight: 950;
}

.step h3 {
  margin: 38px 0 0;
  font-size: 26px;
}

.step p {
  color: var(--muted);
  line-height: 1.55;
}

.contact-section {
  padding-top: 40px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .62fr);
  gap: 52px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(217,255,66,.18), transparent 34%),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 34px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

label {
  color: rgba(247,247,242,.82);
  font-size: 13px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  display: block;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  color: white;
  font: inherit;
  font-size: 15px;
  outline: none;
  padding: 14px;
}

input:focus,
textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(217,255,66,.14);
}

textarea { resize: vertical; }

.footer {
  border-top: 1px solid var(--line);
  color: rgba(247,247,242,.64);
}

.footer-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
  font-weight: 850;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 66px;
  height: 66px;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.3));
  transition: transform .18s ease;
}

.whatsapp-float:hover { transform: translateY(-3px) scale(1.04); }
.whatsapp-float img { width: 66px; height: 66px; object-fit: contain; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.hero .reveal {
  opacity: 1;
  transform: none;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .section-split,
  .process-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .section-copy {
    position: static;
  }

  .proposal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-card {
    flex-basis: min(660px, calc(100vw - 56px));
  }

  .preview-window iframe {
    transform: scale(.48);
  }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 28px); }

  .topbar {
    top: 12px;
    width: calc(100% - 24px);
  }

  .brand span { font-size: 14px; }

  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(7,8,12,.96);
    box-shadow: var(--shadow);
    padding: 10px;
  }
  .nav.open { display: grid; }
  .nav a { justify-content: center; }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-content {
    padding-bottom: 52px;
  }

  h1 {
    max-width: 360px;
    font-size: clamp(38px, 12vw, 52px);
  }

  h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .hero-lead {
    max-width: 360px;
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
    margin: 0 auto 14px;
    padding: 0;
    gap: 10px;
    border-top: 0;
    background: transparent;
    overflow: hidden;
  }

  .hero-proof article {
    min-height: 70px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    align-content: center;
    align-items: center;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.055);
    padding: 13px;
  }

  .hero-proof article:last-child {
    border-right: 1px solid var(--line);
  }

  .hero-proof strong {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .hero-proof span {
    font-size: 12px;
    line-height: 1.25;
    text-align: left;
  }

  .section {
    padding: 68px 0;
  }

  .section-split,
  .process-layout {
    gap: 32px;
  }

  .service-card {
    min-height: auto;
    display: block;
    padding: 20px;
  }

  .service-card h3 {
    margin-top: 26px;
    font-size: 25px;
  }

  .service-card p {
    margin: 12px 0 0;
  }

  .proposal-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .work-controls {
    width: 100%;
    justify-content: space-between;
  }

  .projects-viewport {
    margin-inline: -14px;
    border-radius: 0;
    padding-inline: 14px;
  }

  .project-card {
    flex-basis: calc(100vw - 42px);
    min-height: auto;
  }

  .project-preview {
    min-height: 238px;
    padding: 12px;
  }

  .preview-window {
    height: 178px;
  }

  .preview-window iframe {
    width: 1180px;
    height: 760px;
    transform: scale(.27);
  }

  .project-body {
    padding: 20px;
  }

  .project-link {
    width: 100%;
  }

  .proposal-card {
    min-height: 220px;
  }

  .contact-panel {
    padding: 22px;
  }

  .footer-inner {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .whatsapp-float,
  .whatsapp-float img {
    width: 60px;
    height: 60px;
  }
}
