:root {
  color-scheme: light;
  --ink: #13202b;
  --muted: #627183;
  --line: #dce5ec;
  --soft: #f5f8fb;
  --panel: #ffffff;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-soft: #e7f6f3;
  --blue: #2f66d0;
  --amber: #d98218;
  --danger: #b42318;
  --ok: #087443;
  --shadow: 0 18px 48px rgba(31, 48, 68, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f4fbfa 0, #f8fafc 360px, #eef4f8 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, .07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(47, 102, 208, .06) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, #000 0, transparent 78%);
}

a {
  color: var(--brand);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  margin-bottom: 28px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 229, 236, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 10px 30px rgba(31, 48, 68, .08);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand strong {
  display: block;
  font-weight: 820;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(15, 118, 110, .24);
  font-weight: 850;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #2d3b4a;
  text-decoration: none;
  font-weight: 760;
}

.nav a:hover,
.link-button:hover {
  border-color: var(--line);
  background: var(--soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 32px;
  align-items: center;
  min-height: 430px;
  margin-bottom: 18px;
}

.hero-copy {
  padding: 30px 0 28px;
}

.eyebrow,
.section-head span,
.panel-title span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 10px;
  border: 1px solid #b9ddd8;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero h1 {
  max-width: 690px;
  margin: 0 0 18px;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions,
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 24px;
}

.trust-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(220, 229, 236, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  color: #3d4c5c;
  font-size: 13px;
  font-weight: 760;
}

.hero-visual {
  position: relative;
  min-height: 390px;
  border: 1px solid rgba(205, 221, 232, .9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .76)),
    linear-gradient(135deg, rgba(15, 118, 110, .16), rgba(47, 102, 208, .16));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
}

.server-stack {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 118px;
  display: grid;
  gap: 14px;
}

.server-stack i {
  display: block;
  height: 68px;
  border: 1px solid #cddde8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(31, 48, 68, .08);
}

.server-stack i::before {
  content: "";
  display: block;
  width: 46%;
  height: 9px;
  margin: 20px 0 0 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--blue));
}

.server-stack i::after {
  content: "";
  display: block;
  width: 62%;
  height: 7px;
  margin: 8px 0 0 22px;
  border-radius: 999px;
  background: #e7edf3;
}

.visual-card {
  position: absolute;
  display: grid;
  gap: 3px;
  width: min(240px, 62%);
  padding: 14px 16px;
  border: 1px solid #d8e4ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(31, 48, 68, .12);
}

.visual-card.top {
  top: 42px;
  left: 28px;
}

.visual-card.bottom {
  right: 28px;
  bottom: 34px;
}

.visual-card span {
  width: 34px;
  height: 7px;
  border-radius: 999px;
  background: var(--amber);
}

.visual-card strong {
  font-size: 14px;
}

.visual-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.notice {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 34px;
  padding: 14px 16px;
  border: 1px solid #edc07e;
  border-radius: 8px;
  color: #704407;
  background: #fff8ec;
}

.notice strong,
.notice span {
  display: inline-flex;
  align-items: center;
}

.section-head {
  margin: 16px 0 18px;
}

.section-head h2,
.panel-title h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.panel-title p {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.card,
.panel {
  border: 1px solid rgba(213, 226, 235, .96);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(31, 48, 68, .08);
}

.card {
  position: relative;
  padding: 22px;
}

.plan {
  display: flex;
  flex-direction: column;
  min-height: 344px;
}

.plan.featured {
  border-color: rgba(15, 118, 110, .46);
  box-shadow: 0 20px 54px rgba(15, 118, 110, .16);
}

.badge {
  position: absolute;
  right: 18px;
  top: 18px;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--amber);
  font-size: 12px;
  font-weight: 820;
}

.card h3 {
  margin: 0 0 12px;
  padding-right: 86px;
  font-size: 22px;
  letter-spacing: 0;
}

.price {
  margin: 4px 0 10px;
  font-size: 36px;
  font-weight: 880;
}

.price span {
  margin-left: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.meta {
  color: var(--muted);
  line-height: 1.65;
}

.feature-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #344556;
  font-weight: 690;
}

.feature-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.plan .actions {
  margin-top: auto;
}

.panel {
  padding: 28px;
}

.order-panel {
  display: grid;
  grid-template-columns: minmax(240px, .42fr) minmax(0, .58fr);
  gap: 28px;
  align-items: start;
}

.compact-panel {
  max-width: 720px;
  margin: 0 auto;
}

.admin-panel {
  padding: 24px;
}

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

label {
  display: grid;
  gap: 7px;
  color: #2e3d4c;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cddbe6;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  background: #fff;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .12);
}

textarea {
  min-height: 98px;
  resize: vertical;
}

.choice-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9e6ee;
  border-radius: 8px;
  background: #f8fbfd;
}

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

.radio-row label {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d5e2eb;
  border-radius: 6px;
  background: #fff;
  font-weight: 760;
}

.radio-row input {
  width: auto;
  min-height: auto;
  margin-right: 8px;
  accent-color: var(--brand);
}

.actions {
  margin-top: 16px;
}

button,
.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, .24);
  cursor: pointer;
  font: inherit;
  font-weight: 820;
  text-decoration: none;
}

button:hover,
.button:hover {
  background: var(--brand-dark);
}

button.secondary,
.button.secondary {
  width: 100%;
  border: 1px solid #cddbe6;
  background: #f5f9fb;
  box-shadow: none;
  color: var(--ink);
}

.button.ghost {
  border: 1px solid #bdd8d4;
  background: #fff;
  box-shadow: none;
  color: var(--brand-dark);
}

button.danger {
  background: var(--danger);
  box-shadow: none;
}

.flash {
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(31, 48, 68, .08);
}

.flash.ok {
  border-color: #8ed7b5;
  background: #effcf5;
  color: var(--ok);
}

.flash.err {
  border-color: #f2b8b5;
  background: #fff2f1;
  color: var(--danger);
}

.table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  color: #526476;
  background: #f8fbfd;
  font-weight: 820;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 2px 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.pill.ok {
  background: #effcf5;
  color: var(--ok);
}

.pill.warn {
  background: #fff5e5;
  color: #8a4b00;
}

.pill.err {
  background: #fff2f1;
  color: var(--danger);
}

.small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.stack {
  display: grid;
  gap: 14px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}

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

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 340px;
  }

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

  .radio-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .shell {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    padding: 10px 10px 48px;
    overflow: hidden;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .nav {
    width: calc(100vw - 44px) !important;
    max-width: calc(100vw - 44px) !important;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .nav a {
    min-width: 0;
    padding: 8px 6px;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
  }

  .hero,
  .hero-copy,
  .hero-visual,
  .notice,
  .section-head,
  .grid,
  .panel {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
  }

  .hero-copy {
    min-width: 0;
  }

  .hero h1 {
    max-width: calc(100vw - 20px);
    font-size: 30px;
    line-height: 1.07;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .section-head h2,
  .panel-title h2 {
    max-width: calc(100vw - 20px);
    font-size: 24px;
  }

  .hero p {
    max-width: 100%;
    font-size: 16px;
  }

  .trust-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-row span {
    justify-content: center;
    padding-inline: 8px;
    font-size: 12px;
  }

  .notice {
    flex-direction: column;
  }

  .panel {
    padding: 20px;
  }

  .visual-card {
    width: min(210px, 70%);
  }

  .visual-card.top {
    left: 18px;
  }

  .visual-card.bottom {
    right: 18px;
  }

  .server-stack {
    left: 14%;
    right: 8%;
  }
}

@media (max-width: 480px) {
  .shell {
    width: 350px !important;
    max-width: calc(100vw - 20px) !important;
    padding: 10px 0 44px;
  }

  .topbar,
  .hero,
  .hero-copy,
  .hero-visual,
  .notice,
  .section-head,
  .grid,
  .panel {
    width: 100% !important;
    max-width: 100% !important;
  }

  .topbar {
    padding: 12px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 11px;
  }

  .nav {
    display: flex;
    justify-content: space-between;
    width: 100% !important;
    max-width: 100% !important;
    gap: 4px;
  }

  .nav a {
    padding: 8px 4px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .hero-actions .button {
    flex: 1 1 0;
    min-width: 0;
  }

  .trust-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .trust-row span {
    min-width: 0;
  }

  .hero-visual {
    min-height: 300px;
  }

  .visual-card {
    width: 200px;
  }

  .visual-card.top {
    left: 12px;
  }

  .visual-card.bottom {
    right: 8px;
    bottom: 28px;
  }

  .server-stack {
    left: 46px;
    right: 16px;
    top: 104px;
  }

  .server-stack i {
    height: 58px;
  }

  .section-head h2,
  .panel-title h2 {
    font-size: 22px;
  }
}
