:root {
  --bg: #080b10;
  --surface: #111722;
  --surface-light: #161d29;
  --line: #273244;
  --text: #f4f7fb;
  --muted: #a3adbd;
  --faint: #778397;
  --blue: #4f86f7;
  --blue-soft: rgba(79, 134, 247, 0.16);
  --green: #2fc796;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #0d1420 0, var(--bg) 520px);
  background-size: 56px 56px, 56px 56px, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  display: block;
  width: 100%;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px;
  background: rgba(8, 11, 16, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100vw - 28px));
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 650;
}

.brand-icon,
.feature-glyph {
  display: grid;
  place-items: center;
  color: #dce8ff;
  background: var(--blue-soft);
  border: 1px solid rgba(79, 134, 247, 0.35);
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.language-menu {
  position: relative;
}

.language-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 142px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(79, 134, 247, 0.32);
  border-radius: 999px;
  color: #d8dfec;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid #8f9bae;
  border-bottom: 2px solid #8f9bae;
  transform: rotate(45deg) translateY(-2px);
}

.language-menu img {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 160px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: #101722;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.language-options button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
}

.language-options button:hover,
.language-options button.active {
  color: #fff;
  background: rgba(79, 134, 247, 0.14);
}

.nav-toggle,
.nav-button {
  display: none;
}

main,
.footer {
  width: min(1120px, calc(100vw - 28px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding: 86px 0 68px;
}

.label {
  margin: 0 0 12px;
  color: #84aaff;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: #fff;
}

h1 {
  max-width: 620px;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 680;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 650;
}

h3 {
  font-size: 1rem;
  font-weight: 650;
}

.hero-copy > p:not(.label),
.intro > p,
.section-title > p:not(.label),
.order p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.free-line {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 8px 11px;
  border: 1px solid rgba(47, 199, 150, 0.28);
  border-radius: 999px;
  color: #bff6df;
  background: rgba(47, 199, 150, 0.1);
  font-size: 0.94rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.button.disabled {
  cursor: not-allowed;
  color: #d9ffe9;
  background: rgba(47, 199, 150, 0.18);
  border-color: rgba(47, 199, 150, 0.45);
  box-shadow: 0 0 0 1px rgba(47, 199, 150, 0.08), 0 14px 34px rgba(47, 199, 150, 0.12);
}

.button.disabled small {
  padding: 4px 7px;
  border-radius: 999px;
  color: #bff6df;
  background: rgba(47, 199, 150, 0.16);
  font-size: 0.75rem;
  font-weight: 600;
}

.button.secondary {
  color: #d8dfec;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.22);
}

.hero-shot,
.image-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.hero-shot img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
}

.section {
  padding: 62px 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  border-top: 1px solid rgba(148, 163, 184, 0.11);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 22px;
}

.features article {
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  background: rgba(17, 23, 34, 0.72);
}

.feature-glyph {
  position: relative;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.feature-glyph::before,
.feature-glyph::after {
  content: "";
  position: absolute;
  border-color: currentColor;
}

.feature-glyph.plans::before {
  width: 17px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.feature-glyph.plans::after {
  width: 11px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.feature-glyph.credits::before {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.feature-glyph.credits::after {
  width: 2px;
  height: 16px;
  background: currentColor;
  box-shadow: 6px 0 0 -1px currentColor, -6px 0 0 -1px currentColor;
}

.feature-glyph.admin::before {
  width: 18px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.feature-glyph.admin::after {
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor;
}

.features p,
.hosting-list p,
.image-card figcaption,
.footer {
  color: var(--muted);
  font-size: 0.94rem;
}

.features p {
  margin: 10px 0 0;
}

.section-title {
  max-width: 680px;
  margin-bottom: 24px;
}

.showcase {
  padding-top: 76px;
}

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

.image-card.wide {
  grid-column: 1 / -1;
}

.image-card img {
  aspect-ratio: 16 / 7.5;
  object-fit: cover;
  object-position: top left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.image-card:not(.wide) img {
  aspect-ratio: 16 / 8.5;
}

.image-card figcaption {
  margin: 0;
  padding: 14px 16px 16px;
}

.image-card figcaption span:first-child {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-weight: 650;
}

.image-card figcaption span:last-child {
  display: block;
}

.hosting {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
}

.hosting-list {
  display: grid;
  gap: 10px;
}

.hosting-list div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  background: rgba(17, 23, 34, 0.58);
}

.hosting-list span {
  color: #9ab8ff;
  font-size: 0.84rem;
  font-weight: 650;
}

.hosting-list p {
  margin: 0;
}

.order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0 42px;
  padding: 28px;
  border: 1px solid rgba(79, 134, 247, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(79, 134, 247, 0.12), rgba(47, 199, 150, 0.06)), var(--surface);
}

.order > div {
  max-width: 720px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 38px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer p {
  margin: 0;
}

.footer a {
  color: #9ab8ff;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero,
  .intro,
  .hosting {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-shot {
    max-width: 720px;
  }

  .features,
  .image-grid {
    grid-template-columns: 1fr;
  }

  .order {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .header {
    padding: 10px;
  }

  .nav {
    position: relative;
    width: min(100%, calc(100vw - 20px));
  }

  .brand span:last-child {
    max-width: 205px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-button {
    display: grid;
    gap: 5px;
    width: 40px;
    height: 40px;
    place-content: center;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
  }

  .nav-button span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: #d7deeb;
  }

  .nav-right {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 10px;
    background: rgba(10, 14, 21, 0.98);
  }

  .nav-toggle:checked ~ .nav-right {
    display: flex;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a {
    padding: 11px 12px;
  }

  .language-menu summary {
    width: 100%;
  }

  .language-options {
    left: 0;
    right: auto;
    width: 100%;
  }

  main,
  .footer {
    width: min(100%, calc(100vw - 22px));
  }

  .hero {
    padding: 44px 0 44px;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.4rem);
  }

  .section {
    padding: 46px 0;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .image-card img,
  .image-card:not(.wide) img,
  .hero-shot img {
    aspect-ratio: 4 / 3;
  }

  .hosting-list div {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}
