/* ===== AI Agent landing page ===== */

.agt-page {
  --agt-bg: #050505;
  --agt-surface: rgba(255, 255, 255, 0.03);
  --agt-line: rgba(255, 255, 255, 0.08);
  --agt-text: #f5f5f5;
  --agt-muted: rgba(255, 255, 255, 0.55);
  --agt-accent: #c8f542;
  --agt-accent-soft: rgba(200, 245, 66, 0.12);
  --agt-violet: #8b7cf6;
  background: var(--agt-bg);
  color: var(--agt-text);
  overflow-x: clip;
}

.agt-page #Dreambuild {
  background: var(--agt-bg);
}

.agt-kicker {
  color: var(--agt-muted);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

.agt-section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 0;
}

.agt-grad {
  background: linear-gradient(120deg, var(--agt-accent), var(--agt-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.agt-btn {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 600;
  gap: 0.45rem;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.35rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.agt-btn svg {
  height: 1rem;
  width: 1rem;
}

.agt-btn--primary {
  background: var(--agt-accent);
  box-shadow: 0 0 40px rgba(200, 245, 66, 0.25);
  color: #0a0a0a;
}

.agt-btn--primary:hover {
  transform: translateY(-1px);
}

.agt-btn--ghost {
  border: 1px solid var(--agt-line);
  color: var(--agt-text);
}

.agt-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

/* Hero */
.agt-hero {
  min-height: min(92vh, 920px);
  padding:
    calc(env(safe-area-inset-top, 0px) + 5.5rem)
    max(var(--p), env(safe-area-inset-right, 0px))
    clamp(2rem, 5vh, 3rem)
    max(var(--p), env(safe-area-inset-left, 0px));
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 960px) {
  .agt-hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
}

.agt-hero__bg {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.agt-hero__mesh {
  background:
    radial-gradient(circle at 20% 20%, rgba(139, 124, 246, 0.18), transparent 42%),
    radial-gradient(circle at 80% 30%, rgba(200, 245, 66, 0.12), transparent 38%),
    radial-gradient(circle at 50% 80%, rgba(45, 122, 145, 0.1), transparent 45%);
  inset: 0;
  position: absolute;
}

.agt-hero__grid {
  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: 48px 48px;
  inset: 0;
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 72%);
  opacity: 0.5;
  position: absolute;
}

.agt-hero__orb {
  border-radius: 50%;
  filter: blur(60px);
  position: absolute;
}

.agt-hero__orb--1 {
  background: rgba(200, 245, 66, 0.18);
  height: 280px;
  left: -4%;
  top: 10%;
  width: 280px;
}

.agt-hero__orb--2 {
  background: rgba(139, 124, 246, 0.2);
  bottom: 8%;
  height: 320px;
  right: 10%;
  width: 320px;
}

.agt-hero__pulse-ring {
  animation: agt-pulse 4s ease-in-out infinite;
  border: 1px solid rgba(200, 245, 66, 0.25);
  border-radius: 50%;
  height: 420px;
  left: 50%;
  position: absolute;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 420px;
}

@keyframes agt-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(0.92);
  }
  50% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

.agt-hero__inner {
  position: relative;
  z-index: 1;
}

.agt-hero__eyebrow {
  align-items: center;
  color: var(--agt-muted);
  display: inline-flex;
  font-size: 0.62rem;
  gap: 0.5rem;
  letter-spacing: 0.22em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.agt-hero__live {
  animation: agt-live 1.6s ease-in-out infinite;
  background: var(--agt-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(200, 245, 66, 0.8);
  height: 7px;
  width: 7px;
}

@keyframes agt-live {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.agt-hero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  max-width: 12ch;
}

.agt-hero__typing-line {
  color: var(--agt-accent);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  margin: 0 0 1rem;
}

.agt-hero__cursor {
  animation: agt-blink 1s step-end infinite;
  margin-left: 0.1em;
}

@keyframes agt-blink {
  50% {
    opacity: 0;
  }
}

.agt-hero__lead {
  color: var(--agt-muted);
  font-size: 0.82rem;
  line-height: 1.75;
  margin: 0 0 1.5rem;
  max-width: 34rem;
}

.agt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.agt-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.agt-hero__stat-sep {
  background: var(--agt-line);
  display: none;
  height: 2.5rem;
  width: 1px;
}

@media (min-width: 640px) {
  .agt-hero__stat-sep {
    display: block;
  }
}

.agt-hero__stat-val {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.agt-hero__stat-val small {
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.15rem;
}

.agt-hero__stat-label {
  color: var(--agt-muted);
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  margin-top: 0.2rem;
}

.agt-hero__terminal {
  align-self: center;
  position: relative;
  z-index: 1;
}

.agt-terminal {
  backdrop-filter: blur(16px);
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.agt-terminal__bar {
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
}

.agt-terminal__bar span {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.agt-terminal__bar span:first-child {
  background: #ff5f57;
}

.agt-terminal__bar span:nth-child(2) {
  background: #febc2e;
}

.agt-terminal__bar span:nth-child(3) {
  background: #28c840;
}

.agt-terminal__body {
  color: rgba(200, 245, 66, 0.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  line-height: 1.65;
  margin: 0;
  padding: 1rem 1.1rem 1.25rem;
  white-space: pre-wrap;
}

.agt-terminal__blink {
  animation: agt-blink 1s step-end infinite;
}

/* Features */
.agt-features {
  padding: clamp(2.5rem, 6vh, 4rem) max(var(--p), env(safe-area-inset-right, 0px))
    clamp(2rem, 5vh, 3rem) max(var(--p), env(safe-area-inset-left, 0px));
}

.agt-features__inner {
  margin: 0 auto;
  max-width: 72rem;
}

.agt-feat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}

.agt-feat {
  background: var(--agt-surface);
  border: 1px solid var(--agt-line);
  border-radius: 18px;
  padding: 1.25rem 1.2rem 1.35rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.agt-feat:hover {
  border-color: rgba(200, 245, 66, 0.25);
  transform: translateY(-2px);
}

.agt-feat__num {
  color: var(--agt-accent);
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}

.agt-feat__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.agt-feat__desc {
  color: var(--agt-muted);
  font-size: 0.72rem;
  line-height: 1.7;
  margin: 0;
}

/* Onboard on agent page */
.agt-onboard {
  margin: 0 auto;
  max-width: 76rem;
  padding: 0 max(var(--p), env(safe-area-inset-right, 0px)) clamp(2rem, 5vh, 3rem)
    max(var(--p), env(safe-area-inset-left, 0px));
}

/* Workspace */
.agt-workspace {
  padding: 0 max(var(--p), env(safe-area-inset-right, 0px)) clamp(3rem, 8vh, 5rem)
    max(var(--p), env(safe-area-inset-left, 0px));
}

.agt-workspace__card {
  background: linear-gradient(135deg, rgba(200, 245, 66, 0.08), rgba(139, 124, 246, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  margin: 0 auto;
  max-width: 52rem;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
  text-align: center;
}

.agt-workspace__glow {
  background: radial-gradient(circle, rgba(200, 245, 66, 0.2), transparent 65%);
  height: 240px;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: -40%;
  transform: translateX(-50%);
  width: 240px;
}

.agt-workspace__hint {
  color: var(--agt-muted);
  font-size: 0.72rem;
  line-height: 1.7;
  margin: 0.75rem auto 1.5rem;
  max-width: 28rem;
}

.agt-workspace__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
