:root {
  --ink: #07172d;
  --soft-ink: #2d3a4d;
  --muted: #6c7685;
  --line: #e7ebf0;
  --panel: #f6f8fb;
  --panel-strong: #eef3f8;
  --white: #ffffff;
  --navy: #06245a;
  --cyan: #16a8cf;
  --emerald: #17a884;
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(231, 235, 240, 0.72);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  transition: opacity 180ms ease;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--soft-ink);
  font-size: 14px;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 180ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--navy);
}

.main-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: var(--cyan);
}

.home-hero,
.page-hero {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  text-align: center;
}

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 68px);
  padding: 76px 0 88px;
}

.hero-logo {
  width: clamp(116px, 17vw, 210px);
  margin-bottom: 34px;
  border-radius: 50%;
}

.eyebrow,
.plan-label,
.feature-panel span,
.timeline span,
.contact-grid span {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.05;
}

.page-hero h1 {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(40px, 5.2vw, 72px);
}

h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(25px, 2.6vw, 38px);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.14;
}

.hero-text,
.page-hero p,
.statement-section p,
.feature-panel p,
.plan li,
.rules-section p,
.timeline p,
.contact-grid p,
.request-list p,
.note-section p,
.site-footer {
  color: var(--muted);
}

.hero-text,
.page-hero p {
  max-width: 720px;
  margin-right: auto;
  margin-bottom: 30px;
  margin-left: auto;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button.primary {
  color: var(--white);
  background: var(--navy);
}

.button.secondary {
  color: var(--navy);
  border-color: var(--line);
  background: var(--white);
}

.button.light {
  color: var(--navy);
  background: var(--white);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(6, 36, 90, 0.12);
}

.quiet-grid,
.content-grid,
.pricing-table,
.timeline,
.contact-grid,
.request-section,
.rules-section,
.note-section,
.statement-section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.quiet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--line);
}

.quiet-grid article {
  min-height: 260px;
  padding: clamp(28px, 4vw, 46px);
  background: var(--panel);
}

.quiet-grid span {
  display: block;
  margin-bottom: 28px;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 760;
  line-height: 1;
}

.quiet-grid h2 {
  font-size: 24px;
}

.quiet-grid p {
  max-width: 280px;
  margin-bottom: 0;
  color: var(--muted);
}

.statement-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(64px, 8vw, 112px) 0;
}

.statement-section p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 680;
  line-height: 1.18;
}

.statement-section a {
  color: var(--navy);
  font-weight: 760;
}

.page-hero {
  padding: clamp(78px, 10vw, 132px) 0 clamp(46px, 7vw, 82px);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 72px;
}

.feature-panel,
.note-section,
.rules-section,
.request-section {
  border-radius: 28px;
  background: var(--panel);
}

.feature-panel {
  min-height: 310px;
  padding: clamp(28px, 4vw, 48px);
}

.feature-panel h2 {
  max-width: 520px;
}

.feature-panel p {
  max-width: 560px;
  margin-bottom: 0;
  font-size: 17px;
}

.note-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: clamp(30px, 5vw, 56px);
  margin-bottom: 82px;
}

.note-section p {
  max-width: 760px;
  margin-bottom: 0;
}

.pricing-table {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 34px;
}

.plan {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
}

.plan.highlight {
  background: var(--panel);
}

.dark-plan {
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
}

.dark-plan h2,
.dark-plan .plan-price,
.dark-plan li,
.dark-plan .plan-label {
  color: var(--white);
}

.dark-plan li {
  opacity: 0.82;
}

.plan h2 {
  min-height: 58px;
  font-size: 22px;
}

.plan-price {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: clamp(34px, 3.8vw, 46px);
  font-weight: 760;
  line-height: 1;
}

.plan-price s {
  display: inline-block;
  margin-right: 8px;
  color: #9aa4b2;
  font-size: 19px;
  font-weight: 650;
}

.plan small {
  display: block;
  min-height: 34px;
  color: var(--muted);
  font-weight: 700;
}

.plan ul {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.plan li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
}

.plan li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--emerald);
  transform: translateY(-50%);
}

.plan .button {
  margin-top: auto;
  width: 100%;
}

.rules-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: 28px;
  padding: clamp(30px, 5vw, 56px);
  margin-bottom: 82px;
}

.rules-section div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rules-section p {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.timeline {
  padding-bottom: 86px;
}

.timeline article {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.timeline article:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline span {
  margin: 0;
  font-size: 15px;
}

.timeline h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 36px);
}

.timeline p {
  max-width: 760px;
  margin: 0;
  font-size: 17px;
}

.contact-hero {
  padding-bottom: 42px;
}

.contact-logo {
  width: 118px;
  margin: 0 auto 28px;
  border-radius: 50%;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 30px;
}

.contact-grid a {
  min-height: 260px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
}

.quiet-grid article,
.feature-panel,
.plan,
.contact-grid a,
.request-list p,
.note-section,
.rules-section {
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.feature-panel:hover,
.plan:hover,
.contact-grid a:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 168, 207, 0.28);
  box-shadow: 0 22px 44px rgba(7, 23, 45, 0.08);
}

.contact-grid strong {
  display: block;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  word-break: break-word;
}

.request-section {
  padding: clamp(30px, 5vw, 56px);
  margin-bottom: 82px;
}

.request-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.request-list p {
  margin: 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--white);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 36px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--navy);
  font-weight: 700;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.inline-form button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
}

.compact-hero {
  padding-bottom: 42px;
}

.auth-panel,
.admin-section,
.portal-panel,
.metric-card {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.auth-panel {
  max-width: 560px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
}

.stack-form {
  display: grid;
  gap: 16px;
}

.stack-form label {
  display: grid;
  gap: 8px;
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 700;
}

.stack-form input,
.stack-form select,
.stack-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--navy);
  background: rgba(8, 30, 58, 0.06);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle .eye-dot {
  fill: currentColor;
  stroke: none;
}

.password-toggle .eye-slash {
  opacity: 0;
}

.password-toggle.is-visible .eye-slash {
  opacity: 1;
}

.stack-form textarea {
  resize: vertical;
}

.form-switch {
  margin: 18px 0 0;
  color: var(--muted);
}

.form-switch a,
.admin-section a {
  color: var(--navy);
  font-weight: 760;
}

.notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
}

.notice.success {
  color: #0d6b52;
  background: rgba(23, 168, 132, 0.12);
}

.notice.error {
  color: #9a3412;
  background: rgba(234, 88, 12, 0.12);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto 18px;
}

.metric-card,
.portal-panel,
.admin-section {
  border-radius: 28px;
  background: var(--panel);
}

.metric-card {
  min-height: 210px;
  padding: clamp(26px, 4vw, 42px);
}

.metric-card span {
  display: block;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 760;
  line-height: 1;
}

.metric-card p,
.portal-panel p {
  color: var(--muted);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto 18px;
}

.portal-panel {
  padding: clamp(28px, 4vw, 46px);
}

.admin-section {
  padding: clamp(28px, 4vw, 46px);
  margin-bottom: 18px;
}

.admin-card-list {
  display: grid;
  gap: 16px;
}

.admin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.36fr);
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.admin-card h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 24px;
}

.admin-card p {
  margin-bottom: 8px;
  color: var(--muted);
}

.compact-form {
  align-self: start;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

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

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--soft-ink);
  background: var(--panel);
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

.empty-state {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: var(--white);
}

button:disabled,
.button[disabled] {
  opacity: 0.58;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: no-preference) {
  .site-header {
    animation: softDrop 520ms ease both;
  }

  .hero-logo,
  .contact-logo {
    animation: logoReveal 760ms ease both;
  }

  .home-hero .eyebrow,
  .page-hero .eyebrow {
    animation: fadeUp 620ms ease 80ms both;
  }

  .home-hero h1,
  .page-hero h1 {
    animation: fadeUp 680ms ease 140ms both;
  }

  .hero-text,
  .page-hero p {
    animation: fadeUp 680ms ease 220ms both;
  }

  .hero-actions {
    animation: fadeUp 680ms ease 300ms both;
  }

  .quiet-grid article,
  .feature-panel,
  .plan,
  .timeline article,
  .contact-grid a,
  .request-list p,
  .note-section,
  .rules-section,
  .statement-section {
    animation: fadeUp 700ms ease both;
  }

  .quiet-grid article:nth-child(2),
  .feature-panel:nth-child(2),
  .plan:nth-child(2),
  .timeline article:nth-child(2),
  .contact-grid a:nth-child(2),
  .request-list p:nth-child(2) {
    animation-delay: 80ms;
  }

  .quiet-grid article:nth-child(3),
  .feature-panel:nth-child(3),
  .plan:nth-child(3),
  .timeline article:nth-child(3),
  .request-list p:nth-child(3) {
    animation-delay: 140ms;
  }

  .feature-panel:nth-child(4),
  .plan:nth-child(4),
  .timeline article:nth-child(4),
  .request-list p:nth-child(4) {
    animation-delay: 200ms;
  }

  .plan:nth-child(5),
  .timeline article:nth-child(5),
  .request-list p:nth-child(5) {
    animation-delay: 260ms;
  }

  .request-list p:nth-child(6) {
    animation-delay: 320ms;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softDrop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 1180px) {
  .pricing-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dark-plan {
    grid-column: span 2;
  }
}

@media (max-width: 780px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brand {
    width: 100%;
    justify-content: space-between;
  }

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

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

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
  }

  .home-hero {
    min-height: auto;
    padding: 68px 0 76px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .page-hero h1 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.08;
  }

  .hero-actions .button,
  .note-section .button {
    width: 100%;
  }

  .quiet-grid,
  .content-grid,
  .pricing-table,
  .contact-grid,
  .request-list,
  .rules-section,
  .rules-section div,
  .statement-section,
  .note-section,
  .dashboard-grid,
  .portal-grid,
  .admin-card {
    grid-template-columns: 1fr;
  }

  .inline-form {
    width: 100%;
    justify-content: space-between;
  }

  .auth-panel,
  .admin-section,
  .portal-panel,
  .metric-card {
    width: min(var(--max), calc(100% - 36px));
  }

  .dark-plan {
    grid-column: auto;
  }

  .quiet-grid article {
    min-height: 210px;
  }

  .feature-panel {
    min-height: auto;
  }

  .statement-section {
    align-items: start;
  }

  .page-hero {
    text-align: left;
  }

  .page-hero p,
  .page-hero h1 {
    margin-left: 0;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    flex-direction: column;
  }
}
