:root {
  --bg: #05070d;
  --bg-2: #0a1020;
  --surface: #10182a;
  --surface-2: #162238;
  --line: rgba(99, 164, 255, 0.16);
  --line-strong: rgba(99, 164, 255, 0.32);
  --blue: #3b8cff;
  --blue-2: #6eb0ff;
  --cyan: #2ad4e0;
  --lavender: #b7a4f5;
  --gold: #e8c56b;
  --text: #eef3fb;
  --muted: #93a0b8;
  --danger: #ff6b7a;
  --ok: #3dd68c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --max: 1180px;
  --header: 78px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Sora", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(59, 140, 255, 0.18), transparent 55%),
    radial-gradient(800px 480px at 95% 8%, rgba(183, 164, 245, 0.12), transparent 50%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(5, 7, 13, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}
.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-family: var(--display); font-size: 15px; letter-spacing: -0.02em; }
.brand-copy span { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: 0.2s ease;
}
.nav a:hover, .nav a.active {
  color: var(--text);
  background: rgba(59, 140, 255, 0.12);
}
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, #2f7dff, #22c3e0);
  color: #041018;
  box-shadow: 0 10px 30px rgba(42, 212, 224, 0.18);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255,255,255,0.03);
}
.btn-ghost:hover { border-color: var(--blue); background: rgba(59,140,255,0.1); }

.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,7,13,0.35) 0%, rgba(5,7,13,0.72) 55%, var(--bg) 100%),
    radial-gradient(circle at 50% 40%, transparent 0%, rgba(5,7,13,0.45) 80%);
}
.hero-content { text-align: center; padding: 90px 0 80px; max-width: 920px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 24, 42, 0.7);
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 22px;
}
h1, h2, h3, .display {
  font-family: var(--display);
  letter-spacing: -0.035em;
  line-height: 1.08;
}
h1 { font-size: clamp(40px, 7vw, 76px); margin-bottom: 18px; }
h2 { font-size: clamp(30px, 4.4vw, 50px); }
h3 { font-size: 22px; }
.gradient {
  background: linear-gradient(120deg, #fff 10%, #6eb0ff 45%, #2ad4e0 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { color: var(--muted); font-size: 18px; max-width: 680px; }
.hero .lead { margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 56px;
}
.stat {
  padding: 22px 16px;
  border-radius: 18px;
  background: rgba(16, 24, 42, 0.72);
  border: 1px solid var(--line);
  text-align: center;
}
.stat b { display: block; font-family: var(--display); font-size: 30px; color: var(--gold); }
.stat span { color: var(--muted); font-size: 13px; }

section { padding: 92px 0; position: relative; z-index: 1; }
.section-head { max-width: 680px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 12px; }

.marquee-wrap {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #080d18;
  padding: 22px 0;
}
.marquee {
  display: flex;
  width: max-content;
  animation: slide 38s linear infinite;
  gap: 18px;
}
.marquee:hover { animation-play-state: paused; }
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logo-card {
  width: 160px;
  height: 86px;
  border-radius: 16px;
  background: #f4f7fb;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  flex: 0 0 auto;
}
.logo-card img { max-height: 62px; max-width: 132px; object-fit: contain; }

.grid-3, .grid-2, .grid-4 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, rgba(22,34,56,0.88), rgba(12,18,32,0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(59,140,255,0.25), rgba(42,212,224,0.12));
  color: var(--cyan);
  font-size: 22px;
}
.card h3 { margin-bottom: 8px; }
.card p, .muted { color: var(--muted); }
.list { margin-top: 14px; padding-left: 18px; color: var(--muted); }
.list li { margin: 6px 0; }

.media-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.video-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
}
.video-frame video { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.points { display: grid; gap: 16px; }
.point {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(16,24,42,0.7);
}
.point strong { display: block; margin-bottom: 4px; }

.case-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}
.case-hero img, .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}
.case-copy, .thumb {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.case-copy { padding: 36px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.metric { text-align: center; padding: 14px 8px; border-radius: 14px; background: rgba(59,140,255,0.08); }
.metric b { display: block; color: var(--gold); font-family: var(--display); font-size: 24px; }
.metric span { font-size: 12px; color: var(--muted); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.thumb { cursor: pointer; }
.thumb img { min-height: 190px; height: 190px; }
.thumb-body { padding: 18px 20px 22px; }
.thumb-body small { color: var(--cyan); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.member {
  text-align: center;
  padding: 20px 14px 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.member img {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 14px;
  border: 3px solid rgba(59,140,255,0.35);
}
.member h3 { font-size: 15px; }
.member .role { color: var(--cyan); font-size: 13px; font-weight: 700; margin: 4px 0 2px; }
.member .edu { color: var(--muted); font-size: 12px; }

.xp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.xp-card { padding: 24px; }
.xp-card .count {
  font-family: var(--display);
  font-size: 32px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.xp-card ul { margin-top: 10px; padding-left: 18px; color: var(--muted); }
.xp-card li { margin: 5px 0; }

.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.client-card { padding: 0; overflow: hidden; }
.client-card .logo-plate {
  height: 110px;
  background: #f4f7fb;
  display: grid;
  place-items: center;
  padding: 16px;
}
.client-card .logo-plate.dark { background: #0b0f14; }
.client-card .logo-plate img { max-height: 78px; max-width: 78%; object-fit: contain; }
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  line-height: 1.15;
  color: #0b1220;
}
.wordmark small { display: block; margin-top: 4px; color: #5b6b82; letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; }
.logo-plate.dark .wordmark { color: #f4f7fb; }
.logo-plate.dark .wordmark small { color: #9aa8bd; }
.client-card .body { padding: 18px 20px 22px; }
.client-card small { color: var(--cyan); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.client-card h3 { margin: 6px 0 8px; font-size: 18px; }

.solar-band {
  border-radius: 28px;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(46, 180, 90, 0.16), rgba(232, 197, 107, 0.08)),
    var(--surface);
  border: 1px solid rgba(46, 180, 90, 0.28);
}
.solar-logos { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.solar-logos .logo-card { width: 180px; height: 92px; }

.page-hero { padding: 84px 0 30px; }
.page-hero h1 { margin-bottom: 12px; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery-grid img,
.gallery-item video {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.gallery-grid img { cursor: zoom-in; }
.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.gallery-item span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5, 7, 13, 0.72);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gallery-item.wide { grid-column: 1 / -1; }
.gallery-item.wide video { height: min(520px, 56vw); }
.hidden-demos { display: none; }

.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(59, 140, 255, 0.08);
  font-weight: 700;
  font-size: 14px;
}
.social-btn:hover { border-color: var(--blue); background: rgba(59, 140, 255, 0.16); }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card video {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #000;
  border-radius: 16px;
}

.form {
  display: grid;
  gap: 14px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: #c9d4e6; }
input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0b1220;
  outline: none;
}
input:focus, textarea:focus { border-color: var(--blue); }
textarea { min-height: 140px; resize: vertical; }

.info-list { display: grid; gap: 14px; }
.info-item {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.info-item small { color: var(--cyan); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.info-item a:hover { color: var(--blue-2); }

.map-wrap {
  margin-top: 28px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 360px;
}
.map-wrap iframe { width: 100%; height: 380px; border: 0; }

.cta-band {
  border-radius: 28px;
  padding: 48px 42px;
  background:
    linear-gradient(135deg, rgba(59,140,255,0.18), rgba(42,212,224,0.08)),
    var(--surface);
  border: 1px solid var(--line-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.step em {
  font-style: normal;
  color: var(--gold);
  font-family: var(--display);
  font-size: 28px;
}

.blog-list { display: grid; gap: 16px; }
.blog-item {
  padding: 26px 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.blog-item h3 { margin-bottom: 8px; }
.article-open[open] { background: #162238; }
.article-open summary { cursor: pointer; list-style: none; }
.article-open summary::-webkit-details-marker { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.86);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 24px;
}
.lightbox.open { display: grid; }
.lightbox img, .lightbox video { max-width: min(1100px, 94vw); max-height: 86vh; border-radius: 16px; }
.lightbox .close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 24px;
  background: #070b14;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 40px; height: 40px; }
.site-footer h4 { margin-bottom: 12px; font-size: 15px; }
.site-footer a, .site-footer p { color: var(--muted); font-size: 14px; }
.site-footer a { display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--text); }
.legal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .nav, .header-cta .btn { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: #0b1220;
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }
  .menu-btn { display: flex; }
  .stats, .grid-3, .grid-4, .work-grid, .team-grid, .xp-grid, .client-grid, .process, .review-grid, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .media-split, .case-hero, .cta-band, .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stats, .grid-2, .grid-3, .grid-4, .work-grid, .team-grid, .xp-grid, .client-grid, .process, .review-grid, .footer-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .legal { flex-direction: column; }
  h1 { font-size: 36px; }
  section { padding: 64px 0; }
}
