/* ═══════════════════════════════════════════════════
   joyfulhao — Modern SaaS Design System
   ═══════════════════════════════════════════════════ */

:root {
  --bg: #f6f8f7;
  --ink: #111a17;
  --muted: #5c6b66;
  --muted-light: #8a9a94;
  --line: #dce3e0;
  --surface: #ffffff;
  --accent: #0d8a6f;
  --accent-light: #e8f5f0;
  --accent-dark: #085c4a;
  --gold: #c49a2a;
  --gold-light: #faf3e0;
  --hero-bg: #0f1a17;
  --shadow-sm: 0 1px 3px rgba(17, 26, 23, 0.06);
  --shadow-md: 0 4px 16px rgba(17, 26, 23, 0.08);
  --shadow-lg: 0 12px 40px rgba(17, 26, 23, 0.10);
  --shadow-xl: 0 24px 64px rgba(17, 26, 23, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1200px;
  --page-px: max(32px, calc((100vw - var(--max-w)) / 2));
  font-family: "Inter", "Aptos", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
}

/* ── Links ── */
a { color: inherit; text-decoration: none; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--page-px);
  border-bottom: 1px solid rgba(220, 227, 224, 0.7);
  background: rgba(246, 248, 247, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.5px;
}

.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { font-size: 17px; font-weight: 750; letter-spacing: -0.3px; }
.brand small { margin-top: 3px; color: var(--muted-light); font-size: 12.5px; font-weight: 450; }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.nav a.active {
  color: var(--accent);
  background: var(--accent-light);
}

/* ── Hero ── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  min-height: 680px;
  padding: 80px var(--page-px) 80px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, #0a1410 0%, #0f1f1a 40%, #12291f 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -100px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 138, 111, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -50px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 154, 42, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-media {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media img {
  width: 100%;
  max-width: 580px;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.06);
}

/* ── Typography ── */
.eyebrow, .label {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(13, 138, 111, 0.12);
  color: #5edcb8;
}

.hero .eyebrow {
  background: rgba(196, 154, 42, 0.15);
  color: #e8c461;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1;
  letter-spacing: -1.5px;
  font-weight: 800;
}

h2 {
  max-width: 800px;
  margin-bottom: 18px;
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  font-weight: 750;
}

h3 {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.lead {
  max-width: 520px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 17px;
  line-height: 1.7;
}

/* ── Buttons ── */
.hero-actions, .footer-links { display: flex; flex-wrap: wrap; gap: 14px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.1px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.button.primary {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.button.secondary {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(4px);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ── Sections ── */
.section {
  padding: 100px var(--page-px);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 48px;
}

/* ── Summary Band ── */
.summary-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: -1px 0 0;
  background: var(--line);
}

.summary-band > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 160px;
  padding: 36px 32px;
  background: var(--surface);
  transition: background 0.3s ease;
}

.summary-band > div:hover {
  background: var(--accent-light);
}

.summary-band .label {
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--muted-light);
  background: none;
  padding: 0;
}

.summary-band strong, .summary-band small { display: block; }
.summary-band strong { font-size: 17px; font-weight: 700; line-height: 1.3; }
.summary-band small { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ── Feature Grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-grid article {
  position: relative;
  padding: 36px 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.feature-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 138, 111, 0.2);
}

.feature-grid article:hover::before { opacity: 1; }

.feature-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
}

/* ── Split Section ── */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  padding: 100px var(--page-px);
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.text-stack p {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.75;
}

.text-stack p + p { margin-top: 16px; }
.text-stack p:last-child { margin-bottom: 0; }

/* ── Controls / Check List ── */
.controls {
  background: var(--accent-light);
}

.controls .section-heading {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 28px;
  border: 1px solid rgba(13, 138, 111, 0.12);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.check-list li:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* ── Content Pages ── */
.page-hero {
  width: 100%;
  padding: 120px 40px 60px;
  background: linear-gradient(160deg, #0a1410, #12291f);
  color: #fff;
}

.page-hero .eyebrow {
  background: rgba(196, 154, 42, 0.15);
  color: #e8c461;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  max-width: 640px;
  line-height: 1.7;
}

.content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}

.content-page h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 700;
}

.content-page > p,
.content-page > ul {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.content-page ul {
  padding-left: 0;
  list-style: none;
}

.content-page ul li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
}

.content-page ul li:last-child { border-bottom: none; }

.content-page ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.content-page a {
  color: var(--accent);
  font-weight: 650;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease;
}

.content-page a:hover {
  border-bottom-color: var(--accent);
}

/* ── Price Grid ── */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.price-card {
  position: relative;
  padding: 36px 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
}

.price-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.price-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
  margin-top: 12px;
}

.price-card strong {
  display: block;
  margin: 16px 0;
  color: var(--accent-dark);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.price-card p {
  color: var(--muted);
  line-height: 1.7;
}

/* ── Contact Grid ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.contact-card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-card h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted-light);
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 0;
}

.contact-card p {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

/* ── Footer ── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px var(--page-px);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer strong, .site-footer span { display: block; }
.site-footer strong { font-size: 16px; font-weight: 700; }
.site-footer span { margin-top: 4px; color: var(--muted); font-size: 13.5px; }

.footer-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
  background: var(--accent-light);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
    padding: 60px var(--page-px);
  }

  .hero-media { order: -1; }

  .hero-media img { max-width: 100%; }

  h1, .content-page .page-hero h1 { font-size: clamp(36px, 8vw, 52px); }

  .summary-band,
  .feature-grid,
  .split,
  .check-list,
  .price-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split { gap: 32px; }

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

  .nav { justify-content: flex-start; }

  .page-hero {
    padding: 80px 20px 40px;
  }
}

@media (max-width: 600px) {
  .feature-grid article { padding: 28px 22px 24px; }
  .check-list li { padding: 16px 18px; }
  .price-card { padding: 28px 22px 24px; }
}
