:root {
  --bg: #030b20;
  --panel: #09172d;
  --panel2: #061226;
  --line: rgba(112, 190, 224, .17);
  --text: #f4fbff;
  --muted: #a6b9cf;
  --mint: #24ed8d;
  --blue: #39dff2;
  --purple: #b6a4ff;
}

html { scroll-padding-top: 86px; }
body {
  background:
    radial-gradient(ellipse at 78% 10%, rgba(36, 237, 141, .10), transparent 34rem),
    radial-gradient(ellipse at 12% 28%, rgba(57, 223, 242, .07), transparent 36rem),
    var(--bg);
  color: var(--text);
}
.topbar {
  min-height: 82px;
  height: auto;
  border-color: var(--line);
  background: rgba(3, 11, 32, .88);
}
.nav-links { gap: clamp(14px, 2.5vw, 30px); color: var(--muted); font-size: 13px; }
.nav-links a:hover, .text-link:hover { color: var(--mint); }
.button {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
}
.button-primary { border-color: transparent; color: #03140e; background: var(--mint); box-shadow: 0 0 30px rgba(36, 237, 141, .17); }
.button-primary:hover { color: #03140e; background: var(--blue); }
.button-quiet { color: var(--text); background: rgba(255, 255, 255, .025); border-color: var(--line); }
.button-quiet:hover { border-color: rgba(36, 237, 141, .5); background: rgba(36, 237, 141, .07); }
.button-small { min-height: 40px; }
h1 span, h2 span { color: var(--mint); font-weight: 750; }
.hero { padding-top: 82px; }
.hero-text, .section-heading > p, .network-copy > p, .account-intro > p { color: var(--muted); }
.hero-note { color: var(--muted); }
.route-visual, .feature-card, .download-card, .plan-card, .account-card, .server-list, .platform-section, .card {
  border-color: var(--line);
  background: linear-gradient(150deg, color-mix(in srgb, var(--panel) 95%, var(--mint)), var(--panel2));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .18);
}
.route-visual { border-radius: 24px; }
.feature-card, .download-card, .plan-card, .card { border-radius: 18px; }
.feature-main { background: radial-gradient(ellipse at 82% 13%, rgba(36, 237, 141, .10), transparent 42%), linear-gradient(145deg, #0b1b31, #061226); }
.feature-icon, .download-icon { border-color: rgba(36, 237, 141, .26); color: var(--mint); background: rgba(36, 237, 141, .07); }
.network-section, .downloads-section, .plans-section { background: transparent; border-color: var(--line); }
.server-row { border-color: var(--line); background: transparent; }
.inbox-item, .account-row, .role-description { border-color: var(--line); background: rgba(6, 18, 38, .72); }
.server-tag, .tag-mint { color: var(--mint); }
.platform-section { border-radius: 22px; }
.plan-card-featured { border-color: rgba(36, 237, 141, .48); box-shadow: 0 18px 48px rgba(36, 237, 141, .08); }
.account-section { padding: 78px 0; border-top: 1px solid var(--line); }
.account-card { padding: 30px; border-radius: 24px; }
.account-intro h2 { font-size: clamp(44px, 6vw, 68px); line-height: .99; }
.account-intro > p { max-width: 470px; font-size: 17px; line-height: 1.65; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: rgba(0, 0, 0, .16); }
.auth-tab { min-height: 39px; padding: 0 12px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-weight: 650; }
.auth-tab.selected { color: var(--text); background: rgba(36, 237, 141, .13); box-shadow: inset 0 0 0 1px rgba(36, 237, 141, .22); }
.auth-tab.selected::after { content: none; }
.account-card label { color: #dceaf5; font-size: 12px; font-weight: 650; }
.account-card input:not([type="checkbox"]), .support-widget input, .account-row select {
  min-height: 49px;
  padding: 0 14px;
  border: 1px solid rgba(112, 190, 224, .22);
  border-radius: 12px;
  outline: 0;
  background: #051125;
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.account-card input:not([type="checkbox"]):focus, .support-widget input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(57, 223, 242, .10); }
.account-card input::placeholder, .support-widget input::placeholder { color: #6e829b; }
.password-field { position: relative; }
.password-field input { width: 100%; padding-right: 52px !important; }
.password-toggle { position: absolute; top: 50%; right: 7px; display: grid; width: 36px; height: 36px; place-items: center; transform: translateY(-50%); border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.password-toggle:hover { color: var(--mint); background: rgba(36, 237, 141, .08); }
.password-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.remember-field { display: flex !important; align-items: center; gap: 9px; margin: 12px 0; color: var(--muted) !important; cursor: pointer; }
.remember-field[hidden] { display: none !important; }
.remember-field input { display: grid; width: 18px; height: 18px; flex: none; place-items: center; appearance: none; margin: 0; border: 1px solid rgba(112, 190, 224, .42); border-radius: 5px; background: #051125; cursor: pointer; }
.remember-field input::after { width: 8px; height: 4px; transform: translateY(-1px) rotate(-45deg) scale(0); border-bottom: 2px solid #03140e; border-left: 2px solid #03140e; content: ""; transition: transform .15s ease; }
.remember-field input:checked { border-color: var(--mint); background: var(--mint); box-shadow: 0 0 12px rgba(36, 237, 141, .22); }
.remember-field input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.remember-field input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.field-hint, .status-message { color: var(--muted); }
.subscription-link, .text-button { color: var(--blue); }
.text-button:hover { color: var(--mint); }
.button-full { min-height: 52px; }
.account-section.is-authenticated .account-card { border-color: rgba(36, 237, 141, .32); }
.email-code-view { padding-top: 4px; }
.email-code-icon { display: grid; width: 48px; height: 48px; margin-bottom: 18px; place-items: center; border: 1px solid rgba(36, 237, 141, .24); border-radius: 15px; background: rgba(36, 237, 141, .08); color: var(--mint); }
.email-code-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.email-code-view h3 { margin: 8px 0; font-size: 27px; letter-spacing: -.035em; }
.email-code-copy { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.email-code-copy strong { display: block; margin-top: 4px; color: var(--text); overflow-wrap: anywhere; }
#email-code { width: 100%; text-align: center; font-size: 23px; font-weight: 750; letter-spacing: .42em; font-variant-numeric: tabular-nums; }
.email-code-actions { display: grid; gap: 2px; margin-top: 5px; text-align: center; }
.email-code-view .field-hint { margin: 12px 0 0; font-size: 11px; line-height: 1.55; }
.happ-guide-section { padding-top: 84px; padding-bottom: 90px; border-top: 1px solid var(--line); }
.happ-guide-section > .page-width > h2 { margin: 12px 0; font-size: clamp(34px, 4.7vw, 52px); line-height: 1.04; letter-spacing: -.045em; }
.happ-guide-section > .page-width > p:not(.eyebrow) { max-width: 760px; color: var(--muted); line-height: 1.65; }
.happ-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 28px 0; }
.happ-guide-grid > .card { min-height: 280px; padding: 23px; }
.happ-guide-grid h3 { margin: 0 0 13px; font-size: 19px; }
.happ-guide-grid p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.happ-downloads { display: flex; flex-wrap: wrap; gap: 8px; }
.happ-downloads .button { min-height: 38px; padding-inline: 11px; border-radius: 11px; font-size: 12px; }
.happ-download-note { width: 100%; margin: 4px 0 0 !important; font-size: 12px !important; }
.happ-download-note a, .happ-safety-note a, .happ-troubleshooting a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.happ-safety-note { display: flex; flex-wrap: wrap; gap: 5px; margin: 18px 0 12px; padding: 16px 18px; border: 1px solid rgba(36, 237, 141, .22); border-radius: 16px; background: rgba(36, 237, 141, .05); color: var(--muted); font-size: 13px; line-height: 1.6; }
.happ-safety-note strong { color: var(--text); }
.happ-troubleshooting { margin-top: 12px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(9, 23, 45, .65); color: var(--muted); font-size: 13px; }
.happ-troubleshooting summary { color: var(--text); font-weight: 700; cursor: pointer; }
.happ-troubleshooting div { padding-top: 12px; }
.happ-troubleshooting p { margin: 0 0 8px; line-height: 1.6; }
.support-launcher { border-color: rgba(36, 237, 141, .65); background: linear-gradient(135deg, #24ed8d, #39dff2); color: #03140e; }
.support-widget-panel { border-color: rgba(36, 237, 141, .26); background: linear-gradient(155deg, rgba(9, 23, 45, .98), rgba(6, 18, 38, .985)); }
.footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer > a:last-child { color: var(--text); }
.account-return { min-height: 44px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.hero h1 span, .section-heading h2 span { color: var(--mint); font-weight: 750; }
.hero-copy { max-width: 590px; }
.route-demo { min-height: 0; padding: 70px 22px 20px; }
.route-demo-title { margin: 0 0 15px; color: var(--text); font-size: clamp(21px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.035em; }
.route-demo-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.route-demo-list li { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 13px; background: rgba(3, 11, 32, .35); }
.route-demo-service { display: inline-flex; min-width: 0; align-items: center; gap: 10px; color: var(--text); font-size: 13px; font-weight: 700; }
.route-demo-icon { display: grid; width: 28px; height: 28px; flex: none; place-items: center; border-radius: 9px; color: var(--mint); background: rgba(36, 237, 141, .11); font-size: 13px; font-weight: 800; }
.route-demo-switch { display: grid; width: 44px; height: 24px; flex: none; place-items: center start; padding: 3px; border: 1px solid transparent; border-radius: 999px; background: #35404a; cursor: pointer; transition: background .18s ease, box-shadow .18s ease; }
.route-demo-switch > span { width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .28); transition: transform .18s ease; }
.route-demo-switch[aria-pressed="true"] { background: var(--mint); box-shadow: 0 0 15px rgba(36, 237, 141, .15); }
.route-demo-switch[aria-pressed="true"] > span { transform: translateX(20px); }
.route-demo-switch:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.route-demo-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.route-demo-footer strong { color: var(--text); font-weight: 700; }
.how-section { padding-top: 78px; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.how-card { min-height: 205px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(150deg, rgba(9, 23, 45, .94), rgba(6, 18, 38, .9)); }
.how-card > span { display: inline-grid; width: 34px; height: 34px; place-items: center; margin-bottom: 17px; border: 1px solid rgba(36, 237, 141, .3); border-radius: 11px; color: var(--mint); background: rgba(36, 237, 141, .08); font: 700 12px var(--mono); }
.how-card h3 { margin: 0 0 8px; color: var(--text); font-size: 16px; letter-spacing: -.02em; }
.how-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

@media (max-width: 850px) {
  .route-demo { min-height: 0; }
  .how-grid { grid-template-columns: 1fr; }
  .how-card { min-height: 0; }
}
@media (max-width: 560px) {
  .route-demo { padding: 64px 14px 16px; }
  .route-demo .visual-top { left: 14px; right: 14px; font-size: 9px; }
  .route-demo-title { margin-bottom: 12px; font-size: 21px; }
  .route-demo-list { gap: 7px; }
  .route-demo-list li { min-height: 49px; padding-inline: 8px; }
  .route-demo-service { gap: 7px; font-size: 12px; }
  .route-demo-icon { width: 25px; height: 25px; }
  .route-demo-switch { width: 40px; height: 23px; }
  .route-demo-switch[aria-pressed="true"] > span { transform: translateX(16px); }
  .route-demo-footer { font-size: 10px; }
  .how-section { padding-top: 55px; }
  .how-card { padding: 18px; }
}

body.account-page { min-height: 100vh; }
body.account-page .topbar { position: relative; }
body.account-page #navigation-toggle, body.account-page #site-navigation, body.account-page #account-menu { display: none !important; }
body.account-page #account-return:not([hidden]) { display: inline-flex; }
body.account-page main { display: grid; min-height: calc(100vh - 82px); align-items: center; }
body.account-page main > :not(#account) { display: none !important; }
body.account-page #account { display: grid; width: 100%; min-height: calc(100vh - 82px); align-items: center; padding: 46px 0 58px; border: 0; }
body.account-page .account-layout { grid-template-columns: minmax(0, 1fr) minmax(360px, 470px); gap: clamp(36px, 7vw, 100px); }
body.account-page .account-intro { max-width: 540px; }
body.account-page .account-card { box-shadow: 0 22px 70px rgba(0, 0, 0, .25); }
body.account-page .support-widget, body.account-page .footer { display: none !important; }
body:not(.account-page) main > #account { display: none !important; }

@media (max-width: 850px) {
  .happ-guide-grid { grid-template-columns: 1fr; }
  .happ-guide-grid > .card { min-height: 0; }
  body.account-page main { min-height: auto; }
  body.account-page #account { min-height: calc(100vh - 72px); padding: 36px 0 44px; }
  body.account-page .account-layout { grid-template-columns: 1fr; gap: 28px; max-width: 620px; }
  body.account-page .account-intro { max-width: none; }
  body.account-page .account-intro h2 { font-size: 48px; }
}
@media (max-width: 560px) {
  .topbar { min-height: 64px; }
  .account-section { padding: 52px 0; }
  .account-card { padding: 21px; }
  .account-intro h2 { font-size: 42px; }
  body.account-page #account { padding: 26px 0 35px; }
  body.account-page .account-layout { gap: 21px; }
  body.account-page .account-intro h2 { font-size: 42px; }
  body.account-page .account-intro > p { font-size: 15px; }
  body.account-page .account-card { padding: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

