:root {
  color-scheme: dark;
  --bg: #090b10;
  --bg-raised: #0f1218;
  --surface: #141820;
  --surface-soft: rgba(21, 25, 34, 0.78);
  --text: #f6f7f9;
  --muted: #a6acb8;
  --muted-strong: #c7cbd3;
  --line: #2a303b;
  --line-strong: #3a424f;
  --yellow: #ffd400;
  --yellow-soft: #f1c84b;
  --green: #4bd6a0;
  --blue: #81a8f2;
  --danger: #ffaaa7;
  --max: 1180px;
  --radius: 8px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

a {
  color: var(--yellow-soft);
  text-underline-offset: 3px;
}

a:hover { color: #ffe882; }

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  transform: translateY(-150%);
  border-radius: 4px;
  background: var(--text);
  color: var(--bg);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(54, 61, 74, 0.72);
  background: rgba(9, 11, 16, 0.88);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(calc(100% - 40px), var(--max));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 820;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 7px;
}

.brand small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.nav-links {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
}

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

.nav-links .language-link {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: var(--blue);
}

.nav-links .nav-cta {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid #a98600;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  background: var(--yellow);
  color: #171300;
}

.nav-links .nav-cta:hover { color: #171300; background: #ffe04b; }

.hero {
  min-height: min(76svh, 720px);
  border-bottom: 1px solid var(--line);
  display: grid;
  align-items: center;
  background-image: url("./aexporter-icon.png");
  background-repeat: no-repeat;
  background-position: calc(100% - 7vw) 49%;
  background-size: clamp(220px, 29vw, 420px);
}

.hero-inner,
.section-inner,
.page-main {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.hero-copy {
  width: min(100%, 790px);
  min-width: 0;
  padding: 78px 0 72px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--yellow-soft);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.16;
  letter-spacing: 0;
}

h1 {
  max-width: 790px;
  font-size: clamp(44px, 6vw, 78px);
}

h1 .headline-secondary {
  display: block;
  color: var(--muted-strong);
}

h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 19px; }

.hero-lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: 19px;
}

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

.button {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--surface);
  font-weight: 760;
  text-decoration: none;
}

.button.primary {
  border-color: #ad8a00;
  background: linear-gradient(135deg, #ffe15b, var(--yellow));
  color: #161200;
}

.button:hover { border-color: var(--blue); color: var(--text); }
.button.primary:hover { border-color: #ffe985; color: #161200; }

.hero-meta {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 13px;
}

.hero-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: 1px;
  background: var(--green);
}

.section {
  padding: 78px 0;
  border-bottom: 1px solid var(--line);
}

.section.subtle { background: var(--bg-raised); }

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading p,
.lede { color: var(--muted); }

.section-heading > p:last-child {
  margin: 16px 0 0;
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 28px;
}

.feature {
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.feature-index {
  margin-bottom: 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.plan {
  min-width: 0;
  min-height: 480px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  background: var(--surface-soft);
  backdrop-filter: blur(12px);
}

.plan.featured {
  border-color: #947a1d;
  background: rgba(62, 52, 20, 0.56);
}

.plan-top {
  min-height: 90px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.plan-name { font-size: 22px; }

.plan-badge {
  padding: 4px 8px;
  border: 1px solid #a88b27;
  border-radius: 999px;
  color: var(--yellow-soft);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.plan-price {
  margin: 8px 0 22px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.plan-price strong {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
}

.plan-price span { color: var(--muted); }

.plan ul {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.plan li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(51, 58, 70, 0.7);
  color: var(--muted-strong);
}

.plan li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--green);
  font-weight: 800;
}

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

.purchase-note {
  margin: 26px 0 0;
  color: var(--muted);
  text-align: center;
}

.purchase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.purchase-path {
  min-width: 0;
  padding-left: 20px;
  border-left: 2px solid var(--line-strong);
}

.purchase-path.domestic { border-left-color: var(--yellow-soft); }
.purchase-path.international { border-left-color: var(--blue); }

.purchase-path p { margin: 12px 0 0; color: var(--muted); }

.payment-status {
  margin-top: 17px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-chip {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 12px;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: workflow;
}

.workflow-step {
  position: relative;
  min-width: 0;
  padding: 20px 28px 20px 0;
  border-top: 1px solid var(--line-strong);
}

.workflow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 15px;
  right: 8px;
  color: var(--muted);
}

.workflow-step::before {
  counter-increment: workflow;
  content: "0" counter(workflow);
  display: block;
  margin-bottom: 18px;
  color: var(--yellow-soft);
  font-size: 12px;
  font-weight: 800;
}

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

.early-access-band {
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
  background: #10141a;
}

.early-access-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 54px;
}

.early-access-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted-strong);
}

.early-access-list li + li { margin-top: 10px; }

.page-main {
  min-height: calc(100svh - 180px);
  padding: 70px 0 96px;
}

.page-main > header {
  max-width: 860px;
  margin-bottom: 44px;
}

.page-main > header h1 { font-size: clamp(36px, 5vw, 62px); }

.page-main article {
  max-width: 900px;
  font-size: 17px;
}

.page-main article h2 {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 26px;
}

.page-main article h3 { margin-top: 28px; }
.page-main article p,
.page-main article li { color: #d2d6de; }
.page-main article li + li { margin-top: 9px; }
.page-main article code { color: var(--green); }

.notice {
  margin: 28px 0;
  padding: 17px 19px;
  border-left: 3px solid var(--yellow-soft);
  background: var(--surface);
  color: var(--muted-strong);
}

.steps {
  max-width: 880px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: instructions;
}

.steps li {
  position: relative;
  min-height: 64px;
  padding: 0 0 26px 56px;
  color: var(--muted-strong);
}

.steps li::before {
  counter-increment: instructions;
  content: counter(instructions);
  position: absolute;
  top: -2px;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--yellow-soft);
  font-weight: 800;
}

.faq-list {
  max-width: 900px;
  border-top: 1px solid var(--line);
}

.faq-item {
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item p { margin: 11px 0 0; color: var(--muted); }

.status-panel {
  max-width: 760px;
  padding: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
  backdrop-filter: blur(14px);
}

.status-panel.success { border-color: #287f61; }
.status-panel.cancelled { border-color: #75632d; }

.status-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border: 1px solid #287f61;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 29px;
}

.cancelled .status-icon { border-color: #75632d; color: var(--yellow-soft); }
.status-panel h1 { font-size: clamp(34px, 5vw, 52px); }
.status-panel h2 { margin-top: 32px; font-size: 23px; }
.status-panel p,
.status-panel li { color: var(--muted-strong); }

.site-footer {
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 780;
}

.footer-brand img { width: 30px; height: 30px; border-radius: 6px; }

.footer-meta { margin-top: 10px; max-width: 480px; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 9px 20px;
  align-content: start;
}

.footer-links a { color: var(--muted-strong); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
    background: #11151c;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
  }

  .nav-links[data-open="true"] { display: flex; }

  .nav-links a {
    min-height: 42px;
    padding: 9px 11px;
    display: flex;
    align-items: center;
  }

  .nav-links .language-link { padding-left: 11px; border-left: 0; }
  .nav-links .nav-cta { margin-top: 5px; justify-content: center; }

  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan { min-height: 440px; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 74px; }
  .nav-wrap { min-height: 62px; }
  .brand small { display: none; }

  .hero {
    min-height: 650px;
    align-items: end;
    background-position: 50% 62px;
    background-size: 174px;
  }

  .hero-copy { padding: 258px 0 50px; }
  h1 { max-width: 100%; font-size: 39px; overflow-wrap: break-word; }
  .hero-lead { font-size: 17px; }
  .actions { align-items: stretch; flex-direction: column; }
  .actions .button { width: 100%; }
  .hero-meta { gap: 7px 12px; }

  .section { padding: 58px 0; }
  .feature-grid,
  .pricing-grid,
  .purchase-grid,
  .workflow,
  .early-access-inner { grid-template-columns: 1fr; }

  .feature-grid { gap: 25px; }
  .pricing-grid { gap: 12px; }
  .plan { min-height: auto; }
  .plan-top { min-height: 66px; }
  .plan-price strong { font-size: 47px; }

  .purchase-grid { gap: 32px; }
  .workflow-step { padding-right: 0; }
  .workflow-step:not(:last-child)::after { display: none; }
  .early-access-inner { gap: 24px; }

  .page-main { padding-top: 52px; }
  .page-main > header h1 { font-size: 38px; overflow-wrap: break-word; }
  .page-main article { font-size: 16px; }
  .status-panel { padding: 26px 20px; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 390px) {
  .nav-wrap,
  .hero-inner,
  .section-inner,
  .page-main,
  .footer-inner,
  .early-access-inner { width: min(calc(100% - 30px), var(--max)); }
  h1 { font-size: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
