:root {
  --green: #8f5bb2;
  --green-dark: #3a1454;
  --ink: #211627;
  --muted: #6f6573;
  --paper: #faf8fc;
  --white: #fff;
  --line: #d9ddd8;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.6 "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: white; color: var(--ink); }
.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute; inset: 0 0 auto; z-index: 10; height: 92px; padding: 0 max(5vw, 1.5rem);
  display: flex; align-items: center; justify-content: space-between; color: white;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; font: 700 1.05rem/1 "Manrope", sans-serif; letter-spacing: .28em; }
.brand-mark {
  width: 42px; height: 42px; display: block; flex: 0 0 auto; border-radius: 50%;
  background: #fff url("devnua-unicorn-logo.png") center 48% / 150% no-repeat;
  box-shadow: 0 0 0 1px rgba(255,255,255,.3);
}
.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.5rem); font-size: .9rem; font-weight: 600; }
.site-nav a { opacity: .88; transition: opacity .2s, color .2s; }
.site-nav a:hover, .site-nav a:focus-visible { opacity: 1; color: var(--green); }
.site-nav .nav-cta { padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.55); opacity: 1; }
.menu-toggle { display: none; border: 0; background: transparent; padding: .5rem; }
.menu-toggle > span:not(.sr-only) { display: block; width: 26px; height: 2px; margin: 6px 0; background: white; }

.hero { min-height: 790px; height: 100svh; max-height: 940px; position: relative; display: flex; align-items: center; color: white; overflow: hidden; }
.hero-image { position: absolute; inset: 0; background: url("devnua-architecture.png") center/cover no-repeat; transform: scale(1.015); }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,10,38,.94) 0%, rgba(43,16,57,.72) 40%, rgba(38,14,50,.12) 74%), linear-gradient(0deg, rgba(30,10,40,.5), transparent 45%); }
.hero-content { position: relative; z-index: 1; width: min(760px, 90vw); margin-left: max(6vw, 1.5rem); padding-top: 4rem; }
.eyebrow, .section-label { margin: 0 0 1.6rem; color: var(--green); font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; font: 600 clamp(3.3rem, 6vw, 6.4rem)/.98 "Manrope", sans-serif; letter-spacing: -.06em; }
.hero h1 span { color: #eadcf3; }
.hero-copy { max-width: 650px; margin: 2rem 0 2.4rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65; color: rgba(255,255,255,.84); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.button { min-height: 52px; padding: .9rem 1.25rem; display: inline-flex; align-items: center; justify-content: center; gap: 1rem; font-weight: 700; font-size: .9rem; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: #a978c8; }
.button-quiet { border: 1px solid rgba(255,255,255,.5); color: white; }
.button-quiet:hover { background: white; color: var(--ink); }
.hero-proof { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); margin-left: 40%; background: rgba(16,27,21,.87); backdrop-filter: blur(14px); border-top: 1px solid rgba(255,255,255,.15); }
.hero-proof div { min-height: 110px; padding: 1.4rem 1.8rem; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid rgba(255,255,255,.14); }
.hero-proof strong { font: 600 1.75rem/1 "Manrope", sans-serif; color: var(--green); }
.hero-proof span { margin-top: .5rem; font-size: .75rem; color: rgba(255,255,255,.68); }

.section { max-width: var(--max); margin: auto; padding: clamp(5rem, 9vw, 9rem) max(5vw, 1.5rem); }
.intro { padding-top: clamp(6rem, 10vw, 10rem); padding-bottom: clamp(6rem, 10vw, 10rem); }
.intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
h2 { margin: 0; font: 600 clamp(2.4rem, 4.7vw, 4.6rem)/1.08 "Manrope", sans-serif; letter-spacing: -.055em; }
.intro-grid > div { padding-top: .6rem; color: var(--muted); font-size: 1.08rem; }
.intro-grid > div p:first-child { margin-top: 0; }

.expertise { max-width: none; background: white; }
.expertise > * { max-width: calc(var(--max) - max(10vw, 3rem)); margin-left: auto; margin-right: auto; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 3rem; align-items: end; margin-bottom: 4rem; }
.section-heading > p { color: var(--muted); font-size: 1.05rem; margin: 0 0 .55rem; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; min-height: 510px; padding: clamp(2rem, 4vw, 3.5rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; transition: background .25s, transform .25s; overflow: hidden; }
.service-card:hover { background: #fbf7fe; }
.service-card.featured { background: var(--green-dark); color: white; }
.service-number { position: absolute; right: 2rem; top: 2rem; color: #a8b0ac; font-size: .75rem; font-weight: 700; }
.featured .service-number { color: rgba(255,255,255,.5); }
.service-icon { width: 48px; height: 48px; margin-bottom: 4rem; color: var(--green); }
.service-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { max-width: 470px; margin: 0 0 1.2rem; font: 600 clamp(1.55rem, 2.2vw, 2.1rem)/1.2 "Manrope", sans-serif; letter-spacing: -.03em; }
.service-card p { max-width: 500px; color: var(--muted); }
.featured p { color: rgba(255,255,255,.73); }
.service-card ul { margin: 2rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.featured ul { border-color: rgba(255,255,255,.15); }
.service-card li { margin: .45rem 0; font-size: .86rem; font-weight: 600; }
.service-card li::before { content: "＋"; margin-right: .7rem; color: var(--green); }

.salsa { padding: max(5vw, 1.5rem); background: #160a1d; color: white; }
.salsa-panel { max-width: 1400px; min-height: 620px; margin: auto; padding: clamp(3rem, 7vw, 7rem); display: grid; grid-template-columns: .85fr 1.15fr; gap: 6vw; align-items: center; border: 1px solid rgba(255,255,255,.13); background: radial-gradient(circle at 18% 18%, rgba(168,111,201,.25), transparent 35%), linear-gradient(145deg, #4b1b65, #1c0c25); }
.section-label.light { color: #cdaee0; }
.salsa-word { font: 700 clamp(4.5rem, 9vw, 8.5rem)/.9 "Manrope", sans-serif; letter-spacing: -.08em; color: var(--green); }
.salsa-word span { font-size: .8rem; vertical-align: top; letter-spacing: 0; }
.salsa-expansion { max-width: 330px; margin: 1.2rem 0 0; color: rgba(255,255,255,.67); font-size: .9rem; letter-spacing: .04em; }
.salsa-copy h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.salsa-copy > p { max-width: 650px; margin: 2rem 0; color: rgba(255,255,255,.7); font-size: 1.05rem; }
.salsa-flow { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); }
.salsa-flow span { padding: .55rem .75rem; border: 1px solid rgba(255,255,255,.18); font-size: .75rem; font-weight: 700; }
.salsa-flow i { color: var(--green); font-style: normal; }

.sectors { max-width: var(--max); }
.sector-list { border-top: 1px solid #bac1bc; }
.sector-list article { display: grid; grid-template-columns: 70px 1fr minmax(280px, .9fr); gap: 2rem; align-items: center; min-height: 140px; border-bottom: 1px solid #bac1bc; }
.sector-list span { color: var(--green-dark); font-size: .72rem; font-weight: 700; }
.sector-list h3 { margin: 0; font: 600 clamp(1.5rem, 2.5vw, 2.25rem)/1.1 "Manrope", sans-serif; letter-spacing: -.04em; }
.sector-list p { margin: 0; color: var(--muted); font-size: .95rem; }

.difference { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(3rem, 8vw, 8rem); }
.difference blockquote { margin: 0; font: 500 clamp(2rem, 3.8vw, 3.6rem)/1.18 "Manrope", sans-serif; letter-spacing: -.045em; }
.principles { border-top: 1px solid var(--line); }
.principles > div { display: grid; grid-template-columns: 42px 1fr; column-gap: 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.principles span { grid-row: 1 / span 2; color: var(--green); font-size: .72rem; font-weight: 700; }
.principles h3 { margin: 0; font: 600 1.1rem/1.3 "Manrope", sans-serif; }
.principles p { margin: .35rem 0 0; color: var(--muted); font-size: .9rem; }

.contact { padding: clamp(4rem, 8vw, 8rem) max(5vw, 1.5rem); display: grid; grid-template-columns: 1.25fr .75fr; gap: 8vw; color: white; background: var(--green-dark); }
.contact > * { align-self: end; }
.contact h2 { max-width: 820px; }
.contact-action p { max-width: 480px; margin: 0 0 2rem; color: rgba(255,255,255,.72); }
.button-light { background: white; color: var(--ink); }
.button-light:hover { background: var(--green); }

footer { padding: 3rem max(5vw, 1.5rem) 2rem; display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; color: rgba(255,255,255,.74); background: #130819; font-size: .82rem; }
.clients { max-width: none; padding-left: max(5vw, 1.5rem); padding-right: max(5vw, 1.5rem); background: #fff; }
.clients > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.clients-heading { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 3rem; align-items: end; margin-bottom: 4rem; }
.clients-heading > p { margin: 0 0 .55rem; color: var(--muted); font-size: 1.05rem; }
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.client-grid article { min-height: 305px; padding: clamp(1.75rem, 3vw, 2.7rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s, transform .2s; }
.client-grid article:hover { background: #fbf7fe; }
.client-icon { width: 60px; height: 60px; margin-bottom: 2.3rem; color: var(--green-dark); }
.client-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.client-grid h3 { margin: 0 0 .8rem; font: 600 1.35rem/1.2 "Manrope", sans-serif; letter-spacing: -.03em; }
.client-grid p { margin: 0; color: var(--muted); font-size: .92rem; }
.footer-brand .brand-mark { width: 38px; height: 38px; }
.footer-brand { color: white; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a:hover { color: var(--green); }
.copyright { grid-column: 1 / -1; margin: 1rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.42); }

@media (max-width: 900px) {
  .site-header { height: 76px; }
  .menu-toggle { display: block; z-index: 2; }
  .site-nav { position: absolute; top: 0; right: 0; width: min(360px, 90vw); min-height: 100vh; padding: 7rem 2rem 3rem; display: none; flex-direction: column; align-items: flex-start; gap: 1.4rem; background: #1d0b27; box-shadow: -20px 0 60px rgba(0,0,0,.25); }
  .site-nav.open { display: flex; }
  .hero { min-height: 0; height: auto; max-height: none; display: block; padding-top: 8rem; }
  .hero-content { padding: 0 0 4rem; }
  .hero-scrim { background: linear-gradient(90deg, rgba(32,10,43,.94), rgba(41,15,53,.34)), linear-gradient(0deg, rgba(28,9,37,.75), transparent); }
  .hero-proof { position: relative; margin-left: 0; }
  .intro-grid, .section-heading, .clients-heading, .salsa-panel, .difference, .contact { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { align-items: start; }
  .salsa-panel { min-height: 0; }
  .service-card { min-height: 460px; }
}

@media (max-width: 640px) {
  .hero { padding-top: 7.5rem; }
  .hero-content { width: auto; margin: 0; padding: 0 1.5rem 3rem; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .hero-proof { grid-template-columns: repeat(2, 1fr); }
  .hero-proof div { min-height: 105px; padding: 1.1rem 1rem; }
  .hero-proof strong { font-size: 1.5rem; }
  .hero-proof span { font-size: .8rem; line-height: 1.35; }
  .service-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .sector-list article { grid-template-columns: 36px 1fr; gap: 1rem; padding: 1.5rem 0; }
  .sector-list p { grid-column: 2; }
  .contact { gap: 2.5rem; }
  footer { grid-template-columns: 1fr; }
  .copyright { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
