/* Cloudshu homepage polish layer. Frontend-only: no app data or backend logic changes. */
:root {
  --cloudshu-ink: #162033;
  --cloudshu-muted: #667485;
  --cloudshu-soft: #f5f8fb;
  --cloudshu-line: rgba(31, 45, 61, 0.11);
  --cloudshu-blue: #2563eb;
  --cloudshu-indigo: #4f46e5;
  --cloudshu-cyan: #10b981;
  --cloudshu-warm: #f59e0b;
  --cloudshu-shadow: 0 24px 70px rgba(20, 32, 48, 0.13);
  --cloudshu-radius: 18px;
}

html {
  background: #ffffff;
}

body {
  color: var(--cloudshu-ink);
  background:
    linear-gradient(115deg, rgba(37, 99, 235, 0.10), transparent 28%),
    linear-gradient(245deg, rgba(16, 185, 129, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 56%, #ffffff 100%);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#root > div > header,
#root > header,
.semi-layout-header {
  border-bottom: 1px solid rgba(31, 45, 61, 0.08) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(20, 32, 48, 0.06);
}

header a,
nav a,
.semi-navigation-item,
.semi-navigation-item-text {
  letter-spacing: 0 !important;
}

.cloudshu-original-hero-hidden {
  display: none !important;
}

.cloudshu-home-shell {
  width: min(1180px, calc(100vw - 32px));
  min-height: min(760px, calc(100vh - 104px));
  margin: 0 auto;
  padding: 112px 0 72px;
  display: grid;
  grid-template-columns: minmax(520px, 0.96fr) minmax(420px, 1.04fr);
  gap: 52px;
  align-items: center;
  position: relative;
}

.cloudshu-home-shell::before {
  content: "";
  position: absolute;
  inset: 58px -70px auto -70px;
  height: 520px;
  border-radius: var(--cloudshu-radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.30)),
    repeating-linear-gradient(90deg, rgba(37, 99, 235, 0.055) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, rgba(16, 185, 129, 0.035) 0 1px, transparent 1px 76px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 34px 110px rgba(37, 99, 235, 0.10);
  pointer-events: none;
}

.cloudshu-hero-copy,
.cloudshu-product-stage {
  position: relative;
  z-index: 1;
}

.cloudshu-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--cloudshu-blue);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(20, 32, 48, 0.07);
}

.cloudshu-eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1677ff;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
}

.cloudshu-hero-copy h1 {
  margin: 24px 0 0;
  color: #101828;
  font-size: clamp(46px, 4.4vw, 62px);
  font-weight: 880;
  line-height: 1.02;
  letter-spacing: 0 !important;
}

.cloudshu-hero-copy h1 span,
.cloudshu-hero-copy h1 strong {
  display: block;
}

.cloudshu-hero-copy h1 strong {
  color: transparent;
  background: linear-gradient(135deg, var(--cloudshu-blue), var(--cloudshu-indigo));
  -webkit-background-clip: text;
  background-clip: text;
  font-style: normal;
}

.cloudshu-hero-copy p {
  max-width: 560px;
  margin: 22px 0 0;
  color: #5f6b7a;
  font-size: 17px;
  line-height: 1.9;
}

.cloudshu-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.cloudshu-primary-link,
.cloudshu-secondary-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 820;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.cloudshu-primary-link {
  color: #ffffff !important;
  background: #050505;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.cloudshu-secondary-link {
  color: #263243 !important;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 45, 61, 0.10);
}

.cloudshu-primary-link:hover,
.cloudshu-secondary-link:hover {
  transform: translateY(-1px);
}

.cloudshu-support-row {
  margin-top: 42px;
}

.cloudshu-support-row > span {
  display: block;
  margin-bottom: 10px;
  color: #99a3af;
  font-size: 13px;
}

.cloudshu-support-row div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cloudshu-support-row a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(31, 45, 61, 0.09);
  border-radius: 999px;
  color: #344054 !important;
  background: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(20, 32, 48, 0.06);
}

.cloudshu-product-stage {
  min-height: 520px;
  display: grid;
  place-items: center;
}

.cloudshu-api-window {
  width: min(560px, 100%);
  overflow: hidden;
  border: 1px solid rgba(31, 45, 61, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--cloudshu-shadow);
}

.cloudshu-window-tabs {
  height: 54px;
  display: grid;
  grid-template-columns: repeat(4, auto) 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(31, 45, 61, 0.07);
  color: #9aa2ad;
  font-size: 13px;
  font-weight: 760;
}

.cloudshu-window-tabs .active {
  color: var(--cloudshu-cyan);
}

.cloudshu-window-tabs b {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a3a9b2;
  font-size: 11px;
  font-weight: 700;
}

.cloudshu-window-tabs i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.cloudshu-endpoint-row {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(31, 45, 61, 0.07);
}

.cloudshu-endpoint-row em {
  padding: 5px 8px;
  border-radius: 999px;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.cloudshu-endpoint-row code,
.cloudshu-code-block pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.cloudshu-endpoint-row code {
  color: #344054;
  font-size: 13px;
}

.cloudshu-code-block {
  padding: 22px;
  border-bottom: 1px solid rgba(31, 45, 61, 0.07);
}

.cloudshu-code-block small {
  display: block;
  margin-bottom: 14px;
  color: #a3a9b2;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.cloudshu-code-block pre {
  margin: 0;
  overflow: hidden;
  color: #0f766e;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.cloudshu-code-block.response pre {
  color: #2563eb;
}

.cloudshu-window-footer {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  color: #a3a9b2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cloudshu-window-footer span:last-child {
  margin-left: auto;
}

.cloudshu-gateway-showcase {
  width: min(1180px, calc(100vw - 32px));
  margin: -18px auto 62px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cloudshu-showcase-card {
  min-height: 154px;
  padding: 20px;
  border: 1px solid rgba(31, 45, 61, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 46px rgba(20, 32, 48, 0.08);
}

.cloudshu-showcase-card span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--cloudshu-blue);
  font-size: 12px;
  font-weight: 900;
}

.cloudshu-showcase-card strong {
  display: block;
  color: #162033;
  font-size: 18px;
  line-height: 1.35;
}

.cloudshu-showcase-card p {
  margin: 10px 0 0;
  color: #667485;
  font-size: 14px;
  line-height: 1.7;
}

.semi-button,
button {
  border-radius: 14px !important;
}

@media (max-width: 980px) {
  .cloudshu-home-shell {
    min-height: auto;
    padding: 64px 0 46px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .cloudshu-home-shell::before {
    inset: 28px -12px auto -12px;
    height: 760px;
  }

  .cloudshu-product-stage {
    min-height: auto;
  }

  .cloudshu-gateway-showcase {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  html,
  body,
  #root,
  #root > div {
    max-width: 100%;
    overflow-x: hidden !important;
  }

  #root > div > header,
  #root > header,
  .semi-layout-header {
    overflow-x: auto;
    scrollbar-width: none;
  }

  #root > div > header::-webkit-scrollbar,
  #root > header::-webkit-scrollbar,
  .semi-layout-header::-webkit-scrollbar {
    display: none;
  }

  header nav,
  header .semi-navigation,
  .semi-layout-header nav,
  .semi-layout-header .semi-navigation {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scrollbar-width: none;
  }

  header a,
  nav a,
  .semi-navigation-item,
  .semi-navigation-item-text {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 14px !important;
  }

  .cloudshu-home-shell,
  .cloudshu-gateway-showcase {
    width: calc(100vw - 28px);
  }

  .cloudshu-home-shell {
    padding-top: 38px;
    overflow: hidden;
  }

  .cloudshu-hero-copy,
  .cloudshu-product-stage,
  .cloudshu-api-window {
    min-width: 0;
    max-width: 100%;
  }

  .cloudshu-hero-copy h1 {
    font-size: clamp(36px, 11vw, 48px) !important;
    line-height: 1.06 !important;
  }

  .cloudshu-hero-copy p {
    font-size: 15px;
    line-height: 1.75;
  }

  .cloudshu-hero-actions,
  .cloudshu-support-row div {
    flex-direction: column;
    align-items: stretch;
  }

  .cloudshu-primary-link,
  .cloudshu-secondary-link,
  .cloudshu-support-row a {
    width: 100%;
    max-width: 100%;
  }

  .cloudshu-api-window {
    width: 100%;
  }

  .cloudshu-window-tabs {
    grid-template-columns: repeat(4, auto);
    gap: 14px;
    overflow-x: auto;
  }

  .cloudshu-window-tabs b {
    display: none;
  }

  .cloudshu-code-block {
    padding: 16px;
  }

  .cloudshu-code-block pre {
    font-size: 12px;
  }
}

@media (prefers-color-scheme: dark) {
  body:not([theme-mode="light"]) {
    background:
      linear-gradient(115deg, rgba(37, 99, 235, 0.13), transparent 30%),
      linear-gradient(245deg, rgba(16, 185, 129, 0.12), transparent 30%),
      #0f1720;
  }

  body:not([theme-mode="light"]) .cloudshu-home-shell::before,
  body:not([theme-mode="light"]) .cloudshu-api-window,
  body:not([theme-mode="light"]) .cloudshu-showcase-card,
  body:not([theme-mode="light"]) .cloudshu-secondary-link,
  body:not([theme-mode="light"]) .cloudshu-support-row a {
    background: rgba(15, 23, 32, 0.82);
    border-color: rgba(255, 255, 255, 0.10);
  }

  body:not([theme-mode="light"]) .cloudshu-hero-copy h1,
  body:not([theme-mode="light"]) .cloudshu-showcase-card strong,
  body:not([theme-mode="light"]) .cloudshu-secondary-link,
  body:not([theme-mode="light"]) .cloudshu-support-row a {
    color: #eef5f8 !important;
  }

  body:not([theme-mode="light"]) .cloudshu-hero-copy p,
  body:not([theme-mode="light"]) .cloudshu-showcase-card p {
    color: rgba(229, 237, 243, 0.72);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
