/* =====================================================
   ARCHIMECH DRAFTING & DESIGN N.V.
   Modern minimalist style — based on logo palette
   ===================================================== */

:root {
  /* Brand palette (from logo) */
  --navy: #1F2A44;
  --navy-deep: #141C2F;
  --navy-soft: #2C3A5A;
  --orange: #E89C3D;
  --orange-soft: #F2B664;
  --orange-deep: #C97F1F;

  /* Neutrals */
  --bg: #FFFFFF;
  --bg-alt: #F6F7FA;
  --bg-dark: #141C2F;
  --line: #E4E7EE;
  --text: #1F2A44;
  --text-soft: #5A6478;
  --text-light: #8A93A6;
  --text-on-dark: #E8ECF3;

  /* Spacing & radius */
  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(20, 28, 47, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 28, 47, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 28, 47, 0.12);

  --t: 0.25s cubic-bezier(.4, .2, .2, 1);

  /* AutoCAD Cursors */
  --cursor-default: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 0V32M0 16H32' stroke='%231F2A44' stroke-width='1'/%3E%3C/svg%3E") 16 16, auto;
  --cursor-pointer: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 0V32M0 16H32' stroke='%231F2A44' stroke-width='1'/%3E%3Crect x='13' y='13' width='6' height='6' stroke='%231F2A44' stroke-width='1' fill='white'/%3E%3C/svg%3E") 16 16, pointer;
  --cursor-grab: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 12C14 10.8954 14.8954 10 16 10C17.1046 10 18 10.8954 18 12V16H14V12ZM10 14C10 12.8954 10.8954 12 12 12C13.1046 12 14 12.8954 14 14V16H10V14ZM18 14C18 12.8954 18.8954 12 20 12C21.1046 12 22 12.8954 22 14V16H18V14ZM22 16C22 14.8954 22.8954 14 24 14C25.1046 14 26 14.8954 26 16V22C26 26.4183 22.4183 30 18 30C13.5817 30 10 26.4183 10 22V16H14V22H18V22H22V16Z' fill='%231F2A44'/%3E%3C/svg%3E") 16 16, grab;
}

/* =========== reset =========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a {
  cursor: var(--cursor-pointer);
}

button,
select {
  cursor: var(--cursor-pointer);
  border: none;
  outline: none;
}

body {
  cursor: var(--cursor-default);
}

.section--dark {
  --cursor-default: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 0V32M0 16H32' stroke='white' stroke-width='1'/%3E%3C/svg%3E") 16 16, auto;
}


.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========== typography =========== */
h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--navy);
}

.eyebrow {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: 'Command: _';
  opacity: 0.5;
  font-weight: 400;
  margin-right: 4px;
}

.eyebrow--light {
  color: var(--orange-soft);
}

.section {
  padding: 100px 0;
  position: relative;
}

/* Registration Marks */
.section::before,
.section::after {
  content: '+';
  position: absolute;
  font-family: monospace;
  font-size: 18px;
  color: var(--line);
  opacity: 0.5;
  pointer-events: none;
}

.section::before {
  top: 20px;
  left: 20px;
}

.section::after {
  bottom: 20px;
  right: 20px;
}

.section--dark::before,
.section--dark::after {
  color: rgba(255, 255, 255, 0.1);
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--text-on-dark);
}

.section--dark .section__title {
  color: #fff;
}

.section__head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section__head--center {
  text-align: center;
  margin: 0 auto 56px;
}

.section__title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

.section__title--light {
  color: #fff;
}

.section__lead {
  font-size: 17px;
  color: var(--text-soft);
}

/* =========== buttons =========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border-radius: 100px;
  border: none;
  transition: all var(--t);
  white-space: nowrap;
  cursor: pointer;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 14px;
}

.btn--full {
  width: 100%;
}

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(232, 156, 61, 0.35);
}

.btn--primary:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(232, 156, 61, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
}

/* =========== nav =========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: all var(--t);
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  gap: 24px;
}

.nav__logo img {
  height: 100px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}

.nav__links a {
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color var(--t);
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}

.nav__links a:hover {
  color: var(--orange);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}

.lang__btn {
  padding: 4px 6px;
  color: var(--text-light);
  transition: color var(--t);
}

.lang__btn.is-active {
  color: var(--navy);
}

.lang__btn:hover {
  color: var(--orange);
}

.lang__sep {
  color: var(--line);
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
}

.nav__burger span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform var(--t), opacity var(--t);
}

.nav__burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__burger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========== hero =========== */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  background: var(--bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 42, 68, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 42, 68, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}

#pencil-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}



.hero__title {
  font-size: clamp(36px, 5.4vw, 64px);
  margin-bottom: 24px;
}

.hero__title span {
  display: block;
}

.hero__title .accent {
  color: var(--orange);
}

/* Hero word-by-word reveal */
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) rotateX(20deg);
  animation: wordReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

.hero__lead {
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__cta {
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__stats {
  opacity: 0;
  animation: fadeSlideUp 0.8s 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__visual {
  opacity: 0;
  animation: fadeSlideUp 0.9s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__lead {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 540px;
  margin: 0 0 36px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 4px;
}

.stat span {
  font-size: 13px;
  color: var(--text-soft);
}

/* hero blueprint visual */
.hero__visual {
  position: relative;
}

.blueprint {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.blueprint::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  pointer-events: none;
}

.blueprint svg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  user-select: none;
}

.blueprint__indicator {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 100px;
  color: #fff;
  font-size: 12px;
  font-family: 'Space Grotesk', sans-serif;
  z-index: 10;
}

.blueprint__indicator .dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}

.blueprint__toolbar {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 8px 12px;
  border-radius: 8px;
}

.blueprint__tools {
  display: flex;
  gap: 8px;
}

.tool-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: all var(--t);
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tool-btn.is-active {
  background: var(--orange);
  border-color: var(--orange);
}

.tool-btn--danger {
  border-color: rgba(255, 100, 100, 0.4);
  color: #ff8888;
}

.tool-btn--danger:hover {
  background: rgba(255, 100, 100, 0.15);
}

.blueprint__cta {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(31, 42, 68, 0.75);
  backdrop-filter: blur(8px);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-size: 14px;
  font-family: 'Space Grotesk', sans-serif;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 5;
}

.blueprint__cta svg {
  width: 28px;
  height: 28px;
  color: var(--orange);
  margin-bottom: 4px;
}

.blueprint__cta.is-hidden {
  opacity: 0;
  transform: translate(-50%, -45%);
}

.guide-shape {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 3;
  stroke-dasharray: 8 6;
  fill: none;
  pointer-events: none;
}

.blueprint__score-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: opacity 0.3s ease;
}

.blueprint__score-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.score-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 32px 48px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blueprint__score-overlay.is-hidden .score-card {
  transform: scale(0.9);
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 156, 61, 0.7);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(232, 156, 61, 0);
  }
}

/* =========== trust strip =========== */
.trust {
  background: var(--navy);
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
}

.trust__title {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-soft);
  margin: 0 0 12px;
}

.trust__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 500;
}

.dot-sep {
  color: var(--orange);
}

/* =========== services =========== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.service::before {
  content: 'LAYER: SERVICES';
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 9px;
  font-family: monospace;
  color: var(--text-light);
  opacity: 0.3;
}

.service::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--orange), transparent 60%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  filter: blur(12px);
}

.service:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: 0 16px 40px rgba(232, 156, 61, 0.15);
}

.service:hover::after {
  opacity: 0.3;
}

.service__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(232, 156, 61, 0.12), rgba(232, 156, 61, 0.04));
  color: var(--orange);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.service__icon svg {
  width: 26px;
  height: 26px;
}

.service h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.service p {
  color: var(--text-soft);
  font-size: 15px;
  margin: 0;
}

.service--cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--text-on-dark);
  border-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service--cta h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 12px;
}

.service--cta p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 22px;
}

.service--cta:hover {
  transform: translateY(-4px);
  border-color: transparent;
}

/* =========== about =========== */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__text p {
  color: var(--text-soft);
  margin: 0 0 16px;
  font-size: 16px;
}

.about__list {
  list-style: none;
  padding: 24px 0 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about__list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--navy);
  font-weight: 500;
}

.about__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--orange);
  border-radius: 4px;
  transform: rotate(45deg);
}

.about__visual {
  position: relative;
  perspective: 1200px;
  /* For 3D effect */
}

/* CAD Viewport Container */
.cad-viewport {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 480px;
  font-family: 'Space Grotesk', monospace;
  color: #ccc;
  user-select: none;
}

/* Viewport Header */
.cad-viewport__header {
  background: #2d2d2d;
  padding: 0 12px;
  height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #444;
}

.cad-viewport__tabs {
  display: flex;
  height: 100%;
  align-items: flex-end;
  gap: 2px;
}

.cad-viewport__tabs button {
  background: #3a3a3a;
  border: none;
  color: #888;
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 4px 4px 0 0;
  height: 28px;
  transition: all 0.2s;
}

.cad-viewport__tabs button.active {
  background: #1e1e1e;
  color: #fff;
  font-weight: 600;
}

.cad-viewport__controls button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 3px;
  border: none;
  transition: transform 0.2s;
}

.cad-viewport__controls button:hover {
  transform: scale(1.05);
}

.cad-viewport__controls svg {
  width: 14px;
  height: 14px;
}

/* Viewport Canvas */
.cad-viewport__canvas {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, #252525 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cad-viewport__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Scene & SVG */
.cad-viewport__scene {
  position: relative;
  width: 80%;
  height: 80%;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floor-plan {
  width: 100%;
  height: 100%;
  color: #5ed7ff;
  /* Classic CAD blue */
  filter: drop-shadow(0 0 2px rgba(94, 215, 255, 0.3));
}

/* 3D Mode */
.cad-viewport.is-3d .cad-viewport__scene {
  transform: rotateX(55deg) rotateZ(-45deg);
}

.cad-viewport.is-3d .floor-plan {
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
}

/* Coords */
.cad-viewport__coords {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 10px;
  color: #666;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 2px;
}

/* ViewCube */
.cad-viewport__cube {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  background: #333;
  border: 1px solid #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: bold;
  color: #999;
  border-radius: 4px;
}

/* Footer / Command Line */
.cad-viewport__footer {
  background: #252525;
  height: 32px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-top: 1px solid #333;
  font-size: 12px;
}

.cad-viewport__cmd {
  color: #888;
  display: flex;
  gap: 8px;
}

.cad-viewport__cmd span:last-child {
  color: #fff;
}

.cursor-blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* =========== clients =========== */
.clients {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.client {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--t);
}

.client::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t);
}

.client:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.client:hover::before {
  transform: scaleY(1);
}

.client__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.client h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.client p {
  color: var(--text-soft);
  font-size: 15px;
  margin: 0;
}

/* =========== why =========== */
.why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why__item {
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.why__item:hover {
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(232, 156, 61, 0.1);
}

.why__num {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 16px;
}

.why__item h3 {
  color: #fff;
  font-size: 19px;
  margin-bottom: 10px;
}

.why__item p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  margin: 0;
}

/* =========== contact =========== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__intro p {
  color: var(--text-soft);
  margin-bottom: 32px;
}

.contact__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: var(--navy);
}

.contact__list svg {
  width: 20px;
  height: 20px;
  color: var(--orange);
  flex-shrink: 0;
}

.contact__list a {
  color: var(--navy);
  transition: color var(--t);
}

.contact__list a:hover {
  color: var(--orange);
}

.contact__form {
  background: #fff;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  transition: border-color var(--t), box-shadow var(--t);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(232, 156, 61, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.field__hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
}

/* =========== footer =========== */
.footer {
  background: var(--navy-deep);
  color: var(--text-on-dark);
  padding: 64px 0 24px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer__brand img {
  height: 120px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  background: #141C2F;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin: 0;
  max-width: 380px;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer__cols h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer__cols a,
.footer__cols span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  padding: 4px 0;
  transition: color var(--t);
}

.footer__cols a:hover {
  color: var(--orange);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* =========== whatsapp fab =========== */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: transform var(--t), box-shadow var(--t);
}

.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.6);
}

.wa-fab svg {
  width: 30px;
  height: 30px;
}

.wa-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.4;
  animation: wa-ring 2s ease-out infinite;
  z-index: -1;
}

@keyframes wa-ring {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 980px) {
  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 120px 24px 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform var(--t), visibility var(--t);
    border-bottom: 1px solid var(--line);
    max-height: 100vh;
    overflow-y: auto;
    z-index: 90;
    visibility: hidden;
    pointer-events: none;
  }

  .nav__links.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav__logo, 
  .nav__burger,
  .nav__actions {
    position: relative;
    z-index: 101;
  }

  .nav__burger {
    display: flex;
  }

  .nav .btn {
    display: none;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__visual {
    max-width: 460px;
    margin: 0 auto;
  }

  .hero__stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .section {
    padding: 72px 0;
  }

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

  .about {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__visual {
    max-width: 460px;
    margin: 0 auto;
  }

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

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

  .contact {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 18px;
  }

  .nav__inner {
    height: 90px;
  }

  .nav__logo img {
    height: 65px;
    max-width: 220px;
  }

  .nav__actions {
    gap: 10px;
  }

  .hero {
    padding: 110px 0 64px;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .hero__stats {
    gap: 20px;
    padding-top: 24px;
  }

  .stat strong {
    font-size: 18px;
  }

  .section {
    padding: 64px 0;
  }

  .section__head {
    margin-bottom: 36px;
  }

  .services,
  .clients,
  .why {
    grid-template-columns: 1fr;
  }

  .about__list {
    grid-template-columns: 1fr;
  }

  .footer__cols {
    grid-template-columns: 1fr;
  }

  .wa-fab {
    width: 52px;
    height: 52px;
    bottom: 18px;
    right: 18px;
  }

  .wa-fab svg {
    width: 26px;
    height: 26px;
  }

  .contact__form {
    padding: 24px;
  }

  .nav__links {
    padding-top: 90px;
  }

  /* Drawing game mobile fixes */
  .blueprint {
    padding: 12px;
  }

  .blueprint__toolbar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 6px 8px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .blueprint__tools {
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .tool-btn {
    padding: 4px 8px;
    font-size: 10px;
  }

  .blueprint__indicator {
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 10px;
  }
}

/* Landscape / Small height specific fixes */
@media (max-height: 540px) and (max-width: 980px) {
  .hero {
    padding: 100px 0 40px;
  }

  .hero__inner {
    gap: 24px;
  }

  .blueprint {
    aspect-ratio: 2 / 1;
    max-height: 300px;
  }

  .blueprint__toolbar {
    bottom: 8px;
    padding: 4px 6px;
    gap: 4px;
  }

  .tool-btn {
    padding: 3px 6px;
    font-size: 9px;
  }
}

/* =========== reveal animation =========== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}

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

/* Section heads */
.section__head .eyebrow,
.section__head .section__title,
.section__head .section__lead {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.section__head.is-visible .eyebrow {
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

.section__head.is-visible .section__title {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}

.section__head.is-visible .section__lead {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
}

/* Section dividers */
.section--divider-top::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, var(--bg), transparent);
  pointer-events: none;
  z-index: 1;
}

.section--dark .section--divider-top::before {
  background: linear-gradient(to bottom, var(--navy), transparent);
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* =========== cad status bar =========== */
.cad-status-bar {
  background: #252525;
  border-top: 1px solid #333;
  padding: 8px 0;
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.05em;
}

.cad-status-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cad-status-bar__group {
  display: flex;
  gap: 16px;
  align-items: center;
}

.cad-status-bar__group span {
  padding: 2px 8px;
  border-radius: 2px;
  transition: all 0.2s;
}

.cad-status-bar__group span.active {
  background: #333;
  color: #fff;
}

.cad-status-bar__group--toggles span {
  cursor: pointer;
  border: 1px solid transparent;
}

.cad-status-bar__group--toggles span:hover {
  border-color: #444;
  color: #fff;
}

.cad-status-bar__group--toggles span.active {
  background: #3a4a5a;
  color: #5ed7ff;
  border-color: #4a5a6a;
}

.cad-status-bar__group--coords {
  color: #666;
}

@media (max-width: 768px) {

  .cad-status-bar__group--toggles,
  .cad-status-bar__group--coords {
    display: none;
  }
}