:root {
  --border-color: #2a2a2a;
  --bg-color: #f9f9f9;
  --text-color: #111111;
  --accent-color: #ff5e5e; /* Like the salmon red in the image */
  --grid-size: 1fr 1fr 1fr 1fr;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  direction: rtl;
  overflow-x: hidden;
}

/* Grid Layout container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  height: 80px;
}

.logo-box {
  width: 80px;
  border-left: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 24px;
  letter-spacing: 2px;
}

.nav-links {
  flex-grow: 1;
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-btn {
  background-color: var(--accent-color);
  color: white;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  border-right: 1px solid var(--border-color); /* RTL */
  transition: background 0.3s;
}
.contact-btn:hover {
  background-color: #e04848;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  padding: 80px 40px;
}

.hero h1 {
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 30px;
  font-weight: 800;
  letter-spacing: -2px;
}

.hero p {
  font-size: 1.5rem;
  max-width: 600px;
  color: #555;
  margin-bottom: 40px;
}

/* Blueprint Section */
.blueprint {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border-color);
}

.blueprint-text {
  padding: 60px 40px;
  border-left: 1px solid var(--border-color);
}

.blueprint-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.blueprint-img {
  background-color: #e0e6ed;
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Services Grid */
.services-header {
  padding: 40px;
  border-bottom: 1px solid var(--border-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-item {
  padding: 40px;
  border-bottom: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}

.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-item ul {
  list-style-type: none;
  padding: 0;
}

.service-item li {
  margin-bottom: 10px;
  position: relative;
  padding-right: 20px;
}

.service-item li::before {
  content: '→';
  position: absolute;
  right: 0;
  color: var(--accent-color);
}

/* Form Section */
.form-section {
  padding: 60px 40px;
  background-color: #111;
  color: white;
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: transparent;
  border: 1px solid #333;
  color: white;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
}

.submit-btn {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 1.1rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  width: 100%;
  transition: background 0.3s;
}

.submit-btn:hover {
  background-color: #e04848;
}

/* WhatsApp Floating CTA */
.whatsapp-cta {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: #25D366;
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  z-index: 100;
  transition: transform 0.3s;
}

.whatsapp-cta:hover {
  transform: translateY(-5px);
}

/* Chatbot Styles */
.chatbot-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 350px;
  background: white;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  z-index: 100;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-container.active {
  transform: translateY(0);
}

.chatbot-header {
  background: #111;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.chatbot-messages {
  height: 300px;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: var(--bg-color);
}

.bot-msg {
  background: #e9ecef;
  padding: 12px 16px;
  border-radius: 12px 12px 0 12px;
  align-self: flex-start;
  max-width: 80%;
  font-size: 0.95rem;
}

.user-msg {
  background: var(--accent-color);
  color: white;
  padding: 12px 16px;
  border-radius: 12px 12px 12px 0;
  align-self: flex-end;
  max-width: 80%;
  font-size: 0.95rem;
}

.chatbot-input {
  display: flex;
  border-top: 1px solid #ddd;
}

.chatbot-input input {
  flex-grow: 1;
  padding: 15px;
  border: none;
  outline: none;
}

.chatbot-input button {
  background: var(--text-color);
  color: white;
  border: none;
  padding: 0 20px;
  cursor: pointer;
}

.chatbot-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--text-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 99;
}

@media (max-width: 768px) {
  .blueprint {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 3rem;
  }
  header {
    flex-direction: column;
    height: auto;
  }
  .nav-links {
    padding: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .contact-btn {
    padding: 15px;
    border-right: none;
    border-top: 1px solid var(--border-color);
  }
  .chatbot-container {
    right: 10px;
    bottom: 90px;
    width: calc(100% - 20px);
  }
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* هم‌راستا با برند آرایه: زمرّدی + سرمه‌ای */
  --space-bg: #eef2f6;
  --space-ink: #0e1a2b;
  --space-muted: #46586a;
  --space-line: rgba(14, 26, 43, 0.18);
  --space-soft-line: rgba(14, 26, 43, 0.08);
  --space-red: #2e7d6b;
  --space-clay: #3fa08a;
  --space-sand: #e6edf3;
  --space-dark: #0e1a2b;
  --space-green: #25d366;
  --space-radius: 28px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(46, 125, 107, 0.16), transparent 28rem),
    linear-gradient(135deg, #f6f8fa 0%, var(--space-bg) 45%, #dde6ee 100%);
  color: var(--space-ink);
  direction: rtl;
}

[hidden],
.hp-field {
  display: none !important;
}

.space-shell {
  width: min(1440px, calc(100% - 28px));
  margin: 14px auto 0;
  border: 1px solid var(--space-line);
  background: rgba(251, 247, 238, 0.78);
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 120px rgba(21, 18, 14, 0.12);
}

.space-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 76px;
  height: auto;
  border-bottom: 1px solid var(--space-line);
  background: rgba(238, 242, 246, 0.86);
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 76px;
  padding: 0 24px;
  color: var(--space-ink);
  border-left: 1px solid var(--space-line);
  text-decoration: none;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 6px 18px rgba(14, 26, 43, 0.16);
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.brand-text small {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--space-red);
  direction: ltr;
}

.space-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
}

.space-nav a,
.header-cta,
.conversion-band a {
  color: var(--space-ink);
  text-decoration: none;
  font-weight: 700;
}

.space-nav a {
  font-size: 14px;
  color: var(--space-muted);
}

.header-cta {
  display: grid;
  place-items: center;
  min-height: 76px;
  padding: 0 32px;
  background: var(--space-red);
  color: #fff;
  border-right: 1px solid var(--space-line);
}

.scene {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border-bottom: 1px solid var(--space-line);
  content-visibility: auto;
  contain-intrinsic-size: 760px;
}

.layer {
  position: absolute;
  inset: 0;
}

.grid-plane {
  background-image:
    linear-gradient(var(--space-soft-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--space-soft-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.9;
}

.glow-plane::before,
.glow-plane::after {
  content: "";
  position: absolute;
  width: 32vw;
  height: 32vw;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.65;
}

.glow-plane::before {
  top: 9%;
  left: 8%;
  background: rgba(46, 125, 107, 0.26);
}

.glow-plane::after {
  bottom: 10%;
  right: 38%;
  background: rgba(63, 160, 138, 0.28);
}

.arch-lines span {
  position: absolute;
  border: 1px solid rgba(21, 18, 14, 0.22);
  transform: rotate(-8deg);
}

.arch-lines span:nth-child(1) {
  width: 34vw;
  height: 18vw;
  right: 8%;
  top: 12%;
}

.arch-lines span:nth-child(2) {
  width: 24vw;
  height: 32vw;
  left: 10%;
  bottom: 12%;
}

.arch-lines span:nth-child(3) {
  width: 12vw;
  height: 12vw;
  left: 32%;
  top: 20%;
  background: var(--space-red);
  border: 0;
  box-shadow: -28px 28px 0 var(--space-clay);
}

.studio-card {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-inline-end: 5vw;
  opacity: 0.5;
  pointer-events: none;
}

.floor-plan {
  width: min(470px, 42vw);
  aspect-ratio: 0.92;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-rows: 0.9fr 1.3fr;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--space-line);
  background: rgba(255, 255, 255, 0.36);
  transform: rotate(-6deg);
  box-shadow: 0 30px 80px rgba(21, 18, 14, 0.18);
  animation: floatPlan 9s ease-in-out infinite;
}

.floor-plan b {
  display: flex;
  align-items: flex-end;
  padding: 16px;
  border: 1px solid var(--space-line);
  color: rgba(21, 18, 14, 0.48);
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  direction: ltr;
}

.floor-plan b:nth-child(1) {
  background: var(--space-red);
  color: #fff;
}

.floor-plan b:nth-child(3) {
  background: var(--space-dark);
  color: #fff;
}

.hero-copy {
  position: relative;
  width: min(720px, 58vw);
  padding: clamp(86px, 9vw, 132px) clamp(28px, 7vw, 88px) 72px;
  z-index: 4;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -10% -4% -6% -12%;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(246, 248, 250, 0.96) 0%,
    rgba(246, 248, 250, 0.9) 62%,
    rgba(246, 248, 250, 0) 100%
  );
  -webkit-mask-image: linear-gradient(100deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(100deg, #000 70%, transparent 100%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--space-red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  direction: ltr;
  text-transform: uppercase;
}

.hero-copy h1,
.section-head h2,
.form-intro h2,
.conversion-band h2 {
  margin: 16px 0;
  font-weight: 900;
  /* فارسی با tracking منفیِ تند و line-height زیر ۱ بریده می‌شود */
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.hero-copy h1 {
  max-width: 920px;
  font-size: clamp(40px, 6vw, 86px);
  line-height: 1.22;
}

.hero-copy p {
  max-width: 680px;
  color: var(--space-muted);
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.95;
}

.hero-lead {
  max-width: 660px;
  margin-top: 34px;
}

.hero-lead-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--space-line);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 55px rgba(21, 18, 14, 0.1);
}

.hero-lead input,
.hero-lead button,
.space-form input,
.space-form select,
.space-form textarea,
.submit-btn,
.chatbot-input input,
.chatbot-input button {
  font: inherit;
}

.hero-lead input {
  min-height: 58px;
  border: 0;
  background: transparent;
  color: var(--space-ink);
  padding: 0 18px;
  outline: none;
}

.hero-lead button,
.submit-btn {
  border: 0;
  background: var(--space-red);
  color: #fff;
  padding: 0 24px;
  font-weight: 900;
  cursor: pointer;
}

.hero-lead button {
  min-height: 58px;
}

.is-invalid {
  box-shadow: inset 0 0 0 1px var(--space-red);
}

.mini-status,
.form-status {
  display: block;
  margin-top: 12px;
  color: var(--space-muted);
  font-weight: 700;
}

.mini-status[data-type="error"],
.form-status[data-type="error"] {
  color: #b4221a;
}

.mini-status[data-type="success"],
.form-status[data-type="success"] {
  color: #167a43;
}

.hero-offer {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 660px;
  margin-top: 30px;
  padding: 14px 16px;
  border: 1px solid rgba(46, 125, 107, 0.32);
  border-radius: 16px;
  background: rgba(46, 125, 107, 0.08);
}

.hero-offer .offer-tag {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--space-red);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.hero-offer p {
  margin: 0;
  color: var(--space-ink);
  font-size: 15px;
  line-height: 1.7;
}

.hero-offer strong {
  font-weight: 900;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid var(--space-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--space-ink);
  font-size: 13px;
  font-weight: 700;
}

.hero-proof li::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--space-red)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.foreground-code {
  inset: auto 26px 26px auto;
  height: auto;
  color: rgba(21, 18, 14, 0.32);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  direction: ltr;
}

.focus-strip,
.service-matrix,
.process-grid,
.field-grid {
  display: grid;
}

.focus-strip {
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--space-line);
}

.focus-strip article,
.service-matrix article,
.process-grid article {
  padding: clamp(26px, 3.5vw, 48px);
  border-left: 1px solid var(--space-line);
  min-height: 250px;
  background: rgba(255, 255, 255, 0.22);
}

.focus-strip article:last-child,
.service-matrix article:nth-child(4n),
.process-grid article:last-child {
  border-left: 0;
}

.focus-strip span,
.process-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--space-line);
  color: var(--space-red);
  font-weight: 900;
  direction: ltr;
}

.focus-strip h2,
.process-grid h3 {
  margin: 28px 0 12px;
  font-size: clamp(26px, 2.5vw, 40px);
  line-height: 1.1;
}

.focus-strip p,
.service-matrix p,
.process-grid p,
.form-intro p {
  color: var(--space-muted);
  line-height: 1.9;
}

.conversion-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
  padding: clamp(40px, 6vw, 84px);
  background: var(--space-dark);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.conversion-band h2 {
  max-width: 880px;
  font-size: clamp(34px, 5vw, 76px);
  color: #fff;
}

.conversion-band a {
  padding: 18px 26px;
  background: var(--space-red);
  color: #fff;
  white-space: nowrap;
}

.services-section,
.process-section,
.form-section {
  padding: clamp(52px, 7vw, 96px) clamp(24px, 5vw, 72px);
  border-bottom: 1px solid var(--space-line);
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

.section-head {
  max-width: 850px;
  margin-bottom: 38px;
}

.section-head h2,
.form-intro h2 {
  font-size: clamp(36px, 5vw, 82px);
}

.service-matrix {
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--space-line);
  border-left: 0;
}

.service-matrix article {
  min-height: 220px;
  border-bottom: 1px solid var(--space-line);
}

.service-matrix article:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.service-matrix b {
  display: block;
  margin-bottom: 18px;
  font-size: 22px;
  line-height: 1.35;
}

.process-grid {
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--space-line);
  border-left: 0;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: #fbf7ee;
  color: var(--space-ink);
}

.form-intro {
  position: sticky;
  top: 112px;
}

.form-note {
  margin-top: 28px;
  padding: 18px;
  background: var(--space-sand);
  border: 1px solid var(--space-line);
  color: var(--space-muted);
  line-height: 1.9;
}

.space-form {
  padding: clamp(20px, 3vw, 38px);
  border: 1px solid var(--space-line);
  background: var(--space-dark);
  color: #fff;
  box-shadow: 0 34px 90px rgba(21, 18, 14, 0.18);
}

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

.field-grid.compact {
  margin-top: 18px;
}

.space-form label,
.note-field {
  display: grid;
  gap: 9px;
}

.space-form label span,
.check-field legend {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 700;
}

.space-form input,
.space-form select,
.space-form textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0 14px;
  outline: none;
}

.space-form textarea {
  padding-block: 14px;
  resize: vertical;
}

.space-form select option {
  color: var(--space-ink);
}

.space-form input:focus,
.space-form select:focus,
.space-form textarea:focus {
  border-color: var(--space-red);
}

.check-field {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.check-field legend {
  padding: 0 8px;
}

.check-field label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.86);
}

.check-field input {
  width: auto;
  min-height: auto;
  accent-color: var(--space-red);
}

.note-field {
  margin-top: 18px;
}

.submit-btn {
  width: 100%;
  min-height: 62px;
  margin-top: 22px;
  font-size: 18px;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.whatsapp-cta {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border-radius: 999px;
  background: var(--space-green);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 18px 50px rgba(37, 211, 102, 0.3);
}

.chatbot-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 61;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--space-dark);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(21, 18, 14, 0.26);
}

.chatbot-container {
  position: fixed;
  right: 24px;
  bottom: 102px;
  z-index: 62;
  width: min(380px, calc(100vw - 34px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--space-line);
  border-radius: 26px;
  background: #fffaf2;
  box-shadow: 0 30px 90px rgba(21, 18, 14, 0.22);
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.chatbot-container.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--space-dark);
  color: #fff;
}

.chatbot-header button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.chatbot-messages {
  height: 310px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  overflow-y: auto;
  background: #fffaf2;
}

.bot-msg,
.user-msg {
  max-width: 84%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.75;
}

.bot-msg {
  align-self: flex-start;
  background: #efe6d9;
  color: var(--space-ink);
}

.user-msg {
  align-self: flex-end;
  background: var(--space-red);
  color: #fff;
}

.chatbot-input {
  display: grid;
  grid-template-columns: 1fr auto;
  border-top: 1px solid var(--space-soft-line);
}

.chatbot-input input {
  border: 0;
  padding: 15px;
  outline: none;
  background: transparent;
}

.chatbot-input button {
  border: 0;
  padding: 0 18px;
  background: var(--space-dark);
  color: #fff;
  cursor: pointer;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes floatPlan {
  0%, 100% { transform: rotate(-6deg) translate3d(0, 0, 0); }
  50% { transform: rotate(-4deg) translate3d(0, -16px, 0); }
}

@media (max-width: 1100px) {
  .focus-strip,
  .service-matrix,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-matrix article:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--space-line);
  }

  .service-matrix article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .studio-card {
    opacity: 0.38;
  }

  .form-section {
    grid-template-columns: 1fr;
  }

  .form-intro {
    position: static;
  }
}

@media (max-width: 760px) {
  .space-shell {
    width: 100%;
    margin-top: 0;
    border-inline: 0;
  }

  .space-header {
    grid-template-columns: auto 1fr;
  }

  .brand-mark {
    height: 62px;
    padding: 0 14px;
    gap: 8px;
  }

  .brand-logo {
    width: 28px;
    height: 28px;
  }

  .brand-text {
    font-size: 20px;
  }

  .brand-text small {
    display: none;
  }

  .space-nav {
    overflow-x: auto;
    gap: 16px;
    padding: 0 16px;
  }

  .space-nav a {
    white-space: nowrap;
  }

  .header-cta {
    grid-column: 1 / -1;
    min-height: 52px;
    border-top: 1px solid var(--space-line);
    border-right: 0;
  }

  .scene {
    min-height: 760px;
  }

  .hero-copy {
    width: 100%;
    padding: 72px 18px 40px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 15vw, 72px);
  }

  .hero-lead-box,
  .field-grid,
  .check-field,
  .chatbot-input {
    grid-template-columns: 1fr;
  }

  .hero-lead button {
    width: 100%;
  }

  .studio-card {
    align-items: flex-end;
    justify-content: center;
    padding: 0 18px 34px;
  }

  .floor-plan {
    width: min(360px, 88vw);
    opacity: 0.55;
  }

  .focus-strip,
  .service-matrix,
  .process-grid,
  .conversion-band {
    grid-template-columns: 1fr;
  }

  .focus-strip article,
  .service-matrix article,
  .process-grid article {
    border-left: 0;
    border-bottom: 1px solid var(--space-line);
  }

  .service-matrix article:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--space-line);
  }

  .service-matrix article:last-child,
  .process-grid article:last-child,
  .focus-strip article:last-child {
    border-bottom: 0;
  }

  .services-section,
  .process-section,
  .form-section {
    padding: 42px 18px;
  }

  .space-form {
    padding: 20px;
  }

  .whatsapp-cta {
    left: 12px;
    bottom: 12px;
    padding: 12px 14px;
    font-size: 13px;
  }

  .chatbot-toggle {
    right: 12px;
    bottom: 12px;
  }

  .chatbot-container {
    right: 12px;
    bottom: 86px;
  }
}

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

  [data-depth] {
    transform: none !important;
  }
}
