/* Terminal.Glass — shared site styles */

:root {
  --bg: #0a0c10;
  --bg-alt: #0d1016;
  --card: #11161e;
  --card-hover: #151c26;
  --border: #1e2836;
  --border-subtle: #171e28;
  --text: #e8ecf2;
  --muted: #8892a0;
  --muted-dim: #5c6674;
  --accent: #3db88a;
  --accent-hover: #4ec99a;
  --accent-dim: #2a5c48;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'JetBrains Mono', Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  --section-pad: 112px;
  --wrap: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin-bottom: 0.75rem;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 1rem;
  display: block;
}

.section {
  padding: var(--section-pad) 0;
}

.section-sub {
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 56px;
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 24px;
}

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

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: -0.02em;
}

.brand-name {
  font-weight: 600;
  font-size: 0.98rem;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  font-family: var(--mono);
  color: var(--muted);
  padding: 8px;
  font-size: 1.15rem;
  user-select: none;
}

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

nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
  align-items: center;
}

nav a {
  color: var(--muted);
  font-size: 0.875rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.nav-actions-mobile {
  display: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #07120d;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #07120d;
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: #2a3544;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- Hero ---------- */

.hero {
  padding: 100px 0 108px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 3.5rem);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero h1 .accent {
  color: var(--text);
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 0.75rem;
  line-height: 1.75;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--muted-dim);
  margin-bottom: 2.25rem;
  max-width: 480px;
}

.deploy-viz {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.deploy-viz-header {
  padding: 10px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted-dim);
}

.deploy-diagram {
  padding: 32px 28px;
}

.server-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--bg);
}

.server-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.deploy-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deploy-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--muted);
}

.deploy-node strong {
  color: var(--text);
  font-weight: 500;
}

.deploy-node .port {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted-dim);
}

/* ---------- Cards & Grids ---------- */

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

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

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

.card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 26px;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.card .tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted-dim);
  display: block;
  margin-bottom: 0.65rem;
  letter-spacing: 0.08em;
}

/* ---------- Value cards ---------- */

.value-card p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
}

/* ---------- Model preview cards ---------- */

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

.model-card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.model-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
}

.model-card .desc {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  flex-grow: 1;
}

.model-card .link {
  font-size: 0.84rem;
  color: var(--muted-dim);
  margin-top: 4px;
}

.model-card .link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ---------- Hosting paths ---------- */

.host-path h3 {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.host-path .path-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ---------- Order panel (reusable) ---------- */

.order-panel {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--section-pad);
}

.order-panel-header {
  margin-bottom: 48px;
}

.order-panel-header h2 {
  margin-bottom: 0.75rem;
}

.order-panel-header p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 480px;
  line-height: 1.7;
}

.order-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 48px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.order-step {
  padding: 28px 24px;
  background: var(--card);
  border-right: 1px solid var(--border-subtle);
}

.order-step:last-child {
  border-right: none;
}

.order-step-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted-dim);
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
  display: block;
}

.order-step h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.order-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.order-reassurance {
  color: var(--muted-dim);
  font-size: 0.84rem;
  max-width: 440px;
  line-height: 1.6;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 200;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  overflow: visible;
}

.hero-tagline {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* ---------- Footer ---------- */

footer,
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 32px 24px;
  padding-bottom: 40px;
}

.footer-brand strong {
  color: var(--text);
  font-size: 1rem;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  line-height: 1.6;
  max-width: 280px;
}

.footer-contact {
  margin-top: 0.75rem;
}

.footer-contact a {
  color: var(--accent);
}

.footer-col h4 {
  font-size: 0.72rem;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 20px 0 28px;
  font-size: 0.78rem;
  color: var(--muted-dim);
}

footer ul {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

footer a,
.site-footer a {
  color: var(--muted);
}

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

.section-alt {
  background: var(--bg-alt);
}

.section-link {
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--muted-dim);
}

.section-link a {
  color: var(--muted);
}

.section-link a:hover {
  color: var(--accent);
}

.plan-price {
  font-family: var(--mono);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.plan-fee-block {
  margin-bottom: 1.15rem;
}

.plan-fee-block h4 {
  font-size: 0.72rem;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.plan-fee-block p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.infra-disclaimer {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 640px;
  margin-top: 28px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
}

/* ---------- Inner page hero ---------- */

.page-hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  margin-bottom: 1rem;
  font-weight: 600;
}

.page-hero .lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.75;
}

.page-hero-compact {
  padding: 64px 0 56px;
}

/* ---------- Pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--accent-dim);
}

.price-card .plan-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.price-card .card-cta {
  margin-top: auto;
  padding-top: 1.5rem;
}

.check-list {
  list-style: none;
  margin: 0;
}

.check-list li {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 7px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.55;
}

.check-list li::before {
  content: "—";
  color: var(--muted-dim);
  font-family: var(--mono);
  flex-shrink: 0;
}

.note-box {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  max-width: 720px;
}

.note-box p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.note-box p + p {
  margin-top: 0.85rem;
}

/* ---------- Hosting providers ---------- */

.badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.badge-live {
  color: var(--accent);
}

.provider-card h3 {
  font-size: 1.05rem;
}

/* ---------- Contact form ---------- */

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

.form-card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 28px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-dim);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted-dim);
  margin-top: 14px;
  line-height: 1.6;
}

.reason-list {
  list-style: none;
}

.reason-list li {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  line-height: 1.55;
}

.reason-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.info-block h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.info-block p,
.info-block li {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.info-block ul {
  list-style: none;
  margin-top: 0.5rem;
}

.info-block li {
  padding: 6px 0;
}

.info-block li::before {
  content: "·";
  margin-right: 8px;
  color: var(--muted-dim);
}

.info-block + .info-block {
  margin-top: 32px;
}

.text-link {
  color: var(--accent);
}

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

/* ---------- Responsive ---------- */

/* ---------- Models catalog page ---------- */

.model-lane-selector {
  display: flex;
  width: 100%;
  max-width: 420px;
  margin-bottom: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card);
}

.lane-option {
  flex: 1;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 12px 16px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.lane-option:hover {
  color: var(--text);
}

.lane-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  z-index: 1;
}

.lane-option.is-active {
  background: var(--bg-alt);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
}

.lane-intro {
  max-width: 640px;
  margin-bottom: 40px;
}

.lane-intro p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.lane-intro p:last-child {
  margin-bottom: 0;
}

.model-lane-panel[hidden] {
  display: none;
}

.catalog-sections {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.catalog-category {
  font-size: 0.72rem;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 16px;
  font-weight: 600;
}

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

.catalog-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.catalog-card:hover {
  border-color: var(--accent-dim);
  color: var(--text);
  text-decoration: none;
}

.catalog-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.catalog-card h4 {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}

.catalog-card p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  flex-grow: 1;
}

.catalog-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.catalog-meta {
  font-size: 0.78rem;
  color: var(--muted-dim);
}

.private-handoff {
  margin-bottom: 36px;
}

.private-category-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

.private-category-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.private-category-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.noscript-note {
  margin-top: 24px;
  font-size: 0.9rem;
}

.noscript-note a {
  color: var(--accent);
}

@media (max-width: 1024px) {
  :root {
    --section-pad: 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

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

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

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

  .order-step:nth-child(2) {
    border-right: none;
  }

  .order-step:nth-child(1),
  .order-step:nth-child(2) {
    border-bottom: 1px solid var(--border-subtle);
  }

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

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

@media (max-width: 720px) {
  :root {
    --section-pad: 64px;
  }

  .wrap {
    padding: 0 20px;
  }

  .grid-3,
  .grid-2,
  .grid-4,
  .price-grid,
  .model-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .private-category-links {
    grid-template-columns: 1fr;
  }

  .model-lane-selector {
    max-width: none;
  }

  .order-step {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .order-step:last-child {
    border-bottom: none;
  }

  .nav-toggle-label {
    display: block;
  }

  nav {
    position: relative;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px;
    min-width: 200px;
  }

  nav ul li {
    width: 100%;
  }

  nav ul a {
    display: block;
    padding: 10px 12px;
  }

  .nav-actions {
    display: none;
  }

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

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

  .nav-actions-mobile {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    margin-top: 6px;
    border-top: 1px solid var(--border-subtle);
  }

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

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}
