:root {
  color-scheme: dark;
  --ink: #f4f7f5;
  --muted: #aebbb9;
  --deep: #081111;
  --panel: #101918;
  --panel-strong: #14211f;
  --line: rgba(255, 255, 255, 0.14);
  --teal: #51d6c8;
  --green: #9ae66e;
  --blue: #8bb8ff;
  --danger: #ffad8b;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(8, 17, 17, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
nav,
.hero-actions,
.status-strip,
.metrics,
.locations,
.plans,
.app-grid,
.portal-head,
.orders-head,
.payment-item,
.network-head,
.setup-links,
.order {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand img {
  display: block;
  width: clamp(176px, 20vw, 240px);
  height: auto;
}

nav {
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 112px clamp(18px, 6vw, 80px) 42px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 17, 17, 0.98) 0%, rgba(8, 17, 17, 0.78) 40%, rgba(8, 17, 17, 0.22) 74%),
    linear-gradient(0deg, var(--deep) 0%, rgba(8, 17, 17, 0) 24%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(54px, 9vw, 104px);
  line-height: 0.92;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.hero-copy,
.section p,
li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--green);
  font-weight: 900;
  cursor: pointer;
  text-decoration: underline;
}

.link-button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.primary {
  background: var(--green);
  border-color: var(--green);
  color: #09200e;
}

.secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.ghost {
  background: transparent;
  color: var(--danger);
}

.full {
  width: 100%;
}

.status-strip {
  gap: 0;
  width: min(100%, 620px);
  margin-top: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(7, 14, 14, 0.76);
}

.status-strip div {
  flex: 1;
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.status-strip div:last-child {
  border-right: 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 900;
}

.section {
  padding: 78px clamp(18px, 6vw, 80px);
  border-top: 1px solid var(--line);
}

.customer-hero {
  padding-top: 132px;
  border-top: 0;
  background: linear-gradient(180deg, rgba(81, 214, 200, 0.08), rgba(8, 17, 17, 0));
}

.customer-hero h1 {
  max-width: 860px;
  font-size: clamp(42px, 7vw, 82px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.checkout-section {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: 24px;
  align-items: start;
}

.checkout-section > div {
  max-width: 860px;
}

.checkout-section .form {
  width: min(100%, 760px);
}

.account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.plans {
  align-items: stretch;
  flex-wrap: wrap;
  gap: 18px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 300px;
  min-width: 0;
  padding: 24px;
}

.price-card > div {
  min-height: 174px;
}

.price-card ul {
  min-height: 96px;
}

.price-card .button {
  margin-top: auto;
}

.badge {
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(154, 230, 110, 0.12);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.plan-name {
  color: var(--blue);
  font-weight: 900;
}

.price {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 58px;
  font-weight: 900;
}

.price span {
  margin-right: 3px;
  color: var(--green);
  font-size: 26px;
}

.per {
  color: var(--muted);
  font-weight: 800;
}

ul {
  margin: 22px 0;
  padding-left: 20px;
}

.form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

select {
  color-scheme: dark;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-size: 14px;
}

.app-grid {
  align-items: stretch;
  flex-wrap: wrap;
  gap: 16px;
}

.app-card {
  display: grid;
  gap: 10px;
  flex: 1 1 240px;
  padding: 22px;
}

.app-card span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.app-actions .button {
  flex: 1 1 150px;
}

.metrics {
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.metrics div {
  flex: 1 1 180px;
  min-height: 118px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.metrics span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 38px;
  font-weight: 900;
}

.locations {
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
}

.location {
  min-width: 150px;
  flex: 1 1 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.country-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 900;
}

.flag-icon {
  display: inline-block;
  width: 22px;
  height: 15px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.flag-cz {
  background:
    linear-gradient(146deg, #11457e 0 38%, transparent 39%),
    linear-gradient(#ffffff 0 50%, #d7141a 51% 100%);
}

.flag-fr {
  background: linear-gradient(90deg, #0055a4 0 33%, #ffffff 34% 66%, #ef4135 67% 100%);
}

.flag-bg {
  background: linear-gradient(#ffffff 0 33%, #00966e 34% 66%, #d62612 67% 100%);
}

.flag-gb {
  background:
    linear-gradient(27deg, transparent 0 43%, #ffffff 44% 47%, #c8102e 48% 52%, #ffffff 53% 56%, transparent 57%),
    linear-gradient(153deg, transparent 0 43%, #ffffff 44% 47%, #c8102e 48% 52%, #ffffff 53% 56%, transparent 57%),
    linear-gradient(90deg, transparent 0 38%, #ffffff 39% 43%, #c8102e 44% 56%, #ffffff 57% 61%, transparent 62%),
    linear-gradient(transparent 0 34%, #ffffff 35% 42%, #c8102e 43% 57%, #ffffff 58% 65%, transparent 66%),
    #012169;
}

.flag-de {
  background: linear-gradient(#000000 0 33%, #dd0000 34% 66%, #ffce00 67% 100%);
}

.flag-nl {
  background: linear-gradient(#ae1c28 0 33%, #ffffff 34% 66%, #21468b 67% 100%);
}

.flag-es {
  background: linear-gradient(#aa151b 0 25%, #f1bf00 26% 75%, #aa151b 76% 100%);
}

.flag-us {
  background:
    linear-gradient(#3c3b6e 0 0) 0 0 / 40% 54% no-repeat,
    repeating-linear-gradient(#b22234 0 8%, #ffffff 8% 15.38%);
}

.location p {
  margin: 6px 0 0;
  font-size: 14px;
}

.support-section {
  background: rgba(255, 255, 255, 0.025);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.support-card {
  padding: 22px;
}

.support-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.support-card h3 {
  margin: 10px 0;
  font-size: clamp(22px, 2.6vw, 30px);
}

.support-card p {
  color: var(--muted);
}

.support-card a {
  color: var(--green);
  font-weight: 900;
}

.faq {
  background: linear-gradient(180deg, rgba(139, 184, 255, 0.06), rgba(8, 17, 17, 0));
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.faq-list summary {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.faq-list summary::after {
  content: "+";
  color: var(--green);
  font-size: 24px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.portal-grid {
  display: grid;
  gap: 18px;
}

.account.is-logged-in {
  display: block;
}

.account.is-logged-in .account-intro,
.account.is-logged-in #login-form {
  display: none;
}

.account.is-logged-in .portal-grid {
  display: block;
  width: 100%;
}

.portal {
  min-height: 260px;
  padding: 24px;
}

.customer-orders-section {
  padding-top: 0;
}

.orders-panel {
  width: 100%;
}

.orders-panel .orders-tab {
  margin-top: 0;
}

.portal-head {
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.portal-head p,
.portal-empty p {
  margin-bottom: 0;
}

.account-status,
.setup-box,
.network-box,
.buy-plan-box,
.orders-tab,
.payment-alert,
.orders {
  margin-top: 20px;
}

.payment-alert {
  margin-top: 0;
  padding: 18px;
  border: 1px solid rgba(154, 230, 110, 0.45);
  border-radius: 8px;
  background: rgba(154, 230, 110, 0.12);
}

.payment-alert h3,
.payment-alert p {
  margin: 0;
}

.payment-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.payment-item {
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 17, 17, 0.42);
}

.payment-item p {
  margin: 4px 0 0;
  font-size: 14px;
}

.orders-tab {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.orders-head {
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
}

.orders-head h3,
.orders-head p {
  margin: 0;
}

.orders-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-status {
  padding: 18px;
  border-radius: 8px;
  background: rgba(154, 230, 110, 0.08);
}

.account-status span,
.paid-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-status strong {
  display: block;
  margin: 6px 0;
  font-size: 22px;
}

.buy-plan-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(139, 184, 255, 0.08);
}

.buy-plan-box h3 {
  margin-top: 0;
}

.customer-plan-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.customer-plan-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-plan-choice {
  display: block;
  cursor: pointer;
}

.customer-plan-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.customer-plan-choice span {
  display: grid;
  gap: 4px;
  min-height: 98px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.customer-plan-choice input:checked + span {
  border-color: var(--green);
  background: rgba(154, 230, 110, 0.12);
}

.customer-plan-choice strong,
.customer-plan-choice em {
  font-style: normal;
  font-weight: 900;
}

.customer-plan-choice small {
  color: var(--muted);
}

.payment-note {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.setup-links {
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px;
}

.setup-links a {
  flex: 1 1 100px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  font-weight: 900;
  text-align: center;
}

.setup-steps {
  margin: 0 0 18px;
  padding-left: 22px;
}

.setup-steps li {
  margin-bottom: 6px;
}

.portal-downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.download-card {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.download-card-media {
  display: grid;
  min-height: 210px;
  place-items: center;
  background: #f5f3ee;
  color: #a8cf38;
}

.download-card-body {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 94px;
  padding: 20px;
}

.download-card h4 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.download-links {
  display: grid;
  gap: 8px;
}

.download-links p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.download-links a {
  color: var(--blue);
  font-weight: 900;
}

.download-links span {
  color: var(--ink);
}

.network-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.network-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.network-head h3,
.network-head p {
  margin: 0;
}

.network-head span,
.server-status,
.port-list {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.server-grid.compact {
  margin-top: 10px;
}

.server-card {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.server-card strong {
  display: block;
  color: var(--green);
}

.server-card p {
  margin: 4px 0 0;
  font-size: 14px;
}

.network-box h4 {
  margin: 18px 0 0;
}

.network-loading,
.port-list {
  margin: 0;
}

.platform-svg {
  width: min(42%, 122px);
  height: auto;
}

.apple-svg,
.linux-svg {
  color: #050505;
  fill: currentColor;
}

.android-svg {
  color: #a8cf38;
  fill: currentColor;
}

.platform-wordmark {
  display: grid;
  color: #20242b;
  font-weight: 900;
  line-height: 0.98;
  text-align: left;
}

.platform-wordmark span {
  color: #60ba5a;
  font-size: 28px;
  letter-spacing: 0;
}

.platform-wordmark strong {
  display: block;
  color: #20242b;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0;
}

.platform-wordmark strong::first-letter {
  color: #f26a2c;
}

.platform-ios {
  color: #050505;
  font-size: 56px;
  font-weight: 300;
  letter-spacing: 0;
}

.order {
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.order p {
  margin: 5px 0 0;
  font-size: 14px;
}

.history-order {
  align-items: flex-start;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
}

.order-meta div {
  min-width: 118px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.order-meta dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.order-meta dd {
  margin: 3px 0 0;
  font-size: 14px;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 26px clamp(18px, 6vw, 80px);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.site-footer a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--green);
  font-weight: 900;
}

.legal-hero h1 {
  max-width: 900px;
  font-size: clamp(38px, 6vw, 74px);
}

.legal-page {
  padding-top: 0;
}

.legal-panel {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
}

.legal-panel h2 {
  margin-top: 30px;
  font-size: clamp(24px, 3vw, 34px);
}

.legal-panel h2:first-child {
  margin-top: 0;
}

@media (max-width: 780px) {
  .site-header {
    position: sticky;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 76vh;
    padding-top: 46px;
  }

  .status-strip {
    display: grid;
  }

  .status-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-strip div:last-child {
    border-bottom: 0;
  }

  .account {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 54px;
  }

  .price {
    font-size: 46px;
  }

  .portal-head,
  .orders-head,
  .payment-item,
  .network-head,
  .order {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-downloads {
    grid-template-columns: 1fr;
  }

  .support-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .customer-plan-form {
    grid-template-columns: 1fr;
  }

  .customer-plan-choices {
    grid-template-columns: 1fr;
  }
}
