:root {
  --brand: #ff424d;
  --brand-dark: #d7333c;
  --ink: #141414;
  --muted: #616161;
  --line: #e8e1dc;
  --paper: #fffaf5;
  --soft: #f6f1eb;
  --blue: #1174d6;
  --green: #1f9f6a;
  --yellow: #f4b12f;
  --shadow: 0 18px 50px rgba(34, 24, 18, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 250, 245, 0.94);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  box-shadow: 0 8px 28px rgba(20, 20, 20, 0.08);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1160px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  border-radius: 12px;
  background: #111;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand:hover img,
.brand:focus-visible img {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 10px 22px rgba(20, 20, 20, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(20, 20, 20, 0.78);
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--ink);
  background: rgba(255, 66, 77, 0.12);
  transform: translateY(-1px);
  outline: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.nav-toggle[aria-expanded="true"] {
  background: rgba(255, 66, 77, 0.12);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink);
  transform-origin: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 780px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 128px 0 72px;
  color: #fff;
  isolation: isolate;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  z-index: -3;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.58) 36%, rgba(0, 0, 0, 0.16) 72%, rgba(0, 0, 0, 0.06) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-content {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  max-width: 720px;
  justify-self: center;
  transform: translateX(calc((min(1160px, 100vw - 32px) - 720px) / -2));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fff;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  max-width: 700px;
  font-size: clamp(2.25rem, 4.3vw, 4.8rem);
  font-weight: 950;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 1.55vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 850;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 16px 34px rgba(255, 66, 77, 0.28);
}

.primary-button:hover,
.primary-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible {
  transform: translateY(-2px);
  outline: 0;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--brand-dark);
  box-shadow: 0 20px 42px rgba(255, 66, 77, 0.34);
}

.primary-button.dark {
  background: var(--ink);
  box-shadow: none;
}

.primary-button.dark:hover,
.primary-button.dark:focus-visible {
  background: #000;
  box-shadow: 0 18px 36px rgba(20, 20, 20, 0.22);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100vw - 1160px) / 2));
  bottom: 46px;
  width: min(520px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.hero-panel div {
  min-width: 0;
  padding: 18px;
  background: rgba(12, 12, 12, 0.62);
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  font-size: 0.95rem;
}

.hero-panel span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.5;
}

.section {
  padding: 92px 0;
  background: var(--paper);
}

.section-light {
  background: var(--soft);
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 56px;
  align-items: start;
}

.development-layout {
  display: grid;
  gap: 42px;
}

.development-heading {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.section-intro {
  position: sticky;
  top: 110px;
}

.development-heading.section-intro {
  position: static;
}

.section-intro h2,
.center-heading h2,
.cta-inner h2 {
  font-size: clamp(1.72rem, 2.8vw, 2.9rem);
  font-weight: 950;
}

.section-intro p:not(.eyebrow),
.center-heading p:not(.eyebrow),
.cta-inner p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article {
  position: relative;
  padding: 30px 30px 30px 88px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(34, 24, 18, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.timeline article:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 66, 77, 0.24);
  box-shadow: 0 22px 44px rgba(34, 24, 18, 0.12);
}

.timeline span {
  position: absolute;
  top: 30px;
  left: 28px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 0.86rem;
  font-weight: 900;
}

.timeline h3,
.feature-card h3,
.work-card h3 {
  color: var(--ink);
  font-size: 1.26rem;
  font-weight: 900;
}

.timeline p,
.feature-card p,
.work-card p,
.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.center-heading {
  max-width: 820px;
  margin: 0 auto 46px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.feature-card {
  position: relative;
  min-height: 310px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 3px 0 rgba(255, 66, 77, 0);
  transition: box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 20, 20, 0.12);
  box-shadow: 0 24px 56px rgba(34, 24, 18, 0.14);
}

.feature-card:hover::before {
  box-shadow: inset 0 3px 0 rgba(255, 66, 77, 0.65);
}

.feature-icon {
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: 34px;
  place-items: center;
  border-radius: 18px;
  background: #fff2ef;
  font-size: 2rem;
  transition: transform 0.22s ease;
}

.feature-card:hover .feature-icon {
  transform: translateY(-2px) scale(1.06);
}

.feature-card:nth-child(2) .feature-icon {
  background: #eaf5ff;
}

.feature-card:nth-child(3) .feature-icon {
  background: #fff7df;
}

.feature-card:nth-child(4) .feature-icon {
  background: #eef8f2;
}

.feature-card:nth-child(5) .feature-icon {
  background: #f0edff;
}

.feature-card:nth-child(6) .feature-icon {
  background: #f2f2f2;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 20, 20, 0.12);
  box-shadow: 0 24px 58px rgba(34, 24, 18, 0.15);
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #ece4dd;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.work-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.03);
}

.work-body {
  padding: 28px;
}

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.96rem;
  transition: color 0.18s ease;
}

.rating span {
  color: #ffad00;
  letter-spacing: 0;
}

.rating strong {
  color: var(--ink);
}

.rating em {
  color: #8a817b;
  font-style: normal;
}

.final-cta {
  color: var(--ink);
  background: #eef6fb;
}

.final-cta .eyebrow,
.final-cta p {
  color: #53636f;
}

.cta-inner {
  display: grid;
  justify-items: center;
  gap: 26px;
  max-width: 860px;
  text-align: center;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.cta-outline-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 116, 214, 0.32);
  border-radius: 999px;
  padding: 12px 22px;
  color: #0f5f9f;
  background: rgba(255, 255, 255, 0.62);
  font-weight: 850;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cta-outline-button:hover,
.cta-outline-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(17, 116, 214, 0.68);
  background: #fff;
  box-shadow: 0 16px 34px rgba(17, 116, 214, 0.12);
  outline: 0;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(34, 24, 18, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-list details:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 66, 77, 0.2);
  box-shadow: 0 18px 36px rgba(34, 24, 18, 0.1);
}

.faq-list details[open] {
  border-color: rgba(17, 116, 214, 0.22);
}

.faq-list summary {
  cursor: pointer;
  padding: 22px 26px;
  color: var(--ink);
  font-weight: 900;
  list-style: none;
  transition: color 0.18s ease;
}

.faq-list summary:hover,
.faq-list summary:focus-visible {
  color: var(--brand-dark);
  outline: 0;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--brand);
  font-size: 1.3rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  padding: 0 26px 24px;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #111;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  display: block;
  color: #fff;
  font-size: 1.12rem;
}

.footer-inner p {
  margin: 4px 0 0;
}

.footer-inner a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero {
    min-height: 760px;
    padding-top: 112px;
  }

  .hero-content {
    transform: none;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(720px, calc(100% - 32px));
    margin: 42px auto 0;
  }

  .two-column,
  .feature-grid,
  .works-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .section-intro {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 66px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(20, 20, 20, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 250, 245, 0.98);
    box-shadow: 0 18px 48px rgba(20, 20, 20, 0.14);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    border-radius: var(--radius);
  }

  .hero {
    min-height: auto;
    padding: 110px 0 42px;
  }

  h1 {
    font-size: clamp(2rem, 10.5vw, 3.35rem);
  }

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

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

  .primary-button,
  .secondary-button,
  .cta-outline-button {
    width: 100%;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 66px 0;
  }

  .timeline article {
    padding: 26px;
  }

  .timeline span {
    position: static;
    margin-bottom: 14px;
  }

  .feature-card,
  .work-body {
    padding: 24px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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