:root {
  --bg: #041126;
  --bg-soft: #071a36;
  --panel: rgba(10, 31, 61, .78);
  --panel-solid: #0a2040;
  --line: rgba(132, 181, 255, .16);
  --text: #f4f8ff;
  --muted: #91a5c4;
  --blue: #2f7bff;
  --cyan: #20d6c7;
  --violet: #8358ff;
  --amber: #f5b83d;
  --danger: #ff5c68;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 8, 25, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 4%, rgba(31, 118, 255, .18), transparent 28rem),
    radial-gradient(circle at 8% 38%, rgba(32, 214, 199, .08), transparent 24rem),
    var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.55;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 24px);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 17, 38, .82);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 800; white-space: nowrap; }
.logo-mark { position: relative; display: inline-block; width: 34px; height: 34px; transform: rotate(45deg); }
.logo-mark::before, .logo-mark::after, .logo-mark i {
  content: ""; position: absolute; width: 17px; height: 17px; border: 4px solid var(--blue); border-radius: 8px;
}
.logo-mark::before { left: 0; top: 0; border-color: var(--cyan); }
.logo-mark::after { right: 0; bottom: 0; }
.logo-mark i:first-child { right: 0; top: 0; border-color: #4ca4ff; }
.logo-mark i:last-child { left: 0; bottom: 0; border-color: #625cff; }
.desktop-nav { display: flex; align-items: center; gap: 30px; color: #b9c7dc; font-size: 14px; }
.desktop-nav a { position: relative; padding: 27px 0; }
.desktop-nav a:hover, .desktop-nav a.active { color: white; }
.desktop-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,.04); cursor: pointer; font-size: 20px;
}
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 22px; border: 0; border-radius: 13px; cursor: pointer;
  color: white; font-weight: 700; background: linear-gradient(135deg, #2470ff, #2b87ff);
  box-shadow: 0 12px 30px rgba(47, 123, 255, .25); transition: .2s ease;
}
.button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.button.small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.button.ghost { border: 1px solid var(--line); background: rgba(255,255,255,.035); box-shadow: none; }
.button.full { width: 100%; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.text-button { border: 0; background: none; color: #91baff; cursor: pointer; }

main { overflow: hidden; }
.hero {
  position: relative; width: min(1240px, 90vw); min-height: 570px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw;
}
.hero-copy { z-index: 2; padding: 70px 0; }
.eyebrow { color: #5da5ff; font-size: 11px; font-weight: 800; letter-spacing: .19em; }
.hero h1 { margin: 17px 0 20px; font-size: clamp(44px, 5vw, 72px); line-height: 1.13; letter-spacing: -.04em; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #56a5ff, #1fd9c8); color: transparent; background-clip: text; }
.hero-copy > p { max-width: 550px; margin: 0; color: #9db0cc; font-size: 17px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.trust-line { display: flex; gap: 23px; margin-top: 28px; color: #8097b8; font-size: 13px; }
.hero-visual { position: relative; min-height: 470px; display: grid; place-items: center; perspective: 800px; }
.globe {
  position: relative; width: min(330px, 28vw); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(99, 174, 255, .8);
  background:
    radial-gradient(circle at 35% 28%, rgba(111, 205, 255, .8), transparent 5%),
    radial-gradient(circle at 53% 62%, rgba(32, 214, 199, .45), transparent 4%),
    radial-gradient(circle at 42% 42%, #105bba, #073379 58%, #061e4f);
  box-shadow: inset -28px -18px 50px rgba(0,0,0,.38), 0 0 80px rgba(31,125,255,.33);
}
.globe::before, .globe::after {
  content: ""; position: absolute; inset: 10%; border-radius: 50%; border: 1px solid rgba(135,204,255,.25);
}
.globe::before { transform: rotate(60deg); }
.globe::after { transform: rotate(-60deg); }
.longitude, .latitude { position: absolute; inset: 6% 36%; border: 1px solid rgba(135,204,255,.3); border-radius: 50%; }
.latitude { inset: 36% 6%; }
.dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #6bf7e7; box-shadow: 0 0 18px #6bf7e7; }
.d1 { left: 22%; top: 30%; }.d2 { right: 20%; top: 42%; }.d3 { left: 48%; bottom: 22%; }
.orbit { position: absolute; width: 125%; height: 46%; border: 2px solid rgba(52, 150, 255, .42); border-radius: 50%; transform: rotate(-9deg); box-shadow: 0 0 22px rgba(52,150,255,.2); }
.orbit-b { width: 108%; transform: rotate(17deg); border-color: rgba(32,214,199,.23); }
.float-card { position: absolute; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(8,35,72,.78); box-shadow: var(--shadow); backdrop-filter: blur(15px); }
.float-card.sim { left: 4%; top: 28%; width: 82px; height: 104px; border-radius: 18px; color: var(--cyan); font-weight: 800; transform: rotate(-11deg); }
.float-card.cloud { right: 1%; bottom: 24%; width: 92px; height: 72px; border-radius: 22px; color: #69aaff; font-size: 36px; }

.feature-strip {
  width: min(1240px, 90vw); margin: -12px auto 60px; padding: 19px 22px;
  display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line);
  border-radius: 17px; background: rgba(8,29,60,.76); box-shadow: var(--shadow);
}
.feature-strip > div { display: flex; justify-content: center; align-items: center; gap: 13px; border-right: 1px solid var(--line); }
.feature-strip > div:last-child { border: 0; }
.feature-strip span { color: var(--cyan); font-size: 25px; }
.feature-strip p { display: flex; flex-direction: column; margin: 0; }
.feature-strip small { color: var(--muted); }
.section { width: min(1240px, 90vw); margin: 0 auto 86px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 25px; }
.section h2 { margin: 5px 0 0; font-size: 30px; }
.section-note { color: var(--muted); font-size: 13px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.category-card {
  position: relative; min-height: 176px; padding: 25px; display: flex; flex-direction: column;
  justify-content: space-between; overflow: hidden; border: 1px solid var(--line);
  border-radius: var(--radius); background: linear-gradient(145deg, rgba(14,42,82,.92), rgba(7,25,51,.92));
  transition: .25s ease;
}
.category-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -40px; bottom: -55px; border-radius: 50%; background: var(--card-color); filter: blur(38px); opacity: .2; }
.category-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--card-color) 50%, transparent); }
.category-card.blue { --card-color: var(--blue); }.category-card.teal { --card-color: var(--cyan); }
.category-card.violet { --card-color: var(--violet); }.category-card.amber { --card-color: var(--amber); }
.category-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; color: var(--card-color); font-size: 28px; background: color-mix(in srgb, var(--card-color) 14%, transparent); border: 1px solid color-mix(in srgb, var(--card-color) 34%, transparent); }
.category-card h3 { margin: 16px 0 2px; font-size: 18px; }.category-card p { margin: 0; color: var(--muted); font-size: 13px; }
.category-card > b { position: absolute; right: 24px; top: 29px; color: #7f96b9; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.product-card {
  min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(10,34,69,.9), rgba(6,23,48,.94));
  box-shadow: 0 16px 42px rgba(0,4,18,.18); transition: .2s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(71,145,255,.5); }
.product-type { display: inline-flex; padding: 4px 9px; border-radius: 99px; background: rgba(47,123,255,.13); color: #77afff; font-size: 11px; font-weight: 700; }
.product-card h3 { min-height: 48px; margin: 16px 0 6px; font-size: 17px; line-height: 1.4; }
.product-desc { height: 42px; margin: 0; overflow: hidden; color: var(--muted); font-size: 12px; }
.product-meta { display: flex; gap: 8px; margin-top: 13px; color: #7189ac; font-size: 11px; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.price { font-size: 21px; font-weight: 800; color: var(--cyan); }
.buy-button { border: 0; border-radius: 10px; padding: 8px 13px; cursor: pointer; background: var(--blue); color: white; font-weight: 700; font-size: 12px; }
.loading-card, .empty-card { grid-column: 1 / -1; padding: 44px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.service-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; padding: 45px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(135deg, rgba(12,42,81,.75), rgba(5,25,51,.75)); }
.service-copy h2 { margin: 8px 0; }.service-copy p { color: var(--muted); }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.service-list > div { display: flex; gap: 13px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); }
.service-list b { color: #5398ff; }.service-list span { display: flex; flex-direction: column; }.service-list small { color: var(--muted); }
footer { min-height: 210px; padding: 45px 5vw 90px; text-align: center; border-top: 1px solid var(--line); background: rgba(2,10,24,.65); color: var(--muted); }
.footer-brand { justify-content: center; color: white; } footer p { margin: 15px 0 4px; }
.mobile-nav { display: none; }

.modal { position: fixed; z-index: 60; inset: 0; display: none; place-items: center; padding: 20px; }
.modal.open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,7,20,.78); backdrop-filter: blur(9px); }
.modal-panel { position: relative; z-index: 1; width: min(480px, 100%); max-height: min(760px, 90vh); overflow: auto; padding: 30px; border: 1px solid var(--line); border-radius: 25px; background: #081c39; box-shadow: var(--shadow); }
.modal-close { position: absolute; right: 16px; top: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.05); color: #adc0da; font-size: 25px; cursor: pointer; }
.modal-panel h2 { margin: 8px 0; }.muted { color: var(--muted); }
.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 22px 0; padding: 5px; border-radius: 12px; background: rgba(0,0,0,.22); }
.auth-tabs button { padding: 9px 6px; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; font-size: 13px; }
.auth-tabs button.active { background: #163d75; color: white; }
.auth-content { display: none; }.auth-content.active { display: block; }
.auth-content label { display: grid; gap: 7px; margin-bottom: 15px; color: #c3d1e5; font-size: 13px; }
.auth-content input, .quantity-row input {
  width: 100%; height: 47px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: 11px; outline: none; color: white; background: rgba(0,0,0,.2);
}
.auth-content input:focus, .quantity-row input:focus { border-color: var(--blue); }
.auth-content small { display: block; margin-top: 13px; color: var(--muted); text-align: center; }
.telegram-login { min-height: 70px; display: grid; place-items: center; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.03); }
.form-message { min-height: 20px; margin: 14px 0 0; color: #ff8991; font-size: 13px; }
.account-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.avatar { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, var(--blue), var(--cyan)); font-weight: 900; font-size: 20px; }
.account-head h2 { margin: 0; }.account-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wallet-item { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.wallet-item small { display: block; color: var(--muted); }.wallet-item b { display: block; margin-top: 5px; font-size: 20px; }
.account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.account-actions button { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.035); cursor: pointer; }
.bind-box { padding: 20px; text-align: center; border: 1px dashed rgba(47,123,255,.45); border-radius: 15px; color: var(--muted); }
.orders-list { display: grid; gap: 9px; margin-top: 18px; }
.order-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; }
.order-row span:last-child { color: var(--muted); text-align: right; }
.proxy-box { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(0,0,0,.14); }
.proxy-box code { display: block; margin: 8px 0; word-break: break-all; color: #72ddcf; }
.purchase-summary { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); }
.purchase-summary h3 { margin: 0 0 5px; }.purchase-summary p { margin: 0; color: var(--muted); }
.quantity-row { display: grid; grid-template-columns: 1fr 100px; align-items: center; gap: 15px; margin: 20px 0; }
.purchase-total { display: flex; justify-content: space-between; margin: 15px 0 20px; font-size: 18px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 35px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 12px; background: #173a6b; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #722c38; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding-bottom: 5px; }
  .hero-visual { min-height: 390px; }
  .globe { width: 300px; }
  .feature-strip { grid-template-columns: 1fr 1fr; }
  .feature-strip > div { padding: 10px; }
  .feature-strip > div:nth-child(2) { border-right: 0; }
  .category-grid, .product-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 70px; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .site-header { height: 64px; padding: 0 17px; }
  .brand { font-size: 17px; gap: 8px; }.logo-mark { width: 29px; height: 29px; }
  .logo-mark::before, .logo-mark::after, .logo-mark i { width: 15px; height: 15px; border-width: 3px; }
  .header-actions .icon-button { display: none; }.button.small { padding: 0 13px; font-size: 12px; }
  .hero { width: calc(100% - 34px); display: block; }
  .hero-copy { padding: 48px 0 5px; text-align: left; }
  .hero h1 { margin-top: 13px; font-size: clamp(39px, 12vw, 54px); }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { margin-top: 25px; }.hero-actions .button { padding: 0 17px; font-size: 13px; }
  .trust-line { gap: 12px; flex-wrap: wrap; margin-top: 20px; font-size: 11px; }
  .hero-visual { min-height: 285px; margin-top: 10px; }
  .globe { width: 215px; }.float-card.sim { left: 2%; width: 58px; height: 75px; font-size: 12px; }
  .float-card.cloud { right: 2%; width: 63px; height: 50px; font-size: 25px; }
  .feature-strip { width: calc(100% - 34px); margin: 8px auto 50px; grid-template-columns: 1fr 1fr; padding: 9px; }
  .feature-strip > div { justify-content: flex-start; padding: 10px 7px; }
  .feature-strip span { font-size: 20px; }.feature-strip b { font-size: 12px; }.feature-strip small { font-size: 9px; }
  .section { width: calc(100% - 34px); margin-bottom: 58px; }
  .section h2 { font-size: 24px; }.section-note { display: none; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .category-card { min-height: 154px; padding: 17px; }.category-icon { width: 45px; height: 45px; font-size: 23px; }
  .category-card h3 { font-size: 14px; }.category-card p { font-size: 10px; }.category-card > b { right: 16px; top: 20px; }
  .product-grid { display: flex; overflow-x: auto; gap: 11px; margin-right: -17px; padding-right: 17px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .product-grid::-webkit-scrollbar { display: none; }
  .product-card { flex: 0 0 78vw; max-width: 310px; scroll-snap-align: start; }
  .loading-card, .empty-card { flex: 0 0 calc(100vw - 34px); }
  .service-section { display: block; padding: 25px 19px; }.service-list { grid-template-columns: 1fr; margin-top: 25px; }
  footer { padding-bottom: 30px; }
  .mobile-nav {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    height: calc(66px + env(safe-area-inset-bottom)); padding: 7px 8px env(safe-area-inset-bottom);
    display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line);
    background: rgba(4,16,35,.94); backdrop-filter: blur(18px);
  }
  .mobile-nav a, .mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 0; background: none; color: #7f93b2; font-size: 10px; }
  .mobile-nav span { font-size: 21px; }.mobile-nav .active { color: #4c98ff; }
  .modal { align-items: end; padding: 0; }
  .modal-panel { width: 100%; max-height: 88vh; border-radius: 24px 24px 0 0; padding: 27px 20px calc(24px + env(safe-area-inset-bottom)); }
  .wallet-grid { grid-template-columns: 1fr 1fr; }.wallet-item { padding: 13px; }.wallet-item b { font-size: 16px; }
}
