/* Alcedo Studio website — Phase 2
   Visual baseline: docs/roadmap/alcedo_website_redesign_plan.md §18
   No animations, gradients, glass, or decorative chrome. */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: #202124;
  background: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: #426f8f;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  color: #315873;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid #0b6ea8;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: #202124;
  color: #ffffff;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.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;
}

.wrap {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(680px, 100% - 40px);
}

/* —— Header —— */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e4e7;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: 64px;
  padding-block: 0.75rem;
}

.brand {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  color: #202124;
  white-space: nowrap;
}

.brand__alcedo {
  color: #426f8f;
}

.brand:hover {
  color: #202124;
}

.brand:hover .brand__alcedo {
  color: #315873;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  color: #202124;
  padding-block: 0.35rem;
}

.nav a:hover {
  color: #426f8f;
}

.nav a[aria-current="page"] {
  color: #426f8f;
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 2px;
}

.nav__lang {
  color: #426f8f;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

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

.btn--primary {
  background: #426f8f;
  color: #ffffff;
  border-color: #426f8f;
}

.btn--primary:hover {
  background: #315873;
  border-color: #315873;
  color: #ffffff;
}

.btn--secondary {
  background: #ffffff;
  color: #202124;
  border-color: #e2e4e7;
}

.btn--secondary:hover {
  border-color: #426f8f;
  color: #315873;
}

/* —— Hero —— */
.hero {
  padding: 80px 0 96px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem 2rem;
  align-items: center;
}

.hero__copy {
  max-width: 32ch;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: 56px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero h1 .brand__alcedo {
  color: #426f8f;
}

.hero__lead {
  margin: 0 0 0.75rem;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  color: #202124;
}

.hero__support,
.hero__platform {
  margin: 0 0 0.75rem;
  font-size: 17px;
  line-height: 1.55;
  color: #5f6368;
}

.hero__platform {
  margin-bottom: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.hero__doc-link {
  font-size: 15px;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.hero__visual {
  min-width: 0;
}

.hero__visual picture,
.hero__visual img {
  width: 100%;
  border-radius: 6px;
}

/* —— Sections —— */
.section {
  padding: 96px 0;
}

.section + .section {
  border-top: 1px solid #e2e4e7;
}

.section--tint {
  background: #f7f7f5;
  border-top: 1px solid #e2e4e7;
  border-bottom: 1px solid #e2e4e7;
}

.section--tint + .section {
  border-top: none;
}

.section h2 {
  margin: 0 0 20px;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section__intro {
  margin: 0 0 1.5rem;
  max-width: 66ch;
  color: #5f6368;
}

.prose p {
  margin: 0 0 12px;
  max-width: 66ch;
  text-wrap: pretty;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* —— Feature summary (home) —— */
.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e2e4e7;
}

.summary-list li {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 1rem 1.5rem;
  padding: 28px 0;
  border-bottom: 1px solid #e2e4e7;
}

.summary-list h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
}

.summary-list p {
  margin: 0;
  max-width: 66ch;
  color: #202124;
  font-variant-numeric: tabular-nums;
}

.section__more {
  margin: 1.5rem 0 0;
  font-size: 15px;
  font-weight: 500;
}

/* —— Download rows —— */
.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.download-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: 72px;
  padding: 0.85rem 0;
  border-bottom: 1px solid #e2e4e7;
}

.download-list li:first-child {
  border-top: 1px solid #e2e4e7;
}

.download-list__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.download-list__name {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
}

.download-list__note {
  font-size: 15px;
  color: #5f6368;
}

.download-list__action {
  font-size: 15px;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.download-extra {
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 15px;
}

/* —— Docs / links —— */
.link-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.link-list a {
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* —— Features page —— */
.page-intro {
  padding: 64px 0 32px;
}

.page-intro h1 {
  margin: 0 0 1rem;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-intro p {
  margin: 0 0 1rem;
  max-width: 66ch;
  color: #5f6368;
}

.page-intro__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 15px;
  font-weight: 500;
}

.feature-block {
  padding: 88px 0;
  border-top: 1px solid #e2e4e7;
}

.feature-block__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.feature-block h2 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
}

.feature-block .prose {
  margin-bottom: 1.25rem;
}

.feature-block__media picture,
.feature-block__media img {
  width: 100%;
  border: 1px solid #e2e4e7;
  border-radius: 6px;
  background: #f7f7f5;
}

.feature-block__details {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.feature-block__details figure {
  margin: 0;
}

.feature-block__details figcaption {
  margin-top: 0.5rem;
  font-size: 14px;
  line-height: 1.5;
  color: #80868b;
}

.raw-editing__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
  margin-top: 2rem;
}

.raw-editing__gallery figure {
  margin: 0;
}

.raw-editing__gallery picture,
.raw-editing__gallery img {
  display: block;
  width: 100%;
  border: 1px solid #e2e4e7;
  border-radius: 6px;
  background: #f7f7f5;
}

.raw-editing__gallery figcaption {
  margin-top: 0.5rem;
  font-size: 14px;
  line-height: 1.5;
  color: #80868b;
}

.next-steps {
  padding: 64px 0 96px;
  border-top: 1px solid #e2e4e7;
}

.next-steps h2 {
  margin: 0 0 1rem;
  font-size: 28px;
  font-weight: 600;
}

/* —— Footer —— */
.site-footer {
  background: #f7f7f5;
  border-top: 1px solid #e2e4e7;
  padding: 2rem 0;
  font-size: 14px;
  color: #5f6368;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.site-footer a {
  color: #5f6368;
  text-decoration: none;
}

.site-footer a:hover {
  color: #426f8f;
  text-decoration: underline;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.site-footer__sep {
  color: #c4c7c9;
  user-select: none;
}

/* —— 404 —— */
.not-found {
  padding: 96px 0;
  max-width: 40rem;
}

.not-found h1 {
  margin: 0 0 0.75rem;
  font-size: 40px;
  font-weight: 600;
}

.not-found h1 + p {
  margin: 0 0 1.25rem;
  color: #5f6368;
}

.not-found__zh {
  margin-top: 3rem;
}

/* —— Responsive —— */
@media (max-width: 1080px) {
  .wrap {
    width: min(1180px, 100% - 48px);
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .wrap,
  .wrap--narrow {
    width: min(1180px, 100% - 40px);
  }

  .site-header__inner {
    align-items: flex-start;
    min-height: auto;
  }

  .nav {
    width: 100%;
    gap: 0.35rem 1rem;
  }

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

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__copy {
    max-width: none;
  }

  .hero h1 {
    font-size: 40px;
    line-height: 1.08;
  }

  .hero__lead {
    font-size: 21px;
    line-height: 1.45;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .section h2 {
    font-size: 28px;
    line-height: 1.25;
  }

  .summary-list li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 22px 0;
  }

  .summary-list h3 {
    font-size: 19px;
  }

  .download-list li {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    padding: 1rem 0;
  }

  .page-intro {
    padding: 40px 0 16px;
  }

  .page-intro h1 {
    font-size: 32px;
  }

  .feature-block {
    padding: 56px 0;
  }

  .feature-block__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .raw-editing__gallery {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .feature-block h2 {
    font-size: 24px;
  }

  .next-steps {
    padding: 48px 0 64px;
  }

  .not-found {
    padding: 64px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:active {
    transform: none;
  }
}
