:root {
  --ink: #111827;
  --muted: #667085;
  --line: #d9e2ef;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --green: #47db9e;
  --blue: #409eff;
  --violet: #a875ff;
  --amber: #ffb838;
  --cyan: #42e0f2;
  --danger: #ef4444;
  --shadow: 0 22px 60px rgba(38, 55, 84, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(90deg, rgba(64, 158, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(71, 219, 158, 0.05) 1px, transparent 1px),
    #f9fbff;
  background-size: 44px 44px;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #1d4ed8;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(217, 226, 239, 0.75);
  background: rgba(249, 251, 255, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 760;
  font-size: 1.2rem;
}

.brand img {
  width: 38px;
  height: 38px;
}

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

.site-nav a {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #334155;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #fff;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.08);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.78) 42%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(135deg, rgba(71, 219, 158, 0.16), rgba(64, 158, 255, 0.14) 34%, rgba(168, 117, 255, 0.12) 60%, rgba(255, 184, 56, 0.12));
}

.hero-content {
  position: relative;
  z-index: 4;
  padding: 80px 0 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 5rem;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: #344054;
  font-size: 1.32rem;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 720;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #111827, #1d4ed8);
  box-shadow: 0 16px 36px rgba(29, 78, 216, 0.22);
}

.button-ghost {
  color: #1f2937;
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(116px, 150px));
  gap: 12px;
  margin: 42px 0 0;
}

.hero-metrics div {
  padding: 14px 16px;
  border: 1px solid rgba(217, 226, 239, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.hero-metrics dt {
  font-size: 1.5rem;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.phone-shell {
  position: absolute;
  width: 285px;
  padding: 10px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 34px;
  background: #111827;
  box-shadow: var(--shadow);
}

.phone-shell img {
  border-radius: 24px;
}

.phone-shell-primary {
  right: max(50px, calc((100vw - 1180px) / 2 + 62px));
  top: 78px;
  transform: rotate(4deg);
}

.phone-shell-secondary {
  right: max(270px, calc((100vw - 1180px) / 2 + 285px));
  top: 228px;
  width: 230px;
  transform: rotate(-8deg);
  opacity: 0.9;
}

.signal-grid {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 72px;
  display: grid;
  grid-template-columns: repeat(5, 38px);
  gap: 10px;
}

.signal-grid span {
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 14px 26px color-mix(in srgb, var(--accent) 36%, transparent);
}

.download-section,
.feature-section,
.feedback-cta,
.form-section,
.admin-section {
  padding: 86px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.feedback-cta h2,
.page-hero h1 {
  margin: 0;
  font-size: 2.45rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p,
.feedback-cta p,
.page-hero p {
  max-width: 740px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.download-card {
  position: relative;
  min-height: 206px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(38, 55, 84, 0.08);
}

.site-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 18px;
  border: 1px solid rgba(217, 226, 239, 0.9);
  border-radius: 8px;
  color: #fff;
  background: rgba(17, 24, 39, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.download-card::before,
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent);
}

.platform-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-weight: 820;
}

.download-card strong {
  display: block;
  margin-top: 24px;
  font-size: 1.3rem;
}

.download-card small,
.download-state {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.download-state {
  word-break: break-all;
  font-size: 0.82rem;
}

.accent-green { --accent: var(--green); }
.accent-blue { --accent: var(--blue); }
.accent-violet { --accent: var(--violet); }
.accent-amber { --accent: var(--amber); }
.accent-cyan { --accent: var(--cyan); }

.feature-grid {
  display: grid;
  gap: 18px;
}

.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: center;
  min-height: 450px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 16px 42px rgba(38, 55, 84, 0.08);
}

.feature-kicker {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  color: #0f172a;
  background: color-mix(in srgb, var(--accent) 18%, #fff);
  font-size: 0.82rem;
  font-weight: 760;
}

.feature-copy h3 {
  margin: 18px 0 0;
  font-size: 2rem;
  line-height: 1.22;
}

.feature-copy p {
  max-width: 650px;
  margin: 16px 0 0;
  color: #475467;
  font-size: 1.05rem;
  line-height: 1.8;
}

.feature-copy ul,
.signal-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-copy li,
.signal-list li {
  position: relative;
  padding-left: 18px;
  color: #344054;
  line-height: 1.6;
}

.feature-copy li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.feature-shot {
  justify-self: center;
  width: 245px;
  margin: 0;
  padding: 9px;
  border-radius: 30px;
  background: #111827;
  box-shadow: var(--shadow);
}

.feature-shot img {
  border-radius: 22px;
}

.feedback-cta {
  background: #101828;
  color: #fff;
}

.feedback-cta .eyebrow {
  color: var(--cyan);
}

.feedback-cta p {
  color: rgba(255, 255, 255, 0.72);
}

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

.page-shell {
  min-height: calc(100vh - 72px);
}

.page-hero {
  padding: 82px 0 36px;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.feedback-form,
.feedback-side,
.owner-login,
.chart-panel,
.recent-panel,
.stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(38, 55, 84, 0.08);
}

.feedback-form {
  display: grid;
  gap: 22px;
  padding: 26px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
label > span {
  display: block;
  margin-bottom: 10px;
  color: #344054;
  font-weight: 720;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.choice-grid label {
  min-width: 0;
}

.choice-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-grid span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  text-align: center;
}

.choice-grid input:checked + span {
  color: #0f172a;
  border-color: #409eff;
  background: linear-gradient(135deg, rgba(64, 158, 255, 0.12), rgba(71, 219, 158, 0.12));
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 190px;
  line-height: 1.7;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #409eff;
  box-shadow: 0 0 0 4px rgba(64, 158, 255, 0.13);
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--danger);
}

.form-message.is-success {
  color: #047857;
}

.feedback-side {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.feedback-side img {
  width: 76px;
  height: 76px;
}

.feedback-side h2 {
  margin: 22px 0 0;
  font-size: 1.45rem;
}

.signal-list li {
  padding-left: 0;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
}

.signal-list span {
  width: 10px;
  height: 10px;
  margin-top: 0.55em;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--blue), var(--violet));
}

.owner-link {
  display: inline-flex;
  margin-top: 28px;
  color: #1d4ed8;
  font-weight: 720;
}

.owner-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  max-width: 720px;
  padding: 22px;
}

.admin-dashboard {
  margin-top: 28px;
}

.is-hidden {
  display: none !important;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.8rem;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.chart-panel,
.recent-panel {
  padding: 22px;
}

.chart-panel h2,
.recent-panel h2 {
  margin: 0 0 18px;
  font-size: 1.3rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 92px minmax(120px, 1fr) 32px;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  color: #344054;
}

.bar-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--violet));
}

.recent-panel {
  margin-top: 18px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.92rem;
}

th {
  color: #475467;
  font-weight: 760;
}

.empty-state {
  margin: 18px 0 0;
  color: var(--muted);
}

.empty-state.inline {
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  color: var(--muted);
}

.footer-layout a {
  color: #1d4ed8;
  font-weight: 700;
}

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

  .hero-content {
    padding: 60px 0 360px;
  }

  .hero h1 {
    font-size: 4rem;
  }

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

  .phone-shell-primary {
    right: 36px;
    top: auto;
    bottom: 34px;
    width: 220px;
  }

  .phone-shell-secondary {
    right: 220px;
    top: auto;
    bottom: 78px;
    width: 178px;
  }

  .download-grid,
  .form-layout,
  .chart-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-shot {
    width: 220px;
  }

  .feedback-side {
    position: static;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1120px) and (min-width: 981px) {
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 66px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .hero-content {
    padding: 48px 0 310px;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .phone-shell-primary {
    right: 20px;
    width: 178px;
  }

  .phone-shell-secondary {
    right: 168px;
    bottom: 70px;
    width: 138px;
  }

  .signal-grid {
    grid-template-columns: repeat(5, 26px);
    right: 20px;
    bottom: 20px;
  }

  .download-section,
  .feature-section,
  .feedback-cta,
  .form-section,
  .admin-section {
    padding: 58px 0;
  }

  .section-heading h2,
  .feedback-cta h2,
  .page-hero h1 {
    font-size: 2rem;
  }

  .feature-card,
  .feedback-form,
  .feedback-side,
  .owner-login,
  .chart-panel,
  .recent-panel {
    padding: 20px;
  }

  .feature-copy h3 {
    font-size: 1.55rem;
  }

  .choice-grid,
  .form-grid,
  .stats-grid,
  .owner-login {
    grid-template-columns: 1fr;
  }

  .cta-layout,
  .footer-layout,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .bar-row {
    grid-template-columns: 82px minmax(90px, 1fr) 28px;
  }
}
