@font-face {
  font-family: "SyneLocal";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/syne-700.woff2") format("woff2");
}

@font-face {
  font-family: "SyneLocal";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/syne-800.woff2") format("woff2");
}

@font-face {
  font-family: "SourceSansLocal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "SourceSansLocal";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-sans-600.woff2") format("woff2");
}

:root {
  --ink: #101820;
  --ink-soft: #3a4652;
  --muted: #667484;
  --bg: #f3f6f8;
  --bg-accent: #e4eef2;
  --surface: #ffffff;
  --brand: #0b5f6b;
  --brand-deep: #07454e;
  --brand-soft: #d7ecef;
  --line: #d0dbe3;
  --error: #b42318;
  --focus: #0b5f6b;
  --shadow: 0 24px 60px -28px rgba(7, 69, 78, 0.35);
  --radius: 10px;
  --font-display: "SyneLocal", "Avenir Next Condensed", "Segoe UI", sans-serif;
  --font-body: "SourceSansLocal", "Segoe UI", "PingFang SC", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

a {
  color: var(--brand);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-deep);
}

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem clamp(1.25rem, 5vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 246, 248, 0.92);
  backdrop-filter: blur(12px);
}

.mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

nav a:hover {
  color: var(--brand);
}

main {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 0 0 5rem;
}

main.narrow {
  width: min(100% - 2.5rem, 40rem);
  padding-top: 3rem;
}

main.narrow h1 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}

main.narrow h2 {
  margin-top: 2.25rem;
  font-family: var(--font-display);
}

main.narrow p,
main.narrow li {
  color: var(--ink-soft);
}

main.narrow ul {
  padding-left: 1.2rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2.5rem 3rem;
  align-items: center;
  min-height: calc(100vh - 4.5rem);
  padding: 3.5rem 0 2.5rem;
  animation: rise 0.7s var(--ease) both;
}

.hero-copy {
  display: grid;
  gap: 1.15rem;
  align-content: center;
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--brand-deep);
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.hero-stage {
  position: relative;
  min-height: 22rem;
  border-radius: 18px;
  padding: 1.25rem;
  background:
    radial-gradient(90% 80% at 20% 0%, #f7fcfd 0%, transparent 55%),
    linear-gradient(145deg, #cfe3e8 0%, #eef4f7 48%, #d7e4ea 100%);
  box-shadow: var(--shadow);
  animation: fade-in 0.9s var(--ease) 0.1s both;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.app-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid #b7c9d1;
  border-radius: 12px;
  background: #fbfcfd;
  box-shadow: 0 10px 30px -18px rgba(7, 69, 78, 0.45);
}

.app-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: #f0f5f7;
}

.app-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #c5d0d6;
}

.app-chrome span {
  margin-left: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.app-body {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  min-height: 16.5rem;
}

.app-side {
  padding: 0.85rem 0.7rem;
  border-right: 1px solid var(--line);
  background: #f7fafb;
  font-size: 0.72rem;
  color: var(--muted);
}

.app-side strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: 0.75rem;
}

.app-side i {
  display: block;
  margin: 0.35rem 0;
  font-style: normal;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
}

.app-side i.active {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 600;
}

.app-canvas {
  padding: 0.85rem;
  background: #eef3f6;
}

.app-canvas svg {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  margin-top: 5rem;
  animation: rise 0.7s var(--ease) both;
}

.section-label {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

h2 {
  margin: 0 0 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  letter-spacing: -0.03em;
}

h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.note,
.hint,
.steps span,
footer {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2rem;
}

.feature-grid article {
  padding: 0;
  background: none;
  border: 0;
}

.feature-grid p {
  margin: 0;
  color: var(--ink-soft);
}

.boundary {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
  max-width: 42rem;
}

.boundary li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.boundary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--brand);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.plan {
  padding: 1.25rem 1.2rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.plan.featured {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.plan-price {
  margin: 0.15rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-deep);
}

.plan p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: seat-step;
}

.steps li {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  background: none;
  border: 0;
  counter-increment: seat-step;
}

.steps li::before {
  content: counter(seat-step);
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.steps strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
}

.buy {
  margin-top: 5rem;
  padding: 1.75rem clamp(1.1rem, 3vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.buy h2 {
  margin-top: 0.15rem;
}

.buy .note.prices {
  margin: 0 0 1.25rem;
}

.seller {
  margin-top: 4.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.seller h2 {
  font-size: 1.25rem;
}

.seller p {
  margin: 0.55rem 0 0;
  max-width: 42rem;
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 8px;
  padding: 0.78rem 1.25rem;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--brand-deep);
  color: var(--brand-deep);
}

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #f4fbfc;
}

.btn.primary:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #f4fbfc;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.72);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

[hidden] {
  display: none !important;
}

form,
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

label,
legend {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

input[type="email"],
input[type="text"] {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--ink);
}

input[type="email"]:focus,
input[type="text"]:focus {
  outline: 2px solid rgba(11, 95, 107, 0.28);
  outline-offset: 1px;
  border-color: var(--focus);
}

.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--brand);
  background: #f3fafb;
}

.choice strong {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-display);
}

.seat-key {
  margin: 1.25rem 0;
}

.seat-key textarea {
  display: block;
  width: 100%;
  margin: 0.35rem 0 0.5rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.error {
  color: var(--error);
  font-weight: 600;
}

footer {
  padding: 1.75rem clamp(1.25rem, 5vw, 2.5rem) 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  background: #eef3f6;
}

.legal {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.legal a {
  text-decoration: none;
  font-weight: 600;
}

[data-field="seller-name-zh"]:not(:empty)::before {
  content: " / ";
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 2rem;
    padding-top: 2.5rem;
  }

  .plans,
  .steps ol,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .app-body {
    grid-template-columns: 1fr;
  }

  .app-side {
    display: none;
  }
}

@media (max-width: 640px) {
  main {
    width: min(100% - 2rem, var(--max));
  }

  .bar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero,
  .hero-stage,
  .section,
  .btn {
    animation: none !important;
    transition: none !important;
  }
}
