:root {
  color-scheme: dark;
  --bg: #07080d;
  --bg-2: #10131c;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.13);
  --glass-highlight: rgba(255, 255, 255, 0.22);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f7fbff;
  --muted: #b7c1d1;
  --soft: #7d8798;
  --cyan: #5ee8ff;
  --green: #6cffb5;
  --magenta: #ff5ddc;
  --amber: #ffc857;
  --danger: #ff6b88;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 10px 34px rgba(0, 0, 0, 0.22);
  --radius: 8px;
  --max: 1180px;
  --header: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-2: #e9edf6;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --glass-highlight: rgba(255, 255, 255, 0.8);
  --line: rgba(15, 23, 42, 0.14);
  --text: #0d1320;
  --muted: #3b465a;
  --soft: #667085;
  --cyan: #007a8f;
  --green: #087f5b;
  --magenta: #b01686;
  --amber: #9a6200;
  --shadow: 0 20px 60px rgba(40, 54, 82, 0.16);
  --shadow-soft: 0 10px 30px rgba(40, 54, 82, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(94, 232, 255, 0.1), transparent 28%),
    linear-gradient(245deg, rgba(255, 93, 220, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 20rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(125deg, transparent 0 28%, rgba(94, 232, 255, 0.07) 28% 29%, transparent 29% 100%);
  background-size: 78px 78px, 78px 78px, 360px 360px;
  opacity: 0.58;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 0 36%, rgba(255, 255, 255, 0.065) 44%, transparent 52% 100%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
  mix-blend-mode: screen;
  opacity: 0.5;
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(94, 232, 255, 0.28);
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(94, 232, 255, 0.22), transparent 35%),
    linear-gradient(315deg, rgba(255, 93, 220, 0.18), transparent 35%),
    #05060a;
  transition: opacity 500ms ease, visibility 500ms ease;
}

.boot-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.boot-cube {
  --size: 118px;
  position: relative;
  width: var(--size);
  height: var(--size);
  transform-style: preserve-3d;
  animation: cube-spin 1.7s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.boot-cube span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 30px rgba(94, 232, 255, 0.22);
  color: #ffffff;
  font-weight: 900;
  backdrop-filter: blur(16px);
}

.boot-cube span:nth-child(1) {
  transform: rotateY(0deg) translateZ(calc(var(--size) / 2));
}

.boot-cube span:nth-child(2) {
  transform: rotateY(90deg) translateZ(calc(var(--size) / 2));
}

.boot-cube span:nth-child(3) {
  transform: rotateY(180deg) translateZ(calc(var(--size) / 2));
}

.boot-cube span:nth-child(4) {
  transform: rotateY(-90deg) translateZ(calc(var(--size) / 2));
}

.boot-cube span:nth-child(5) {
  transform: rotateX(90deg) translateZ(calc(var(--size) / 2));
}

.boot-cube span:nth-child(6) {
  transform: rotateX(-90deg) translateZ(calc(var(--size) / 2));
}

@keyframes cube-spin {
  0% {
    transform: rotateX(-24deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(336deg) rotateY(360deg);
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  width: min(calc(100% - 32px), var(--max));
  min-height: 62px;
  margin-top: 14px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    rgba(8, 10, 16, 0.66);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  backdrop-filter: blur(26px) saturate(150%);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.76);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: max-content;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(94, 232, 255, 0.58);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(94, 232, 255, 0.34), rgba(255, 93, 220, 0.16)),
    rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 24px rgba(94, 232, 255, 0.2);
  color: var(--text);
}

.site-nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav a {
  min-height: 38px;
  padding: 0.42rem 0.75rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(94, 232, 255, 0.13);
  color: var(--text);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.icon-button,
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.icon-button {
  width: 42px;
  padding: 0;
}

.button {
  padding: 0.72rem 1rem;
}

.button svg,
.icon-button svg {
  width: 19px;
  height: 19px;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 232, 255, 0.52);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.button-primary {
  border-color: rgba(94, 232, 255, 0.48);
  background: linear-gradient(135deg, rgba(94, 232, 255, 0.92), rgba(108, 255, 181, 0.86));
  color: #061016;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.home-hero {
  display: grid;
  align-items: center;
  padding: calc(var(--header) + 66px) max(20px, calc((100vw - var(--max)) / 2)) 56px;
}

.hero-bg,
.hero-shade,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 8, 13, 0.92) 0%, rgba(7, 8, 13, 0.68) 42%, rgba(7, 8, 13, 0.38) 100%),
    linear-gradient(180deg, transparent 75%, var(--bg) 100%);
}

[data-theme="light"] .hero-shade {
  background:
    linear-gradient(90deg, rgba(245, 247, 251, 0.96) 0%, rgba(245, 247, 251, 0.74) 45%, rgba(245, 247, 251, 0.22) 100%),
    linear-gradient(180deg, transparent 72%, var(--bg) 100%);
}

.hero-grid {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 82%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  animation: hero-rise 850ms ease both;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.3rem, 12vw, 8.5rem);
  line-height: 0.88;
}

.home-hero h1 {
  font-size: clamp(3.3rem, 10.5vw, 7rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
}

h3 {
  margin-bottom: 0.6rem;
  line-height: 1.15;
}

.hero-copy {
  width: min(620px, 100%);
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions,
.pill-row,
.filter-bar,
.signal-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.signal-strip {
  margin-top: 2rem;
}

.signal-strip span,
.pill-row span,
.stack-cloud span,
.filter-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.06);
  color: var(--muted);
  backdrop-filter: blur(14px);
}

.signal-strip span {
  padding: 0.68rem 0.8rem;
}

.signal-strip strong {
  color: var(--text);
}

.hero-console {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.hero-console span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  backdrop-filter: blur(14px);
}

.hero-console svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.hero-cube {
  position: absolute;
  right: max(-80px, calc((100vw - var(--max)) / 2 - 80px));
  bottom: 6vh;
  z-index: 1;
  width: min(38vw, 500px);
  height: min(38vw, 500px);
  pointer-events: none;
}

#language-cube {
  width: 100%;
  height: 100%;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section,
.page-hero {
  position: relative;
  padding: 92px 20px;
}

.page-hero {
  padding-top: calc(var(--header) + 104px);
  padding-bottom: 70px;
  background:
    linear-gradient(135deg, rgba(94, 232, 255, 0.12), transparent 38%),
    linear-gradient(315deg, rgba(255, 200, 87, 0.12), transparent 38%),
    var(--bg-2);
}

.page-hero .section-inner {
  width: min(880px, 100%);
}

.page-hero h1 {
  font-size: clamp(2.7rem, 8vw, 6.5rem);
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.14rem;
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.inline-heading {
  align-items: center;
}

.text-link,
.card-link {
  color: var(--cyan);
  font-weight: 900;
}

.band-dark {
  background:
    linear-gradient(90deg, rgba(94, 232, 255, 0.1), transparent 34%),
    linear-gradient(270deg, rgba(255, 93, 220, 0.08), transparent 34%),
    #080a11;
}

[data-theme="light"] .band-dark {
  background:
    linear-gradient(90deg, rgba(0, 122, 143, 0.08), transparent 34%),
    linear-gradient(270deg, rgba(176, 22, 134, 0.08), transparent 34%),
    #dde5f1;
}

.band-accent {
  background:
    linear-gradient(135deg, rgba(94, 232, 255, 0.16), transparent 45%),
    linear-gradient(315deg, rgba(108, 255, 181, 0.12), transparent 45%),
    var(--bg-2);
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metric {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 150px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    var(--surface);
  backdrop-filter: blur(22px) saturate(150%);
}

.metric-number {
  display: block;
  color: var(--text);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 950;
  line-height: 1;
}

.metric-label {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted);
}

.service-grid,
.shop-grid,
.project-grid,
.cert-grid {
  display: grid;
  gap: 1rem;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.shop-card,
.project-card,
.cert-card,
.empty-state,
.package-card,
.info-panel,
.upload-panel,
.intake-form,
.timeline,
.contact-mini,
.code-panel,
.quote-lab,
.faq-list {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(150%);
  isolation: isolate;
}

.service-card::before,
.shop-card::before,
.project-card::before,
.cert-card::before,
.empty-state::before,
.package-card::before,
.info-panel::before,
.upload-panel::before,
.intake-form::before,
.timeline::before,
.contact-mini::before,
.code-panel::before,
.quote-lab::before,
.faq-list::before,
.metric::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(130deg, var(--glass-highlight), transparent 38%),
    linear-gradient(105deg, transparent 0 34%, rgba(94, 232, 255, 0.14) 48%, transparent 62% 100%);
  opacity: 0.62;
  transition: opacity 220ms ease;
}

.service-card:hover::before,
.shop-card:hover::before,
.project-card:hover::before,
.cert-card:hover::before,
.package-card:hover::before,
.metric:hover::before {
  opacity: 0.9;
}

.service-card,
.project-card,
.cert-card,
.empty-state,
.package-card {
  min-height: 230px;
  padding: 1.25rem;
}

.service-card svg,
.project-card svg,
.cert-card svg,
.empty-state svg,
.package-card svg {
  width: 34px;
  height: 34px;
  margin-bottom: 1.2rem;
  color: var(--cyan);
}

.service-card p,
.project-card p,
.cert-card p,
.empty-state p,
.package-card p {
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 300px;
  text-align: center;
}

.empty-state svg {
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}

.empty-state p {
  max-width: 560px;
  margin-bottom: 0;
}

.split-grid,
.contact-layout,
.cert-layout,
.about-grid {
  display: grid;
  gap: 1.3rem;
}

.split-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  align-items: center;
}

.feature-copy p,
.about-copy p {
  color: var(--muted);
  font-size: 1.06rem;
}

.console-section {
  background:
    linear-gradient(100deg, rgba(94, 232, 255, 0.09), transparent 35%),
    linear-gradient(260deg, rgba(255, 200, 87, 0.08), transparent 36%);
}

.console-grid,
.code-lab-grid,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 1.25rem;
  align-items: center;
}

.code-lab-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: stretch;
}

.code-panel {
  min-height: 460px;
  padding: 0;
}

.console-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
}

.console-top span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--danger);
}

.console-top span:nth-child(2) {
  background: var(--amber);
}

.console-top span:nth-child(3) {
  background: var(--green);
}

.console-top strong {
  margin-left: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.editor-toolbar,
.terminal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.editor-toolbar span:first-child,
.terminal-meta span:first-child {
  color: var(--cyan);
}

.code-editor,
.terminal-output {
  min-height: 360px;
  max-height: 520px;
  margin: 0;
  padding: 1.15rem;
  overflow: auto;
  color: var(--text);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.8rem, 1.3vw, 0.94rem);
  line-height: 1.72;
  white-space: pre;
}

.code-editor {
  background:
    linear-gradient(90deg, rgba(94, 232, 255, 0.07), transparent 18%),
    rgba(4, 7, 12, 0.42);
}

.terminal-output {
  color: #aefbd0;
  background:
    linear-gradient(180deg, rgba(108, 255, 181, 0.075), transparent 42%),
    rgba(0, 0, 0, 0.26);
}

.terminal-panel {
  box-shadow: 0 22px 90px rgba(94, 232, 255, 0.1), var(--shadow);
}

.terminal-output::after {
  content: "_";
  display: inline-block;
  margin-left: 0.2rem;
  color: var(--cyan);
  animation: cursor-blink 850ms steps(2, start) infinite;
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

.console-lines {
  display: grid;
  gap: 0.75rem;
  padding: 1.2rem;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.96rem;
}

.console-lines p {
  margin: 0;
  color: var(--muted);
}

.console-lines span {
  display: inline-flex;
  min-width: 44px;
  color: var(--green);
  font-weight: 900;
}

.pill-row span,
.stack-cloud span {
  padding: 0.52rem 0.75rem;
  font-weight: 850;
}

.timeline {
  padding: 1.1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-item > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: rgba(94, 232, 255, 0.14);
  color: var(--cyan);
  font-weight: 950;
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-row h2 {
  margin-bottom: 0;
  max-width: 820px;
}

.filter-bar {
  margin: 2rem 0 1.2rem;
}

.filter-chip {
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  color: var(--muted);
  font-weight: 900;
}

.filter-chip.is-active {
  background: linear-gradient(135deg, rgba(94, 232, 255, 0.24), rgba(108, 255, 181, 0.18));
  color: var(--text);
  border-color: rgba(94, 232, 255, 0.44);
}

.shop-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quote-lab {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  gap: 1.3rem;
  align-items: center;
  padding: 1.25rem;
}

.quote-copy p {
  color: var(--muted);
  font-size: 1.06rem;
}

.quote-controls {
  display: grid;
  gap: 0.75rem;
}

.quote-controls label {
  margin-bottom: 0;
}

input[type="range"] {
  accent-color: var(--cyan);
  padding-left: 0;
  padding-right: 0;
}

.quote-addons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.quote-addons .checkbox-row {
  min-height: 48px;
  margin: 0;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.quote-result {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  border: 1px solid rgba(94, 232, 255, 0.32);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(94, 232, 255, 0.14), rgba(108, 255, 181, 0.08));
}

.quote-result span,
.quote-result small {
  color: var(--muted);
  font-weight: 850;
}

.quote-result strong {
  color: var(--text);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.package-card {
  min-height: 250px;
}

.shop-card {
  display: grid;
  gap: 1rem;
  min-height: 470px;
  padding: 1.15rem;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-top svg {
  width: 32px;
  height: 32px;
  color: var(--cyan);
}

.card-top span {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.shop-card h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
  line-height: 1.12;
}

.shop-card p,
.shop-card li {
  color: var(--muted);
}

.shop-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.price-row span {
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 850;
}

.price-row strong {
  color: var(--green);
  font-size: 1.1rem;
}

.faq-list {
  padding: 0.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0.6rem 0.75rem;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.faq-item summary::after {
  content: "+";
  color: var(--cyan);
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 0.75rem 1rem;
  color: var(--muted);
}

.contact-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.5fr);
  align-items: start;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 1rem;
  align-items: start;
}

.admin-note {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.admin-note svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--amber);
}

.admin-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.config-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.config-status-item {
  min-height: 84px;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.config-status-item span,
.config-status-item small {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 0.76rem;
  font-weight: 850;
}

.config-status-item strong {
  display: block;
  margin: 0.25rem 0;
  color: var(--danger);
}

.config-status-item.is-configured strong {
  color: var(--green);
}

.intake-form,
.upload-panel,
.info-panel,
.contact-mini {
  padding: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
  padding: 0.78rem 0.85rem;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(94, 232, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(94, 232, 255, 0.12);
}

select option {
  background: var(--bg-2);
  color: var(--text);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.checkbox-row input {
  width: 19px;
  min-height: 19px;
  margin-top: 0.18rem;
}

.submit-button {
  width: 100%;
}

.form-status {
  min-height: 24px;
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.form-status.is-success {
  color: var(--green);
}

.form-status.is-error {
  color: var(--danger);
}

.contact-stack {
  display: grid;
  gap: 1rem;
}

.info-panel a,
.contact-mini a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 40px;
  color: var(--muted);
  font-weight: 800;
}

.info-panel a:hover,
.contact-mini a:hover {
  color: var(--text);
}

.info-panel svg,
.contact-mini svg {
  width: 19px;
  height: 19px;
  color: var(--cyan);
}

.payment-list {
  display: grid;
  gap: 0.75rem;
}

.payment-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.65rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.payment-item span {
  color: var(--text);
  font-weight: 900;
}

.payment-item code {
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.82rem;
}

.payment-item .icon-button {
  grid-row: 1;
  grid-column: 2;
}

.cert-layout {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.42fr);
  align-items: start;
}

.cert-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cert-card {
  min-height: 240px;
}

.cert-card a {
  color: var(--cyan);
  font-weight: 900;
}

.cert-card span {
  display: inline-flex;
  margin-top: 0.7rem;
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 850;
}

.about-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-copy {
  padding: 1.3rem;
  border-left: 2px solid rgba(94, 232, 255, 0.54);
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.project-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-mini {
  display: grid;
  gap: 0.35rem;
}

.legal-copy {
  width: min(850px, 100%);
}

.legal-copy h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

.legal-copy p {
  color: var(--muted);
}

.legal-copy a {
  color: var(--cyan);
  font-weight: 900;
}

.maintenance-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(94, 232, 255, 0.18), transparent 40%),
    linear-gradient(315deg, rgba(255, 93, 220, 0.18), transparent 40%),
    #06070c;
}

.maintenance-panel {
  width: min(620px, 100%);
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.countdown-panel {
  width: min(780px, 100%);
}

.maintenance-panel h1 {
  margin-bottom: 0.9rem;
  font-size: clamp(2.7rem, 8vw, 5.4rem);
  line-height: 0.92;
}

.maintenance-panel p {
  color: var(--muted);
}

.static-cube {
  margin: 0 auto 2rem;
}

.countdown-cube-scene {
  width: min(48vw, 280px);
  height: min(48vw, 280px);
  min-width: 220px;
  min-height: 220px;
  margin: 0 auto 1.6rem;
  perspective: 980px;
}

.countdown-cube {
  --size: min(48vw, 280px);
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: countdown-cube-spin 8s linear infinite;
}

.cube-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.4rem;
  border: 1px solid rgba(94, 232, 255, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(12, 16, 24, 0.72);
  box-shadow:
    inset 0 0 34px rgba(94, 232, 255, 0.16),
    0 0 28px rgba(94, 232, 255, 0.16);
  color: var(--text);
  backdrop-filter: blur(20px) saturate(150%);
}

.cube-face small {
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
}

.cube-face strong {
  color: #ffffff;
  font-size: clamp(2.5rem, 9vw, 4.2rem);
  line-height: 1;
}

.cube-face:nth-child(1) {
  transform: rotateY(0deg) translateZ(calc(var(--size) / 2));
}

.cube-face:nth-child(2) {
  transform: rotateY(90deg) translateZ(calc(var(--size) / 2));
}

.cube-face:nth-child(3) {
  transform: rotateY(180deg) translateZ(calc(var(--size) / 2));
}

.cube-face:nth-child(4) {
  transform: rotateY(-90deg) translateZ(calc(var(--size) / 2));
}

.cube-face:nth-child(5) {
  transform: rotateX(90deg) translateZ(calc(var(--size) / 2));
}

.cube-face:nth-child(6) {
  transform: rotateX(-90deg) translateZ(calc(var(--size) / 2));
}

@keyframes countdown-cube-spin {
  0% {
    transform: rotateX(-18deg) rotateY(0deg) rotateZ(0deg);
  }
  50% {
    transform: rotateX(18deg) rotateY(180deg) rotateZ(2deg);
  }
  100% {
    transform: rotateX(-18deg) rotateY(360deg) rotateZ(0deg);
  }
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 950;
}

.countdown span {
  color: var(--cyan);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 42px max(20px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.quick-dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 25;
  display: grid;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(8, 10, 16, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(150%);
}

[data-theme="light"] .quick-dock {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.72);
}

.quick-dock a {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.quick-dock a:hover {
  border-color: rgba(94, 232, 255, 0.55);
  background: rgba(94, 232, 255, 0.13);
}

.quick-dock a::before {
  content: attr(aria-label);
  position: absolute;
  right: calc(100% + 0.55rem);
  top: 50%;
  width: max-content;
  max-width: 180px;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.quick-dock a:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.site-footer p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  color: var(--muted);
  font-weight: 850;
}

.footer-links a:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

.is-hidden-card {
  display: none;
}

@media (max-width: 1080px) {
  .service-grid,
  .shop-grid,
  .project-grid,
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-cube {
    opacity: 0.48;
    right: -8vw;
    bottom: 2vh;
  }

  .contact-layout,
  .cert-layout,
  .admin-layout,
  .split-grid,
  .console-grid,
  .code-lab-grid,
  .quote-lab,
  .faq-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: auto auto;
    width: min(calc(100% - 22px), var(--max));
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-nav.is-open {
    position: fixed;
    top: 84px;
    left: 11px;
    right: 11px;
    display: grid;
    gap: 0.45rem;
    padding: 0.75rem;
    background: rgba(8, 10, 16, 0.92);
    box-shadow: var(--shadow);
  }

  [data-theme="light"] .site-nav.is-open {
    background: rgba(255, 255, 255, 0.94);
  }

  .site-nav.is-open a {
    display: flex;
    align-items: center;
    min-height: 46px;
  }

  .home-hero {
    padding-top: 128px;
  }

  .hero {
    min-height: 94svh;
  }

  .hero-cube {
    width: 78vw;
    height: 52vw;
    right: -28vw;
    bottom: 6vh;
  }

  .metrics-row,
  .service-grid,
  .cert-grid,
  .about-grid,
  .project-grid,
  .shop-grid,
  .package-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .cta-row,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .config-status-grid {
    grid-template-columns: 1fr;
  }

  .quote-addons {
    grid-template-columns: 1fr;
  }

  .quick-dock {
    left: 50%;
    right: auto;
    bottom: 10px;
    display: flex;
    transform: translateX(-50%);
  }

  .quick-dock a::before {
    display: none;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(3rem, 18vw, 4.7rem);
  }

  .page-hero h1 {
    font-size: clamp(2.45rem, 14vw, 4rem);
  }

  .button {
    width: 100%;
  }

  .hero-actions .button,
  .cta-row .button {
    width: auto;
  }

  .signal-strip span {
    width: 100%;
  }

  .section,
  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .boot-screen {
    display: none;
  }
}
