:root {
  --ink: #14201c;
  --ink-soft: #2a3b34;
  --paper: #f3f6f2;
  --paper-deep: #e5ece6;
  --line: rgba(20, 32, 28, 0.12);
  --accent: #0f7a5f;
  --accent-deep: #0a5c47;
  --accent-glow: #1fa37f;
  --warm: #c45c26;
  --white: #ffffff;
  --muted: #5b6b63;
  --radius: 4px;
  --max: 1120px;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(31, 163, 127, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 8%, rgba(196, 92, 38, 0.08), transparent 50%),
    linear-gradient(180deg, #eef3ef 0%, var(--paper) 40%, #edf2ee 100%);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--warm);
}

.wrap {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(243, 246, 242, 0.86);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background:
    linear-gradient(145deg, var(--accent-glow), var(--accent-deep));
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px rgba(15, 122, 95, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
}

.nav a:hover,
.nav a.is-active {
  color: var(--accent-deep);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white) !important;
  text-decoration: none !important;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-cta:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 22, 18, 0.82) 0%, rgba(12, 22, 18, 0.58) 42%, rgba(12, 22, 18, 0.28) 100%),
    url("../assets/hero-bg.jpg") center / cover no-repeat;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 760px;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  opacity: 0;
  animation: rise 0.8s ease 0.1s forwards;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.08;
  opacity: 0;
  animation: rise 0.9s ease 0.2s forwards;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 34em;
  font-size: clamp(16px, 2.1vw, 19px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
  opacity: 0;
  animation: rise 0.9s ease 0.35s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: rise 0.9s ease 0.5s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--white);
  color: var(--ink) !important;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.12);
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  padding: 24px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease, border-color 0.25s ease;
}

.feature.is-in {
  transform: translateY(0);
  opacity: 1;
}

.feature:hover {
  border-color: rgba(15, 122, 95, 0.35);
}

.feature-index {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* App preview strip */
.preview-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.preview-copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: 0.06em;
}

.preview-copy p {
  margin: 0 0 18px;
  color: var(--muted);
}

.preview-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.preview-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 15px;
}

.preview-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.phone-stage {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.phone {
  width: min(100%, 280px);
  aspect-ratio: 9 / 19;
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(160deg, #1d2a25, #0f1714);
  box-shadow:
    0 30px 60px rgba(20, 32, 28, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(24px) rotate(2deg);
  opacity: 0;
  animation: phone-in 1s ease 0.2s forwards;
}

.phone-screen {
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 122, 95, 0.95), rgba(20, 32, 28, 0.96)),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 12px,
      rgba(255, 255, 255, 0.03) 12px,
      rgba(255, 255, 255, 0.03) 13px
    );
  color: var(--white);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone-bar {
  height: 8px;
  width: 42%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.phone-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
}

.phone-card {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.phone-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

/* About / company */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.about-grid h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: 0.06em;
}

.about-grid p {
  margin: 0 0 12px;
  color: var(--muted);
}

.meta-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.meta-list li {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.meta-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--accent-deep);
  letter-spacing: 0.06em;
}

.meta-list span,
.meta-list a {
  color: var(--ink-soft);
  font-size: 15px;
  text-decoration: none;
}

/* Legal pages */
.page-banner {
  padding: 56px 0 28px;
}

.page-banner h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 46px);
  letter-spacing: 0.06em;
}

.page-banner p {
  margin: 0;
  color: var(--muted);
}

.legal {
  padding-bottom: 88px;
}

.legal article {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px clamp(20px, 4vw, 40px);
}

.legal h2 {
  margin: 28px 0 10px;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 15px;
}

.legal ul {
  padding-left: 1.2em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #121a17;
  color: rgba(255, 255, 255, 0.78);
  padding: 42px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--white);
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-decoration: none;
}

.site-footer a:hover {
  color: #9fe3cb;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(36px) rotate(4deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(2deg);
  }
}

@media (max-width: 900px) {
  .feature-grid,
  .preview-strip,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 56px 0 48px;
  }

  .phone {
    width: min(100%, 240px);
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, var(--max));
  }

  .site-header .wrap {
    min-height: 64px;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .section {
    padding: 64px 0;
  }
}
