:root {
  color-scheme: dark;
  --bg: #0f0a19;
  --surface: #1a1128;
  --panel: #211631;
  --edge: #38294a;
  --ink: #faf6ff;
  --muted: #c5b9d2;
  --accent: #bd77ff;
  --button: #a949f1;
  --display: "Space Grotesk", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; font: 1rem/1.6 "DM Sans", system-ui, sans-serif; background: var(--bg); color: var(--ink); }
body, h1, h2, h3, p { margin-block-start: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.05em; margin-bottom: .8rem; }
h2 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); }
h3 { font-size: 1.52rem; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #d59aff; outline-offset: 4px; }
.skip { position: fixed; inset: 1rem auto auto 1rem; z-index: 5; background: var(--ink); color: var(--bg); padding: .5rem 1rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: min(100% - 4rem, 1220px); margin-inline: auto; }
.header { position: sticky; top: 0; z-index: 3; background: #100a1bee; border-bottom: 1px solid #ffffff16; backdrop-filter: blur(14px); }
.header-inner, .nav, .brand, .actions, .footer-inner, .footer nav { display: flex; align-items: center; }
.header-inner { min-height: 76px; justify-content: space-between; gap: 1rem; }
.brand { gap: .7rem; font-family: var(--display); font-size: 1.38rem; font-weight: 700; line-height: 1; flex-shrink: 0; }
.brand-sub { display: block; font: 700 .65rem/1.2 "DM Sans", sans-serif; letter-spacing: .17em; margin-top: .24rem; }
.brand-icon { width: 38px; height: 29px; overflow: hidden; position: relative; display: block; border-radius: 5px; }
.brand-icon img { position: absolute; width: 61px; max-width: none; left: -11px; top: -7px; }
.nav, .footer nav { gap: clamp(1rem, 2.8vw, 2.2rem); font-weight: 600; }
.nav > a:not(.button), .footer nav a { color: var(--muted); }
.nav > a:not(.button):hover, .footer nav a:hover { color: var(--ink); }
.mobile-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .64rem 1.16rem; border: 1px solid transparent; border-radius: 8px; background: var(--button); color: #140720; font-weight: 800; transition: background .18s, border-color .18s; }
.button:hover { background: #c581ff; }
.button-small { min-height: 42px; padding: .4rem .9rem; font-size: .93rem; }
.secondary { background: #ffffff08; color: var(--ink); border-color: #ffffff36; }
.secondary:hover { background: #ffffff16; border-color: var(--accent); }
.hero { overflow: hidden; background: radial-gradient(ellipse at 78% 48%, #331a57 0, transparent 53%), linear-gradient(#130c21, #140d23); border-bottom: 1px solid var(--edge); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; min-height: 580px; padding-block: clamp(4rem, 8vw, 7rem); }
.hero-copy { position: relative; z-index: 1; }
.location, .eyebrow, .type { text-transform: uppercase; font-weight: 700; letter-spacing: .13em; font-size: .84rem; color: #d6a6ff; margin-bottom: 1rem; }
.location { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; font-size: .83rem; }
.location span { width: .5rem; aspect-ratio: 1; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #b461ff80; }
.location i { width: .85rem; height: 1px; background: #9b78b9; }
h1 { font-size: clamp(3.1rem, 6.05vw, 6.15rem); line-height: .99; letter-spacing: -.075em; margin-bottom: 1.45rem; }
h1 em { color: var(--accent); font-style: normal; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--muted); max-width: 34rem; }
.actions { flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-showcase { position: relative; isolation: isolate; min-width: 0; padding: 1rem 2.25rem 2.2rem 0; }
.showcase-glow { position: absolute; inset: -4rem -6rem; z-index: -1; background: repeating-linear-gradient(90deg, transparent 0 43px, #c89cff19 44px 45px), repeating-linear-gradient(0deg, transparent 0 43px, #c89cff19 44px 45px); mask-image: radial-gradient(ellipse, black 30%, transparent 70%); transform: rotate(-8deg); pointer-events: none; }
.mock-browser { position: relative; border: 1px solid #c98aff67; border-radius: 15px; padding: 0 8px 8px; overflow: hidden; background: #261737; transform: rotate(-3deg); box-shadow: 0 28px 70px #090411a0, 0 0 45px #bd74fc24; }
.browser-bar { display: flex; align-items: center; gap: 5px; height: 31px; padding-inline: 5px; color: #d4bfeb; font-size: .65rem; }
.browser-bar > span { width: 6px; aspect-ratio: 1; background: #9269af; border-radius: 50%; }
.browser-bar > div { margin-inline: auto; padding-right: 28px; }
.mock-screen { border-radius: 7px; overflow: hidden; background: #f1e6d3; color: #231810; }
.mock-nav, .mock-foot { display: flex; align-items: center; justify-content: space-between; padding: .65rem .9rem; font-size: clamp(.51rem, 1vw, .69rem); font-weight: 700; }
.mock-nav strong { color: #6c231d; font-family: Georgia, serif; letter-spacing: .06em; }
.mock-frontier { position: relative; min-height: 230px; isolation: isolate; display: grid; align-items: center; padding: clamp(1rem, 3vw, 2.4rem); color: white; }
.mock-frontier img { position: absolute; inset: 0; height: 100%; object-fit: cover; z-index: -2; }
.mock-frontier::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #1b110ced, #28150d42 85%); z-index: -1; }
.mock-frontier small { font-size: .61rem; letter-spacing: .13em; }
.mock-frontier b { display: block; font: 700 clamp(1.9rem, 3.35vw, 3.3rem)/.98 Georgia, serif; margin: .55rem 0 1rem; }
.mock-frontier span, .mock-phone > span { display: inline-block; border-radius: 4px; background: #8b382a; color: white; font-size: .66rem; padding: .25rem .55rem; }
.mock-foot { justify-content: space-around; }
.mock-phone { width: clamp(115px, 13vw, 170px); position: absolute; right: -.35rem; bottom: -.2rem; padding: .8rem .72rem .85rem; border: 4px solid #3c2856; border-radius: 19px; background: #f4f5ee; color: #1d3026; transform: rotate(8deg); box-shadow: 0 15px 32px #0b0616bc; font-size: .68rem; line-height: 1.2; }
.phone-camera { width: 25%; height: 3px; background: #20372b; border-radius: 9px; margin: 0 auto .65rem; }
.mini-yard { height: 68px; position: relative; overflow: hidden; margin: .5rem 0 .65rem; border-radius: 4px; background: repeating-linear-gradient(114deg,#75967d 0 7px,#628570 7px 14px); }
.mini-yard div { position: absolute; inset: 17% 19% 17% 15%; background: #c4ff7f62; border: 2px solid #e2ffb6; transform: skew(-12deg) rotate(-7deg); }
.mock-phone small { color: #46594a; font-size: .51rem; letter-spacing: .04em; }
.mock-phone b { display: block; font: 700 1.15rem/1.2 var(--display); padding: .14rem 0 .45rem; }
.mock-phone > span { background: #285b3e; font-size: .6rem; }
.section { padding-block: clamp(3.6rem, 7vw, 6.3rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.section-heading h2, .section-heading > p { margin-bottom: 0; }
.section-heading > p { max-width: 25rem; color: var(--muted); }
.work { background: #170f24; }
.work-grid, .service-grid, .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.case { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--edge); border-radius: 13px; background: var(--surface); }
.case-image { position: relative; display: flex; align-items: end; min-height: 190px; aspect-ratio: 1.9; overflow: hidden; padding: 1rem; isolation: isolate; }
.case-image img { position: absolute; inset: 0; height: 100%; object-fit: cover; z-index: -2; transition: transform .25s; }
.case-image:hover img { transform: scale(1.04); }
.case-image:not(.sterling)::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 30%, #100b15ba); }
.case-image > span { font-family: var(--display); font-weight: 700; font-size: 1.16rem; }
.case-image.landscape img { object-position: center 55%; }
.sterling { display: grid; place-items: center; background: radial-gradient(ellipse at 70% 35%, #50556c, #272b3f 70%); }
.sterling-card { display: block; min-width: 65%; padding: .9rem 1.4rem; border: 1px solid #e5dcc871; background: #171c2ccc; color: #f0ead9; text-align: center; transform: rotate(-4deg); box-shadow: 0 11px 25px #1014219c; }
.sterling-card i { display: block; width: 1.1rem; height: 2px; background: #c3a87f; margin: .15rem auto .45rem; }
.sterling-card b { display: block; font: 700 2rem/.95 Georgia, serif; }
.sterling-card small { font-size: .56rem; letter-spacing: .15em; }
.case-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 1.35rem; }
.case-body .type { margin-bottom: .48rem; font-size: .74rem; }
.case-body > p:not(.type), .service-grid p, .steps p { color: var(--muted); }
.tags { display: flex; gap: .35rem; flex-wrap: wrap; margin: auto 0 1.1rem; }
.tags span { padding: .2rem .5rem; background: #2b1c3b; color: #ebd8ff; border-radius: 4px; font-size: .81rem; }
.text-link { color: #d7a3ff; text-decoration: underline; text-underline-offset: .2em; font-weight: 700; }
.text-link:hover { color: #f6e8ff; }
.service-grid article { padding: 1.4rem; border: 1px solid var(--edge); border-radius: 12px; background: linear-gradient(155deg,#211530,var(--surface)); }
.service-grid p, .steps p { margin-bottom: 0; }
.service-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; border: 1px solid #7a4caa; background: #40225d; color: #f0cbff; font-size: 1.4rem; margin-bottom: 1rem; }
.service-link { display: inline-block; margin-top: .8rem; }
.software { background: radial-gradient(ellipse at 85% 0, #2d163f, transparent 67%), #170f23; border-top: 1px solid var(--edge); }
.software-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.software-grid article { padding: clamp(1rem, 2.6vw, 1.5rem); border: 1px solid #50366a; border-radius: 12px; background: var(--surface); }
.software-grid h3 { margin-bottom: .55rem; }
.software-grid p { margin-bottom: 0; color: var(--muted); }
.software-actions { flex-wrap: wrap; margin-top: 1.4rem; }
@media (max-width: 550px) { .software-grid { grid-template-columns: 1fr; } }
.demo { border-block: 1px solid var(--edge); background: radial-gradient(ellipse at 0 0,#331753,transparent 70%), #190e29; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.muted, .form-note { color: var(--muted); }
.panel { border: 1px solid #5b3d76; border-radius: 13px; padding: clamp(1rem, 3vw, 1.7rem); background: #1c1427; box-shadow: 0 14px 46px #0d081a50; }
.panel label { display: block; font-weight: 700; color: #eee3f8; margin-bottom: .8rem; }
.panel input, .panel select, .panel textarea { display: block; width: 100%; min-width: 0; padding: .56rem .68rem; border: 1px solid #614975; border-radius: 6px; margin-top: .25rem; background: #130c1e; color: var(--ink); }
.panel textarea { resize: vertical; }
.panel select { appearance: none; padding-right: 2rem; background: linear-gradient(45deg,transparent 50%,#dca9ff 50%) right 1.03rem center / .34rem .34rem no-repeat,linear-gradient(135deg,#dca9ff 50%,transparent 50%) right .7rem center / .34rem .34rem no-repeat,#130c1e; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.estimate-result { display: flex; justify-content: space-between; align-items: center; gap: .5rem; border-top: 1px solid var(--edge); padding-top: 1rem; margin-top: 1rem; }
.estimate-result span { font-weight: 700; }
.estimate-result small { display: block; color: var(--muted); font-size: .85rem; }
.estimate-result output { color: #d29cff; font: 700 clamp(1.25rem, 3.5vw, 2.15rem)/1.15 var(--display); overflow-wrap: anywhere; }
.steps article { border-top: 2px solid #9154c2; padding-top: 1.1rem; }
.contact { background: radial-gradient(ellipse at 85% 55%,#291741,transparent 80%), #160e22; border-top: 1px solid var(--edge); }
.form-note { font-size: .9rem; margin: .75rem 0 0; }
.footer { padding-block: 1.8rem; border-top: 1px solid var(--edge); }
.footer-inner { justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.footer p { margin: 0; color: var(--muted); }
.footer nav { flex-wrap: wrap; gap: .55rem clamp(.8rem, 2vw, 1.5rem); }
@media (max-width: 920px) {
  .nav { gap: 1rem; }
  .hero-grid { gap: 1.35rem; }
  .mock-frontier { min-height: 200px; }
  .section-heading { align-items: start; flex-direction: column; gap: .6rem; }
  .work-grid, .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 870px) {
  .wrap { width: min(100% - 2rem, 1220px); }
  .header-inner { min-height: 62px; flex-wrap: wrap; }
  .mobile-toggle { display: block; padding: .36rem .7rem; color: var(--ink); background: var(--surface); border: 1px solid var(--edge); border-radius: 6px; }
  .nav { display: none; flex-basis: 100%; flex-wrap: wrap; gap: .7rem 1rem; padding-bottom: .85rem; }
  .nav.is-open { display: flex; }
}
@media (max-width: 700px) {
  .hero-grid, .feature-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 3rem 3.4rem; gap: 2.5rem; min-height: 0; }
  .hero-showcase { width: min(100%, 520px); justify-self: center; }
  .steps { grid-template-columns: 1fr; gap: 1.3rem; }
}
@media (max-width: 450px) {
  .work-grid, .service-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .mock-frontier { min-height: 162px; }
  .mini-yard { height: 45px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
