/* ============================================================
   DESALINK style.css
   Minimalist Starlink-inspired theme
   ============================================================ */

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

:root {
  --black:      #000000;
  --panel:      #0a0a0a;
  --panel-alt:  #0f0f0f;
  --white:      #ffffff;
  --text-dim:   rgba(255,255,255,0.72);
  --text-muted: rgba(255,255,255,0.45);
  --border:     rgba(255,255,255,0.08);
  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-h:      64px;
  --max-w:      1200px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ---------- INLINE LINK (Starlink-style bold underline) ---------- */
.link {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s;
}
.link:hover { opacity: 0.7; }

.link--btn {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  text-align: inherit;
}

/* ---------- MODAL ---------- */
.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  min-height: 160px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 0;
}

.modal__box--terminal {
  max-width: min(920px, 96vw);
  min-height: 280px;
  background: var(--black);
  border-color: var(--border);
}

/* ---------- TERMINAL (demo modal) ---------- */
.terminal {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  max-height: min(76vh, 600px);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-dim);
}

.terminal__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.terminal__head-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.terminal__dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.terminal__dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.terminal__dots i:nth-child(1) { background: #ff5f57; }
.terminal__dots i:nth-child(2) { background: #febc2e; }
.terminal__dots i:nth-child(3) { background: #28c840; }

.terminal__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.terminal__close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--text-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.terminal__close:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.terminal__screen {
  flex: 1;
  overflow: auto;
  padding: 20px 20px 24px;
  background: var(--black);
}

.terminal__prompt {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 52ch;
}

.terminal__table-wrap {
  overflow-x: auto;
  margin-top: 0;
}

.terminal table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 12px;
}

.terminal th,
.terminal td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-transform: capitalize;
}

.terminal th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--black);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.12em;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.terminal tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.terminal td:nth-child(1) {
  color: var(--white);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-transform: none;
}
.terminal__status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.terminal__status-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.terminal__status-text {
  text-transform: capitalize;
}

.terminal__status.status--connected .terminal__status-dot {
  background: #4ade80;
  box-shadow:
    0 0 0 1px rgba(74, 222, 128, 0.35),
    0 0 12px rgba(74, 222, 128, 0.55);
}
.terminal__status.status--connected {
  color: rgba(220, 252, 231, 0.98);
}

.terminal__status.status--pending .terminal__status-dot {
  background: #fbbf24;
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.35),
    0 0 12px rgba(251, 191, 36, 0.5);
}
.terminal__status.status--pending {
  color: rgba(254, 243, 199, 0.98);
}

.terminal__status.status--inactive .terminal__status-dot {
  background: #737373;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 8px rgba(115, 115, 115, 0.35);
}
.terminal__status.status--inactive {
  color: var(--text-muted);
}

body.modal-open {
  overflow: hidden;
}

/* ---------- EYEBROW LABEL ---------- */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--white);
  color: var(--black);
}
.btn--primary:hover { background: #e6e6e6; }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav__left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__logo { display: flex; align-items: center; }
.nav__logo-img {
  height: 16px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.nav__logo:hover .nav__logo-img { opacity: 0.75; }

.nav__links {
  display: flex;
  gap: 28px;
}
.nav__links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--white);
  transition: opacity 0.2s;
}
.nav__links a:hover { opacity: 0.65; }

.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s var(--ease);
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 900;
  background: rgba(0,0,0,0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu__link {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--white);
  transition: opacity 0.2s;
}
.mobile-menu__link:hover { opacity: 0.65; }

/* ============================================================
   PANEL: Full-bleed section with text overlay
   ============================================================ */
.panel {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  padding: 18vh 8% 12vh;
  background: var(--panel);
  overflow: hidden;
}

.panel--hero {
  background-color: var(--black);
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.22) 40%, rgba(0,0,0,0.98) 100%),
    url('images/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.panel--hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18vh;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
}
#reliable {
  background-color: var(--black);
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.65) 100%),
    url('images/dish.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#fleet {
  background-color: var(--black);
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 45%, rgba(0,0,0,0.72) 100%),
    url('images/birdseye.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#fast-deploy {
  background-color: var(--black);
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.28) 42%, rgba(0,0,0,0.68) 100%),
    url('images/fast.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.panel--spacex {
  background-color: #0c0c0c;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.75) 100%),
    url('images/spacex.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.panel__overlay {
  width: 100%;
  max-width: 620px;
  text-align: left;
}

.panel__overlay--top-right {
  margin-left: auto;
  margin-right: 0;
}
.panel__overlay--top-left {
  margin-left: 0;
  margin-right: auto;
}
.panel__overlay--center {
  max-width: 760px;
  margin: auto;
  text-align: center;
}

.panel--hero {
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.panel__title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--white);
}

.panel__title--hero {
  font-size: clamp(34px, 5.5vw, 68px);
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin-bottom: 24px;
  text-wrap: balance;
}

.panel__body {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.75;
}

.panel__body strong {
  color: var(--white);
  font-weight: 600;
}

.panel__body--hero {
  font-size: clamp(15px, 1.5vw, 17px);
  max-width: 560px;
  margin: 0 auto;
  text-wrap: balance;
}

.after-hero-spacer {
  height: 12vh;
  min-height: 72px;
  background: var(--black);
}

.panel__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce 2.2s infinite;
  z-index: 3;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   STEPS: How it works
   ============================================================ */
.steps {
  background: var(--black);
  padding: 140px 32px;
  text-align: center;
}

.steps__header { max-width: 640px; margin: 0 auto 90px; }

.steps__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.steps__sub {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 300;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--border);
}

.steps__card {
  background: var(--black);
  padding: 56px 40px;
  text-align: left;
  transition: background 0.3s;
}
.steps__card:hover { background: #050505; }

.steps__number {
  font-size: 48px;
  font-weight: 100;
  color: var(--white);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 28px;
  letter-spacing: -0.04em;
}

.steps__card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.steps__card-body {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================================
   ORDER: Plans
   ============================================================ */
.order {
  background: var(--black);
  padding: 140px 32px;
  border-top: 1px solid var(--border);
}

.order__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.order__title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.order__sub {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
  font-weight: 300;
}

.order__form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.order__input {
  flex: 1;
  min-width: 280px;
  max-width: 440px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.order__input::placeholder { color: rgba(255,255,255,0.35); }
.order__input:focus { border-color: rgba(255,255,255,0.55); }

.order__plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  text-align: left;
  background: var(--border);
}

.order__plan {
  background: var(--black);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: background 0.3s;
}
.order__plan:hover { background: #050505; }

.order__plan--featured {
  background: #060606;
}

.order__plan-badge {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  color: var(--black);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 4px 14px;
}

.order__plan-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.order__plan-price {
  font-size: 44px;
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1;
}
.order__plan-price span {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dim);
}

.order__plan-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.order__plan-features li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
  font-weight: 300;
}
.order__plan-features li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--white);
  font-size: 12px;
}

/* ============================================================
   SUPPORT
   ============================================================ */
.support {
  background: var(--black);
  padding: 140px 32px;
  border-top: 1px solid var(--border);
}

.support__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.support__title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  margin-bottom: 60px;
  letter-spacing: -0.01em;
}

.support__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.support__card {
  background: var(--black);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: background 0.3s;
}
.support__card:hover { background: #050505; }

.support__card h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.support__card p {
  font-size: 15px;
  color: var(--white);
  font-weight: 300;
}
.support__hours {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  margin-top: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 80px 32px 0;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.footer__logo-img {
  height: 28px;
  width: auto;
  display: block;
  margin-bottom: 16px;
  opacity: 0.75;
}

.footer__tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 360px;
  font-weight: 300;
}

.footer__links {
  display: contents;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer__col a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
  font-weight: 300;
}
.footer__col a:hover { color: var(--white); }

.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 0;
}
.footer__bottom p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 300;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .panel { padding: 16vh 6% 10vh; }
  .panel__overlay { max-width: 560px; }

  .steps__grid,
  .order__plans,
  .support__grid { grid-template-columns: 1fr; }

  .footer__inner {
    grid-template-columns: max-content max-content;
    justify-content: start;
    gap: 48px 80px;
  }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav { padding: 0 20px; }

  .panel { padding: 100px 22px 72px; min-height: 520px; }
  .panel__overlay--top-right,
  .panel__overlay--top-left { margin: 0; max-width: none; }
  .panel__overlay--center { max-width: 560px; }

  .panel--hero {
    padding: calc(var(--nav-h) + 8px) 28px 28px;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
  }

  .panel__title--hero {
    font-size: clamp(26px, 8.2vw, 40px);
    line-height: 1.12;
    margin-bottom: 20px;
  }

  .panel__body--hero {
    font-size: 15px;
    line-height: 1.65;
    max-width: 34rem;
    padding: 0;
  }

  .panel__scroll { bottom: 28px; }

  .after-hero-spacer {
    height: 10vh;
    min-height: 64px;
  }

  .steps,
  .order,
  .support { padding: 88px 22px; }

  .footer__inner { gap: 32px 56px; }

  .modal { padding: 16px; }
  .modal__box--terminal {
    max-width: 100%;
    min-height: 260px;
  }
  .terminal {
    min-height: 280px;
    max-height: min(82dvh, 640px);
    font-size: 12px;
  }
  .terminal__head { padding: 14px 16px; }
  .terminal__screen { padding: 16px 14px 20px; }
  .terminal table { min-width: 100%; font-size: 11px; }
  .terminal th,
  .terminal td { padding: 8px 10px; }
}

@media (max-width: 480px) {
  .nav { padding: 0 18px; }

  .panel { padding: 92px 18px 64px; min-height: 480px; }
  .panel--hero {
    padding: calc(var(--nav-h) + 12px) 20px 32px;
    box-sizing: border-box;
  }

  .panel__title--hero {
    font-size: clamp(24px, 7.8vw, 34px);
  }

  .panel__body--hero {
    font-size: 14px;
    line-height: 1.68;
  }

  .after-hero-spacer {
    height: 9vh;
    min-height: 56px;
  }

  .order__plan { padding: 40px 28px; }
  .footer__inner { grid-template-columns: 1fr; }

  .steps,
  .order,
  .support { padding: 72px 18px; }

  .terminal__head { padding: 12px 14px; }
  .terminal__screen { padding: 14px 12px 18px; }
  .terminal th,
  .terminal td { padding: 7px 8px; font-size: 11px; }

  .order__form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .order__input {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
  .order__form .btn {
    width: 100%;
  }

  .link {
    white-space: nowrap;
  }
}
