:root {
  --bg: #f6f8fc;
  --panel: #ffffff;
  --panel-soft: #f1f5fb;
  --text: #121b2d;
  --muted: #6f7c91;
  --line: #e4e9f2;
  --navy: #10192b;
  --primary: #2f67f6;
  --primary-dark: #224dcc;
  --green: #16b981;
  --orange: #ef9b2d;
  --danger: #ef596f;
  --shadow: 0 18px 50px rgba(30, 45, 78, .10);
}

body.dark {
  --bg: #101724;
  --panel: #172132;
  --panel-soft: #202c40;
  --text: #eef3ff;
  --muted: #9aa9bf;
  --line: #2b3850;
  --navy: #08101e;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.locked { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
.container { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-logo {
  width: 42px; height: 42px; display: grid; place-items: center;
  color: white; font-weight: 950; border-radius: 14px;
  background: linear-gradient(135deg, #315ff1, #17b99a);
  box-shadow: 0 10px 25px rgba(49, 95, 241, .24);
}
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: 16px; letter-spacing: 1px; }
.brand-copy small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.desktop-nav { display: flex; gap: 26px; margin-left: auto; }
.desktop-nav a { text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 750; }
.desktop-nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions button { border-radius: 12px; font-weight: 850; }
.theme-toggle, .menu-toggle {
  width: 40px; height: 40px; border: 0; background: var(--panel-soft); color: var(--text);
}
.login-outline { border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 10px 16px; }
.register-btn { border: 0; background: var(--navy); color: white; padding: 11px 18px; }
.menu-toggle { display: none; font-size: 19px; }

.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(340px, 88vw);
  height: 100dvh;
  min-height: 100vh;
  z-index: 110;
  transform: translate3d(105%, 0, 0);
  visibility: hidden;
  pointer-events: none;
  transition: transform .24s ease, visibility 0s linear .24s;
  background: var(--panel);
  padding: max(22px, env(safe-area-inset-top)) 22px
           max(22px, env(safe-area-inset-bottom));
  box-shadow: -18px 0 50px rgba(0,0,0,.20);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
  transition: transform .24s ease;
}
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; font-weight: 900; margin-bottom: 26px; }
.mobile-menu-head button { border: 0; background: var(--panel-soft); color: var(--text); width: 38px; height: 38px; border-radius: 12px; font-size: 21px; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { padding: 15px 2px; text-decoration: none; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 750; }
.mobile-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 24px; }
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7,12,23,.52);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility 0s linear .22s;
  touch-action: none;
}
.menu-backdrop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .22s ease;
}

.section-dots {
  background-image: radial-gradient(color-mix(in srgb, var(--primary) 16%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero { min-height: 720px; display: flex; align-items: center; padding: 85px 0 95px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.uptime-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(34,49,80,.06);
  color: var(--muted); font-size: 9px; letter-spacing: 1.2px; font-weight: 900;
}
.uptime-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(22,185,129,.10); }
.hero-copy h1 { font-size: clamp(46px, 6vw, 73px); line-height: 1.04; letter-spacing: -3px; margin: 23px 0 22px; }
.hero-copy h1 em { color: var(--primary); font-style: normal; }
.hero-copy > p { max-width: 610px; color: var(--muted); font-size: 16px; line-height: 1.8; margin: 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 31px; }
.hero-actions a {
  min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  border-radius: 13px; padding: 0 23px; text-decoration: none; font-size: 11px; text-transform: uppercase;
  letter-spacing: 1px; font-weight: 900;
}
.primary-cta { color: white; background: var(--navy); box-shadow: 0 14px 30px rgba(15,25,44,.20); }
.secondary-cta { background: var(--panel); border: 1px solid var(--line); color: var(--text); }
.trust-row { display: flex; gap: 36px; margin-top: 38px; }
.trust-row div { position: relative; }
.trust-row div:not(:last-child)::after { content: ""; position: absolute; right: -18px; top: 4px; width: 1px; height: 35px; background: var(--line); }
.trust-row strong, .trust-row span { display: block; }
.trust-row strong { font-size: 17px; }
.trust-row span { color: var(--muted); font-size: 9px; margin-top: 4px; text-transform: uppercase; letter-spacing: .8px; font-weight: 750; }

.hero-visual { position: relative; min-height: 470px; display: grid; place-items: center; }
.hero-visual::before {
  content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(48,103,246,.16), transparent 67%);
}
.terminal-window {
  width: min(500px, 100%); position: relative; z-index: 2; border-radius: 22px; overflow: hidden;
  background: #0e1728; color: #c9d6ef; box-shadow: 0 30px 70px rgba(13,23,42,.28); transform: rotate(-2deg);
}
.terminal-head { height: 47px; display: flex; align-items: center; gap: 16px; padding: 0 17px; background: #172237; border-bottom: 1px solid #26334a; }
.terminal-head div { display: flex; gap: 6px; }
.terminal-head i { width: 9px; height: 9px; border-radius: 50%; background: #ee5a6f; }
.terminal-head i:nth-child(2) { background: #efad3a; }
.terminal-head i:nth-child(3) { background: #18ba87; }
.terminal-head span { color: #7f8ca4; font-family: monospace; font-size: 10px; }
.terminal-body { padding: 30px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.9; }
.terminal-body p { margin: 0; }
.terminal-body b { color: #6989ff; }
.terminal-body .green { color: #29d69f; }
.terminal-body .blue { color: #68a2ff; }
.terminal-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px!important; padding: 7px 10px; border-radius: 8px; background: #16273a; }
.terminal-status span { width: 7px; height: 7px; border-radius: 50%; background: #29d69f; }
.floating-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel);
  box-shadow: var(--shadow);
}
.floating-card > span { width: 38px; height: 38px; display: grid; place-items: center; background: var(--panel-soft); border-radius: 12px; }
.floating-card small, .floating-card strong { display: block; }
.floating-card small { color: var(--muted); font-size: 8px; letter-spacing: .7px; }
.floating-card strong { margin-top: 3px; font-size: 13px; }
.speed-card { left: -10px; bottom: 70px; }
.secure-card { right: -10px; top: 65px; }

.catalog-section { padding: 100px 0; background: var(--panel-soft); }
.section-heading.centered { text-align: center; max-width: 690px; margin: 0 auto 38px; }
.section-heading.left { max-width: 540px; }
.eyebrow { color: var(--primary); font-size: 10px; letter-spacing: 1.8px; font-weight: 950; }
.eyebrow.light { color: #9bb6ff; }
.section-heading h2 { font-size: clamp(31px, 4vw, 48px); letter-spacing: -1.8px; line-height: 1.1; margin: 9px 0 13px; }
.section-heading p { color: var(--muted); line-height: 1.7; margin: 0; }
.catalog-filter { display: flex; justify-content: center; gap: 8px; margin-bottom: 27px; overflow-x: auto; padding: 2px; }
.catalog-filter button { white-space: nowrap; border: 1px solid var(--line); background: var(--panel); color: var(--muted); padding: 10px 15px; border-radius: 999px; font-size: 10px; font-weight: 850; }
.catalog-filter button.active { background: var(--navy); color: white; border-color: var(--navy); }

.server-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.server-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 21px;
  box-shadow: 0 12px 38px rgba(34,49,80,.06); transition: .2s ease;
}
.server-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.server-card.hidden { display: none; }
.server-card-head { display: flex; align-items: center; gap: 11px; }
.flag-wrap { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 14px; background: var(--panel-soft); font-size: 25px; }
.server-card-head h3 { margin: 0 0 4px; font-size: 15px; }
.server-card-head p { margin: 0; color: var(--muted); font-size: 10px; }
.server-online { margin-left: auto; color: #0c996e; background: #e2faef; border-radius: 999px; padding: 6px 8px; font-size: 8px; font-weight: 900; }
.protocol-block { margin-top: 22px; }
.protocol-block > span, .server-meta span, .price-box > span { color: var(--muted); font-size: 8px; letter-spacing: 1px; font-weight: 900; }
.protocol-block div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.protocol-block b { padding: 5px 7px; border-radius: 7px; background: var(--panel-soft); color: var(--muted); font-size: 8px; }
.server-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.server-meta strong, .server-meta span { display: block; }
.server-meta strong { margin-top: 5px; font-size: 12px; }
.capacity-bar { height: 6px; margin-top: 11px; background: var(--line); border-radius: 999px; overflow: hidden; }
.capacity-bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.capacity-bar.warning i { background: var(--orange); }
.capacity-bar.danger i { background: var(--danger); }
.price-box { margin-top: 20px; padding: 16px; border-radius: 15px; background: linear-gradient(135deg,#edf2ff,#f8faff); text-align: center; }
body.dark .price-box { background: linear-gradient(135deg,#233151,#202c40); }
.price-box strong { display: block; margin-top: 5px; color: var(--primary); font-size: 21px; }
.price-box small { color: var(--muted); font-size: 9px; font-weight: 650; }
.choose-server { width: 100%; border: 0; background: var(--navy); color: white; margin-top: 13px; padding: 12px; border-radius: 12px; font-size: 10px; letter-spacing: .7px; font-weight: 900; }
.catalog-action { text-align: center; margin-top: 30px; }
.catalog-action button { border: 0; color: white; background: var(--navy); padding: 14px 23px; border-radius: 13px; text-transform: uppercase; letter-spacing: .9px; font-size: 10px; font-weight: 900; }

.features-section { padding: 110px 0; }
.feature-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature-list article { display: flex; gap: 13px; padding: 18px; border: 1px solid var(--line); background: var(--panel); border-radius: 18px; }
.feature-icon { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; }
.feature-icon.blue { background: #e8efff; }
.feature-icon.green { background: #e4faef; }
.feature-icon.orange { background: #fff0de; }
.feature-icon.purple { background: #f2e9ff; }
.feature-list h3 { margin: 2px 0 7px; font-size: 14px; }
.feature-list p { color: var(--muted); margin: 0; font-size: 11px; line-height: 1.65; }
.platform-card {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px;
  margin-top: 12px; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel);
  box-shadow: 0 12px 38px rgba(34,49,80,.05);
}
.platform-card h3 { margin: 8px 0; font-size: 24px; }
.platform-card p { color: var(--muted); margin: 0; }
.platform-icons { display: flex; gap: 12px; }
.platform-icons span { width: 66px; height: 66px; display: grid; place-items: center; align-content: center; gap: 4px; border-radius: 16px; background: var(--panel-soft); color: var(--muted); font-size: 23px; }
.platform-icons small { font-size: 7px; text-transform: uppercase; font-weight: 900; }


.steps-section { padding: 100px 0; background: var(--panel-soft); }
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; }
.steps-grid article { padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 19px; }
.steps-grid b { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; color: var(--primary); background: #e8efff; font-size: 11px; }
body.dark .steps-grid b { background: #253558; }
.steps-grid span { display: block; margin: 18px 0 7px; font-weight: 900; font-size: 14px; }
.steps-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.faq-section { padding: 110px 0; }
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.faq-list { display: grid; gap: 9px; }
.faq-list article { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; }
.faq-list button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px; border: 0; background: transparent; color: var(--text); text-align: left; font-weight: 850; font-size: 12px; }
.faq-list p { display: none; margin: 0; padding: 0 17px 17px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.faq-list article.open p { display: block; }
.faq-list article.open button { color: var(--primary); }

.contact-section { padding: 0 0 105px; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 35px; border: 1px solid var(--line); background: var(--panel); border-radius: 24px; box-shadow: var(--shadow); }
.contact-card h2 { margin: 7px 0 8px; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-actions { display: flex; gap: 9px; }
.contact-actions a { display:inline-flex;align-items:center;justify-content:center;border-radius:12px;padding:12px 15px;font-size:10px;font-weight:900;text-decoration:none; }
.contact-actions a:first-child { border:0;color:white;background:#239bd7; }
.contact-actions a:last-child { border:0;color:white;background:#18ad71; }

.site-footer { padding: 65px 0 20px; color: #dce6f8; background: #0d1627; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 55px; }
.footer-brand .brand-copy strong { color: white; }
.footer-grid > div > p { max-width: 300px; color: #8796b0; font-size: 11px; line-height: 1.7; }
.footer-grid > div:not(:first-child) { display: grid; align-content: start; gap: 10px; }
.footer-grid > div > strong { color: white; font-size: 12px; margin-bottom: 5px; }
.footer-grid a, .footer-grid button { border: 0; padding: 0; background: transparent; text-align: left; text-decoration: none; color: #8796b0; font-size: 10px; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; margin-top: 40px; border-top: 1px solid #202d42; color: #65738d; font-size: 9px; }

.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 100; padding: 18px; align-items: center; justify-content: center;
  background: rgba(6,11,21,.66); backdrop-filter: blur(6px);
}
.modal-backdrop.show { display: flex; }
.login-modal {
  width: min(430px,100%); position: relative; padding: 30px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 25px; box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
.modal-close { position: absolute; right: 15px; top: 15px; border: 0; color: var(--muted); background: var(--panel-soft); width: 38px; height: 38px; border-radius: 12px; font-size: 20px; }
.login-logo { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 17px; color: white; background: linear-gradient(135deg,#315ff1,#17b99a); border-radius: 20px; font-weight: 950; font-size: 20px; }
.login-modal h2 { margin: 8px 0; }
.login-modal > p { color: var(--muted); margin: 0 0 20px; font-size: 12px; line-height: 1.6; }
.sso-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 11px; margin-top: 9px; border-radius: 13px; padding: 12px; font-weight: 850; }
.sso-button span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: white; color: #315ff1; }
.sso-button.google { border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.sso-button.telegram { border: 0; background: #229ed9; color: white; }
.login-note { margin-top: 17px; padding: 11px; color: var(--muted); background: var(--panel-soft); border-radius: 11px; font-size: 9px; }

.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 150; max-width: 320px;
  padding: 13px 16px; color: white; background: #111b2e; border-radius: 13px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25); opacity: 0; transform: translateY(15px); pointer-events: none; transition: .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .desktop-nav, .header-actions > .login-outline, .header-actions > .register-btn { display: none; }
  .menu-toggle { display: block; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero { padding-top: 65px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .hero-visual { min-height: 420px; }
  .server-grid { grid-template-columns: 1fr 1fr; }
  .feature-layout, .faq-layout { grid-template-columns: 1fr; gap: 38px; }
  .reseller-card { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 24px, 1160px); }
  .header-inner { min-height: 64px; }
  .brand-logo { width: 39px; height: 39px; }
  .theme-toggle, .menu-toggle { width: 38px; height: 38px; }
  .hero { min-height: auto; padding: 55px 0 70px; }
  .hero-copy h1 { font-size: 42px; letter-spacing: -2px; }
  .hero-copy > p { font-size: 13px; }
  .hero-actions { display: grid; }
  .trust-row { gap: 24px; }
  .trust-row div:not(:last-child)::after { right: -12px; }
  .trust-row span { font-size: 7px; }
  .hero-visual { min-height: 340px; }
  .terminal-window { transform: none; }
  .terminal-body { padding: 20px; font-size: 10px; }
  .floating-card { padding: 10px; }
  .speed-card { left: -2px; bottom: 25px; }
  .secure-card { right: -2px; top: 20px; }
  .catalog-section, .features-section, .steps-section, .faq-section { padding: 75px 0; }
  .server-grid, .feature-list, .steps-grid { grid-template-columns: 1fr; }
  .catalog-filter { justify-content: flex-start; }
  .platform-card { grid-template-columns: 1fr; padding: 22px; }
  .platform-icons { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; }
  .platform-icons span { width: auto; height: 55px; font-size: 18px; }
  .reseller-section { padding-bottom: 75px; }
  .reseller-card { padding: 28px 21px; border-radius: 23px; }
  .reseller-copy h2 { font-size: 29px; }
  .contact-card { display: block; padding: 24px; }
  .contact-actions { display: grid; margin-top: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { display: grid; gap: 7px; }
}

@media (max-width: 420px) {
  .hero-copy h1 { font-size: 36px; }
  .trust-row { gap: 17px; }
  .trust-row div:not(:last-child)::after { right: -9px; }
  .trust-row strong { font-size: 14px; }
  .floating-card small { font-size: 6px; }
  .floating-card strong { font-size: 10px; }
  .platform-icons { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
}


.menu-toggle {
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.mobile-menu button,
.mobile-menu a {
  touch-action: manipulation;
}
@supports not (height: 100dvh) {
  .mobile-menu { height: 100vh; }
}


/* Logo IRULTUN — Landing v1.3 */
.brand-logo.brand-logo-image {
  padding: 0;
  overflow: hidden;
  background: #101317;
  border: 1px solid rgba(65, 220, 230, .35);
}
.brand-logo.brand-logo-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.mobile-menu-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-menu-brand img {
  width: 43px;
  height: 43px;
  display: block;
  object-fit: cover;
  border-radius: 13px;
  background: #101317;
  border: 1px solid rgba(65, 220, 230, .32);
}
.mobile-menu-brand span {
  font-weight: 950;
  letter-spacing: 1px;
}
.login-logo.login-logo-image {
  overflow: hidden;
  padding: 0;
  background: #101317;
  border: 1px solid rgba(65, 220, 230, .35);
}
.login-logo.login-logo-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hero-brand-watermark {
  position: absolute;
  z-index: 1;
  width: 330px;
  height: 330px;
  object-fit: cover;
  border-radius: 70px;
  opacity: .055;
  filter: saturate(1.2);
  pointer-events: none;
}
.terminal-window,
.floating-card {
  position: relative;
  z-index: 2;
}
@media (max-width: 680px) {
  .hero-brand-watermark {
    width: 250px;
    height: 250px;
    border-radius: 55px;
    opacity: .05;
  }
}


/* Halaman legal — Landing UI v1.4 */
.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 6%, rgba(47, 103, 246, .10), transparent 23%),
    var(--bg);
}
.legal-hero {
  padding: 78px 0 44px;
  border-bottom: 1px solid var(--line);
}
.legal-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.legal-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -2.4px;
}
.legal-hero p {
  max-width: 730px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.legal-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
}
.legal-meta span {
  display: inline-flex;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  font-size: 9px;
  font-weight: 850;
}
.legal-content {
  padding: 54px 0 95px;
}
.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 94px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(33, 49, 82, .05);
}
.legal-toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 1px;
}
.legal-toc a {
  display: block;
  padding: 9px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}
.legal-toc a:last-child { border-bottom: 0; }
.legal-toc a:hover { color: var(--primary); }
.legal-article {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 14px 42px rgba(33, 49, 82, .06);
}
.legal-article section {
  scroll-margin-top: 100px;
  padding-bottom: 27px;
  margin-bottom: 27px;
  border-bottom: 1px solid var(--line);
}
.legal-article section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}
.legal-article h2 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -.5px;
}
.legal-article h3 {
  margin: 19px 0 9px;
  font-size: 15px;
}
.legal-article p,
.legal-article li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.legal-article ul,
.legal-article ol {
  margin: 9px 0 0;
  padding-left: 20px;
}
.legal-article li + li { margin-top: 6px; }
.legal-callout {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 18px 0 0;
  padding: 15px;
  border: 1px solid #d8e2ff;
  border-radius: 15px;
  color: #3d55a8;
  background: #eef3ff;
}
body.dark .legal-callout {
  border-color: #314676;
  color: #b8c6ff;
  background: #203052;
}
.legal-callout span { font-size: 20px; }
.legal-callout p { margin: 0; color: inherit; }
.legal-contact-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-soft);
}
.legal-contact-box p { margin: 5px 0 0; }
.legal-contact-box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  background: var(--navy);
  font-size: 10px;
  font-weight: 900;
}
.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--primary);
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
}
.legal-footer-note {
  color: #65738d;
  font-size: 9px;
}

@media (max-width: 850px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-toc nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }
  .legal-toc strong { margin-bottom: 12px; }
  .legal-toc a {
    flex: 0 0 auto;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    white-space: nowrap;
  }
}
@media (max-width: 680px) {
  .legal-hero { padding: 55px 0 35px; }
  .legal-hero-grid { grid-template-columns: 1fr; }
  .legal-meta { justify-items: start; }
  .legal-content { padding: 35px 0 75px; }
  .legal-article { padding: 21px; border-radius: 19px; }
  .legal-contact-box { grid-template-columns: 1fr; }
  .legal-contact-box a { width: 100%; }
}


.legal-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  text-decoration: none;
  font-size: 10px;
}
@media (max-width: 980px) {
  .header-actions > .legal-login-link { display: none; }
}



/* =========================================================
   Android legal layout fix — v1.5
   ========================================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body.legal-page {
  width: 100%;
}

body.legal-page *,
body.legal-page *::before,
body.legal-page *::after {
  min-width: 0;
}

body.legal-page img,
body.legal-page svg,
body.legal-page video,
body.legal-page iframe,
body.legal-page pre,
body.legal-page code {
  max-width: 100%;
}

body.legal-page .legal-article,
body.legal-page .legal-toc,
body.legal-page .legal-contact-box,
body.legal-page .legal-callout {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 768px) {
  body.legal-page .container {
    width: calc(100% - 24px);
    max-width: none;
  }

  body.legal-page .header-inner {
    min-height: 62px;
    gap: 8px;
  }

  body.legal-page .brand {
    min-width: 0;
    gap: 8px;
  }

  body.legal-page .brand-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
  }

  body.legal-page .brand-copy {
    min-width: 0;
  }

  body.legal-page .brand-copy strong {
    font-size: 14px;
  }

  body.legal-page .brand-copy small {
    font-size: 7px;
    white-space: nowrap;
  }

  body.legal-page .header-actions {
    margin-left: auto;
    gap: 6px;
    flex: 0 0 auto;
  }

  body.legal-page .theme-toggle,
  body.legal-page .menu-toggle {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
  }

  body.legal-page .legal-hero {
    padding: 34px 0 26px;
  }

  body.legal-page .legal-hero-grid {
    display: block;
  }

  body.legal-page .legal-hero h1 {
    margin: 8px 0 11px;
    font-size: clamp(31px, 10vw, 40px);
    line-height: 1.08;
    letter-spacing: -1.2px;
    overflow-wrap: anywhere;
  }

  body.legal-page .legal-hero p {
    font-size: 12px;
    line-height: 1.7;
  }

  body.legal-page .legal-back-link {
    margin-top: 17px;
    font-size: 10px;
  }

  body.legal-page .legal-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 19px;
  }

  body.legal-page .legal-meta span {
    max-width: 100%;
    padding: 7px 9px;
    font-size: 8px;
    white-space: normal;
  }

  body.legal-page .legal-content {
    padding: 24px 0 62px;
  }

  body.legal-page .legal-layout {
    display: block;
    width: 100%;
  }

  body.legal-page .legal-toc {
    position: static;
    width: 100%;
    margin: 0 0 14px;
    padding: 14px;
    border-radius: 15px;
    overflow: hidden;
  }

  body.legal-page .legal-toc strong {
    margin-bottom: 10px;
    font-size: 10px;
  }

  body.legal-page .legal-toc nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    overflow: visible;
  }

  body.legal-page .legal-toc a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 39px;
    padding: 8px 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-soft);
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
    font-size: 9px;
  }

  body.legal-page .legal-article {
    width: 100%;
    padding: 19px 15px;
    border-radius: 17px;
    box-shadow: none;
    overflow: hidden;
  }

  body.legal-page .legal-article section {
    padding-bottom: 22px;
    margin-bottom: 22px;
  }

  body.legal-page .legal-article h2 {
    margin-bottom: 10px;
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: -.25px;
  }

  body.legal-page .legal-article h3 {
    margin: 16px 0 8px;
    font-size: 14px;
    line-height: 1.4;
  }

  body.legal-page .legal-article p,
  body.legal-page .legal-article li {
    font-size: 12px;
    line-height: 1.75;
  }

  body.legal-page .legal-article ul,
  body.legal-page .legal-article ol {
    padding-left: 18px;
  }

  body.legal-page .legal-callout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    padding: 13px;
    border-radius: 13px;
  }

  body.legal-page .legal-callout span {
    font-size: 18px;
  }

  body.legal-page .legal-contact-box {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 13px;
  }

  body.legal-page .legal-contact-box a {
    width: 100%;
    margin-top: 13px;
  }

  body.legal-page .site-footer {
    padding-top: 48px;
  }

  body.legal-page .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 27px;
  }

  body.legal-page .footer-grid > div:first-child {
    grid-column: auto;
  }

  body.legal-page .footer-grid > div:not(:first-child) {
    gap: 9px;
  }

  body.legal-page .footer-bottom {
    display: grid;
    gap: 7px;
    margin-top: 30px;
    padding-top: 19px;
  }

  body.legal-page .footer-bottom span {
    line-height: 1.6;
  }
}

@media (max-width: 420px) {
  body.legal-page .container {
    width: calc(100% - 20px);
  }

  body.legal-page .brand-copy small {
    display: none;
  }

  body.legal-page .legal-toc nav {
    grid-template-columns: 1fr;
  }

  body.legal-page .legal-toc a {
    min-height: 37px;
  }

  body.legal-page .legal-article {
    padding: 17px 13px;
  }

  body.legal-page .legal-article p,
  body.legal-page .legal-article li {
    font-size: 12.5px;
  }
}


/* Platform update v1.6 */
@media (max-width: 680px) {
  .platform-icons {
    grid-template-columns: repeat(3, 1fr);
  }
}



/* =========================================================
   Mobile hero status cards fix — v1.7
   ========================================================= */

@media (max-width: 680px) {
  .hero-visual {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 11px;
    min-height: auto;
    padding-bottom: 0;
  }

  .hero-visual::before {
    width: 320px;
    height: 320px;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-visual .terminal-window {
    grid-column: 1 / -1;
    width: 100%;
    transform: none;
  }

  .hero-visual .floating-card {
    position: static;
    width: 100%;
    min-width: 0;
    min-height: 76px;
    padding: 12px;
    border-radius: 15px;
    box-shadow: 0 10px 26px rgba(30, 45, 78, .10);
    transform: none;
  }

  .hero-visual .floating-card > span {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    font-size: 18px;
  }

  .hero-visual .floating-card > div {
    min-width: 0;
  }

  .hero-visual .floating-card small {
    font-size: 7px;
    line-height: 1.35;
    letter-spacing: .55px;
    white-space: normal;
  }

  .hero-visual .floating-card strong {
    margin-top: 4px;
    font-size: 13px;
  }

  .hero-visual .speed-card,
  .hero-visual .secure-card {
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }
}

@media (max-width: 390px) {
  .hero-visual {
    gap: 8px;
  }

  .hero-visual .floating-card {
    min-height: 70px;
    padding: 10px;
    gap: 8px;
  }

  .hero-visual .floating-card > span {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 16px;
  }

  .hero-visual .floating-card small {
    font-size: 6.4px;
    letter-spacing: .4px;
  }

  .hero-visual .floating-card strong {
    font-size: 12px;
  }
}


/* =========================================================
   Real platform logos — v1.8
   ========================================================= */
.platform-icons-real {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.platform-item {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}

.platform-icon-card {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(157, 171, 198, .22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(2px);
}

.platform-icon-card img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
}

.platform-icons-real small {
  color: #7a879e;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .6px;
  text-transform: uppercase;
}

@media (max-width: 680px) {
  .platform-icons-real {
    gap: 10px;
    margin-top: 18px;
  }

  .platform-icon-card {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .platform-icon-card img {
    width: 38px;
    height: 38px;
  }

  .platform-icons-real small {
    font-size: 9px;
    letter-spacing: .45px;
  }
}

@media (max-width: 390px) {
  .platform-icon-card {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .platform-icon-card img {
    width: 34px;
    height: 34px;
  }
}


/* ============================================================
   Live landing integration — v14.6.8
   ============================================================ */
.terminal-body .red {
  color: #ff7185;
}

.terminal-status.loading span {
  background: #efad3a;
  animation: landingPulse 1.1s infinite;
}

.terminal-status.error {
  color: #ff93a2;
  background: #351d2a;
}

.terminal-status.error span {
  background: #ef596f;
}

@keyframes landingPulse {
  50% {
    opacity: .35;
    transform: scale(.8);
  }
}

.created-stat-section {
  position: relative;
  z-index: 5;
  margin: -35px 0 0;
}

.created-stat-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 22px 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(15px);
}

.created-stat-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #315ff1, #17b99a);
  color: white;
  font-size: 23px;
  font-weight: 950;
}

.created-stat-copy span,
.created-stat-value span,
.created-stat-value small {
  display: block;
}

.created-stat-copy > span {
  color: var(--primary);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 1.25px;
}

.created-stat-copy h2 {
  margin: 5px 0 4px;
  font-size: 20px;
}

.created-stat-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.created-stat-value {
  min-width: 155px;
  text-align: right;
}

.created-stat-value strong {
  display: block;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.created-stat-value span {
  margin-top: 5px;
  color: var(--primary);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 1.4px;
}

.created-stat-value small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
}

.server-full {
  margin-left: auto;
  padding: 6px 8px;
  border-radius: 999px;
  background: #ffebee;
  color: #c14655;
  font-size: 8px;
  font-weight: 900;
}

body.dark .server-full {
  background: #3c2027;
  color: #ff9ead;
}

.server-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choose-server:disabled {
  cursor: not-allowed;
  background: #919aab;
  opacity: .72;
}

.catalog-live-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  text-align: center;
}

.catalog-live-note p {
  margin: 0;
  font-size: 9px;
  line-height: 1.5;
}

.catalog-live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(22, 185, 129, .10);
}

.landing-server-loading {
  pointer-events: none;
}

.landing-skeleton {
  height: 13px;
  margin-top: 18px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      var(--panel-soft) 20%,
      color-mix(in srgb, var(--line) 55%, var(--panel)) 50%,
      var(--panel-soft) 80%
    );
  background-size: 220% 100%;
  animation: landingSkeleton 1.25s linear infinite;
}

.landing-skeleton.wide {
  width: 80%;
  height: 24px;
  margin-top: 3px;
}

.landing-skeleton.short {
  width: 55%;
}

.landing-skeleton.price {
  height: 72px;
  border-radius: 15px;
}

@keyframes landingSkeleton {
  to {
    background-position: -220% 0;
  }
}

.landing-catalog-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  background: var(--panel);
  color: var(--muted);
  text-align: center;
}

.landing-catalog-empty span {
  font-size: 35px;
}

.landing-catalog-empty strong {
  margin-top: 9px;
  color: var(--text);
}

.landing-catalog-empty p {
  max-width: 430px;
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.6;
}

.landing-catalog-empty button {
  margin-top: 14px;
  padding: 11px 16px;
  border: 0;
  border-radius: 11px;
  background: var(--navy);
  color: white;
  font-size: 10px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .created-stat-section {
    margin-top: -22px;
  }

  .created-stat-card {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 18px;
  }

  .created-stat-value {
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    text-align: left;
  }
}

@media (max-width: 430px) {
  .created-stat-card {
    gap: 13px;
    border-radius: 18px;
  }

  .created-stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 14px;
  }

  .created-stat-copy h2 {
    font-size: 17px;
  }

  .created-stat-copy p {
    font-size: 9px;
  }

  .created-stat-value strong {
    font-size: 30px;
  }
}
