:root {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --muted-foreground: #a1a1a1;
  --secondary: #393939;
  --secondary-foreground: #fafafa;
  --border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  border: 0 solid;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  line-height: 1.5;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  color-scheme: dark;
  background: var(--background);
}

body {
  min-width: 320px;
  background: var(--background);
  color: var(--foreground);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  appearance: button;
  border-radius: 0;
  background: transparent;
  border: 0;
}

svg,
img {
  display: block;
  vertical-align: middle;
}

.page {
  min-height: 100vh;
  width: 100%;
  background: #0a0a0a;
}

.agent-nav-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  width: 100%;
  background: transparent;
}

.agent-nav-wrap {
  position: relative;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding: 24px 40px 12px;
}

.agent-nav-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  width: 100%;
  height: 56px;
  padding-left: 0;
  padding-right: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.agent-nav-brand-cell,
.agent-nav-center-cell,
.agent-nav-action-cell {
  min-width: 0;
  display: flex;
  align-items: center;
}

.agent-nav-brand-cell {
  justify-self: start;
}

.agent-nav-action-cell {
  justify-self: end;
  flex-shrink: 0;
  gap: 16px;
}

.agent-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.agent-nav-logo {
  display: inline-block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: #ffffff;
  -webkit-mask: url("./assets/agentsyun-logo.svg") center / contain no-repeat;
  mask: url("./assets/agentsyun-logo.svg") center / contain no-repeat;
}

.agent-nav-brand span:last-child {
  color: #ffffff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 9999px;
  transition: background-color 0.15s ease;
}

.language-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.language-toggle [data-lang-option] {
  font-weight: 400;
  opacity: 0.56;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.language-toggle [data-lang-option].active {
  color: #ffffff;
  font-weight: 400;
  opacity: 1;
}

.language-divider {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  user-select: none;
}

.agent-factory-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.agent-factory-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.agent-menu {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
  color: #404040;
  transition: background-color 0.15s ease;
}

.agent-menu svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
}

.hero-stage {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 100vh;
  flex-direction: column;
  background: #000;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.48) 72%),
    rgba(0, 0, 0, 0.14);
}

.hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1344px;
  height: 100vh;
  margin-inline: auto;
  padding-inline: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--foreground);
  font-size: 56px;
  line-height: 90px;
  font-weight: 400;
  letter-spacing: 0;
}

.main-line {
  margin-top: -6px;
  max-width: 100%;
  line-height: 1.16;
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: normal;
}

.hero-copy {
  margin-top: 28px;
  max-width: 768px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  text-shadow: none;
}

.download-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.download-button {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 32px;
  border-radius: 9999px;
  border: 0;
  background: rgba(18, 18, 18, 0.5);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s, background-color 0.3s;
}

.download-button:hover {
  transform: translateY(-2px);
}

.download-button.mac-button {
  box-shadow: none;
  background: #ffffff;
  color: #111111;
}

.download-button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.button-mask-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: currentColor;
}

.download-button .button-mask-icon.mac {
  width: 20px;
  height: 20px;
}

.button-mask-icon.mac {
  -webkit-mask: url("./assets/mac.svg") center / contain no-repeat;
  mask: url("./assets/mac.svg") center / contain no-repeat;
}

.windows-icon {
  fill: currentColor;
}

.download-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 767px) {
  .agent-nav-wrap {
    padding-inline: 24px;
  }

  .agent-nav-shell {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    height: auto;
    padding: 0;
  }

  .agent-nav-action-cell {
    gap: 12px;
  }

  .agent-menu {
    display: none;
  }

  .agent-nav-brand span:last-child {
    font-size: 14px;
  }

  .hero-inner {
    padding-inline: 24px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 40px;
  }

  .main-line {
    line-height: 40px;
  }

  .hero-copy {
    margin-top: 16px;
    font-size: 14px;
    line-height: 20px;
  }

  .desktop-break {
    display: none;
  }

  .download-row {
    flex-wrap: wrap;
  }
}
