/* AI App Development — 01 Hero + ticker */

@keyframes cw-ai-app-development-hero-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 85, 39, 0.55);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(255, 85, 39, 0);
  }
}

@keyframes cw-ai-app-development-hero-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cw-ai-app-development-hero-travel {
  0% {
    left: 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes cw-ai-app-development-hero-marq {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.cw-ai-app-development-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 520px at 80% 40%, rgba(123, 47, 247, 0.24), transparent 70%),
    radial-gradient(520px 420px at 55% 95%, rgba(255, 85, 39, 0.14), transparent 70%),
    #141210;
  color: #eae7e1;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.cw-ai-app-development-hero__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.cw-ai-app-development-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.cw-ai-app-development-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #ff7a50;
}

.cw-ai-app-development-hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5527;
  animation: cw-ai-app-development-hero-ping 1.8s infinite;
}

.cw-ai-app-development-hero__title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: #f3efe7;
  text-wrap: balance;
}

.cw-ai-app-development-hero__title-sep,
.cw-ai-app-development-hero__title em,
.cw-ai-app-development-hero__title .cw-ai-app-development-hero__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #b7a6f5;
}

.cw-ai-app-development-hero__title .cw-ai-app-development-hero__title-em {
  font-style: italic;
}

.cw-ai-app-development-hero__lead {
  margin: 0;
  max-width: 580px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(234, 231, 225, 0.78);
  text-wrap: pretty;
}

.cw-ai-app-development-hero__link {
  color: #ff7a50;
  text-decoration: none;
}

.cw-ai-app-development-hero__link:hover,
.cw-ai-app-development-hero__link:focus-visible {
  text-decoration: underline;
}

.cw-ai-app-development-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cw-ai-app-development-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cw-ai-app-development-hero__btn--primary {
  background: #e0431c;
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(224, 67, 28, 0.8);
}

.cw-ai-app-development-hero__btn--primary:hover,
.cw-ai-app-development-hero__btn--primary:focus-visible {
  background: #c93a16;
}

.cw-ai-app-development-hero__btn--secondary {
  padding: 0 22px;
  font-weight: 500;
  border-color: rgba(234, 231, 225, 0.25);
  color: #eae7e1;
  background: transparent;
}

.cw-ai-app-development-hero__btn--secondary:hover,
.cw-ai-app-development-hero__btn--secondary:focus-visible {
  border-color: #b7a6f5;
  color: #fff;
}

.cw-ai-app-development-hero__regions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(234, 231, 225, 0.1);
}

.cw-ai-app-development-hero__region {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(234, 231, 225, 0.16);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(234, 231, 225, 0.8);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.cw-ai-app-development-hero__region:hover,
.cw-ai-app-development-hero__region:focus-visible {
  border-color: #d4f53c;
  color: #d4f53c;
}

.cw-ai-app-development-hero__region-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4f53c;
}

.cw-ai-app-development-hero__console {
  min-width: 0;
  border-radius: 28px;
  background: #1a1714;
  border: 1px solid rgba(234, 231, 225, 0.1);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.9);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cw-ai-app-development-hero__console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cw-ai-app-development-hero__dots {
  display: flex;
  gap: 6px;
}

.cw-ai-app-development-hero__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cw-ai-app-development-hero__dots span:nth-child(1) {
  background: #ff5527;
}
.cw-ai-app-development-hero__dots span:nth-child(2) {
  background: #d4f53c;
}
.cw-ai-app-development-hero__dots span:nth-child(3) {
  background: #b7a6f5;
}

.cw-ai-app-development-hero__console-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(234, 231, 225, 0.5);
}

.cw-ai-app-development-hero__status {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #d4f53c;
}

.cw-ai-app-development-hero__status.is-busy {
  color: #ff7a50;
}

.cw-ai-app-development-hero__viz {
  position: relative;
  height: 170px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 50%, rgba(123, 47, 247, 0.18), transparent 70%), #141210;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.cw-ai-app-development-hero__viz-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(234, 231, 225, 0.07) 1px, transparent 1.5px);
  background-size: 14px 14px;
  pointer-events: none;
}

.cw-ai-app-development-hero__viz-stage {
  position: relative;
  width: 420px;
  height: 170px;
  flex: none;
}

.cw-ai-app-development-hero__edge {
  position: absolute;
  height: 1px;
  transform-origin: 0 50%;
  transition: background 0.5s;
}

.cw-ai-app-development-hero__edge-pulse {
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.cw-ai-app-development-hero__node {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: background 0.5s, border-color 0.5s;
}

.cw-ai-app-development-hero__viz-label {
  position: absolute;
  bottom: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: rgba(234, 231, 225, 0.45);
}

.cw-ai-app-development-hero__viz-label--in {
  left: 14px;
}

.cw-ai-app-development-hero__viz-label--out {
  right: 14px;
}

.cw-ai-app-development-hero__messages {
  height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px 8px 2px 2px;
}

.cw-ai-app-development-hero__msg {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.55;
  animation: cw-ai-app-development-hero-fade 0.3s ease-out both;
}

.cw-ai-app-development-hero__msg--user {
  align-self: flex-end;
  background: #e0431c;
  color: #fff;
}

.cw-ai-app-development-hero__msg--assistant {
  align-self: flex-start;
  background: #26211d;
  color: #eae7e1;
}

.cw-ai-app-development-hero__prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cw-ai-app-development-hero__prompt {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(234, 231, 225, 0.16);
  background: transparent;
  color: rgba(234, 231, 225, 0.82);
  font: 500 12.5px 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.cw-ai-app-development-hero__prompt:hover,
.cw-ai-app-development-hero__prompt:focus-visible {
  border-color: #ff5527;
  color: #fff;
}

.cw-ai-app-development-hero__prompt.is-used {
  border-color: rgba(212, 245, 60, 0.5);
  color: #d4f53c;
}

.cw-ai-app-development-hero__composer {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cw-ai-app-development-hero__composer-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cw-ai-app-development-hero__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(234, 231, 225, 0.14);
  background: #141210;
  color: #f3efe7;
  font: 500 14px 'Inter', system-ui, sans-serif;
  outline: 0;
}

.cw-ai-app-development-hero__input::placeholder {
  color: rgba(234, 231, 225, 0.4);
}

.cw-ai-app-development-hero__send {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 0;
  background: #e0431c;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s;
}

.cw-ai-app-development-hero__send:hover,
.cw-ai-app-development-hero__send:focus-visible {
  background: #c93a16;
}

.cw-ai-app-development-hero__live-note {
  margin: -6px 0 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #d4f53c;
}

.cw-ai-app-development-hero__blueprint {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cw-ai-app-development-hero__blueprint-card {
  padding: 12px;
  border-radius: 14px;
  background: #221e1a;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: cw-ai-app-development-hero-fade 0.4s ease-out both;
}

.cw-ai-app-development-hero__blueprint-k {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: rgba(234, 231, 225, 0.5);
}

.cw-ai-app-development-hero__blueprint-v {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.cw-ai-app-development-hero__blueprint-v--lime {
  color: #d4f53c;
}

.cw-ai-app-development-hero__blueprint-v--lavender {
  color: #b7a6f5;
}

.cw-ai-app-development-hero__blueprint-v--accent {
  color: #ff7a50;
}

.cw-ai-app-development-hero__marquee {
  background: #0d0c0b;
  border-top: 1px solid rgba(234, 231, 225, 0.08);
  border-bottom: 1px solid rgba(234, 231, 225, 0.08);
  overflow: hidden;
  padding: 18px 0;
}

.cw-ai-app-development-hero__marquee-track {
  display: flex;
  width: max-content;
  animation: cw-ai-app-development-hero-marq 44s linear infinite;
}

.cw-ai-app-development-hero__marquee-item {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 26px);
  color: rgba(234, 231, 225, 0.42);
  white-space: nowrap;
}

.cw-ai-app-development-hero__marquee-item--bright {
  color: #f3efe7;
}

.cw-ai-app-development-hero__marquee-star {
  font-size: 16px;
  color: #ff5527;
}

.cw-ai-app-development-hero.is-thinking .cw-ai-app-development-hero__edge {
  background: rgba(255, 85, 39, 0.42);
}

.cw-ai-app-development-hero:not(.is-thinking) .cw-ai-app-development-hero__edge {
  background: rgba(183, 166, 245, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .cw-ai-app-development-hero__marquee-track {
    animation: none;
  }
  .cw-ai-app-development-hero__eyebrow-dot {
    animation: none;
  }
}
