:root {
  --bg: #e6eaee;
  --surface: #f7f8fa;
  --ink: #15202b;
  --ink-soft: #3d4a57;
  --muted: #6b7885;
  --line: #c8d0d8;
  --line-soft: #d9e0e6;
  --accent: #1f4f6d;
  --accent-hot: #b85a2a;
  --accent-wash: #dce8ef;
  --danger: #a33b3b;
  --ok: #2a6b4f;
  --radius: 3px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, #dfe5ea 0%, var(--bg) 28%, var(--bg) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cpath fill='none' stroke='%23c2ccd6' stroke-width='0.6' d='M0 120c40-20 80-20 120 0s80 20 120 0M0 90c40-18 80-18 120 0s80 18 120 0M0 60c40-16 80-16 120 0s80 16 120 0'/%3E%3C/svg%3E");
  background-size: auto, 220px 220px;
  background-attachment: fixed, fixed;
  line-height: 1.5;
}

main { flex: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hot); }

.wrap { width: min(1080px, calc(100% - 2rem)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.6rem;
  gap: 1rem;
  padding: 0.35rem 0;
}

.brand { display: flex; align-items: baseline; gap: 0.15rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { display: none; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-text span { color: var(--accent-hot); }
.brand-text small {
  margin-left: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  vertical-align: 0.35em;
}

.nav { display: none; gap: 1.35rem; align-items: center; }
.nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
}
.nav a:hover,
.nav a.accent { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 0.55rem; }
.link-muted { color: var(--muted); font-size: 0.9rem; font-weight: 600; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.25rem 0.45rem;
}
.lang-switch a { color: var(--muted); padding: 0 0.15rem; }
.lang-switch a.active,
.lang-switch a:hover { color: var(--ink); }

/* Buttons — no pills, no glow */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius);
  padding: 0.65rem 1.05rem;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #183f58;
  border-color: #183f58;
  color: #fff !important;
}
.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink) !important;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 3.6rem);
  display: flex;
  align-items: center;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(247, 248, 250, 0.94) 0%, rgba(247, 248, 250, 0.78) 48%, rgba(230, 234, 238, 0.35) 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-meta span::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent-hot);
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  font-size: clamp(3.4rem, 12vw, 6.8rem);
  line-height: 0.9;
  margin: 0;
  color: var(--ink);
}
.hero-brand span { color: var(--accent-hot); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  max-width: 28rem;
  margin: 1.35rem 0 0;
  color: var(--ink-soft);
  line-height: 1.15;
}

.hero .lead {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin-top: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.8rem;
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hot);
  margin: 0;
}

.section h2,
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  margin: 0.4rem 0 0;
  line-height: 1.05;
  color: var(--ink);
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.section-head a { font-weight: 700; font-size: 0.9rem; }

.grid-3,
.grid-equal { display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }

/* Product catalog — list panels, not gradient cards */
.product-card,
.service-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
  overflow: hidden;
}
.product-card.has-image {
  grid-template-columns: 7.5rem auto 1fr;
}
.product-thumb {
  width: 7.5rem;
  min-height: 100%;
  object-fit: cover;
  display: block;
  background: var(--accent-wash);
  border-right: 1px solid var(--line);
}
.product-hero-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-top: 1rem;
}
@media (max-width: 719px) {
  .product-card.has-image { grid-template-columns: auto 1fr; }
  .product-card.has-image .product-thumb {
    grid-column: 1 / -1;
    width: 100%;
    height: 140px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .product-card.has-image .product-index { grid-row: 2; }
  .product-card.has-image .product-body { grid-row: 2; }
}
.product-card:hover,
.service-card:hover {
  border-color: var(--accent);
  background: #fff;
  color: inherit;
}

.product-index {
  width: 3.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0.35rem;
  background: var(--accent-wash);
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
}
.product-index strong {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.product-body {
  padding: 0.95rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.product-body .row-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}
.product-body h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}
.product-body p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.platform-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line-soft);
}
.price-from {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
.price-from small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.periods {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
  max-width: 55%;
}

.service-card { grid-template-columns: 1fr; }
.service-card .product-body { padding: 1.15rem 1.2rem 1.25rem; }
.service-host {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 0.55rem !important;
}
.service-open {
  margin-top: 0.85rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-hot);
}

/* How it works */
.steps { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  background: #fff;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}
.step-icon {
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--accent-wash);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}
.step h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.step .muted { margin: 0.25rem 0 0; font-size: 0.92rem; }

.cta-band {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-hot);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.8rem 1.5rem;
}
.cta-band h2 { margin-top: 0; }

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: #15202b;
  color: #d7dee5;
}
.site-footer a { color: #d7dee5; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #9aa6b2; }
.site-footer .eyebrow { color: #e08a55; }
.footer-grid { display: grid; gap: 2rem; padding: 2.6rem 0; }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
}
.footer-brand span { color: #e08a55; }
.footer-links { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.footer-links li { margin: 0.35rem 0; }
.footer-links a { font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #8b97a3;
}

/* Forms / auth */
.auth-box { width: min(420px, calc(100% - 2rem)); margin: 3rem auto; }
.auth-box h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0.5rem 0 0;
}
.label {
  display: block;
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.input,
.select,
.textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  font: inherit;
  outline: none;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-wash);
}
.form-row { margin-top: 0.9rem; }
.textarea { min-height: 110px; resize: vertical; }

.alert {
  margin: 1rem auto 0;
  border-radius: var(--radius);
  padding: 0.75rem 0.95rem;
  font-size: 0.9rem;
  border: 1px solid;
}
.alert-ok { background: #e8f3ed; border-color: #b7d4c4; color: var(--ok); }
.alert-err { background: #f8eaea; border-color: #e0b8b8; color: var(--danger); }
.alert-info { background: var(--accent-wash); border-color: #b9cdd9; color: var(--accent); }

/* Product detail */
.product-layout { display: grid; gap: 1.75rem; padding: 2.5rem 0; }
.product-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  background: #fff;
  border-left: 4px solid var(--accent);
}
.product-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0.4rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  color: var(--ink);
  line-height: 1.05;
}
.product-hero .lead-light { color: var(--muted); margin: 0.65rem 0 0; max-width: 34rem; }

.feature-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.55rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  font-size: 0.92rem;
  background: #fff;
}
.feature-list li::before {
  content: "▸";
  color: var(--accent-hot);
  font-size: 0.8rem;
  line-height: 1.4;
}

.buy-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  background: #fff;
}
.price-option {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  margin-top: 0.4rem;
  text-align: left;
}
.price-option.active,
.price-option:hover {
  border-color: var(--accent);
  background: var(--accent-wash);
}
.price-option strong {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
}
.buy-total {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 0.9rem;
}
.buy-total .sum {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 600;
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 0.7rem 0.9rem; text-align: left; border-top: 1px solid var(--line-soft); }
th {
  background: var(--accent-wash);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 0;
}
.mono { font-family: var(--font-mono); font-size: 0.85rem; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem;
  background: #fff;
}
.stats { display: grid; gap: 0.7rem; grid-template-columns: 1fr 1fr; }
.stat .label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat .value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0.2rem 0 0;
  text-transform: uppercase;
}

.admin-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.9rem 0 1.2rem; }
.admin-nav a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.35rem 0.7rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
  background: #fff;
  font-weight: 600;
}
.admin-nav a:hover,
.admin-nav a.active {
  border-color: var(--accent);
  color: var(--accent);
}

.list-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1.05rem;
  background: #fff;
  margin-top: 0.65rem;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius);
  background: var(--surface);
}

/* Legacy gradient classes unused but kept harmless */
.grad-cyan,
.grad-sky,
.grad-emerald,
.grad-amber,
.grad-gold,
.grad-rose,
.product-media { display: none; }

@media (min-width: 720px) {
  .nav { display: flex; }
  .grid-3,
  .grid-equal { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1.25fr 0.75fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .product-layout { align-items: start; }
  .buy-panel { position: sticky; top: 4.5rem; }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-equal { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 1fr; }
  .admin-tabs { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 719px) {
  .hide-sm { display: none; }
}
