:root {
  --ink: #0b1d29;
  --ink-2: #122d3d;
  --ink-3: #1b3c4e;
  --cyan: #5ed7f1;
  --cyan-strong: #24b8d8;
  --cyan-deep: #06738c;
  --paper: #f4f8f9;
  --white: #fff;
  --mist: #e7f0f2;
  --line: #cfdee2;
  --muted: #526875;
  --shadow: 0 24px 70px rgba(5, 29, 42, .14);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
body, button, input, textarea, select { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
code { padding: .16em .42em; border-radius: 5px; color: #baf3ff; background: var(--ink); font: .92em ui-monospace, SFMono-Regular, Consolas, monospace; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: 11px 15px; border-radius: 9px; color: var(--ink); background: var(--cyan); font-weight: 900; text-decoration: none; transition: top .15s ease; }
.skip-link:focus { top: 12px; }

.topbar {
  position: fixed; inset: 0 0 auto; z-index: 100; height: 78px; padding-inline: max(20px, calc((100vw - 1180px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  color: var(--white); background: linear-gradient(180deg, rgba(4, 20, 31, .9), transparent);
  transition: background .2s ease, box-shadow .2s ease;
}
.topbar.is-scrolled { background: rgba(7, 25, 37, .96); box-shadow: 0 10px 34px rgba(0, 0, 0, .18); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: baseline; gap: 0; color: var(--white); text-decoration: none; font-size: 1.28rem; font-weight: 950; letter-spacing: -.045em; }
.brand span { color: var(--cyan); }
.brand small { margin-left: 8px; padding: 3px 6px; border: 1px solid rgba(94, 215, 241, .55); border-radius: 5px; color: #bceefa; font-size: .52rem; letter-spacing: .15em; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav > a { color: #d6e4e9; text-decoration: none; font-size: .9rem; font-weight: 760; }
.main-nav > a:hover { color: var(--cyan); }
.nav-toggle { display: none; width: 44px; height: 40px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; background: rgba(255, 255, 255, .08); }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--white); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 21px; border: 1px solid var(--cyan); border-radius: 11px; color: var(--ink); background: var(--cyan); box-shadow: 0 12px 32px rgba(38, 185, 216, .22); text-decoration: none; font-size: .92rem; font-weight: 900; transition: transform .18s ease, filter .18s ease; }
.button:hover { transform: translateY(-2px); filter: brightness(1.05); }
.button-small { min-height: 42px; padding-inline: 16px; }
.button-ghost { color: var(--white); border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); box-shadow: none; backdrop-filter: blur(8px); }

.home-hero { position: relative; min-height: 820px; display: grid; align-items: center; overflow: hidden; color: var(--white); background: #071a28; }
.home-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 17, 27, .98) 0%, rgba(3, 23, 36, .88) 43%, rgba(4, 22, 33, .28) 75%, rgba(4, 22, 33, .1) 100%), linear-gradient(0deg, rgba(4, 20, 31, .68), transparent 35%); }
.home-hero-content { position: relative; z-index: 2; padding-block: 145px 80px; }
.overline { margin: 0; color: #a6ebfa; font-size: .75rem; font-weight: 950; letter-spacing: .2em; text-transform: uppercase; }
.overline-dark { color: var(--cyan-deep); }
.home-hero h1 { max-width: 1100px; margin: 20px 0 22px; font-size: clamp(3.45rem, 6.7vw, 5.9rem); line-height: .9; letter-spacing: -.07em; text-wrap: balance; }
.hero-lead { max-width: 650px; margin: 0; color: #d4e4e9; font-size: 1.16rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.server-address { margin-top: 48px; padding: 14px 15px; display: inline-grid; grid-template-columns: 10px auto auto; align-items: center; gap: 13px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 13px; color: var(--white); background: rgba(5, 24, 36, .64); cursor: pointer; backdrop-filter: blur(10px); }
.server-address span:nth-child(2) { display: grid; gap: 2px; text-align: left; }
.server-address small { color: #99b1bd; font-size: .62rem; font-weight: 900; letter-spacing: .13em; }
.server-address strong { font-size: .9rem; }
.server-address b { margin-left: 16px; color: var(--cyan); font-size: .75rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #5be28d; box-shadow: 0 0 16px #5be28d; }

.signal-strip { position: relative; z-index: 3; margin-top: -48px; }
.signal-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; overflow: hidden; border: 1px solid rgba(94, 215, 241, .22); border-radius: 18px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); }
.signal-grid div { min-height: 115px; padding: 25px 28px; display: grid; align-content: center; gap: 4px; border-right: 1px solid rgba(255, 255, 255, .1); }
.signal-grid div:last-child { border-right: 0; }
.signal-grid strong { color: var(--cyan); font-size: 1.42rem; letter-spacing: -.03em; }
.signal-grid span { color: #aebfc7; font-size: .84rem; }

.section { padding-block: 110px; }
.section-light { background: var(--paper); }
.split-intro, .section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); align-items: end; gap: 70px; }
.split-intro h2, .section-head h2, .support-section h2, .final-cta h2 { margin: 12px 0 0; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.06em; text-wrap: balance; }
.intro-copy p, .section-head > p, .support-section p, .final-cta p { margin: 0; color: var(--muted); line-height: 1.8; }
.text-link { display: inline-flex; gap: 10px; margin-top: 18px; color: var(--cyan-deep); font-weight: 850; text-decoration: none; }
.text-link span { transition: transform .18s ease; }
.text-link:hover span { transform: translateX(5px); }

.feature-grid { margin-top: 56px; display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 17px; }
.feature-card { position: relative; min-height: 285px; padding: 32px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 14px 38px rgba(9, 40, 54, .06); overflow: hidden; }
.feature-card-wide { color: var(--white); background: linear-gradient(145deg, var(--ink), var(--ink-3)); border-color: var(--ink); }
.feature-number { color: var(--cyan-deep); font-size: .72rem; font-weight: 950; letter-spacing: .14em; }
.feature-card-wide .feature-number { color: var(--cyan); }
.feature-card h3 { margin: auto 0 9px; font-size: 1.35rem; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.feature-card-wide p { color: #c4d5dc; }
.feature-card a { margin-top: 22px; color: var(--cyan-deep); font-size: .86rem; font-weight: 850; text-decoration: none; }
.feature-card-wide a { color: var(--cyan); }

.progression-section { color: var(--white); background: radial-gradient(circle at 80% 10%, rgba(38, 185, 216, .2), transparent 30%), var(--ink); }
.section-head-dark > p { color: #adc0c9; }
.rank-road { position: relative; margin-top: 65px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.rank-road::before { content: ''; position: absolute; left: 5%; right: 5%; top: 31px; height: 2px; background: linear-gradient(90deg, rgba(94,215,241,.2), var(--cyan), rgba(94,215,241,.2)); }
.rank-road article { position: relative; z-index: 1; min-width: 0; display: grid; justify-items: center; gap: 8px; text-align: center; }
.rank-road b { width: 64px; height: 64px; display: grid; place-items: center; border: 2px solid var(--cyan); border-radius: 50%; color: var(--cyan); background: var(--ink); font-size: .78rem; }
.rank-road span { font-weight: 900; }
.rank-road small { color: #8ca4af; }
.centered-action { margin-top: 52px; text-align: center; }

.guide-grid { margin-top: 55px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-card { min-height: 220px; padding: 28px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: var(--white); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.guide-card:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: var(--shadow); }
.guide-card > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--mist); font-size: 1.35rem; }
.guide-card h3 { margin: auto 0 7px; }
.guide-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.guide-card-cta { color: var(--white); border-color: var(--ink); background: var(--ink); }
.guide-card-cta > span { color: var(--ink); background: var(--cyan); font-size: .95rem; font-weight: 950; }
.guide-card-cta p { color: #aec0c8; }

.support-section { color: var(--white); background: linear-gradient(120deg, #0d2636, #123f54); }
.support-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 75px; }
.support-section p { max-width: 680px; margin-top: 22px; color: #bed0d7; }
.support-section .button { margin-top: 28px; }
.support-cards { display: grid; gap: 14px; }
.support-cards article { padding: 25px 27px; display: grid; gap: 6px; border: 1px solid rgba(94, 215, 241, .24); border-radius: 16px; background: rgba(255, 255, 255, .07); }
.support-cards small { color: var(--cyan); font-weight: 950; letter-spacing: .14em; }
.support-cards strong { font-size: 1.2rem; }
.support-cards span { color: #a9bec8; font-size: .86rem; }

.final-cta { padding-block: 120px; text-align: center; background: var(--white); }
.final-cta h2 { max-width: 780px; margin-inline: auto; }
.final-cta p { max-width: 620px; margin: 20px auto 28px; }
.site-footer { padding-block: 45px; color: #a7bac3; background: #06151f; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 45px; }
.site-footer p { margin: 8px 0 0; font-size: .84rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer nav a { color: #c7d6dc; text-decoration: none; font-size: .84rem; font-weight: 750; }
.site-footer small { color: #718993; }

.not-found-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; color: var(--ink); background: radial-gradient(circle at 80% 10%, rgba(88,228,238,.2), transparent 28%), var(--paper); }
.not-found-card { width: min(700px, 100%); padding: clamp(32px, 7vw, 72px); border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.not-found-card .brand { display: inline-flex; margin-bottom: 58px; color: var(--ink); }
.not-found-card h1 { margin: 14px 0 18px; font-size: clamp(2.7rem, 7vw, 5rem); line-height: .96; letter-spacing: -.06em; }
.not-found-card > p:not(.overline) { color: var(--muted); line-height: 1.75; }
.not-found-card > div { margin-top: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.not-found-card .text-link { margin-top: 0; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; inset: 68px 18px auto; padding: 18px; display: none; align-items: stretch; flex-direction: column; gap: 5px; border: 1px solid rgba(94, 215, 241, .2); border-radius: 15px; background: rgba(6, 22, 32, .98); box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav > a { padding: 11px 12px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card-wide { grid-column: span 2; }
  .rank-road { grid-template-columns: repeat(4, 1fr); gap: 28px 8px; }
  .rank-road::before { display: none; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1180px); }
  .topbar { height: 68px; padding-inline: 15px; }
  .home-hero { min-height: 760px; }
  .home-hero > img { object-position: 65% center; }
  .home-hero-overlay { background: linear-gradient(90deg, rgba(3,17,27,.98), rgba(3,23,36,.75)), linear-gradient(0deg, rgba(4,20,31,.78), transparent 45%); }
  .home-hero-content { padding-top: 115px; }
  .home-hero h1 { font-size: clamp(3.1rem, 14vw, 4.6rem); }
  .server-address { width: 100%; grid-template-columns: 10px 1fr auto; }
  .server-address strong { overflow-wrap: anywhere; }
  .signal-strip { margin-top: 0; background: var(--ink); }
  .signal-grid { width: 100%; grid-template-columns: 1fr 1fr; border: 0; border-radius: 0; }
  .signal-grid div { min-height: 98px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .section { padding-block: 78px; }
  .split-intro, .section-head, .support-grid { grid-template-columns: 1fr; gap: 25px; }
  .split-intro h2, .section-head h2, .support-section h2, .final-cta h2 { font-size: 2.75rem; }
  .feature-grid, .guide-grid { grid-template-columns: 1fr; }
  .feature-card-wide { grid-column: auto; }
  .rank-road { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
}

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