@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --bg-main: #f3f8ff;
  --bg-soft: #e9f2ff;
  --ink-main: #1b2a41;
  --ink-sub: #4d617f;
  --line: rgba(17, 52, 99, 0.12);
  --glass: rgba(255, 255, 255, 0.66);
  --accent: #2f7de1;
  --accent-soft: #5fa4ff;
  --ok: #3ca56a;
  --shadow: 0 14px 32px rgba(25, 72, 143, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans SC", "Outfit", sans-serif;
  color: var(--ink-main);
}

body.bg-soft {
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 15% -20%, #f7fbff 0%, transparent 60%),
    radial-gradient(700px 500px at 90% 0%, #ddebff 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-main) 100%);
  position: relative;
  overflow-x: hidden;
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(circle at 2px 2px, rgba(42, 90, 160, 0.06) 1px, transparent 0);
  background-size: 22px 22px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1140px, calc(100vw - 28px));
  margin: 16px auto 0;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(130deg, var(--accent-soft), #82d4ff);
  box-shadow: 0 0 0 5px rgba(79, 146, 237, 0.2);
}

.brand-name {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-pill {
  text-decoration: none;
  color: var(--ok);
  border: 1px solid rgba(49, 150, 96, 0.25);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(246, 255, 250, 0.72);
}

main {
  width: min(1140px, calc(100vw - 28px));
  margin: 24px auto 60px;
  position: relative;
  z-index: 5;
}

.hero-block {
  display: grid;
  grid-template-columns: 1.2fr 0.88fr;
  gap: 28px;
  margin-top: 18px;
}

.hero-text {
  padding: 42px 34px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(
    130deg,
    rgba(255, 255, 255, 0.74) 0%,
    rgba(246, 251, 255, 0.66) 35%,
    rgba(232, 243, 255, 0.62) 100%
  );
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: #2f69ae;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-text h1 {
  margin: 0;
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.07;
}

.lead {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-sub);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span {
  border: 1px solid rgba(58, 116, 193, 0.24);
  border-radius: 999px;
  padding: 8px 14px;
  color: #24589a;
  font-size: 0.84rem;
  background: rgba(245, 251, 255, 0.82);
}

.login-panel {
  border-radius: 26px;
  border: 1px solid rgba(31, 92, 175, 0.2);
  padding: 30px;
  background: linear-gradient(
    165deg,
    rgba(253, 255, 255, 0.78),
    rgba(240, 248, 255, 0.72)
  );
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.login-panel h2 {
  margin: 2px 0 4px;
  font-size: 1.58rem;
}

.login-panel p {
  margin-top: 0;
  color: var(--ink-sub);
}

#login-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

#login-form label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #355884;
}

#login-form input {
  border: 1px solid rgba(47, 125, 225, 0.2);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.96rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

#login-form input:focus {
  border-color: rgba(47, 125, 225, 0.5);
  box-shadow: 0 0 0 4px rgba(50, 125, 223, 0.16);
}

#login-form button {
  margin-top: 8px;
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  color: #f2f8ff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: linear-gradient(130deg, #2e7adf, #4b99ff);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

#login-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(35, 108, 199, 0.32);
}

.login-msg {
  margin-top: 12px;
  font-size: 0.88rem;
}

.login-msg.error {
  color: #be3450;
}

.login-msg.success {
  color: #2f8c5c;
}

.tiny-hint {
  margin-top: 10px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #6284ad;
}

.section {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  background: rgba(252, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.section-title-wrap h3 {
  margin: 6px 0 0;
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  line-height: 1.16;
}

.split-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.split-grid article {
  background: rgba(247, 252, 255, 0.8);
  border: 1px solid rgba(44, 106, 184, 0.18);
  border-radius: 18px;
  padding: 20px 18px;
}

.split-grid h4 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.split-grid ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-sub);
  line-height: 1.9;
}

.timeline {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.timeline li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(45, 114, 198, 0.18);
  border-radius: 16px;
  padding: 14px 14px;
  background: rgba(245, 251, 255, 0.72);
  transition: transform 180ms ease, border-color 180ms ease;
}

.timeline li:hover {
  transform: translateX(4px);
  border-color: rgba(45, 114, 198, 0.36);
}

.timeline li > span {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #2361ad;
  font-weight: 700;
  background: rgba(223, 238, 255, 0.9);
}

.timeline strong {
  display: inline-block;
  margin-top: 3px;
  margin-bottom: 4px;
}

.timeline p {
  margin: 0;
  color: var(--ink-sub);
  line-height: 1.65;
}

.api-table {
  margin-top: 20px;
  border: 1px solid rgba(45, 114, 198, 0.2);
  border-radius: 14px;
  overflow: hidden;
}

.api-table > div {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(248, 252, 255, 0.74);
  border-bottom: 1px solid rgba(45, 114, 198, 0.12);
}

.api-table > div:last-child {
  border-bottom: none;
}

.api-table span {
  color: var(--ink-sub);
  font-family: "Outfit", monospace;
  font-size: 0.9rem;
}

.code-block {
  margin: 16px 0 0;
  border-radius: 14px;
  border: 1px solid rgba(45, 114, 198, 0.2);
  background: rgba(237, 246, 255, 0.74);
  padding: 14px;
  overflow-x: auto;
}

.code-block code {
  font-family: "Outfit", monospace;
  font-size: 0.84rem;
  color: #1e487e;
  line-height: 1.65;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.final-cta h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.72rem);
}

.final-cta p {
  margin: 10px 0 0;
  color: var(--ink-sub);
}

.cta-link {
  text-decoration: none;
  font-weight: 600;
  color: #f4f9ff;
  border-radius: 12px;
  padding: 10px 18px;
  background: linear-gradient(130deg, #2f7de1, #5197ff);
}

.app-main {
  display: grid;
  gap: 18px;
}

.app-top {
  margin-top: 18px;
}

.app-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: rgba(252, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.app-panel h1,
.app-panel h2 {
  margin: 0 0 12px;
  font-family: "Outfit", "Noto Sans SC", sans-serif;
}

.mono-box {
  border-radius: 12px;
  border: 1px solid rgba(45, 114, 198, 0.2);
  background: rgba(237, 247, 255, 0.82);
  padding: 12px;
  font-family: "Outfit", monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.logs-list {
  display: grid;
  gap: 10px;
}

.log-item {
  border: 1px solid rgba(45, 114, 198, 0.18);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(246, 252, 255, 0.82);
  font-size: 0.84rem;
  line-height: 1.5;
}

.log-item strong {
  color: #205294;
}

.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 580ms cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.delay-1 {
  animation-delay: 120ms;
}

.delay-2 {
  animation-delay: 220ms;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-block {
    grid-template-columns: 1fr;
  }

  .split-grid {
    grid-template-columns: 1fr;
  }

  .final-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar {
    width: calc(100vw - 18px);
    margin-top: 10px;
    border-radius: 14px;
    padding: 11px 12px;
  }

  main {
    width: calc(100vw - 18px);
    margin-top: 12px;
  }

  .hero-text,
  .login-panel,
  .section,
  .app-panel {
    border-radius: 16px;
    padding: 16px;
  }

  .timeline li {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 10px;
  }

  .timeline li > span {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 0.8rem;
  }
}
