:root {
  --brand: #496a90;
  --brand-dark: #385775;
  --brand-soft: #eef4fa;
  --text: #172033;
  --muted: #5f6b7a;
  --line: #dce4ec;
  --surface: #ffffff;
  --surface-muted: #f6f8fb;
  --success: #177245;
  --danger: #b42318;
  --shadow: 0 20px 55px rgba(24, 45, 73, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--surface);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

code {
  padding: 0.14em 0.38em;
  border-radius: 6px;
  background: #edf2f7;
  font-size: 0.92em;
}

.container {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 228, 236, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

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

.header-inner {
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
}

.brand img {
  display: block;
}

.brand span {
  display: grid;
  line-height: 1.2;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.top-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.top-nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero {
  overflow: hidden;
  padding: 76px 0 108px;
  background:
    radial-gradient(circle at 10% 15%, rgba(73, 106, 144, 0.17), transparent 32%),
    radial-gradient(circle at 90% 5%, rgba(73, 106, 144, 0.11), transparent 27%),
    linear-gradient(180deg, #fbfdff 0%, #f2f6fa 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: 64px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1,
h2 {
  margin: 0;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.65rem);
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-row span,
.local-badge {
  border: 1px solid rgba(73, 106, 144, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--brand-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.trust-row span {
  padding: 8px 13px;
}

.hero-note {
  padding: 28px;
  border: 1px solid rgba(73, 106, 144, 0.17);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 45px rgba(34, 55, 81, 0.08);
}

.hero-note strong {
  color: var(--brand-dark);
}

.hero-note p {
  margin: 10px 0 0;
  color: var(--muted);
}

.tool-section {
  position: relative;
  z-index: 2;
  margin-top: -64px;
  padding-bottom: 84px;
}

.tool-card {
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tool-heading,
.action-row,
.secret-row,
.countdown-row,
.privacy-strip {
  display: flex;
  align-items: center;
}

.tool-heading {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.local-badge {
  padding: 8px 13px;
  background: var(--brand-soft);
}

.field-group {
  margin-bottom: 24px;
}

.field-group.compact {
  margin-bottom: 0;
}

.field-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 750;
}

.secret-row {
  gap: 10px;
}

input,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid #cbd6e2;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input {
  padding: 0 15px;
}

select {
  padding: 0 42px 0 14px;
}

input:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(73, 106, 144, 0.13);
}

.field-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.primary-button,
.secondary-button,
.ghost-button,
.code-button {
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 750;
}

.primary-button {
  min-height: 50px;
  padding: 0 24px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 25px rgba(73, 106, 144, 0.24);
}

.primary-button:hover {
  background: var(--brand-dark);
}

.secondary-button,
.ghost-button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #cbd6e2;
  background: #fff;
  color: var(--brand-dark);
}

.secondary-button {
  flex: 0 0 auto;
}

.ghost-button:hover,
.secondary-button:hover {
  background: var(--brand-soft);
}

.action-row {
  gap: 12px;
}

.error-message {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(180, 35, 24, 0.24);
  border-radius: 10px;
  background: #fff3f2;
  color: var(--danger);
}

.result-panel {
  margin-top: 30px;
  padding: 28px;
  border: 1px solid rgba(73, 106, 144, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #f8fbff, #eef4fa);
  text-align: center;
}

.result-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.code-button {
  display: inline-grid;
  gap: 5px;
  margin: 8px auto 14px;
  padding: 8px 22px 10px;
  background: transparent;
  color: var(--text);
}

.code-button span {
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.8rem, 9vw, 4.7rem);
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.code-button small {
  color: var(--brand);
  font-weight: 750;
}

.countdown-row {
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

progress {
  width: min(280px, 55vw);
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #dce5ee;
}

progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #dce5ee;
}

progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--brand);
}

progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--brand);
}

.copy-status {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--success);
  font-size: 0.88rem;
}

.privacy-strip {
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.privacy-strip p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.privacy-strip a {
  flex: 0 0 auto;
  font-weight: 750;
}

.content-section {
  padding: 84px 0;
}

.muted-section {
  background: var(--surface-muted);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 70px;
  align-items: start;
}

.content-grid article > p:last-child {
  color: var(--muted);
}

.step-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.step-list li > span {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
}

.step-list p {
  margin: 3px 0 0;
  color: var(--muted);
}

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

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.faq-list summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 750;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.static-page {
  min-height: calc(100vh - 190px);
  padding: 70px 0 90px;
}

.static-page article {
  max-width: 820px;
  margin-inline: auto;
}

.static-page h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

.static-page h2 {
  margin-top: 38px;
  font-size: 1.55rem;
}

.static-page p,
.static-page li {
  color: var(--muted);
}

.clipboard-fallback {
  position: fixed;
  left: -9999px;
  opacity: 0;
}

@media (max-width: 820px) {
  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero {
    padding-top: 54px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .privacy-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    padding-bottom: 94px;
  }

  .tool-card {
    border-radius: 18px;
  }

  .tool-heading,
  .secret-row,
  .action-row,
  .countdown-row,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .tool-heading {
    margin-bottom: 26px;
  }

  .local-badge {
    align-self: flex-start;
  }

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

  .countdown-row {
    align-items: center;
  }

  progress {
    width: 100%;
  }

  .footer-links {
    gap: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
