:root {
  --bg: rgb(24 24 24);
  --bg-soft: rgb(24 24 24);
  --text: #ffffff;
  --text-muted: #9ca3af;
  --border: rgba(255, 255, 255, 0.08);
  --accent: linear-gradient(90deg, #8b5cf6, #22d3ee);
  --container: 1200px;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  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: 96px 96px, 96px 96px;
  background-position: center;
  z-index: 0;
}

main,
section {
  position: relative;
  z-index: 1;
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin: 0 auto;
}

section {
  padding: 1rem 0;
}

.hero {
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 2.2rem;
}

.brand-logo {
  width: clamp(220px, 30vw, 320px);
  height: auto;
  object-fit: contain;
  display: block;
}

h1,
h2,
h3,
p,
ul,
blockquote {
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 7.8vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.text-gradient {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin-top: 1.35rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  max-width: 54ch;
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 10px;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease,
    background-color 240ms ease, color 240ms ease;
}

.btn:hover {
  transform: scale(1.03);
}

.btn-primary {
  background: #fff;
  color: #080808;
  box-shadow: 0 0 0 rgba(34, 211, 238, 0);
}

.btn-primary:hover {
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.2);
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.15);
}

.hero-panel {
  display: none;
  padding-top: clamp(4.2rem, 8vw, 5.8rem);
}

.render-clone {
  position: relative;
  min-height: 550px;
  overflow: hidden;
  isolation: isolate;
  transform: translateY(-100px);
}

.clone-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px;
  background-position: 0 0, 0 0;
  mask-image: linear-gradient(to bottom, transparent 2%, #000 18%, #000 92%, transparent 100%);
  opacity: 0.38;
  animation: clone-grid-shift 15s linear infinite;
}

.clone-command {
  position: absolute;
  top: 20%;
  left: 6%;
  z-index: 3;
  padding: 0.85rem 1.25rem;
  color: #0b0b0c;
  background: #20d4b6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.85rem, 1.3vw, 1.35rem);
  border-radius: 1px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  animation: clone-command-cycle 6.8s ease-in-out infinite;
}

.clone-production {
  position: absolute;
  right: 0;
  bottom: 3%;
  z-index: 2;
  width: min(640px, 96%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 10, 10, 0.93);
  padding: 1.1rem;
  animation: clone-board-cycle 6.8s ease-in-out infinite;
}

.clone-title {
  margin-bottom: 0.95rem;
  color: #7f8792;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

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

.clone-service {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 11, 12, 0.92);
  padding: 0.84rem;
}

.clone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  font-size: 0.91rem;
  color: #d6d9df;
}

.clone-head strong {
  color: #19cdb0;
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  padding-left: 0.8rem;
}

.clone-head strong::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #19cdb0;
  box-shadow: 0 0 9px rgba(25, 205, 176, 0.55);
  animation: clone-status-pulse 1.8s ease-in-out infinite;
}

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

.clone-metric small {
  display: block;
  margin-bottom: 0.28rem;
  color: #767e89;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

.clone-chart {
  position: relative;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.clone-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 16px;
  background: #8a2cff;
  clip-path: polygon(0% 65%, 15% 73%, 32% 50%, 48% 61%, 65% 52%, 84% 70%, 100% 62%, 100% 72%, 0% 75%);
  animation: clone-line-wave 2.2s steps(2, jump-none) infinite;
}

.line-b {
  clip-path: polygon(0% 62%, 15% 52%, 34% 66%, 51% 55%, 68% 62%, 84% 48%, 100% 58%, 100% 70%, 0% 75%);
  animation-delay: 0.3s;
}

.line-c {
  clip-path: polygon(0% 69%, 16% 61%, 35% 72%, 53% 56%, 70% 66%, 86% 58%, 100% 64%, 100% 75%, 0% 76%);
  animation-delay: 0.15s;
}

.line-d {
  clip-path: polygon(0% 61%, 18% 71%, 33% 59%, 52% 67%, 70% 54%, 85% 63%, 100% 56%, 100% 69%, 0% 74%);
  animation-delay: 0.48s;
}

.line-e {
  clip-path: polygon(0% 68%, 14% 55%, 30% 69%, 50% 62%, 68% 52%, 87% 64%, 100% 58%, 100% 72%, 0% 76%);
  animation-delay: 0.25s;
}

.line-f {
  clip-path: polygon(0% 66%, 16% 74%, 35% 60%, 49% 70%, 65% 59%, 82% 66%, 100% 61%, 100% 75%, 0% 77%);
  animation-delay: 0.38s;
}

.line-g {
  clip-path: polygon(0% 72%, 17% 63%, 31% 69%, 47% 55%, 64% 67%, 85% 57%, 100% 65%, 100% 76%, 0% 79%);
  animation-delay: 0.52s;
}

.line-h {
  clip-path: polygon(0% 63%, 15% 54%, 34% 67%, 51% 57%, 67% 61%, 84% 51%, 100% 59%, 100% 70%, 0% 75%);
  animation-delay: 0.6s;
}

@keyframes clone-grid-shift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(30px, 20px);
  }
}

@keyframes clone-command-cycle {
  0%,
  7% {
    opacity: 0;
    transform: translate(-52px, 0);
  }
  14%,
  68% {
    opacity: 1;
    transform: translate(0, 0);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes clone-board-cycle {
  0%,
  14% {
    opacity: 0;
    transform: translateY(35px) scale(0.985);
  }
  24%,
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes clone-status-pulse {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

@keyframes clone-line-wave {
  0% {
    transform: translateX(0);
    opacity: 0.9;
  }
  50% {
    transform: translateX(1px);
    opacity: 1;
  }
  100% {
    transform: translateX(-1px);
    opacity: 0.94;
  }
}

h2 {
  font-size: clamp(1.85rem, 4.2vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 20ch;
}

.problem h2,
.solution h2,
.who h2,
.services h2,
.philosophy h2,
.how h2,
.cta h2 {
  margin-bottom: 2rem;
}

.quote-stack {
  display: grid;
  gap: 1rem;
  max-width: 70ch;
}

blockquote {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.4rem 0 0.4rem 1rem;
  color: #d4d7dd;
  font-size: 1.02rem;
}

.split {
  display: grid;
  gap: 1.25rem;
}

.solution p,
.philosophy p,
.cta p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

.solution p {
  margin: 0;
}

.steps {
  display: grid;
  gap: 1.4rem;
}

.steps article {
  border: 1px solid var(--border);
  background: rgba(17, 17, 17, 0.4);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.steps span {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #c7ccd6;
  margin-bottom: 0.6rem;
}

.steps h3,
.services h3 {
  font-size: 1.16rem;
  line-height: 1.25;
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}

.steps p,
.services p,
.who li {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.who ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
  max-width: 70ch;
}

.who li {
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.services-grid {
  display: grid;
  gap: 1.2rem;
}

.services-grid article {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.philosophy {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.cta-wrap {
  text-align: center;
}

.cta h2 {
  max-width: none;
}

.cta p {
  margin: 0 auto 2rem;
}

.contact-form {
  width: min(720px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
  text-align: left;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  color: #d9dee7;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 10, 11, 0.9);
  color: var(--text);
  padding: 0.72rem 0.78rem;
  border-radius: 8px;
  outline: none;
  transition: border-color 240ms ease, box-shadow 240ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(32, 212, 182, 0.9);
  box-shadow: 0 0 0 2px rgba(32, 212, 182, 0.18);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form .btn {
  width: fit-content;
  margin-top: 0.3rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 1.1rem;
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-status.success {
  color: #7ce4d0;
}

.form-status.error {
  color: #f7a3a3;
}

@media (min-width: 900px) {
  section {
    padding: 1.2rem 0;
  }

  .hero-grid {
    grid-template-columns: 1.06fr 0.94fr;
    gap: 3rem;
  }

  .hero {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }

  .hero-panel {
    display: block;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }

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

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

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