/* Beacon Networks LLC — light blue tech / modular UI */
:root {
  --bg-page: #e4f1fc;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-elevated: #f0f9ff;
  --bg-module: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(224, 242, 254, 0.55) 100%);
  --text: #0c1929;
  --text-muted: #4a6d88;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-bright: #38bdf8;
  --accent-dim: rgba(2, 132, 199, 0.1);
  --accent-soft: rgba(2, 132, 199, 0.22);
  --border: rgba(2, 132, 199, 0.14);
  --shadow-sm: 0 1px 3px rgba(2, 132, 199, 0.06);
  --shadow-md: 0 18px 50px rgba(2, 132, 199, 0.12);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --font-display: "Syne", system-ui, sans-serif;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 14px;
  --radius-lg: 1.35rem;
  --max: 1120px;
  --header-h: 72px;
  /* Align section headings with text inside .card (same horizontal padding) */
  --content-inset: 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg-page);
  background-image:
    radial-gradient(900px 480px at 12% -5%, rgba(56, 189, 248, 0.12), transparent),
    radial-gradient(700px 400px at 100% 20%, rgba(2, 132, 199, 0.08), transparent),
    linear-gradient(rgba(2, 132, 199, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 132, 199, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #d9ecf8 0%, var(--bg-page) 32%, var(--bg-page) 100%);
  background-size: auto, auto, 40px 40px, 40px 40px, auto;
  background-attachment: scroll;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.15em;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(240, 249, 255, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 1.2;
  flex-shrink: 0;
}

.logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.logo-mark span {
  color: var(--accent);
  font-weight: 800;
}

.header-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
  flex: 1;
  min-width: 0;
}

.lang-switch {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
}

.lang-btn {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.6rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  background: var(--accent-dim);
  color: var(--accent);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
}

.nav-desktop a:hover {
  color: var(--text);
  background: var(--accent-dim);
}

.nav-desktop a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.55rem 1.15rem !important;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent)) !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
}

.nav-cta:hover,
.nav-cta:focus,
.nav-cta:focus-visible {
  background: linear-gradient(135deg, #0ea5e9, var(--accent-hover)) !important;
  color: #fff !important;
}

/* Beat `.nav-desktop a:hover { color: var(--text) }` for the Contact pill */
.nav-desktop a.nav-cta:hover,
.nav-desktop a.nav-cta:focus,
.nav-desktop a.nav-cta:focus-visible {
  color: #fff !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Mobile nav */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .header-end {
    flex: 0 0 auto;
    gap: 0.35rem;
  }

  .nav-desktop {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding: 1rem 1.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-desktop.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-desktop a {
    padding: 0.75rem 1rem;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  padding-bottom: 4rem;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero.wrap {
  margin-top: 1.25rem;
  padding: 3.25rem 1.75rem 3.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-module);
  box-shadow: var(--shadow-md), var(--shadow-inset);
  position: relative;
  overflow: hidden;
}

.hero.wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 120px at 50% 0%, rgba(56, 189, 248, 0.15), transparent 70%);
  pointer-events: none;
}

.hero-badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hover);
  border: 1px solid var(--accent-soft);
  background: rgba(255, 255, 255, 0.75);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-lead {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #fff;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
  border-radius: 999px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0ea5e9, var(--accent-hover));
  box-shadow: var(--shadow-md);
}

/* Global `a:hover` color would override white on <a class="btn btn-primary"> */
a.btn-primary,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary:focus-visible {
  color: #fff !important;
}

button.btn-primary,
button.btn-primary:hover,
button.btn-primary:focus-visible {
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.9);
}

.btn:active {
  transform: scale(0.98);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-title::before {
  content: "";
  width: 5px;
  height: 1.25em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  flex-shrink: 0;
}

/* Index (etc.): line up heading + intro with text inside cards (same inset as .card) */
.section.wrap > .section-title {
  margin-left: calc(var(--content-inset) - 5px - 0.65rem);
}

.section-intro {
  margin: 0 0 1.35rem;
  max-width: 40rem;
  color: var(--text-muted);
}

.section.wrap > .section-intro {
  margin-left: var(--content-inset);
  max-width: min(40rem, calc(100% - var(--content-inset)));
}

/* Card grid — tech modules */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--bg-module);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem var(--content-inset) 1.35rem;
  padding-top: 1.65rem;
  box-shadow: var(--shadow-sm), var(--shadow-inset);
  transition: border-color 0.2s ease, box-shadow 0.22s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent), var(--accent-hover));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-md), var(--shadow-inset);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.28), var(--accent-dim));
  border: 1px solid rgba(2, 132, 199, 0.28);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
}

.card p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.card-link {
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  margin-top: 0.15rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3rem 0 2.5rem;
}

.page-hero.wrap {
  margin-top: 1.25rem;
  padding: 2.35rem 1.65rem 2.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-module);
  box-shadow: var(--shadow-md), var(--shadow-inset);
  position: relative;
  overflow: hidden;
}

.page-hero.wrap::after {
  content: "";
  position: absolute;
  left: 1.65rem;
  bottom: 0;
  width: 4rem;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent));
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Content blocks */
.prose {
  max-width: 42rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  transform: rotate(45deg);
}

.pricing-block {
  margin-top: 2.5rem;
  padding: 2.25rem 1.75rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-module);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
}

.pricing-intro {
  margin: 0 0 1.75rem;
  max-width: 44rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.pricing-subh {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.75rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.pricing-subh::before {
  content: "";
  width: 4px;
  height: 1em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  flex-shrink: 0;
}

.pricing-subh:first-of-type {
  margin-top: 0;
}

.pricing-lead {
  margin: 0 0 1rem;
  max-width: 44rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 0.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.price-table th,
.price-table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.price-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

.price-table td:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
}

.pricing-note {
  margin: 1.5rem 0 0;
  max-width: 44rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 30rem);
  gap: 1.75rem 2.25rem;
  align-items: start;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.info-panel {
  position: relative;
  overflow: hidden;
  background: var(--bg-module);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.65rem 1.55rem 1.45rem;
  padding-left: 1.35rem;
  box-shadow: var(--shadow-md), var(--shadow-inset);
}

.info-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent), var(--accent-hover));
  border-radius: 4px 0 0 4px;
}

.info-panel h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.info-panel dl {
  margin: 0;
  position: relative;
  z-index: 1;
}

.info-panel dt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-top: 1.1rem;
}

.info-panel dt:first-child {
  margin-top: 0;
}

.info-panel dd {
  margin: 0.35rem 0 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 36rem;
}

/* Contact form */
.form-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 32rem;
  margin-top: 1.5rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.form-success {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-module);
  box-shadow: var(--shadow-md), var(--shadow-inset);
  max-width: 32rem;
  position: relative;
  overflow: hidden;
}

.form-success::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent));
}

.form-success-title {
  position: relative;
  z-index: 1;
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.form-success p:last-child {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.form-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--accent-hover);
  background: var(--accent-dim);
  border: 1px solid var(--accent-soft);
  max-width: 32rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: auto;
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.35), transparent);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-weight: 600;
  color: var(--text);
}

.footer-brand span {
  color: var(--accent);
}

.footer-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

/* CTA strip */
.cta-strip {
  margin: 3rem 0 0;
  padding: 2.35rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(224, 242, 254, 0.95), rgba(255, 255, 255, 0.98));
  box-shadow: var(--shadow-md), var(--shadow-inset);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 140px at 50% 0%, rgba(56, 189, 248, 0.12), transparent 65%);
  pointer-events: none;
}

.cta-strip h2,
.cta-strip p,
.cta-strip .btn {
  position: relative;
  z-index: 1;
}

.cta-strip h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.cta-strip p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}
