:root {
  --bg: #09111f;
  --panel: #101b2f;
  --panel-2: #172643;
  --paper: #f7fbff;
  --text: #edf6ff;
  --muted: #a6b6cc;
  --ink: #142033;
  --ink-soft: #53637a;
  --cyan: #62d4ff;
  --blue: #0b7dea;
  --blue-soft: rgba(11, 125, 234, .12);
  --gold: #ffd36b;
  --green: #73e0b3;
  --rose: #ff779d;
  --line: rgba(255, 255, 255, .13);
  --line-dark: rgba(15, 23, 42, .12);
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --radius: 8px;
  --max: 1180px;
  --header: 72px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; }

:focus-visible {
  outline: 3px solid rgba(98, 212, 255, .42);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--cyan);
  color: #07101d;
  border-radius: 6px;
}

.skip-link:focus { top: 12px; }

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 18px rgba(15, 23, 42, .08);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .98);
  border-bottom-color: rgba(15, 23, 42, .10);
  box-shadow: 0 8px 26px rgba(15, 23, 42, .10);
}

.nav-wrap {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: 0;
  color: #13213d;
  white-space: nowrap;
  transition: color .22s ease, transform .22s ease;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
  transition: transform .25s ease, box-shadow .25s ease;
}

.brand:hover,
.brand:focus-visible {
  color: #0878df;
  transform: translateY(-1px);
}

.brand:hover img,
.brand:focus-visible img {
  transform: rotate(-3deg) scale(1.04);
  box-shadow: 0 12px 26px rgba(8, 120, 223, .2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  position: relative;
  padding: 9px 12px;
  color: #2b3954;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 750;
  transition: color .22s ease, background .22s ease, transform .22s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #0878df, var(--cyan));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #0069c7;
  background: rgba(0, 112, 217, .08);
  transform: translateY(-1px);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(19, 33, 61, .18);
  border-radius: 7px;
  background: rgba(0, 112, 217, .06);
  padding: 9px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #13213d;
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 20, .92) 0%, rgba(7, 13, 26, .82) 48%, rgba(7, 13, 26, .34) 100%),
    linear-gradient(0deg, rgba(9, 17, 31, .95), transparent 46%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 96px 0 80px;
  max-width: 780px;
  margin-left: max(20px, calc((100vw - var(--max)) / 2));
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
}

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

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  display: inline-block;
  position: relative;
  margin: 0;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.18;
  letter-spacing: 0;
}

h2::after {
  content: "";
  display: block;
  width: 104px;
  height: 5px;
  margin: 18px auto 0;
  border-radius: 99px;
  background: #0878df;
}

.split h2::after,
.final-cta h2::after {
  margin-left: 0;
  margin-right: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.3;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(237, 246, 255, .88);
  font-size: 18px;
}

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

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 850;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .42) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .55s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateX(120%);
}

.btn-primary {
  color: #07101d;
  background: linear-gradient(135deg, var(--cyan), #b7ecff);
  box-shadow: 0 16px 34px rgba(98, 212, 255, .27);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 20px 44px rgba(98, 212, 255, .38);
}

.btn-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .08);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(98, 212, 255, .72);
  background: rgba(98, 212, 255, .14);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 660px;
  margin: 36px 0 0;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.hero-stats div:hover {
  transform: translateY(-3px);
  border-color: rgba(98, 212, 255, .46);
  background: rgba(255, 255, 255, .12);
}

.hero-stats dt {
  color: var(--gold);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.1;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: rgba(237, 246, 255, .78);
}

.section {
  padding: 88px 0;
}

.intro-section,
.works-section,
.comparison-section,
.faq-section {
  color: var(--ink);
  background: var(--paper);
}

.feature-band {
  color: var(--ink);
  background: #f8fafc;
}

.split,
.two-col {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.rich-text p,
.section-head > p:not(.section-kicker),
.media-row p,
.feature-card p,
.faq-list p,
.final-cta p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.rich-text p + p { margin-top: 18px; }

.section-head {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-head.align-left {
  margin-inline: 0;
  text-align: left;
}

.section-head > p:not(.section-kicker) {
  margin-top: 18px;
  color: #526176;
  font-weight: 500;
}

.intro-section .section-kicker,
.works-section .section-kicker,
.comparison-section .section-kicker,
.faq-section .section-kicker {
  color: var(--blue);
}

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

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 316px;
  padding: 54px 42px 42px;
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .09);
  transition: transform .22s ease, box-shadow .22s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 4px solid transparent;
  background: linear-gradient(90deg, #0878df, var(--cyan)) top left / 0 4px no-repeat;
  pointer-events: none;
  transition: background-size .28s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(15, 23, 42, .15);
}

.feature-card:hover::before {
  background-size: 100% 4px;
}

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

.feature-card h3 {
  color: #0878df;
  font-size: 25px;
  font-weight: 900;
}

.feature-card p {
  color: #4f5f75;
  font-size: 17px;
  line-height: 1.85;
}

.feature-icon {
  display: block;
  margin-bottom: 34px;
  color: #0878df;
  font-size: 38px;
  line-height: 1;
  transition: transform .24s ease;
}

.works-section {
  background: #f5f6f8;
}

.works-head {
  max-width: 820px;
  margin-bottom: 58px;
}

.works-head .section-kicker {
  margin-bottom: 4px;
  color: #6b7280;
  font-size: 13px;
  letter-spacing: 0;
}

.works-head h2 {
  color: #2b2f36;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 900;
}

.works-head > p:not(.section-kicker) {
  color: #687083;
}

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

.work-card {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .12);
  transition: transform .22s ease, box-shadow .22s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(16, 24, 40, .18);
}

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

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

.work-body {
  padding: 26px 30px 28px;
}

.work-body h3 {
  margin-bottom: 12px;
  color: #0878df;
  font-size: 25px;
  font-weight: 900;
}

.work-body p {
  margin: 0;
  color: #596275;
  font-size: 16px;
}

.work-body .rating {
  margin-top: 24px;
  color: #f59e0b;
  font-size: 17px;
  white-space: nowrap;
}

.rating strong {
  color: #2b2f36;
  margin-left: 8px;
}

.rating span {
  color: #7b8497;
}

.lead {
  margin: 20px 0 24px;
  color: rgba(237, 246, 255, .82);
  font-size: 17px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .08);
  transition: box-shadow .22s ease, transform .22s ease;
}

.table-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(15, 23, 42, .12);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th, td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, .09);
}

th {
  color: #fff;
  background: #13213d;
}

tr:last-child td { border-bottom: 0; }
td { color: var(--ink-soft); }
td:first-child { color: var(--ink); font-weight: 850; }

tbody tr {
  transition: background .18s ease;
}

tbody tr:hover {
  background: rgba(8, 120, 223, .055);
}

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

details {
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

details:hover,
details[open] {
  border-color: rgba(8, 120, 223, .22);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .1);
}

details:hover {
  transform: translateY(-2px);
}

summary {
  cursor: pointer;
  padding: 18px 22px;
  color: var(--ink);
  font-weight: 850;
  list-style: none;
  transition: color .18s ease, background .18s ease;
}

summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  float: right;
  color: var(--blue);
  font-weight: 900;
}
details[open] summary::after { content: "−"; }
details p { padding: 0 22px 20px; }

summary:hover,
details[open] summary {
  color: #0878df;
  background: rgba(8, 120, 223, .035);
}

.final-cta {
  padding: 58px 0;
  background: linear-gradient(135deg, #101b2f, #162b4c);
}

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

.final-cta p {
  margin-top: 12px;
  color: rgba(237, 246, 255, .78);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  color: #07101d;
  background: var(--cyan);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  cursor: pointer;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-footer {
  padding: 28px 0;
  color: rgba(237, 246, 255, .74);
  background: #060b14;
}

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

.footer-inner p { margin: 0; }
.footer-inner a { color: var(--cyan); font-weight: 850; white-space: nowrap; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}

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

@media (max-width: 1040px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --header: 56px; }
  .container { width: min(100% - 28px, var(--max)); }
  .site-header {
    height: var(--header);
    border-bottom: 0;
    box-shadow: none;
  }
  .nav-wrap {
    height: var(--header);
  }
  .brand {
    gap: 10px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .brand span {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-toggle {
    display: block;
    width: 38px;
    height: 38px;
    padding: 7px;
  }
  .site-nav {
    position: fixed;
    inset: var(--header) 0 auto;
    display: grid;
    gap: 4px;
    padding: 14px;
    background: #fff;
    border-bottom: 1px solid rgba(15,23,42,.1);
    box-shadow: 0 18px 34px rgba(15,23,42,.14);
    transform: translateY(-120%);
    transition: transform .24s ease;
  }
  body.nav-open .site-nav { transform: translateY(0); }
  .site-nav a { padding: 13px 14px; }
  .hero {
    min-height: auto;
    align-items: end;
  }
  .hero-inner {
    width: min(100% - 28px, var(--max));
    margin: 0 auto;
    padding: 118px 0 64px;
  }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5,10,20,.84) 0%, rgba(7,13,26,.78) 46%, rgba(7,13,26,.96) 100%);
  }
  .section { padding: 62px 0; }
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .final-cta-inner,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .hero-stats,
  .feature-grid,
  .works-grid {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
  }
  .work-body {
    padding: 22px;
  }

  .work-body .rating {
    white-space: normal;
  }
}

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