:root {
  --bg: #071019;
  --bg-soft: #0b1724;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --muted: #a7b3c2;
  --accent: #6ee7a8;
  --accent-strong: #42d98c;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(60, 120, 255, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(110, 231, 168, 0.08), transparent 25%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 16, 25, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

.brand-text {
  font-size: 1.15rem;
  color: var(--text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a,
.site-footer a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--text);
}

.main-nav a[aria-current="page"] {
  color: var(--text);
  position: relative;
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-large {
  min-height: 54px;
  padding: 0 24px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #04110b;
  box-shadow: 0 10px 30px rgba(66, 217, 140, 0.22);
}

.btn-primary:hover {
  opacity: 0.96;
}

.btn-secondary {
  border-color: rgba(110, 231, 168, 0.35);
  background: rgba(110, 231, 168, 0.06);
  color: var(--text);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

/* Hero */

.hero {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  background:
    linear-gradient(
      90deg,
      rgba(4, 10, 20, 0.72) 0%,
      rgba(4, 10, 20, 0.55) 18%,
      rgba(4, 10, 20, 0.25) 30%,
      rgba(4, 10, 20, 0.10) 42%,
      rgba(4, 10, 20, 0.00) 55%
    ),
    url("../images/hero.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(4, 10, 20, 0.10) 0%,
      rgba(4, 10, 20, 0.16) 100%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-copy {
  position: relative;
  max-width: 720px;
  padding: 110px 0;
  margin-left: clamp(40px, 6vw, 120px);
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -40px -60px;
  background: radial-gradient(circle, rgba(110, 231, 168, 0.08), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 700;
  max-width: 7.8ch;
}

.hero h2 {
  margin: 14px 0 0;
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  line-height: 1.16;
  color: var(--accent);
  font-weight: 600;
  max-width: 22ch;
}

.hero-lead {
  margin: 26px 0 0;
  color: rgba(244, 247, 251, 0.88);
  font-size: 1.05rem;
  line-height: 1.72;
  max-width: 36rem;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-meta span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(8, 15, 26, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 247, 251, 0.78);
  font-size: 0.92rem;
}

/* Sections */

.section {
  position: relative;
  padding: 92px 0;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(110, 231, 168, 0.035), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(60, 120, 255, 0.035), transparent 40%);
  pointer-events: none;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section-dark {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mission-strip {
  background: linear-gradient(
    135deg,
    rgba(110, 231, 168, 0.05),
    rgba(60, 120, 255, 0.05)
  );
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-soft {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--line);
}

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

.section-heading.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading h1,
.section-heading h3,
.split-grid h3,
.final-cta h3 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.section-heading h3 {
  font-weight: 600;
}

.section-heading p,
.split-grid p,
.final-cta p,
.card p,
.footer-brand p {
  color: var(--muted);
}

/* Grids */

.three-up,
.four-up,
.two-up,
.split-grid,
.footer-grid {
  display: grid;
  gap: 24px;
}

.three-up {
  grid-template-columns: repeat(3, 1fr);
}

.four-up {
  grid-template-columns: repeat(4, 1fr);
}

.two-up {
  grid-template-columns: repeat(2, 1fr);
}

.split-grid {
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
}

.footer-grid {
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  align-items: start;
}

.footer-grid-upgraded {
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1.1fr 0.95fr;
  gap: 40px;
  align-items: start;
}

.footer-grid-upgraded > div {
  min-width: 140px;
}

.footer-grid-upgraded > div:nth-last-child(2) {
  margin-right: 20px;
}

/* Cards */

.card {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(110, 231, 168, 0.08);
}

.card h4 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  line-height: 1.2;
}

.step-number,
.card-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  background: rgba(110, 231, 168, 0.1);
  border: 1px solid rgba(110, 231, 168, 0.18);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.feature-list {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.feature-list li + li {
  margin-top: 10px;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
}

/* CTA */

.cta-panel {
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 24px;
  align-items: center;
  padding: 36px;
  border-radius: 28px;
  background:
    radial-gradient(circle at left, rgba(110, 231, 168, 0.12), transparent 50%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(110, 231, 168, 0.15);
  box-shadow: var(--shadow);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.cta-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Footer */

.site-footer {
  padding: 36px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.12);
}

.site-footer h4 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.footer-tagline {
  max-width: 280px;
}

.footer-micro {
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  max-width: 280px;
}

.footer-app-text {
  margin-top: 16px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-apps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-wrap: nowrap;
  margin-top: 10px;
}

.footer-apps img {
  height: 36px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-apps img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-bottom,
.footer-bottom-upgraded {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #8190a2;
  font-size: 0.92rem;
}

.footer-bottom p,
.footer-bottom-upgraded p {
  margin: 0;
}

.footer-acknowledgement {
  margin-top: 14px;
  background: rgba(12, 22, 40, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.acknowledgement-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.ack-flags {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.ack-flags img {
  width: 40px;
  height: auto;
  display: block;
  border-radius: 2px;
  opacity: 0.95;
}

.footer-acknowledgement p {
  margin: 0;
  color: rgba(244, 247, 251, 0.82);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Calculator page */

.calculator-hero {
  padding-top: 120px;
  padding-bottom: 40px;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: start;
}

.calculator-panel {
  padding: 36px;
}

.calculator-panel-header h3 {
  margin-top: 6px;
}

.calculator-form {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.calculator-form label,
.form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

.calculator-form input,
.calculator-form select,
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border 0.2s ease, background 0.2s ease, color 0.2s ease;
}

/* Select dropdown readability fix */
.calculator-form select,
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%),
    rgba(255, 255, 255, 0.03);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px),
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
  padding-right: 40px;
  color: var(--text);
}

/* Native option styling */
.calculator-form select option,
.form-group select option {
  background: #0b1724;
  color: #f4f7fb;
}

/* Focus states */
.calculator-form input:focus,
.calculator-form select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.06);
}

/* Slightly stronger focus for selects */
.calculator-form select:focus,
.form-group select:focus {
  color: #ffffff;
}

/* Disabled option readability */
.calculator-form select option:disabled,
.form-group select option:disabled {
  color: rgba(244, 247, 251, 0.45);
}

.calculator-form input[type="range"],
.form-group input[type="range"] {
  width: 100%;
  margin-top: 8px;
  padding: 0;
}

.range-value {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}

.checkbox-group {
  margin-top: 6px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.results-panel {
  padding: 32px;
  position: sticky;
  top: 110px;
}

.results-panel-header h3 {
  margin-top: 6px;
}

.result-primary {
  margin-top: 20px;
}

.result-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.result-value {
  font-size: 2.6rem;
  font-weight: 700;
  margin-top: 4px;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.result-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 12px;
}

.result-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.result-stat-value {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2px;
}

.results-divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}

.result-secondary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-secondary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

.result-secondary-item strong {
  color: var(--text);
}

.results-note {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--muted);
}

.results-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.example-card .example-metric {
  margin-top: 14px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

/* Network page */

.hero-simple {
  padding: 110px 0 72px;
}

.hero-content-narrow {
  max-width: 900px;
}

.main-nav a.active {
  color: #ffffff;
  border-bottom: 2px solid #00ffcc;
}

.split-grid-balanced {
  align-items: start;
  gap: 48px;
}

.card-icon .icon-badge {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 18px;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
}

.compact-grid {
  gap: 20px;
}

.mini-card h3 {
  margin-bottom: 8px;
}

/* Hosts page */

.hosts-hero {
  position: relative;
  overflow: hidden;
  padding: 118px 0 88px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background:
    radial-gradient(circle at top left, rgba(60, 120, 255, 0.08), transparent 30%),
    radial-gradient(circle at 85% 22%, rgba(110, 231, 168, 0.08), transparent 24%),
    linear-gradient(180deg, #071019 0%, #08121d 100%);
}

.hosts-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(110, 231, 168, 0.04), transparent 45%);
}

.hosts-hero-content {
  position: relative;
  z-index: 1;
}

.hosts-hero-copy {
  max-width: 760px;
}

.hosts-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 11ch;
}

.hosts-hero h2 {
  margin: 20px 0 0;
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  line-height: 1.12;
  color: var(--text);
  font-weight: 600;
  max-width: 22ch;
}

.hosts-hero-lead {
  margin: 24px 0 0;
  color: rgba(244, 247, 251, 0.88);
  font-size: 1.05rem;
  line-height: 1.72;
  max-width: 42rem;
}

.hosts-hero .hero-actions {
  margin-top: 32px;
}

.hosts-hero .hero-meta {
  margin-top: 26px;
  gap: 14px;
}

.hosts-hero + .section {
  padding-top: 108px;
}

.host-dashboard-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: center;
}

.host-dashboard-copy h3 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.host-dashboard-copy p {
  color: var(--muted);
}

.hardware-card-media {
  margin: -28px -28px 20px;
  overflow: hidden;
  border-bottom: 1px solid var(--panel-border);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.hardware-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.earning-card {
  text-align: left;
}

.earning-value {
  margin-top: 18px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.earning-note {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.section-heading.center h3 {
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}

/* Users page */

.users-hero {
  padding-top: 120px;
  padding-bottom: 52px;
}

.users-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.users-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 10ch;
}

.users-hero-copy h2 {
  margin: 14px 0 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.18;
  color: var(--accent);
  font-weight: 600;
  max-width: 20ch;
}

.users-hero-lead {
  margin: 22px 0 0;
  color: rgba(244, 247, 251, 0.86);
  font-size: 1.05rem;
  line-height: 1.72;
  max-width: 36rem;
}

.users-hero-panel {
  padding: 26px;
}

.dashboard-mini-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-pill,
.dashboard-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.dashboard-pill {
  background: rgba(110, 231, 168, 0.10);
  border: 1px solid rgba(110, 231, 168, 0.18);
  color: var(--accent);
}

.dashboard-status {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  color: var(--muted);
}

.dashboard-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dashboard-mini-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 16px;
}

.dashboard-mini-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.dashboard-mini-card strong {
  font-size: 1.5rem;
  font-weight: 700;
}

.dashboard-mini-panel {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 18px;
}

.dashboard-mini-title {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.job-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.job-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.job-status {
  font-size: 0.82rem;
  font-weight: 600;
}

.job-status.running {
  color: #7ce9b0;
}

.job-status.queued {
  color: #cfe2ff;
}

.job-status.complete {
  color: var(--accent);
}

.workload-card,
.value-card {
  min-height: 100%;
}

.user-dashboard-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: center;
}

.dashboard-preview-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}

.dashboard-preview-card img {
  width: 100%;
  border-radius: 16px;
}

/* Legal pages */

.legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.legal-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

/* Partners page */

.partners-hero {
  padding-top: 120px;
  padding-bottom: 52px;
}

.partners-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Machines page */

.machines-hero {
  padding-top: 120px;
  padding-bottom: 52px;
}

.machines-hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.machines-hero-meta span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(8, 15, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 247, 251, 0.78);
  font-size: 0.92rem;
}

.machine-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.machine-card-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  background: rgba(110, 231, 168, 0.1);
  border: 1px solid rgba(110, 231, 168, 0.18);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.machine-visual-locked {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.machine-visual-placeholder {
  display: inline-flex;
  width: 68px;
  height: 68px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(110, 231, 168, 0.08);
  border: 1px solid rgba(110, 231, 168, 0.18);
  font-size: 1.6rem;
}

.machine-visual-locked p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.machine-spec-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.machine-spec-list li + li {
  margin-top: 8px;
}

.machine-spec-list strong {
  color: var(--text);
}

.machine-card-actions {
  margin-top: auto;
  padding-top: 22px;
}

.machines-flow-secondary {
  margin-top: 24px;
}

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 20px;
}

.contact-card h3,
.contact-form-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.contact-detail {
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
}

.contact-form-card {
  padding: 32px;
}

.contact-form {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form .form-group {
  margin-bottom: 0;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.status-box {
  margin-top: 18px;
  margin-bottom: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.status-box.hidden {
  display: none;
}

.status-success {
  background: rgba(66, 217, 140, 0.12);
  border-color: rgba(66, 217, 140, 0.24);
  color: #9af0c3;
}

.status-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.24);
  color: #ffb3b3;
}

/* Marketplace page */

.marketplace-hero {
  padding-top: 120px;
  padding-bottom: 40px;
}

.filter-bar {
  padding-top: 0;
  padding-bottom: 24px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.filter-grid select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.95rem;
}

.filter-grid select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.marketplace-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.market-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.market-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.market-price {
  margin-top: 8px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

/* Scroll to top */

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: rgba(8, 15, 26, 0.88);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  box-shadow: var(--shadow);
}

#scrollTopBtn:hover {
  transform: translateY(-2px);
  background: rgba(8, 15, 26, 0.98);
}

/* Roadmap page */

.roadmap-page {
  background:
    radial-gradient(circle at top left, rgba(60, 120, 255, 0.07), transparent 30%),
    radial-gradient(circle at top right, rgba(110, 231, 168, 0.08), transparent 24%),
    linear-gradient(180deg, #071019 0%, #08121d 100%);
}

.roadmap-hero {
  position: relative;
  padding: 110px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.roadmap-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 24%, rgba(110, 231, 168, 0.09), transparent 24%),
    linear-gradient(135deg, rgba(110, 231, 168, 0.04), transparent 45%);
  pointer-events: none;
}

.roadmap-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.roadmap-title {
  margin: 0 0 20px;
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 8ch;
}

.roadmap-subtitle {
  margin: 0;
  max-width: 40rem;
  color: rgba(244, 247, 251, 0.88);
  font-size: 1.05rem;
  line-height: 1.72;
}

.roadmap-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.roadmap-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.roadmap-stat {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow);
}

.roadmap-stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--text);
}

.roadmap-stat span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.roadmap-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.roadmap-panel h3 {
  margin: 0 0 18px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.journey-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.journey-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.journey-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.journey-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(110, 231, 168, 0.1);
  border: 1px solid rgba(110, 231, 168, 0.18);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
}

.journey-list h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.2;
}

.journey-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.section-block {
  padding: 92px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 18px 0 0;
  color: var(--muted);
}

.origin-grid,
.phase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.story-card,
.phase-card,
.vision-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.story-card h3,
.phase-card h3,
.vision-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  line-height: 1.2;
}

.story-card p,
.phase-card p,
.vision-card p {
  margin: 0;
  color: var(--muted);
}

.story-card strong {
  color: var(--accent);
}

.phase-band {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(110, 231, 168, 0.08);
  border: 1px solid rgba(110, 231, 168, 0.18);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.phase-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(110, 231, 168, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
}

.phase-summary {
  max-width: 820px;
  margin: 0 0 28px;
  color: var(--muted);
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.closing-cta {
  padding: 0 0 92px;
}

.roadmap-cta-card {
  text-align: center;
}

.roadmap-cta-card h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.roadmap-cta-card p {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
}

.roadmap-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Auth pages */

.auth-page {
  background:
    radial-gradient(circle at top left, rgba(60, 120, 255, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(110, 231, 168, 0.08), transparent 25%),
    linear-gradient(180deg, #071019 0%, #08121d 100%);
}

.auth-section {
  padding: 72px 0 96px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.auth-panel,
.auth-form-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.auth-panel {
  padding: 32px;
}

.auth-form-card {
  padding: 32px;
  max-width: 680px;
  width: 100%;
}

.auth-panel h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.auth-panel p {
  color: var(--muted);
}

.auth-lead {
  margin: 20px 0 0;
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 38rem;
}

.auth-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.auth-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
}

.auth-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(110, 231, 168, 0.10);
  border: 1px solid rgba(110, 231, 168, 0.18);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 1px;
}

.auth-note {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-form-header h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.1;
}

.auth-form-header p {
  margin: 10px 0 0;
  color: var(--muted);
}

.auth-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form .form-group {
  margin-bottom: 0;
}

.auth-form-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.auth-form-links a:first-child {
  color: var(--accent);
  font-weight: 600;
}

.auth-form-links a:last-child {
  color: var(--muted);
}

.auth-form-links a:hover {
  color: var(--text);
}

.auth-inline-status {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.auth-inline-status.hidden {
  display: none;
}

.auth-inline-status.auth-success {
  background: rgba(66, 217, 140, 0.12);
  border-color: rgba(66, 217, 140, 0.24);
  color: #9af0c3;
}

.auth-inline-status.auth-info {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--panel-border);
  color: var(--text);
}

.auth-inline-status.auth-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.24);
  color: #ffb3b3;
}

.auth-twofactor {
  display: none;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.02);
}

.auth-twofactor.active {
  display: block;
}

.auth-support {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-support a {
  color: var(--accent);
  font-weight: 600;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-back-link:hover {
  color: var(--text);
}

/* Responsive */

@media (max-width: 1200px) {
  .footer-grid-upgraded {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
  }

  .footer-grid-upgraded > div:nth-last-child(2) {
    margin-right: 0;
  }
}

@media (max-width: 1100px) {
  .three-up {
    grid-template-columns: 1fr;
  }

  .four-up {
    grid-template-columns: 1fr 1fr;
  }

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

  .users-hero-grid,
  .user-dashboard-grid,
  .roadmap-hero-grid,
  .vision-grid,
  .host-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .calculator-grid,
  .contact-grid,
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .results-panel {
    position: relative;
    top: 0;
  }

  .auth-form-card {
    max-width: 100%;
  }

  .footer-grid-upgraded {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

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

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

@media (max-width: 860px) {
  .main-nav,
  .header-actions {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 32px;
  }

  .split-grid,
  .two-up,
  .cta-panel,
  .footer-grid,
  .footer-grid-upgraded,
  .users-hero-grid,
  .user-dashboard-grid,
  .origin-grid,
  .phase-grid,
  .vision-grid,
  .four-up {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 100%;
    margin-left: 0;
  }

  .hero-copy::before {
    inset: -20px -20px;
  }

  .users-hero-copy h1,
  .users-hero-copy h2,
  .users-hero-lead,
  .roadmap-title,
  .roadmap-subtitle,
  .phase-summary,
  .section-head {
    max-width: 100%;
  }

  .cta-actions,
  .roadmap-cta-actions {
    justify-content: flex-start;
  }

  .section,
  .section-block {
    padding: 72px 0;
  }

  .roadmap-hero {
    padding: 88px 0 68px;
  }

  .hosts-hero {
    padding: 96px 0 72px;
  }

  .hosts-hero-copy,
  .hosts-hero-lead {
    max-width: 100%;
  }

  .hosts-hero + .section {
    padding-top: 84px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-inner {
    min-height: 74px;
  }

  .brand-text {
    font-size: 1rem;
  }

  .card,
  .cta-panel,
  .calculator-panel,
  .results-panel,
  .users-hero-panel,
  .dashboard-preview-card,
  .contact-form-card,
  .roadmap-panel,
  .story-card,
  .phase-card,
  .vision-card,
  .roadmap-stat,
  .auth-panel,
  .auth-form-card {
    padding: 22px;
  }

  .hero-actions,
  .cta-actions,
  .results-actions,
  .contact-form-actions,
  .roadmap-hero-actions,
  .roadmap-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .btn-large {
    width: 100%;
  }

  .hero-meta {
    gap: 10px;
  }

  .hero-meta span {
    font-size: 0.86rem;
    padding: 7px 12px;
  }

  .form-row,
  .results-grid,
  .dashboard-mini-grid,
  .roadmap-stat-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .journey-list li {
    grid-template-columns: 36px 1fr;
    gap: 12px;
  }

  .auth-form-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .hardware-card-media {
    margin: -22px -22px 18px;
  }

  #scrollTopBtn {
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
  }

  .ack-flags img {
    width: 42px;
  }

  .footer-acknowledgement p {
    font-size: 0.78rem;
  }
}
