:root {
  --ink: #10203b;
  --muted: #697a94;
  --line: #dfe7f3;
  --blue: #2d6ff4;
  --blue-deep: #1d4fc0;
  --navy: #08182e;
  --panel: rgba(255, 255, 255, .9);
  --green: #0d9f70;
  --red: #c33c3c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink);
  background:
    radial-gradient(circle at 80% 0, rgba(75, 146, 255, .18), transparent 30%),
    radial-gradient(circle at 4% 32%, rgba(112, 89, 255, .1), transparent 24%),
    #f6f8fc;
  font-family: Inter, "Microsoft YaHei UI", "PingFang SC", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }
.eyebrow { display: block; color: #6e86aa; font-size: 10px; font-weight: 900; letter-spacing: .15em; }

.portal-nav {
  position: sticky; top: 0; z-index: 10; height: 72px; padding: 0 6vw;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(246, 249, 255, .82); border-bottom: 1px solid rgba(212, 224, 241, .75);
  backdrop-filter: blur(18px);
}
.portal-brand { display: flex; align-items: center; gap: 11px; }
.portal-brand > span:last-child { display: grid; gap: 1px; }
.portal-brand b { font-size: 17px; }
.portal-brand small { color: #8090a7; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.brand-orb {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px;
  color: white; font-weight: 900; background: linear-gradient(135deg, #42c9ff, #416dff 58%, #aa5cff);
  box-shadow: 0 12px 26px rgba(53, 108, 235, .24);
}
.portal-nav nav { display: flex; align-items: center; gap: 26px; color: #5e6f87; font-size: 12px; font-weight: 700; }
.nav-cta { padding: 9px 14px; color: white; border-radius: 10px; background: var(--navy); }

main { overflow: hidden; }
.portal-hero {
  min-height: 700px; padding: 90px 7vw 76px; display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: 55px; position: relative; overflow: hidden; background: #061326;
}
.portal-hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("/assets/hero-delivery-orbit.webp") center / cover no-repeat;
  transform: scale(1.02);
}
.portal-hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 15, 32, .96) 0%, rgba(4, 15, 32, .75) 41%, rgba(4, 15, 32, .18) 78%),
    linear-gradient(0deg, rgba(4, 15, 32, .72), transparent 45%);
}
.portal-hero > * { position: relative; z-index: 1; }
.hero-copy .eyebrow { color: #77b7ff; }
.hero-copy h1 { color: white; text-shadow: 0 18px 60px rgba(0, 0, 0, .35); }
.hero-copy p { color: #adc2de; }
.hero-kpis { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.hero-kpis span {
  padding: 9px 11px; border: 1px solid rgba(144, 188, 246, .2); border-radius: 9px;
  color: #8fa9c9; background: rgba(10, 31, 59, .62); backdrop-filter: blur(10px); font-size: 9px; font-weight: 800;
}
.hero-kpis b { color: #68bdff; margin-right: 4px; font-size: 12px; }
.hero-copy h1 { margin: 13px 0 17px; font-size: clamp(38px, 5vw, 70px); line-height: 1.04; letter-spacing: -.055em; }
.hero-copy p { max-width: 650px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.hero-actions { display: flex; gap: 10px; margin-top: 28px; }
.primary, .ghost {
  display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 11px;
  padding: 12px 18px; font-size: 12px; font-weight: 900; cursor: pointer;
}
.primary { color: white; background: linear-gradient(135deg, #3984ff, #245cda); box-shadow: 0 12px 25px rgba(49, 103, 226, .2); }
.ghost { color: #40516a; background: white; border: 1px solid var(--line); }
.portal-hero .ghost { color: #d3e4fa; background: rgba(15, 38, 70, .72); border-color: rgba(144, 188, 246, .23); backdrop-filter: blur(10px); }
.hero-console {
  align-self: end; min-width: 0; max-width: 470px; justify-self: end; border-radius: 24px; padding: 12px; color: #dceaff;
  background: linear-gradient(145deg, rgba(14, 43, 79, .92), rgba(5, 22, 44, .88));
  border: 1px solid rgba(138, 190, 255, .17); box-shadow: 0 35px 80px rgba(0, 8, 24, .42);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg); backdrop-filter: blur(20px);
}
.console-top { height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.console-top i { width: 7px; height: 7px; border-radius: 50%; background: #56779e; }
.console-top i:first-child { background: #ff7182; }
.console-top i:nth-child(2) { background: #ffc75d; }
.console-top i:nth-child(3) { background: #42d7a1; }
.console-top span { margin-left: auto; color: #6d8eb7; font: 10px "Cascadia Code", monospace; }
.console-top em { margin-left: 8px; color: #5ff0bb; font-size: 8px; font-style: normal; font-weight: 900; }
.console-body { padding: 28px; display: grid; gap: 19px; }
.console-body div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.console-body span { color: #6e91ba; font-size: 11px; }
.console-body b { font-size: 13px; }

.portal-section { padding: 68px 7vw; }
.portal-section:nth-of-type(even) { background: rgba(255, 255, 255, .54); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.section-head h2 { margin: 7px 0 0; font-size: 31px; letter-spacing: -.04em; }
.count-pill { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-size: 10px; font-weight: 800; }
.template-filters { display: flex; gap: 9px; margin: -10px 0 18px; }
.template-filters input, .template-filters select {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  color: var(--ink); background: white; outline: none;
}
.template-filters input { min-width: 280px; flex: 1; max-width: 440px; }
.public-template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.public-template {
  display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white;
  box-shadow: 0 18px 48px rgba(30, 50, 82, .07); transition: .2s ease;
}
.public-template:hover { transform: translateY(-4px); box-shadow: 0 28px 60px rgba(30, 50, 82, .12); }
.public-cover {
  min-height: 175px; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end;
  color: white; background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .34), transparent 25%),
    linear-gradient(145deg, rgba(36, 100, 220, .72), rgba(71, 51, 176, .62) 58%, rgba(151, 54, 167, .66)),
    url("/assets/hero-delivery-orbit.webp") center / cover no-repeat;
}
.public-cover small { opacity: .75; font-size: 9px; }
.public-cover b { margin-top: 7px; font-size: 24px; letter-spacing: -.04em; }
.public-info { padding: 17px; display: grid; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 8px; border-radius: 7px; background: #eff4fb; color: #62748e; font-size: 9px; font-weight: 800; }
.public-info button { width: 100%; }
.public-description { min-height: 34px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.empty-panel, .success-panel {
  min-height: 180px; padding: 52px 30px; border: 1px solid #cbdaee; border-radius: 18px; text-align: center;
  background:
    linear-gradient(rgba(5, 19, 40, .78), rgba(5, 19, 40, .9)),
    url("/assets/hero-delivery-orbit.webp") center 56% / cover no-repeat;
  color: white;
}
.empty-panel p { margin: 7px 0 0; color: #9eb3cd; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.process-grid article {
  padding: 22px; border-radius: 18px; background:
    radial-gradient(circle at 90% 0, rgba(75, 136, 255, .12), transparent 38%), white;
  border: 1px solid var(--line);
}
.process-grid b { color: #88a3ca; font-size: 11px; }
.process-grid h3 { margin: 24px 0 8px; font-size: 17px; }
.process-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.request-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.request-copy {
  padding: 33px; border-radius: 22px; color: white; position: sticky; top: 95px;
  background:
    radial-gradient(circle at 92% 8%, rgba(89, 171, 255, .28), transparent 32%),
    linear-gradient(145deg, #0b274c, #07182d 72%);
  box-shadow: 0 26px 65px rgba(16, 40, 73, .2);
}
.request-copy h2 { margin: 8px 0 13px; font-size: 34px; letter-spacing: -.04em; }
.request-copy p { color: #9eb5d0; font-size: 12px; line-height: 1.85; }
.request-form {
  padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: white;
  display: grid; grid-template-columns: 1fr 1fr; gap: 13px; box-shadow: 0 22px 60px rgba(31, 50, 80, .08);
}
.request-form label { display: grid; gap: 6px; }
.request-form label.full { grid-column: 1 / -1; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.request-form label span { color: #65768e; font-size: 10px; font-weight: 900; }
.request-form input, .request-form select, .request-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #f9fbfe;
  padding: 11px; color: var(--ink); outline: none;
}
.request-form input:focus, .request-form select:focus, .request-form textarea:focus { border-color: #95b8ff; box-shadow: 0 0 0 3px rgba(49, 109, 242, .08); }
.request-form textarea { resize: vertical; }
.consent { display: flex !important; align-items: flex-start; gap: 8px !important; color: var(--muted); font-size: 10px; }
.consent input { width: auto; margin-top: 2px; accent-color: var(--blue); }
.form-footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.form-footer span { margin-right: auto; color: var(--red); font-size: 10px; }
.success-panel { color: var(--green); font-weight: 800; }

.track-section {
  display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 45px;
  background: #07182d !important; color: white;
}
.track-section h2 { margin: 8px 0 10px; font-size: 32px; letter-spacing: -.04em; }
.track-section p { margin: 0; color: #8ea8c8; font-size: 11px; line-height: 1.7; }
.track-form {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 9px; padding: 14px;
  border: 1px solid rgba(150, 190, 242, .18); border-radius: 16px; background: rgba(14, 36, 67, .72);
}
.track-form input {
  min-width: 0; border: 1px solid rgba(150, 190, 242, .17); border-radius: 10px;
  padding: 11px; color: white; background: rgba(6, 19, 38, .72); outline: none;
}
.track-result {
  grid-column: 2; padding: 15px; border-radius: 14px; color: #bfe7d5;
  background: rgba(15, 65, 58, .55); border: 1px solid rgba(85, 222, 171, .2); font-size: 11px;
}
.track-history { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.track-history span { padding: 5px 7px; border-radius: 7px; background: rgba(255, 255, 255, .07); font-size: 9px; }
.track-downloads { display: grid; gap: 6px; margin-top: 14px; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, .1); }
.track-downloads a { color: #77c4ff; font-size: 10px; }

footer {
  padding: 32px 7vw; display: flex; align-items: center; justify-content: space-between;
  color: #8292a9; background: #09182d; font-size: 10px;
}
footer div { display: grid; gap: 6px; }
footer b { color: white; font-size: 12px; }
.footer-links { display: flex; align-items: center; gap: 16px; }
.footer-links a:hover { color: white; }

@media (max-width: 900px) {
  .portal-hero, .request-section, .track-section { grid-template-columns: 1fr; }
  .hero-console { transform: none; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .track-result { grid-column: auto; }
}
@media (max-width: 600px) {
  .portal-nav { padding: 0 20px; }
  .portal-nav nav a:not(.nav-cta) { display: none; }
  .portal-hero, .portal-section { padding-left: 20px; padding-right: 20px; }
  .portal-hero { padding-top: 45px; }
  .hero-copy h1 { font-size: 39px; }
  .request-form { grid-template-columns: 1fr; }
  .request-form label.full, .form-footer { grid-column: auto; }
  .process-grid { grid-template-columns: 1fr; }
  .track-form { grid-template-columns: 1fr; }
  .template-filters { flex-direction: column; }
  .template-filters input { min-width: 0; max-width: none; }
}
