:root {
  --primary: #1677ff;
  --primary-dark: #0958d9;
  --secondary: #6d7dfc;
  --success: #17c964;
  --ink: #102044;
  --text: #42526e;
  --muted: #718096;
  --bg: #ffffff;
  --soft-bg: #f6f9ff;
  --card: #ffffff;
  --line: #e7edf7;
  --shadow-hover: 0 24px 70px rgba(22, 119, 255, 0.18);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(231, 237, 247, 0.85);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 22px rgba(22, 119, 255, 0.28);
}

.brand-text { font-size: 1.08rem; line-height: 1.1; }
.brand-text small { display: block; color: var(--primary); font-size: 0.75rem; letter-spacing: 0.08em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #31405d;
  font-size: 0.96rem;
  font-weight: 700;
}

.nav-links a { position: relative; padding: 28px 0; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 3px;
  border-radius: 99px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.login-link { color: var(--primary); font-weight: 800; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.button:hover { transform: translateY(-3px); }
.button.primary, .nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 30px rgba(22, 119, 255, 0.3);
}
.button.secondary, .button.outline { color: var(--primary); background: #fff; border-color: #dbe7f6; }
.button.secondary:hover, .button.outline:hover { border-color: var(--primary); box-shadow: 0 12px 26px rgba(22, 119, 255, 0.12); }
.full { width: 100%; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 84px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 28%, #eaf4ff 62%, #ffffff 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(22, 119, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 119, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}
.hero-orb { position: absolute; border-radius: 999px; filter: blur(4px); opacity: 0.78; }
.hero-orb-one { width: 360px; height: 360px; top: -120px; right: -90px; background: radial-gradient(circle, rgba(22, 119, 255, 0.16), transparent 68%); }
.hero-orb-two { width: 420px; height: 420px; bottom: -180px; left: -120px; background: radial-gradient(circle, rgba(109, 125, 252, 0.14), transparent 68%); }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: 56px;
}

.badge, .section-kicker, .plan-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(22, 119, 255, 0.09);
  font-weight: 800;
  font-size: 0.86rem;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.035em; }
.hero h1 { max-width: 760px; margin: 20px 0 22px; font-size: clamp(2.55rem, 5vw, 4.8rem); line-height: 1.08; }
.hero-text, .section-head p, .plan-desc, .features-grid p, .nodes-grid p, .faq-list p, .cta-box p, .site-footer p { color: var(--muted); line-height: 1.8; }
.hero-text { max-width: 640px; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0; }

.hero-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.hero-points li { padding: 16px; border: 1px solid rgba(22, 119, 255, 0.12); border-radius: 14px; background: rgba(255, 255, 255, 0.76); }
.hero-points strong { display: block; color: var(--ink); font-size: 1.35rem; }
.hero-points span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.92rem; }

.hero-panel { padding: 22px; border: 1px solid rgba(22, 119, 255, 0.12); border-radius: 28px; background: rgba(255, 255, 255, 0.82); box-shadow: var(--shadow-hover); backdrop-filter: blur(18px); }
.panel-top { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--ink); }
.panel-top span { width: 10px; height: 10px; border-radius: 99px; background: #d7dfed; }
.panel-top span:first-child { background: #ff6b6b; }
.panel-top span:nth-child(2) { background: #ffd166; }
.panel-top span:nth-child(3) { background: #17c964; }
.panel-top strong { margin-left: auto; }
.server-card, .usage-box, .quick-grid span { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.server-card { display: flex; justify-content: space-between; align-items: center; padding: 18px; margin-bottom: 14px; }
.server-card.active { border-color: rgba(22, 119, 255, 0.28); box-shadow: 0 14px 32px rgba(22, 119, 255, 0.1); }
.server-card b { display: block; color: var(--ink); }
.server-card small { color: var(--success); font-weight: 800; }
.server-card em { color: var(--primary); font-style: normal; font-weight: 900; }
.usage-box { padding: 18px; margin: 18px 0; }
.usage-box p { margin-bottom: 10px; color: var(--ink); font-weight: 800; }
.progress { height: 10px; overflow: hidden; border-radius: 99px; background: #edf3fb; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.usage-box small { display: block; margin-top: 10px; color: var(--muted); }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quick-grid span { padding: 12px; color: var(--ink); font-weight: 800; text-align: center; }

.stats-strip { padding: 26px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stats-grid div { padding: 12px 8px; }
.stats-grid strong { display: block; color: var(--ink); font-size: 1.15rem; }
.stats-grid span { display: block; margin-top: 6px; color: var(--muted); }

.section { padding: 92px 0; }
.section.soft { background: var(--soft-bg); }
.section-head { max-width: 620px; margin-bottom: 38px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-kicker { margin-left: auto; margin-right: auto; }
.section-head h2, .cta-box h2 { margin: 14px 0 16px; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.16; }

.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan-card { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 12px 36px rgba(16, 32, 68, 0.06); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.plan-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: rgba(22, 119, 255, 0.24); }
.plan-card.featured { border: 2px solid rgba(22, 119, 255, 0.36); box-shadow: var(--shadow-hover); }
.popular { position: absolute; top: -16px; right: 24px; padding: 7px 14px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); font-size: 0.82rem; font-weight: 900; }
.plan-card h3 { margin: 18px 0 10px; font-size: 1.55rem; }
.price { margin: 18px 0; color: var(--muted); }
.price strong { color: var(--primary); font-size: 2.7rem; letter-spacing: -0.04em; }
.price span { margin-left: 4px; }
.plan-card ul { padding: 0; margin: 0 0 26px; list-style: none; }
.plan-card li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); color: #4d5f7c; position: relative; }
.plan-card li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 900; }
.plan-card li:last-child { border-bottom: 0; }
.plan-state { grid-column: 1 / -1; min-height: 260px; }

.feature-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 46px; align-items: start; }
.sticky-copy { position: sticky; top: 104px; }
.features-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.features-grid article, .nodes-grid article, .faq-list details, .cta-box { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 34px rgba(16, 32, 68, 0.06); }
.features-grid article { padding: 28px; }
.features-grid article span { color: var(--primary); font-size: 0.9rem; font-weight: 900; }
.features-grid h3 { margin: 16px 0 10px; font-size: 1.28rem; }

.nodes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.nodes-grid article { padding: 26px; }
.nodes-grid b { display: block; color: var(--ink); font-size: 1.22rem; }
.nodes-grid span { display: inline-flex; margin: 12px 0; color: var(--primary); font-weight: 900; }

.faq-section { background: linear-gradient(180deg, #fff, #f7fbff); }
.faq-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 46px; align-items: start; }
.faq-list { display: grid; gap: 16px; }
.faq-list details { padding: 22px 24px; }
.faq-list summary { cursor: pointer; color: var(--ink); font-weight: 900; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list p { margin: 14px 0 0; }

.contact-section { padding-top: 40px; }
.cta-box { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr); align-items: center; gap: 34px; padding: 38px; background: linear-gradient(135deg, #fff, #f0f7ff); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 8px; color: var(--ink); font-weight: 800; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #dbe7f6; border-radius: 10px; padding: 13px 14px; color: var(--ink); background: #fff; font: inherit; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.12); }
.contact-form textarea { min-height: 112px; resize: vertical; }
.contact-form button:disabled { cursor: not-allowed; opacity: 0.72; transform: none; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; max-width: min(360px, calc(100% - 32px)); padding: 14px 18px; border-radius: 12px; color: #fff; background: var(--ink); box-shadow: 0 18px 42px rgba(16, 32, 68, 0.22); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity 0.22s ease, transform 0.22s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: #109955; }
.toast.error { background: #d4380d; }

.site-footer { padding: 56px 0 24px; color: #7a879b; background: #071a3b; }
.site-footer .brand { color: #fff; }
.site-footer .brand-text small { color: #8dbdff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.7fr 0.7fr; gap: 34px; padding-bottom: 34px; }
.footer-grid strong { display: block; margin-bottom: 14px; color: #fff; }
.footer-grid a:not(.brand) { display: block; margin: 9px 0; color: #b7c4d8; }
.footer-grid a:hover { color: #fff; }
.copyright { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.92rem; }

@media (max-width: 1080px) {
  .nav-links { gap: 18px; }
  .hero-grid, .feature-layout, .faq-layout, .cta-box { grid-template-columns: 1fr; }
  .sticky-copy { position: static; }
  .nodes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; padding: 14px 0; }
  .nav-links { order: 3; width: 100%; justify-content: space-between; overflow-x: auto; padding-bottom: 4px; }
  .nav-links a { padding: 6px 0; white-space: nowrap; }
  .nav-links a::after { bottom: -2px; }
  .plans-grid, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 30px, 1180px); }
  .brand-text { font-size: 0.98rem; }
  .nav-actions { width: 100%; justify-content: space-between; }
  .hero { padding: 58px 0 62px; }
  .hero h1 { font-size: 2.35rem; }
  .hero-panel { padding: 16px; border-radius: 22px; }
  .hero-points, .plans-grid, .features-grid, .nodes-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .cta-box { padding: 26px; }
  .cta-actions .button { width: 100%; }
}