/* ==========================================================================
   Altered Dimensions Hosting — Custom Theme (Premium Performance)
   Orange #FF6B2C + Navy #0A0E1A
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts — Inter + JetBrains Mono (self-hosted later; remote now for speed)
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* --------------------------------------------------------------------------
   2. Brand tokens — single source of truth for the entire site
   -------------------------------------------------------------------------- */
:root {
  /* Surface */
  --ink:         #0A0E1A;
  --ink-1:       #0F1322;
  --ink-2:       #11151F;
  --ink-3:       #161B26;
  --ink-4:       #1D2230;
  --line:        #232938;
  --line-strong: #2C3344;
  --line-bright: #38415A;

  /* Text */
  --text:        #F5F7FA;
  --text-mute:   #B7BECC;
  --text-dim:    #8189A0;
  --text-faint:  #4D556A;

  /* Brand */
  --accent:        #FF6B2C;
  --accent-soft:   #FF8E5C;
  --accent-deep:   #CE5320;
  --accent-tint:   rgba(255, 107, 44, 0.12);
  --accent-tint-2: rgba(255, 107, 44, 0.04);

  --signal:        #00D4AA;
  --signal-soft:   #1FE5BF;
  --signal-tint:   rgba(0, 212, 170, 0.10);

  --warn:          #FFB23F;
  --danger:        #FF4B5C;

  /* Bootstrap overrides — keep these in sync with WHMCS theme */
  --primary:        #FF6B2C;
  --secondary:      #00D4AA;
  --success:        #00D4AA;
  --info:           #5FB8FF;
  --warning:        #FFB23F;
  --danger:         #FF4B5C;
  --light:          #161B26;
  --dark:           #0A0E1A;

  --body-bg:        #0A0E1A;
  --body-color:     #F5F7FA;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --font-display: 'Inter', -apple-system, sans-serif;

  --border-radius: 0px;
  --border-radius-sm: 0px;
  --border-radius-lg: 0px;
}

/* --------------------------------------------------------------------------
   3. Bootstrap layout grid variable overrides
   -------------------------------------------------------------------------- */
:root {
  --grid-gutter-width: 1.5rem;
}

/* --------------------------------------------------------------------------
   4. Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 1200px 600px at 50% -200px, rgba(255, 107, 44, 0.05), transparent),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  background-attachment: fixed;
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-soft); text-decoration: none; }

img { max-width: 100%; height: auto; }

::selection { background: var(--accent); color: var(--ink); }

/* Focus rings */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   5. Type scale (h1..h6 + helpers)
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 .75rem;
}
h1, .h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2, .h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3, .h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4, .h4 { font-size: 1.15rem; }
h5, .h5 { font-size: 1rem; }
h6, .h6 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; }

p { margin: 0 0 1rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-mute);
  max-width: 60ch;
}

.muted { color: var(--text-mute); }
.dim { color: var(--text-dim); }
.mono { font-family: var(--font-mono); }

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

/* --------------------------------------------------------------------------
   6. Layout primitives
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1400px; }
.section { padding: 6rem 0; }
.section-tight { padding: 4rem 0; }
@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .section-tight { padding: 2.5rem 0; }
}

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

/* --------------------------------------------------------------------------
   7. Status pill (top bar)
   -------------------------------------------------------------------------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--signal);
  background: var(--signal-tint);
  border: 1px solid rgba(0, 212, 170, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.5);
  animation: pulse-signal 2s infinite;
}
@keyframes pulse-signal {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(0, 212, 170, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0); }
}

/* --------------------------------------------------------------------------
   8. Top bar
   -------------------------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 1.5rem;
  background: var(--ink-1);
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--text-mute);
}
.topbar a { color: var(--text-mute); }
.topbar a:hover { color: var(--text); }
.topbar-left { display: flex; align-items: center; gap: 1.25rem; }
.topbar-right { display: flex; align-items: center; gap: 1.25rem; }

/* --------------------------------------------------------------------------
   9. Main navigation
   -------------------------------------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1.5rem;
  background: rgba(10, 14, 26, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.nav-logo svg { display: block; }
.nav-logo:hover { color: var(--accent); }

.nav-primary {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-primary a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-mute);
  border-radius: 0;
}
.nav-primary a:hover { color: var(--text); }
.nav-primary a.is-active { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 0.5rem; }

/* --------------------------------------------------------------------------
   10. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.btn-primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--ink); }

.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--line-bright); background: var(--ink-3); color: var(--text); }

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

.btn-link {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--accent);
}
.btn-link:hover { color: var(--accent-soft); }

.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: 0.4375rem 0.875rem; font-size: 0.8125rem; }
.btn-block { display: flex; width: 100%; }

/* --------------------------------------------------------------------------
   11. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.card-body { padding: 1.5rem; }
.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--ink-3);
  font-family: var(--font-display);
  font-weight: 600;
}
.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--ink-3);
}

/* Plan card */
.plan-card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color .2s ease, transform .2s ease;
}
.plan-card:hover {
  border-color: var(--line-bright);
  transform: translateY(-2px);
}
.plan-card.is-featured {
  border-color: var(--accent);
  background: var(--ink-3);
}
.plan-card.is-featured::before {
  content: 'Most popular';
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 0.3rem 0.65rem;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.plan-card-head {
  padding: 2rem 1.5rem 1rem;
  border-bottom: 1px solid var(--line);
}
.plan-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.plan-summary {
  font-size: 0.875rem;
  color: var(--text-mute);
  margin: 0;
}
.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 1.25rem 1.5rem;
  background: var(--ink-1);
  border-bottom: 1px solid var(--line);
}
.plan-price {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.plan-price-per {
  font-size: 0.875rem;
  color: var(--text-dim);
}
.plan-price-original {
  font-size: 0.875rem;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-left: 0.5rem;
}
.plan-features {
  list-style: none;
  padding: 1.25rem 1.5rem;
  margin: 0;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-mute);
  line-height: 1.4;
}
.plan-features li::before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 0.2rem;
  background: var(--signal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M13.5 4.5L6 12L2.5 8.5L3.91 7.09L6 9.17L12.09 3.09L13.5 4.5Z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M13.5 4.5L6 12L2.5 8.5L3.91 7.09L6 9.17L12.09 3.09L13.5 4.5Z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.plan-cta {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   12. Tables (comparison)
   -------------------------------------------------------------------------- */
.tbl {
  width: 100%;
  border-collapse: collapse;
  background: var(--ink-2);
  border: 1px solid var(--line);
}
.tbl th, .tbl td {
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  vertical-align: top;
}
.tbl thead th {
  background: var(--ink-3);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--line-strong);
  position: sticky;
  top: 64px;
}
.tbl tbody tr:hover { background: var(--ink-3); }
.tbl .col-feature { color: var(--text-mute); font-weight: 500; width: 28%; }
.tbl .col-value { color: var(--text); }
.tbl .col-is-check { color: var(--signal); }
.tbl .col-is-cross { color: var(--text-faint); }
.tbl .col-featured { background: var(--accent-tint-2); }

@media (max-width: 768px) {
  .tbl thead th { position: static; }
  .tbl .col-feature { width: 50%; }
}

/* --------------------------------------------------------------------------
   13. Hero — split layout with terminal visual (Vercel/Stripe pattern)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 7rem 0 6rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 75% 50%, rgba(255, 107, 44, 0.14), transparent 60%),
    radial-gradient(ellipse 700px 400px at 15% 0%, rgba(0, 212, 170, 0.06), transparent 60%),
    radial-gradient(ellipse 500px 250px at 50% 100%, rgba(255, 107, 44, 0.04), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(255,255,255,0.018) 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,0.018) 79px 80px);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
}
.hero-left { max-width: 620px; }
.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-right::before {
  content: '';
  position: absolute;
  inset: -20px -20px -20px -20px;
  background: radial-gradient(ellipse 400px 280px at 50% 50%, rgba(255, 107, 44, 0.18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}
.hero-right svg, .hero-right img {
  width: 100%;
  max-width: 640px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
}
.hero h1 { margin-bottom: 1.25rem; }
.hero .lede { margin-bottom: 2rem; font-size: 1.2rem; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--text-mute);
}
.hero-trust-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-trust-item .icon { color: var(--accent); }

@media (max-width: 992px) {
  .hero-right { order: -1; }
}

/* --------------------------------------------------------------------------
   14. Infrastructure stat tiles
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--ink-2);
  border: 1px solid var(--line);
}
@media (max-width: 768px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-sub { display: block; font-size: 0.8125rem; color: var(--text-dim); margin-top: 0.4rem; }
.stat-link { display: inline-block; font-size: 0.8rem; color: var(--accent); margin-top: 0.75rem; }

/* --------------------------------------------------------------------------
   15. Feature grid
   -------------------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 992px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.feature {
  padding: 2rem 1.5rem;
  background: var(--ink-2);
}
.feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-tint);
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.feature h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.feature p { font-size: 0.875rem; color: var(--text-mute); margin: 0; line-height: 1.5; }

/* --------------------------------------------------------------------------
   16. FAQ accordion
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text);
  cursor: pointer;
}
.faq-q::after { content: '+'; font-size: 1.5rem; color: var(--accent); transition: transform .2s ease; line-height: 1; }
.faq-item.is-open .faq-q::after { content: '−'; }
.faq-a {
  display: none;
  padding: 0 0 1.5rem;
  color: var(--text-mute);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 70ch;
}
.faq-item.is-open .faq-a { display: block; }

/* --------------------------------------------------------------------------
   16b. Section color breaks — Fortune-500 rhythm pattern
   -------------------------------------------------------------------------- */
.section-ink    { background-color: var(--ink); }
.section-ink-1  { background-color: var(--ink-1); }
.section-ink-2  { background-color: var(--ink-2); }
.section-edge {
  position: relative;
  background-color: var(--ink);
}
.section-edge::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,107,44,.5), transparent);
}
.section-edge::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,170,.3), transparent);
}

/* --------------------------------------------------------------------------
   16c. Bento grid (Fortune-500 feature layout)
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 992px) { .bento { grid-template-columns: repeat(2, 1fr); } }

.bento-cell {
  background: var(--ink-2);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: background-color .2s ease;
}
.bento-cell:hover { background: var(--ink-3); }
.bento-cell h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.bento-cell p {
  font-size: 0.875rem;
  color: var(--text-mute);
  line-height: 1.55;
  margin: 0;
}
/* Bento cell sizes */
.bento-1x1 { grid-column: span 1; grid-row: span 1; }
.bento-1x2 { grid-column: span 1; grid-row: span 2; }
.bento-2x1 { grid-column: span 2; grid-row: span 1; }
.bento-2x2 { grid-column: span 2; grid-row: span 2; }
.bento-3x1 { grid-column: span 3; grid-row: span 1; }
.bento-3x2 { grid-column: span 3; grid-row: span 2; }
.bento-4x1 { grid-column: span 4; grid-row: span 1; }
.bento-6x1 { grid-column: span 6; grid-row: span 1; }
@media (max-width: 992px) {
  .bento-1x1, .bento-1x2, .bento-2x1, .bento-2x2, .bento-3x1, .bento-3x2, .bento-4x1, .bento-6x1 { grid-column: span 2; }
}

.bento-cell .bento-mark {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  opacity: 0.6;
}
.bento-cell.is-hero {
  background: linear-gradient(135deg, var(--ink-2), var(--ink-3));
  border: 1px solid rgba(255, 107, 44, 0.3);
  border-radius: 0;
  margin: -1px;
}
.bento-cell.is-hero .bento-mark { opacity: 1; }
.bento-cell .bento-stat {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   16d. Logo wall / trust strip
   -------------------------------------------------------------------------- */
.logo-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
}
.logo-strip-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  white-space: nowrap;
}
.logo-strip-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  transition: color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.logo-strip-item:hover { color: var(--text); border-color: var(--line-bright); }
.logo-strip-item .accent { color: var(--accent); }

/* --------------------------------------------------------------------------
   16e. Live ticker pulse (for terminal cursor / live dots)
   -------------------------------------------------------------------------- */
@keyframes ticker-blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.ticker-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  animation: ticker-blink 1s steps(1) infinite;
}

/* --------------------------------------------------------------------------
   16f. Scroll-reveal animation (subtle, IntersectionObserver-driven)
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   17. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--ink);
  padding: 4rem 0;
}
.cta-band h2 { color: var(--ink); }
.cta-band p { color: rgba(10, 14, 26, 0.8); }
.cta-band .btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.cta-band .btn-primary:hover { background: var(--ink-3); border-color: var(--ink-3); }

.cta-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink-1);
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.footer-brand p { font-size: 0.875rem; color: var(--text-mute); line-height: 1.5; max-width: 38ch; }
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { font-size: 0.875rem; color: var(--text-mute); }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.footer-bottom-left { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.footer-bottom-right { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.footer-pay {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.footer-pay-icon {
  display: inline-block;
  height: 22px;
  padding: 0 0.5rem;
  background: var(--ink-3);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-mute);
  line-height: 22px;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   19. WHMCS overrides — keep working WHMCS sidebar/dashboard/cards etc.
   -------------------------------------------------------------------------- */
.well, .panel { background-color: var(--ink-2); border: 1px solid var(--line); border-radius: 0; }
.well h3, .panel-heading { background-color: var(--ink-3); border-bottom: 1px solid var(--line); color: var(--text); }

.breadcrumb { background: transparent; padding: 0.75rem 0; margin-bottom: 1.25rem; }
.breadcrumb-item a { color: var(--text-mute); }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item.active { color: var(--text); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-faint); }

.alert { border-radius: 0; border: 1px solid var(--line); }
.alert-success { background: var(--signal-tint); border-color: rgba(0, 212, 170, 0.3); color: var(--signal); }
.alert-info { background: rgba(95, 184, 255, 0.10); border-color: rgba(95, 184, 255, 0.3); color: #5FB8FF; }
.alert-warning { background: rgba(255, 178, 63, 0.10); border-color: rgba(255, 178, 63, 0.3); color: var(--warn); }
.alert-danger { background: rgba(255, 75, 92, 0.10); border-color: rgba(255, 75, 92, 0.3); color: var(--danger); }

.form-control {
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 0;
  font-family: var(--font-sans);
}
.form-control:focus {
  background: var(--ink-2);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 0.18rem rgba(255, 107, 44, 0.20);
}
.form-control::placeholder { color: var(--text-faint); }
.form-label { color: var(--text); font-weight: 500; font-size: 0.9rem; margin-bottom: 0.4rem; }

.table {
  color: var(--text);
}
.table th, .table td {
  border-top-color: var(--line);
}
.table thead th {
  border-bottom-color: var(--line-strong);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--ink-3);
}
.table-hover tbody tr:hover {
  background: var(--ink-3);
}

.badge {
  border-radius: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-success { background: var(--signal); color: var(--ink); }
.badge-warning { background: var(--warn); color: var(--ink); }
.badge-info { background: var(--accent); color: var(--ink); }
.badge-danger { background: var(--danger); color: #fff; }

.pagination .page-link {
  background: var(--ink-2);
  border-color: var(--line);
  color: var(--text-mute);
  border-radius: 0;
}
.pagination .page-link:hover { background: var(--ink-3); color: var(--text); }
.pagination .page-item.active .page-link { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.nav-tabs { border-bottom: 1px solid var(--line); }
.nav-tabs .nav-link {
  border: 0;
  border-radius: 0;
  color: var(--text-mute);
  padding: 0.75rem 1rem;
}
.nav-tabs .nav-link:hover { color: var(--text); }
.nav-tabs .nav-link.active {
  color: var(--accent);
  background: transparent;
  border-bottom: 2px solid var(--accent);
}

/* --------------------------------------------------------------------------
   20. WHMCS store/orderform overrides — last-loaded wins
   -------------------------------------------------------------------------- */
body#order-standard_cart { background: var(--ink); }

#order-standard_cart .products { margin: 0; }
#order-standard_cart .products .product {
  background: var(--ink-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
}
#order-standard_cart .products .product header {
  background: var(--ink-3) !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
}
#order-standard_cart .products .product header span {
  color: var(--text) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
}
#order-standard_cart .products .product div.product-desc,
#order-standard_cart .products .product div.product-desc p {
  color: var(--text-mute) !important;
  font-size: 0.95rem;
  line-height: 1.5;
}
#order-standard_cart .products .product div.product-pricing span.price {
  color: var(--accent) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 1.75rem !important;
}
#order-standard_cart .products .product div.product-pricing {
  color: var(--text-mute) !important;
}
#order-standard_cart .products .product footer {
  color: var(--text-mute) !important;
}
#order-standard_cart .products .product .btn-order-now {
  background: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  color: var(--ink) !important;
  font-weight: 600 !important;
  padding: 0.625rem 1.25rem !important;
  font-family: var(--font-sans) !important;
}
#order-standard_cart .products .product .btn-order-now:hover {
  background: var(--accent-soft) !important;
  border-color: var(--accent-soft) !important;
  color: var(--ink) !important;
}
#order-standard_cart .cart-sidebar { display: none; }
#order-standard_cart .cart-body { width: 100%; float: none; }
#order-standard_cart .cart-body .header-bar { background: var(--ink-2); border: 1px solid var(--line); border-radius: 0; }
#order-standard_cart { font-family: var(--font-sans); font-size: 0.95rem; color: var(--text); }

/* --------------------------------------------------------------------------
   21. Testimonial cards
   -------------------------------------------------------------------------- */
.testimonial {
  padding: 1.75rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial-stars { color: var(--accent); font-size: 0.875rem; letter-spacing: 0.1em; }
.testimonial-quote { font-size: 1rem; line-height: 1.6; color: var(--text); margin: 0; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.875rem;
  color: var(--text-mute);
}
.testimonial-name { font-weight: 600; color: var(--text); font-size: 0.9375rem; }
.testimonial-role { font-size: 0.8125rem; color: var(--text-dim); }

/* --------------------------------------------------------------------------
   22. Utility
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* --------------------------------------------------------------------------
   23. Skip link (a11y)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   24. Mobile nav toggle
   -------------------------------------------------------------------------- */
.nav-burger {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
}
@media (max-width: 992px) {
  .nav-primary { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta .btn-secondary { display: none; }
}
.nav-primary.is-open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--ink-1);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0;
}
.nav-primary.is-open a { padding: 0.875rem 1.5rem; border-top: 1px solid var(--line); }
.nav-primary.is-open li:first-child a { border-top: 0; }

/* --------------------------------------------------------------------------
   25. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}