:root {
  --bg-sky: #2c9fe1;
  --bg-sky-deep: #1f8ad1;
  --surface: rgba(255, 253, 249, 0.94);
  --surface-strong: #ffffff;
  --text: #111111;
  --muted: #5c5c5c;
  --line: rgba(17, 17, 17, 0.08);
  --line-strong: rgba(17, 17, 17, 0.14);
  --radius-xl: 40px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 999px;
  --outer-gutter: clamp(18px, 3vw, 32px);
  --card-padding-x: clamp(24px, 4vw, 56px);
  --card-padding-y: clamp(28px, 4vw, 44px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.34), transparent 18%),
    radial-gradient(circle at bottom right, rgba(255, 238, 175, 0.22), transparent 20%),
    linear-gradient(180deg, #38a7e5 0%, #2395d8 100%);
  color: var(--text);
  font-family: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button {
  font: inherit;
}

.page-shell {
  padding: var(--outer-gutter);
}

.app-card {
  width: 100%;
  margin: 0;
  padding: var(--card-padding-y) var(--card-padding-x);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 253, 248, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 0;
  overflow: hidden;
}

.site-header,
.hero,
.capabilities,
.bottom-bar {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2.6vw, 30px);
}

.brand {
  font-family: "Instrument Serif", "STSong", serif;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-small {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 1.75rem;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-wrap::-webkit-scrollbar {
  display: none;
}

.social-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: nowrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(17, 17, 17, 0.13);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(24, 54, 79, 0.06);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.social-link img {
  width: 30px;
  height: 30px;
  display: block;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(17, 17, 17, 0.26);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 36px rgba(24, 54, 79, 0.1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  padding: 12px 18px;
  border-radius: 0;
  border: 1px solid var(--line);
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.inline-link:hover,
.inline-link:focus-visible,
.pager button:hover,
.pager button:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible {
  transform: translateY(-1px);
}

.button-light {
  background: rgba(255, 255, 255, 0.88);
}

.button-dark {
  background: #101010;
  border-color: #101010;
  color: #ffffff;
}

.menu-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: #111111;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
  padding: clamp(52px, 8vw, 90px) 0 clamp(72px, 10vw, 112px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #1b7ec1;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(27, 126, 193, 0.45);
}

.hero-copy h1 {
  max-width: min(11ch, 100%);
  margin: 0 0 28px;
  font-family: "Instrument Serif", "STSong", serif;
  font-weight: 400;
  font-size: clamp(3.4rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  align-items: end;
  gap: clamp(16px, 2vw, 22px);
  flex-wrap: wrap;
  margin-top: 40px;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.inline-link::after {
  content: "\203A";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(17, 17, 17, 0.04);
}

.mini-stats {
  display: flex;
  gap: clamp(20px, 3vw, 30px);
  flex-wrap: wrap;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.mini-stats div {
  min-width: 144px;
}

.mini-stats strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.mini-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  width: 100%;
  min-height: clamp(420px, 52vw, 620px);
  padding: clamp(24px, 3vw, 34px);
  border-radius: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.7), transparent 16%),
    linear-gradient(180deg, #4ebcf7 0%, #2d9ee5 55%, #65b7ef 100%);
  overflow: hidden;
}

.sun {
  position: absolute;
  top: 52px;
  right: 78px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 243, 176, 0.98) 0%, rgba(255, 233, 118, 0.78) 42%, rgba(255, 214, 70, 0) 72%);
  filter: blur(4px);
}

.cloud {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  filter: blur(12px);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud-left {
  top: 72px;
  left: 40px;
  width: 148px;
  height: 48px;
}

.cloud-left::before {
  width: 58px;
  height: 58px;
  left: 20px;
  top: -18px;
}

.cloud-left::after {
  width: 70px;
  height: 70px;
  right: 18px;
  top: -24px;
}

.cloud-right {
  top: 140px;
  right: 62px;
  width: 208px;
  height: 62px;
}

.cloud-right::before {
  width: 82px;
  height: 82px;
  left: 30px;
  top: -28px;
}

.cloud-right::after {
  width: 94px;
  height: 94px;
  right: 26px;
  top: -34px;
}

.ridge {
  position: absolute;
  left: -5%;
  right: -5%;
  border-radius: 50%;
}

.ridge-back {
  bottom: 124px;
  height: 180px;
  background: linear-gradient(180deg, rgba(181, 219, 255, 0.68), rgba(91, 145, 208, 0.5));
}

.ridge-mid {
  bottom: 72px;
  height: 168px;
  background: linear-gradient(180deg, rgba(184, 222, 123, 0.9), rgba(90, 176, 68, 0.92));
  clip-path: ellipse(58% 50% at 46% 52%);
}

.ridge-front {
  bottom: -14px;
  height: 176px;
  background: linear-gradient(180deg, rgba(49, 133, 71, 0.98), rgba(22, 83, 44, 0.98));
  clip-path: ellipse(65% 56% at 50% 46%);
}

.flower {
  position: absolute;
  bottom: 44px;
  width: 112px;
  height: 220px;
}

.flower .stem {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 8px;
  height: 168px;
  background: linear-gradient(180deg, #87b64c, #3f7f2a);
  border-radius: 999px;
  transform-origin: bottom center;
}

.flower .petals {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #4f3511 0%, #56320c 24%, transparent 26%),
    radial-gradient(circle at center, #ffcf3d 0%, #f5bf26 55%, transparent 56%);
}

.flower-left {
  left: 12px;
}

.flower-left .stem {
  transform: translateX(-50%) rotate(12deg);
}

.flower-left .petals {
  transform: translateX(-50%);
}

.flower-right {
  right: 6px;
  bottom: 20px;
}

.flower-right .stem {
  height: 150px;
  transform: translateX(-50%) rotate(-10deg);
}

.flower-right .petals {
  width: 64px;
  height: 64px;
  transform: translateX(-50%);
}

.flower-small {
  right: 94px;
  bottom: 12px;
  width: 86px;
  height: 180px;
}

.flower-small .stem {
  height: 122px;
  transform: translateX(-50%) rotate(8deg);
}

.flower-small .petals {
  width: 48px;
  height: 48px;
  transform: translateX(-50%);
}

.prompt-card {
  position: absolute;
  top: clamp(92px, 26%, 150px);
  left: 50%;
  width: min(calc(100% - 48px), 510px);
  padding: clamp(22px, 2.8vw, 28px) clamp(22px, 2.8vw, 28px) 20px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(233, 247, 255, 0.25));
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.prompt-card p {
  margin: 0;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.65;
}

.prompt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 52px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.16);
}

.dot-soft {
  background: rgba(255, 255, 255, 0.46);
}

.prompt-meta button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 0;
  background: #111111;
  color: #ffffff;
  cursor: pointer;
}

.capabilities {
  padding: clamp(64px, 8vw, 96px) 0 12px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto clamp(34px, 4vw, 48px);
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4.3vw, 3.25rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(22px, 2.8vw, 30px);
}

.info-card {
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(252, 250, 246, 0.9));
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.info-card:hover,
.info-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px rgba(24, 54, 79, 0.1);
}

.info-card:focus-visible {
  outline: 2px solid rgba(32, 122, 196, 0.45);
  outline-offset: 3px;
}

.card-media {
  margin: 0;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: rgba(17, 17, 17, 0.06);
}

.card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 540ms ease;
}

.info-card:hover .card-media img,
.info-card:focus-within .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: clamp(20px, 2.8vw, 28px);
}

.card-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(17, 17, 17, 0.035);
  color: #506273;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-card h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
  line-height: 1.35;
}

.card-title-link {
  color: inherit;
  text-decoration: none;
}

.card-title-link:hover,
.card-title-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.82;
}

.work-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.work-modal.is-open {
  display: flex;
}

.work-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}

.work-modal__dialog {
  position: relative;
  width: min(1200px, 100vw);
  max-height: 100vh;
  overflow: auto;
  border: 0;
  background: #000000;
  box-shadow: none;
}

.work-modal__content {
  padding: 0;
}

.work-resource {
  padding: 0;
  border: 0;
  background: transparent;
}

.work-intro {
  padding: clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px) clamp(12px, 1.6vw, 20px);
  background: #000000;
}

.work-intro__text {
  margin: 0;
  color: #ffffff;
  white-space: pre-line;
  line-height: 1.8;
}

.work-gallery {
  display: block;
}

.work-gallery__item {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.work-gallery img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 32px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.bottom-bar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.pager {
  display: flex;
  gap: 10px;
}

.pager button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

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

  .hero-copy h1 {
    max-width: 10.5ch;
  }
}

@media (max-width: 780px) {
  .app-card {
    padding: clamp(20px, 5vw, 24px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-wrap {
    width: 100%;
    margin-left: 0;
  }

  .social-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .social-link {
    width: 58px;
    height: 58px;
  }

  .social-link img {
    width: 26px;
    height: 26px;
  }

  .hero {
    gap: 32px;
    padding: 40px 0 52px;
  }

  .hero-copy h1 {
    max-width: 9ch;
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-visual {
    min-height: 400px;
    padding: 20px;
  }

  .sun {
    top: 26px;
    right: 26px;
    width: 84px;
    height: 84px;
  }

  .cloud-left {
    top: 40px;
    left: 18px;
    width: 118px;
  }

  .cloud-right {
    top: 106px;
    right: 10px;
    width: 150px;
    height: 48px;
  }

  .prompt-card {
    top: 92px;
    width: calc(100% - 36px);
    padding: 18px 18px 14px;
  }

  .prompt-card p {
    font-size: 0.95rem;
  }

  .prompt-meta {
    margin-top: 28px;
  }

  .flower {
    width: 72px;
    height: 146px;
  }

  .flower .stem {
    width: 5px;
    height: 108px;
  }

  .flower .petals {
    top: 6px;
    width: 42px;
    height: 42px;
  }

  .flower-right {
    right: -10px;
  }

  .flower-small {
    right: 48px;
    width: 54px;
  }

  .flower-small .petals {
    width: 30px;
    height: 30px;
  }

  .info-card {
    min-height: auto;
  }

  .work-modal {
    padding: 0;
  }

  .work-modal__dialog {
    width: 100vw;
    max-height: 100vh;
  }

  .work-modal__content {
    padding: 0;
  }

  .bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

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