:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --panel: #fbfbfc;
  --line: #e5e8ec;
  --line-strong: #cfd5dd;
  --text: #0b0d10;
  --muted: #59626c;
  --cyan: #12b3ef;
  --cyan-deep: #0079c2;
  --green: #17a85f;
  --radius: 18px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(18, 179, 239, 0.14), transparent 70%),
    radial-gradient(700px 500px at 100% 8%, rgba(0, 121, 194, 0.07), transparent 70%);
}

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

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

.hero-visual img,
.section-media img {
  width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
}

.lang {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
  font-size: 13px;
  font-weight: 500;
}

.lang a {
  padding: 5px 13px;
  border-radius: 999px;
  color: var(--muted);
}

.lang a:hover {
  color: var(--text);
}

.lang a[aria-current="true"] {
  background: var(--text);
  color: #ffffff;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--cyan), var(--cyan-deep));
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 121, 194, 0.24);
}

.btn-mac {
  background: linear-gradient(180deg, #23bd71, #0d8c4e);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(13, 140, 78, 0.22);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: #ffffff;
}

.btn-ghost:hover {
  border-color: #b4bcc6;
}

/* Hero */

.hero {
  padding: 92px 0 72px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 13px;
  color: var(--muted);
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-deep);
}

h1 {
  margin: 26px auto 0;
  max-width: 17ch;
  font-size: clamp(40px, 6.2vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.hero p {
  margin: 22px auto 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: #8a929b;
}

.hero-visual {
  margin-top: 62px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 34px 80px rgba(17, 32, 48, 0.18);
}

/* Logos strip */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--bg-soft);
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 34px;
  color: #6c757f;
  font-size: 14px;
}

.strip-inner span:first-child {
  color: #9aa2ab;
}

/* Sections */

.section {
  padding: 104px 0;
  border-bottom: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.section.reverse .section-grid .section-media {
  order: -1;
}

.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-deep);
}

h2 {
  margin: 16px 0 0;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  max-width: 46ch;
}

.features {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.features li {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  font-size: 15.5px;
  color: var(--muted);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.features li:hover {
  border-color: var(--line-strong);
  box-shadow: 0 8px 22px rgba(17, 32, 48, 0.07);
}

.features b {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
}

.section-media {
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 26px 60px rgba(17, 32, 48, 0.16);
}

/* Agent install */

.agent {
  padding: 104px 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-soft), rgba(255, 255, 255, 0) 70%);
}

.agent-head {
  max-width: 780px;
}

.agent-head .lead {
  max-width: 60ch;
}

.agent-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  margin-top: 56px;
  align-items: start;
}

.agent-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.agent-steps li {
  position: relative;
  padding: 18px 20px 18px 66px;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 14px;
  color: var(--muted);
  font-size: 15.5px;
}

.agent-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 19px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(180deg, var(--cyan), var(--cyan-deep));
  box-shadow: 0 6px 14px rgba(0, 121, 194, 0.25);
}

.agent-steps b {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}

.prompt {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(17, 32, 48, 0.08);
}

.prompt code,
.step code,
.approve pre {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.prompt code {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.copy {
  flex: none;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.copy:hover {
  border-color: #b4bcc6;
}

.copy.done {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.prompt-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: #8a929b;
}

/* IDE mock */

.ide {
  border-radius: 18px;
  background: #0d1117;
  color: #c9d1d9;
  border: 1px solid #1f2630;
  box-shadow: 0 34px 80px rgba(17, 32, 48, 0.28);
  overflow: hidden;
  font-size: 14px;
}

.ide-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #1f2630;
  background: #11161d;
  color: #7d8590;
  font-size: 12.5px;
}

.ide-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a2a2d;
}

.ide-bar i:nth-child(2) {
  background: #3a352a;
}

.ide-bar i:nth-child(3) {
  background: #263a2e;
}

.ide-bar span {
  margin-left: 10px;
}

.ide-body {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.msg-user {
  justify-self: end;
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: #1f6feb;
  color: #ffffff;
}

.who {
  font-size: 12px;
  color: #7d8590;
}

.step {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #adbac7;
}

.step::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.step code {
  color: #e6edf3;
  font-size: 13px;
}

.approve {
  border: 1px solid #30363d;
  border-radius: 12px;
  background: #161b22;
  padding: 14px;
}

.approve-title {
  color: #e6edf3;
  font-weight: 600;
}

.approve pre {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #0d1117;
  color: #9da7b3;
  font-size: 12.5px;
  white-space: pre-wrap;
}

.approve-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.approve-actions span {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #30363d;
  color: #adbac7;
}

.approve-actions .run {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(180deg, var(--cyan), var(--cyan-deep));
  box-shadow: 0 0 0 0 rgba(18, 179, 239, 0.5);
}

.ide.play .approve-actions .run {
  animation: pulse 1.8s ease-out 3.2s 2;
}

.done-line {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #e6edf3;
}

.done-line::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 168, 95, 0.2);
}

.ide.wait .ide-body > * {
  opacity: 0;
  transform: translateY(8px);
}

.ide.play .ide-body > * {
  animation: rise 0.5s ease forwards;
}

.ide.play .ide-body > :nth-child(2) { animation-delay: 0.6s; }
.ide.play .ide-body > :nth-child(3) { animation-delay: 1.2s; }
.ide.play .ide-body > :nth-child(4) { animation-delay: 1.8s; }
.ide.play .ide-body > :nth-child(5) { animation-delay: 2.4s; }
.ide.play .ide-body > :nth-child(6) { animation-delay: 3s; }
.ide.play .ide-body > :nth-child(7) { animation-delay: 4.6s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  to {
    box-shadow: 0 0 0 12px rgba(18, 179, 239, 0);
  }
}

/* Agent spec */

.spec-wrap {
  padding: 0 0 96px;
}

.spec {
  display: flex;
  gap: 16px;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.spec:hover {
  border-color: var(--line-strong);
  box-shadow: 0 18px 44px rgba(17, 32, 48, 0.08);
}

.spec > div {
  flex: 1;
}

.spec::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-top: 1.8px solid var(--muted);
  border-right: 1.8px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.spec:hover::after {
  transform: translateX(3px) rotate(45deg);
}

.spec h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.spec p {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.badge {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(18, 179, 239, 0.1);
  color: var(--cyan-deep);
}

.prompt-note a {
  color: var(--cyan-deep);
}

.prompt-note a:hover {
  text-decoration: underline;
}

/* Closing CTA */

.cta {
  padding: 110px 0 120px;
  text-align: center;
}

.cta h2 {
  max-width: 20ch;
  margin-inline: auto;
}

.cta p {
  margin: 18px auto 0;
  max-width: 52ch;
  color: var(--muted);
}

.cta .hero-actions {
  margin-top: 32px;
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: #8a929b;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

/* Scroll reveal, progressive enhancement */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-grid > *,
    .cta > * {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 26%;
    }
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .lang {
    margin-left: auto;
  }

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

  .section {
    padding: 72px 0;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section.reverse .section-grid .section-media {
    order: 0;
  }

  .agent {
    padding: 72px 0;
  }

  .agent-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .spec .badge {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ide.wait .ide-body > * {
    opacity: 1;
    transform: none;
  }
}
