:root{
  --bg:#0b0a08;
  --bg-elev:#131009;
  --bg-elev-2:#1a150d;
  --card:rgba(26,21,13,0.68);
  --card-border:rgba(217,166,53,0.22);
  --gold-1:#ffdf94;
  --gold-2:#d9a635;
  --gold-3:#8f6a12;
  --ember:#ff7a45;
  --white:#f6f2e9;
  --muted:#a89c86;
  --muted-2:#6f6552;
  --font-display:'Space Grotesk', sans-serif;
  --font-body:'Inter', sans-serif;
  --font-mono:'JetBrains Mono', monospace;
  --ease:cubic-bezier(.16,.8,.24,1);
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important;}
}
body{
  background:
    radial-gradient(circle at 82% 8%, rgba(217,166,53,.09), transparent 28rem),
    radial-gradient(circle at 8% 42%, rgba(255,122,69,.045), transparent 24rem),
    var(--bg);
  color:var(--white);
  font-family:var(--font-body);
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
::selection{ background:var(--gold-2); color:#0b0a08; }
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
ul{list-style:none;}
button{font-family:inherit; cursor:pointer;}

:focus-visible{
  outline:2px solid var(--gold-1);
  outline-offset:3px;
  border-radius:4px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity .7s ease-in-out, visibility .7s ease-in-out;
}
.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-logo {
  width: 120px;
  animation: pulse-3d 2s infinite ease-in-out;
  filter: drop-shadow(0 15px 30px rgba(217,166,53,.4));
}
@keyframes pulse-3d {
  0%, 100% {
    transform: scale(1) rotateY(0deg);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1) rotateY(15deg);
    opacity: 1;
  }
}
.progress-bar-container {
  width: 220px;
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar {
  width: 100%;
  height: 100%;
  background: var(--gold-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s cubic-bezier(.16,.8,.24,1);
}

.container{
  max-width:1280px;
  margin:0 auto;
  padding:0 28px;
}

.noise-layer{
  position:fixed; inset:0; pointer-events:none; z-index:1;
  opacity:.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette{
  position:fixed; inset:0; pointer-events:none; z-index:1;
  background:radial-gradient(ellipse at 50% 0%, transparent 0%, rgba(0,0,0,.5) 90%);
}

body::before{
  content:'';
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:1;
  opacity:.16;
  background-image:linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size:72px 72px;
  mask-image:linear-gradient(to bottom, black, transparent 78%);
}

.eyebrow{
  font-family:var(--font-mono);
  font-size:.78rem;
  letter-spacing:.12em;
  color:var(--gold-2);
  display:inline-flex;
  align-items:center;
  gap:.6em;
  margin-bottom:18px;
}
.eyebrow::before{
  content:'';
  width:20px; height:1px;
  background:linear-gradient(90deg, transparent, var(--gold-2));
}
.section-head{
  max-width:640px;
  margin-bottom:56px;
}
.section-head h2{
  font-family:var(--font-display);
  font-size:clamp(1.9rem, 4vw, 2.7rem);
  font-weight:600;
  letter-spacing:-.01em;
  margin-bottom:16px;
}
.section-head p{
  color:var(--muted);
  font-size:1.03rem;
  max-width:52ch;
}
section{
  position:relative;
  padding:110px 0;
  z-index:2;
}
.grad-text{
  background:linear-gradient(100deg, var(--gold-1) 0%, var(--gold-2) 45%, var(--ember) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 28px;
  border-radius:8px;
  font-family:var(--font-mono);
  font-size:.85rem;
  font-weight:500;
  letter-spacing:.02em;
  border:1px solid transparent;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
  white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color:#151004;
  box-shadow:0 8px 30px -8px rgba(217,166,53,.55);
}
.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 36px -8px rgba(217,166,53,.75);
}
.btn-ghost{
  background:rgba(255,255,255,.02);
  color:var(--white);
  border-color:rgba(255,255,255,.14);
  backdrop-filter:blur(6px);
}
.btn-ghost:hover{
  border-color:var(--gold-2);
  background:rgba(217,166,53,.06);
}

header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:18px 0;
  transition:background .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom:1px solid transparent;
}
header.scrolled{
  background:rgba(11,10,8,.9);
  backdrop-filter:blur(14px) saturate(140%);
  border-bottom-color:rgba(217,166,53,.14);
  padding:12px 0;
}
nav{
  display:flex; align-items:center; justify-content:space-between;
}
.brand{
  display:flex; align-items:center; gap:12px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.08rem;
  letter-spacing:.01em;
}
.brand img{ width:38px; height:38px; object-fit:contain; }
.brand .team{ color:var(--gold-2); font-weight:500; }
.brand{ text-transform:uppercase; }

.nav-links{
  display:flex; gap:34px;
  font-size:.92rem;
  color:var(--muted);
}
.nav-links a{
  position:relative;
  transition:color .25s;
}
.nav-links a::after{
  content:'';
  position:absolute; left:0; bottom:-6px;
  width:0; height:1px;
  background:var(--gold-2);
  transition:width .3s var(--ease);
}
.nav-links a:hover{ color:var(--white); }

.nav-links .highlight {
  position: absolute;
  background: var(--gold-2);
  height: 2px;
  border-radius: 2px;
  bottom: -7px;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}

.nav-links li.new-item a { color: var(--gold-1); }
.nav-links li.new-item a:hover { color: var(--white); }


.nav-cta{ display:flex; align-items:center; gap:16px; }
.burger{
  display:none;
  width:38px; height:38px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:8px;
  background:rgba(255,255,255,.03);
  position:relative;
}
.burger span, .burger span::before, .burger span::after{
  content:'';
  position:absolute; left:9px; right:9px; height:1.5px;
  background:var(--gold-1);
  transition:transform .3s var(--ease), opacity .3s var(--ease);
}
.burger span{ top:50%; transform:translateY(-50%); }
.burger span::before{ top:-7px; }
.burger span::after{ top:7px; }
.burger.open span{ background:transparent; }
.burger.open span::before{ transform:rotate(45deg) translate(0px,0px); top:0; }
.burger.open span::after{ transform:rotate(-45deg); top:0; }

.mobile-menu{
  position:fixed; inset:0 0 auto 0; top:0;
  background:rgba(10,9,7,.98);
  backdrop-filter:blur(10px);
  z-index:99;
  padding:110px 28px 40px;
  display:flex; flex-direction:column; gap:26px;
  transform:translateY(-100%);
  transition:transform .45s var(--ease);
}
.mobile-menu.open{ transform:translateY(0); }
.mobile-menu a{ font-family:var(--font-display); font-size:1.5rem; }

.hero{
  min-height:clamp(680px, 92vh, 900px);
  display:flex; align-items:center;
  padding-top:140px;
  position:relative;
  overflow:hidden;
}
#ember-canvas{
  position:absolute; inset:0;
  z-index:0;
  opacity:.75;
}
.hero-glow{
  position:absolute;
  width:900px; height:900px;
  top:-380px; left:50%; transform:translateX(-50%);
  background:radial-gradient(circle, rgba(217,166,53,.16) 0%, transparent 68%);
  z-index:0;
  pointer-events:none;
}
.hero-inner{
  position:relative; z-index:2;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:clamp(38px, 7vw, 96px);
  align-items:center;
  width:100%;
}
.hero-logo-wrap{
  display:flex; justify-content:center; align-items:center;
  position:relative;
}
.hero-logo-wrap img{
  width:min(420px, 90%);
  filter:drop-shadow(0 20px 60px rgba(217,166,53,.35));
  animation:float 6s ease-in-out infinite;
}
@keyframes float{
  0%,100%{ transform:translateY(0px); }
  50%{ transform:translateY(-16px); }
}
.hero h1{
  font-family:var(--font-display);
  font-size:clamp(2.5rem, 5.2vw, 4.1rem);
  font-weight:700;
  line-height:1.06;
  letter-spacing:-.02em;
  max-width:12ch;
  margin-bottom:24px;
}
.hero p.lead{
  font-size:1.12rem;
  color:var(--muted);
  max-width:52ch;
  margin-bottom:38px;
}
.hero-ctas{
  display:flex; gap:16px; flex-wrap:wrap;
  margin-bottom:48px;
}
.hero-terminal{
  background:var(--bg-elev);
  border:1px solid var(--card-border);
  border-radius:12px;
  font-family:var(--font-mono);
  font-size:.85rem;
  overflow:hidden;
  box-shadow:0 30px 80px -28px rgba(0,0,0,.8), inset 0 1px rgba(255,255,255,.04);
  max-width:520px;
}
.term-bar{
  display:flex; align-items:center; gap:8px;
  padding:11px 16px;
  background:var(--bg-elev-2);
  border-bottom:1px solid var(--card-border);
}
.term-dot{ width:9px; height:9px; border-radius:50%; }
.term-dot:nth-child(1){ background:#ff5f57; }
.term-dot:nth-child(2){ background:#febc2e; }
.term-dot:nth-child(3){ background:#28c840; }
.term-bar span{ margin-left:10px; color:var(--muted-2); font-size:.75rem; }
.term-body{ padding:18px 20px; min-height:118px; color:var(--gold-1); }
.term-body .prompt{ color:var(--muted-2); }
.term-caret{
  display:inline-block; width:7px; height:1em; background:var(--gold-2);
  vertical-align:text-bottom; animation:blink 1s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity:0; } }

.divider{
  position:relative; z-index:2;
  width:100%; height:64px;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.divider svg{ width:100%; max-width:1220px; height:auto; overflow:visible; }
.divider path{
  fill:none;
  stroke:var(--gold-2);
  stroke-width:1;
  opacity:.55;
  stroke-dasharray:1400;
  stroke-dashoffset:1400;
  transition:stroke-dashoffset 1.8s var(--ease);
}
.divider.in-view path{ stroke-dashoffset:0; }
.divider circle{
  fill:var(--gold-1);
  opacity:0;
  transition:opacity .6s ease .8s;
}
.divider.in-view circle{ opacity:1; }

.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view{ opacity:1; transform:translateY(0); }
.reveal-stagger > *{ transition-delay:calc(var(--i,0) * 90ms); }

.services-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:22px;
}
.service-card{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:12px;
  padding:32px 26px;
  backdrop-filter:blur(10px);
  position:relative;
  overflow:hidden;
  transition:border-color .4s var(--ease), transform .25s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
  transform-style:preserve-3d;
  will-change:transform;
}
.service-card::before{
  content:'';
  position:absolute; inset:0;
  background:radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(217,166,53,.14), transparent 60%);
  opacity:0; transition:opacity .4s;
  pointer-events:none;
}
.service-card:hover::before{ opacity:1; }
.service-card:hover{
  border-color:rgba(217,166,53,.5);
  background:rgba(31,24,14,.82);
  box-shadow:0 20px 50px -20px rgba(217,166,53,.3);
}
.service-icon{
  width:48px; height:48px;
  margin-bottom:22px;
  color:var(--gold-1);
}
.service-card h3{
  font-family:var(--font-display);
  font-size:1.18rem;
  font-weight:600;
  margin-bottom:12px;
}
.service-card p{
  color:var(--muted);
  font-size:.92rem;
  margin-bottom:18px;
}
.tag-row{ display:flex; flex-wrap:wrap; gap:8px; }
.tag{
  font-family:var(--font-mono);
  font-size:.7rem;
  color:var(--gold-2);
  border:1px solid rgba(217,166,53,.3);
  padding:3px 9px;
  border-radius:999px;
}

.projects-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
}
.project-card{
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--card-border);
  background:var(--bg-elev);
  transition:transform .5s var(--ease), border-color .4s;
}
.project-card:hover{ transform:translateY(-8px); border-color:rgba(217,166,53,.45); }
.project-thumb{
  height:170px;
  position:relative;
  display:flex; align-items:center; justify-content:center;
  background:
    radial-gradient(circle at 30% 20%, rgba(217,166,53,.22), transparent 55%),
    linear-gradient(160deg, #1c160d, #0b0a08);
  overflow:hidden;
}
.project-thumb svg{ width:64px; height:64px; color:rgba(217,166,53,.55); }
.project-thumb::after{
  content:'';
  position:absolute; inset:0;
  background-image:repeating-linear-gradient(115deg, rgba(217,166,53,.06) 0 1px, transparent 1px 26px);
}
.project-body{ padding:22px 24px 26px; }
.project-body .cat{
  font-family:var(--font-mono); font-size:.72rem; color:var(--gold-2);
  letter-spacing:.06em; margin-bottom:8px; display:block;
}
.project-body h3{ font-family:var(--font-display); font-size:1.08rem; margin-bottom:8px; }
.project-body p{ color:var(--muted); font-size:.88rem; margin-bottom:16px; }

.partners-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); justify-content:center; gap:22px; }
.partner-card{ display:flex; flex-direction:column; border-radius:12px; overflow:hidden; border:1px solid var(--card-border); background:linear-gradient(180deg, rgba(4,18,52,.96), var(--bg-elev)); transition:transform .5s var(--ease), border-color .4s, box-shadow .4s var(--ease); }
.partner-card:hover{ transform:translateY(-8px); border-color:rgba(62,164,255,.7); box-shadow:0 22px 52px -24px rgba(24,132,255,.42); }
.partner-thumb{ height:220px; display:flex; align-items:center; justify-content:center; background:radial-gradient(circle at 50% 42%, rgba(35,149,255,.2), transparent 58%), #061332; overflow:hidden; flex-shrink:0; }
.partner-thumb img{ width:min(210px, 68%); height:auto; max-width:none; max-height:none; object-fit:contain; border-radius:14px; box-shadow:0 18px 36px rgba(0,0,0,.28); transition:transform .5s var(--ease), filter .5s var(--ease); }
.partner-card:hover .partner-thumb img{ transform:scale(1.06); filter:drop-shadow(0 0 18px rgba(39,157,255,.22)); }
.partner-body{ display:flex; flex-direction:column; flex-grow:1; padding:26px 28px 28px; }
.partner-body h3{ font-family:var(--font-display); font-size:1.35rem; margin-bottom:8px; }
.partner-body p{ color:var(--muted); font-size:.9rem; max-width:38ch; }
.partner-body .partner-ctas{ display:flex; gap:12px; margin-top:auto; padding-top:20px; }
.partner-card .btn{ padding: 10px 22px; font-size: .8rem; }
.partner-cta-card{
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  border:1px dashed var(--card-border);
  border-radius:12px;
  padding:28px;
  background:rgba(217,166,53,.03);
  transition: border-style .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}
.partner-cta-card:hover {
  border-style: solid;
  border-color: rgba(217,166,53,.45);
  background: rgba(217,166,53,.08);
}
.partner-cta-card h3{ font-family:var(--font-display); font-size:1.1rem; margin-bottom:12px; }
.partner-cta-card p{ color:var(--muted); font-size:.9rem; margin-bottom:24px; max-width:30ch; }
.adv-wrap{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:60px;
  align-items:center;
}
.adv-list{ display:flex; flex-direction:column; gap:26px; }
.adv-item{ display:flex; gap:18px; }
.adv-num{
  font-family:var(--font-mono);
  color:var(--gold-2);
  font-size:.82rem;
  padding-top:3px;
  min-width:34px;
}
.adv-item h4{ font-family:var(--font-display); font-size:1.05rem; margin-bottom:6px; }
.adv-item p{ color:var(--muted); font-size:.9rem; }

.adv-visual{
  position:relative;
  aspect-ratio:1/1;
  border-radius:24px;
  border:1px solid var(--card-border);
  background:
    radial-gradient(circle at 60% 30%, rgba(217,166,53,.16), transparent 60%),
    linear-gradient(160deg, #171208, #0b0a08);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.adv-visual img{
  width:58%;
  filter:drop-shadow(0 10px 40px rgba(217,166,53,.4));
  animation:float 7s ease-in-out infinite;
}
.adv-ring{
  position:absolute; border:1px solid rgba(217,166,53,.18); border-radius:50%;
}
.adv-ring.r1{ width:80%; height:80%; }
.adv-ring.r2{ width:100%; height:100%; animation:spin 40s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }

.process-track{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:0;
  position:relative;
}
.process-track::before{
  content:'';
  position:absolute; top:26px; left:0; right:0; height:1px;
  background:linear-gradient(90deg, transparent, var(--card-border) 8%, var(--card-border) 92%, transparent);
}
.process-step{ position:relative; padding:0 16px 0 0; }
.process-step .step-num{
  width:52px; height:52px; border-radius:50%;
  background:var(--bg-elev);
  border:1px solid var(--gold-2);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); color:var(--gold-1); font-size:.85rem;
  margin-bottom:22px; position:relative; z-index:2;
}
.process-step h4{ font-family:var(--font-display); font-size:1rem; margin-bottom:8px; }
.process-step p{ color:var(--muted); font-size:.85rem; }

.scroller {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
  mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}
.scroller-inner {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: scroll 40s linear infinite;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 11px)); }
}
.scroller[data-direction="right"] {
  --_animation-direction: reverse;
}
.scroller[data-speed="fast"] {
  --_animation-duration: 20s;
}
.scroller[data-speed="slow"] {
  --_animation-duration: 60s;
}
.scroller[data-animated="true"] .scroller-inner {
  animation: scroll var(--_animation-duration, 40s) linear var(--_animation-direction, forwards) infinite;
}
#tech-scroller .scroller-inner {
  gap: 50px;
  align-items: center;
}
#tech-scroller img {
  height: 40px;
  max-width: none;
  filter: grayscale(1) brightness(1.5);
  transition: filter .3s;
}
#tech-scroller img:hover {
  filter: grayscale(0) brightness(1);
}
.test-card{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:16px;
  padding:28px;
  backdrop-filter:blur(10px);
  width: 380px;
}
@media (max-width: 760px) {
  .test-card { width: 320px; }
  .scroller-inner { animation-duration: 30s; }
}

.stars{ color:var(--gold-2); letter-spacing:2px; margin-bottom:16px; font-size:.9rem; }
.test-card p.quote{ color:var(--white); font-size:.94rem; margin-bottom:22px; }
.test-person{ display:flex; align-items:center; gap:12px; }
.avatar{
  width:38px; height:38px; border-radius:50%;
  background:linear-gradient(135deg, var(--gold-1), var(--ember));
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; color:#151004; font-size:.85rem;
}
.test-person .handle{ font-family:var(--font-mono); font-size:.78rem; color:var(--gold-2); }
.test-person .role{ font-size:.78rem; color:var(--muted); }

.faq-list{ max-width:820px; }
.faq-item{
  border-bottom:1px solid var(--card-border);
}
.faq-q{
  width:100%;
  display:flex; align-items:center; justify-content:space-between;
  padding:24px 4px;
  background:none; border:none; color:var(--white);
  font-family:var(--font-display); font-size:1.02rem; text-align:left;
}
.faq-q .plus{
  width:22px; height:22px; position:relative; flex-shrink:0; margin-left:20px;
}
.faq-q .plus::before, .faq-q .plus::after{
  content:''; position:absolute; background:var(--gold-2);
  transition:transform .35s var(--ease);
}
.faq-q .plus::before{ left:0; top:50%; width:100%; height:1px; transform:translateY(-50%); }
.faq-q .plus::after{ top:0; left:50%; width:1px; height:100%; transform:translateX(-50%); }
.faq-item.open .plus::after{ transform:translateX(-50%) rotate(90deg); opacity:0; }
.faq-a{
  max-height:0; overflow:hidden;
  transition:max-height .45s var(--ease);
}
.faq-a p{ color:var(--muted); font-size:.92rem; padding:0 4px 26px; max-width:64ch; }

.contact-wrap{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:56px;
}
.contact-info h3{ font-family:var(--font-display); font-size:1.4rem; margin-bottom:16px; }
.contact-info p{ color:var(--muted); margin-bottom:32px; max-width:42ch; }
.contact-detail{ display:flex; gap:14px; align-items:flex-start; margin-bottom:22px; }
.contact-detail svg{ width:20px; height:20px; color:var(--gold-2); flex-shrink:0; margin-top:2px; }
.contact-detail .label{ font-family:var(--font-mono); font-size:.72rem; color:var(--muted-2); letter-spacing:.06em; margin-bottom:3px; }
.contact-detail .value{ font-size:.94rem; }

form.quote-form{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:18px;
  padding:36px;
  backdrop-filter:blur(10px);
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; }
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
.field label{ font-family:var(--font-mono); font-size:.74rem; color:var(--muted); letter-spacing:.04em; }
.field input, .field select, .field textarea{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  padding:12px 14px;
  color:var(--white);
  font-family:var(--font-body);
  font-size:.92rem;
  transition:border-color .3s, background .3s;
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color:var(--gold-2);
  background:rgba(217,166,53,.05);
  outline:none;
}
.field textarea{ resize:vertical; min-height:100px; }
.form-note{ font-size:.78rem; color:var(--muted-2); margin-top:14px; }
.form-status{ font-family:var(--font-mono); font-size:.82rem; margin-top:14px; min-height:1.2em; }
.form-status.ok{ color:#7ee787; }
.form-status.err{ color:#ff8e72; }

footer{
  border-top:1px solid var(--card-border);
  padding:52px 0 32px;
  position:relative; z-index:2;
}
.footer-top{
  display:flex; justify-content:space-between; align-items:flex-start;
  flex-wrap:wrap; gap:36px;
  margin-bottom:40px;
}
.footer-brand .brand{ margin-bottom:12px; }
.footer-brand p{ color:var(--muted); max-width:34ch; font-size:.9rem; }
.footer-cols{ display:flex; gap:56px; flex-wrap:wrap; }
.footer-col h5{
  font-family:var(--font-mono); font-size:.75rem; color:var(--gold-2);
  letter-spacing:.06em; margin-bottom:16px;
}
.footer-col ul{ display:flex; flex-direction:column; gap:10px; }
.footer-col a{ color:var(--muted); font-size:.88rem; transition:color .25s; }
.footer-col a:hover{ color:var(--gold-1); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:16px;
  padding-top:24px; border-top:1px solid var(--card-border);
  font-size:.8rem; color:var(--muted-2);
}
.footer-bottom span{ max-width:70ch; }
.socials{ display:flex; gap:14px; }
.socials a{
  width:34px; height:34px; border-radius:8px;
  border:1px solid rgba(255,255,255,.1);
  display:flex; align-items:center; justify-content:center;
  color:var(--muted); transition:.3s;
}
.socials a:hover{ border-color:var(--gold-2); color:var(--gold-1); }
.socials svg{ width:16px; height:16px; }

.to-top{
  position:fixed; bottom:26px; right:26px; z-index:60;
  width:46px; height:46px; border-radius:50%;
  background:var(--bg-elev); border:1px solid var(--card-border);
  display:flex; align-items:center; justify-content:center;
  color:var(--gold-1);
  opacity:0; pointer-events:none; transform:translateY(10px);
  transition:opacity .35s, transform .35s;
}
.to-top.show{ opacity:1; pointer-events:auto; transform:translateY(0); }

@media (max-width:1024px){
  .services-grid{ grid-template-columns:repeat(2, 1fr); }
  .projects-grid{ grid-template-columns:repeat(2, 1fr); }
  .test-grid{ grid-template-columns:repeat(1, 1fr); }
  .hero-inner{ grid-template-columns:1fr; text-align:center; gap:48px; }
  .hero h1{ max-width:14ch; margin-inline:auto; }
  .hero-logo-wrap{ order:-1; margin-bottom:12px; }
  .hero p.lead{ margin-inline:auto; }
  .hero-ctas{ justify-content:center; }
  .hero-terminal{ margin-inline:auto; }
  .adv-wrap{ grid-template-columns:1fr; }
  .adv-visual{ max-width:420px; margin:0 auto; }
  .process-track{ grid-template-columns:repeat(3,1fr); row-gap:40px; }
  .process-track::before{ display:none; }
  .process-step{ text-align:center; }
  .contact-wrap{ grid-template-columns:1fr; }
  .footer-cols{ gap:40px; }
}
@media (max-width:760px){
  .container{ padding:0 20px; }
  .nav-links{ display:none; }
  .burger{ display:block; }
  section{ padding:76px 0; }
  .services-grid{ grid-template-columns:1fr; }
  .projects-grid{ grid-template-columns:1fr; }
  .partners-grid{ grid-template-columns:1fr; }
  .process-track{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .footer-top{ flex-direction:column; }
  .footer-bottom{ flex-direction:column; align-items:center; text-align:center; }
  .hero{ min-height:760px; padding-top:120px; }
  .hero-logo-wrap img{ width:min(300px, 78%); }
  .hero h1{ font-size:clamp(2.35rem, 12vw, 3.5rem); }
  .hero p.lead{ font-size:1rem; }
  .hero-ctas{ gap:10px; justify-content:stretch; }
  .hero-ctas .btn{ flex:1 1 100%; justify-content:center; }
  .hero-terminal{ text-align:left; font-size:.76rem; }
  .section-head{ margin-bottom:38px; }
  .footer-bottom span{ max-width:32ch; }
}
