/* ==========================================================================
   Full Spectrum Telecommunications — site styles
   Shared by index.html, privacy.html and terms.html.

   Contents
     1. Colors & fonts (change brand colors here)
     2. Base
     3. Animations
     4. Shared pieces (buttons, labels, layout)
     5. Header
     6. Hero
     7. Key facts
     8. Infrastructure
     9. About
    10. Contact
    11. Footer
    12. Legal pages (privacy / terms)
    13. Small screens & reduced motion
   ========================================================================== */


/* 1. COLORS & FONTS ------------------------------------------------------- */
:root {
  --navy-950: #030817;   /* footer */
  --navy-900: #050B1F;   /* hero & contact background */
  --navy-800: #071330;   /* cards on dark */
  --blue: #3D9BFF;       /* main accent */
  --blue-strong: #2E7CF6;/* primary buttons */
  --blue-light: #7DBBFF; /* labels on dark */
  --blue-text: #1F5FD1;  /* labels on white */
  --orange: #FF9A2E;     /* secondary accent */
  --orange-btn: #FF8A1F;
  --orange-text: #B35400;/* orange that is readable on white */
  --ink: #0B1530;        /* headings on white */
  --muted: #4A5672;      /* body text on white */
  --muted-dark: #B4C3DE; /* body text on navy */
  --soft-dark: #C9D6EE;
  --line: #DCE4F2;
  --mist: #F3F6FC;       /* light grey section */

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --page-width: 1320px;
  --gutter: 40px;
}


/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }          /* smooth scrolling for #links */

body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  background: #FFFFFF;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-text); }
a:hover { color: #0B3E9E; }

h1, h2, h3, p { margin: 0; }

.wrap {
  max-width: var(--page-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}


/* 3. ANIMATIONS ----------------------------------------------------------- */
/* --a is the angle of the glowing line that runs around .glow borders */
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

@keyframes spin  { to { --a: 360deg; } }
@keyframes rot   { to { transform: rotate(360deg); } }
@keyframes rotr  { to { transform: rotate(-360deg); } }
@keyframes rise  { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pan   { to { background-position: 0 64px, 64px 0; } }
@keyframes scan  { 0% { transform: translateY(-10%); opacity: 0; } 10%, 90% { opacity: 1; } 100% { transform: translateY(900px); opacity: 0; } }
@keyframes scanx { 0% { transform: translateX(-30%); } 100% { transform: translateX(130%); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes dash  { to { stroke-dashoffset: -64; } }
@keyframes fill  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes eq    { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes ping  { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes charge { 0% { width: 12%; } 70%, 100% { width: 100%; } }

/* Fade-and-rise on page load. Add .d1 – .d6 to stagger. */
.rise { opacity: 0; animation: rise 1s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .15s; } .d2 { animation-delay: .35s; } .d3 { animation-delay: .55s; }
.d4 { animation-delay: .8s; }  .d5 { animation-delay: 1s; }    .d6 { animation-delay: 1.2s; }

/* Fade-and-rise when scrolled into view (js/main.js adds .is-visible) */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

.blink { animation: blink 1.4s steps(2) infinite; }

/* SVG helpers */
.spin-slow, .spin-rev, .spin-fast, .ping { transform-box: fill-box; transform-origin: center; }
.spin-slow { animation: rot 40s linear infinite; }
.spin-rev  { animation: rotr 24s linear infinite; }
.spin-fast { animation: rot 9s linear infinite; }
.ping      { animation: ping 2.4s ease-out infinite; }
.flow      { stroke-dasharray: 4 12; animation: dash 2s linear infinite; }
.eq        { transform-origin: bottom; animation: eq 1.2s ease-in-out infinite; }

/* Animated grid texture used on dark sections */
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(61,155,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,155,255,.09) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: pan 10s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
}

/* Glowing border line that travels around a card (key facts, contact card) */
.glow {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--navy-800), var(--navy-800)) padding-box,
    conic-gradient(from var(--a),
      rgba(61,155,255,.14) 0deg, rgba(61,155,255,.14) 210deg,
      var(--blue) 285deg, var(--orange) 330deg,
      rgba(61,155,255,.14) 360deg) border-box;
  animation: spin 5s linear infinite;
  box-shadow: 0 0 0 1px rgba(61,155,255,.05), 0 24px 60px -24px rgba(61,155,255,.55);
}
.glow.offset-1 { animation-delay: -1.66s; }
.glow.offset-2 { animation-delay: -3.33s; }


/* 4. SHARED PIECES -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: box-shadow .25s, transform .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--orange), 0 0 28px rgba(255,154,46,.55); }
.btn-primary { background: var(--blue-strong); color: #FFFFFF; }
.btn-primary:hover { color: #FFFFFF; }
.btn-ghost { border: 1px solid rgba(255,255,255,.28); color: #FFFFFF; font-weight: 500; }
.btn-ghost:hover { color: #FFFFFF; }
.btn-outline-orange {
  min-height: 44px; padding: 0 22px;
  border: 1px solid rgba(255,154,46,.7);
  background: rgba(255,154,46,.08);
  color: #FFFFFF; font-size: 15px; font-weight: 500;
}
.btn-outline-orange:hover { color: #FFFFFF; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }

/* Small monospace label above section headings: "— INFRASTRUCTURE" */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .18em;
  color: var(--blue-text);
}
.kicker::before { content: ''; width: 32px; height: 2px; background: var(--orange); }
.kicker.on-dark { color: var(--blue-light); }
.kicker.on-dark::before { height: 1px; background: var(--blue); }

.section-title {
  margin-top: 20px;
  font-size: clamp(34px, 4vw, 54px); line-height: 1.06;
  font-weight: 600; letter-spacing: -.03em;
}
.section-lede { font-size: 18px; line-height: 1.65; color: var(--muted); }

.mono-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; }


/* 5. HEADER --------------------------------------------------------------- */
.site-header {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding-top: 28px; padding-bottom: 28px;
}
.site-header .logo img { height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; letter-spacing: .02em; }
.nav-links { display: flex; gap: 36px; }
.nav-links a { color: var(--soft-dark); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: #FFFFFF; }


/* 6. HERO ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--navy-900); color: #FFFFFF; padding-bottom: 120px; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero-shade-x { position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-900) 0%, rgba(5,11,31,.86) 38%, rgba(5,11,31,.35) 75%, rgba(5,11,31,.6) 100%); }
.hero-shade-y { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,11,31,.2) 0%, rgba(5,11,31,0) 50%, var(--navy-900) 100%); }
.scan-line {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(61,155,255,.9) 40%, rgba(255,154,46,.9) 60%, transparent);
  box-shadow: 0 0 24px rgba(61,155,255,.8);
  animation: scan 7s cubic-bezier(.5,0,.5,1) infinite;
}

.hero-body {
  position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr));
  gap: 40px; align-items: center;
  padding-top: 72px; padding-bottom: 40px;
}
.hero-eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 28px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .18em; color: var(--blue-light);
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--blue); }
.hero-eyebrow .online { color: var(--orange); }
.hero-eyebrow .cursor { width: 8px; height: 14px; background: var(--orange); }

.hero-title { font-size: clamp(40px, 4.8vw, 72px); line-height: 1.02; font-weight: 600; letter-spacing: -.035em; }
.hero-title span { display: block; }
.hero-title .accent { color: var(--blue); }
.hero-intro { margin-top: 32px; max-width: 560px; font-size: 19px; line-height: 1.6; color: var(--muted-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hud { position: relative; display: flex; justify-content: center; }
.hud svg { width: 520px; height: auto; overflow: visible; }


/* 7. KEY FACTS ------------------------------------------------------------ */
.facts {
  position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px;
  margin-top: 40px;
}
.fact-card { position: relative; height: 100%; border-radius: 18px; padding: 32px 32px 28px; }
.fact-label { display: flex; justify-content: space-between; color: var(--blue-light); }
.fact-label .live { color: var(--orange); }
.fact-value { margin-top: 18px; font-size: 64px; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.fact-value .unit { margin-left: 8px; font-size: 24px; letter-spacing: 0; color: var(--blue-light); }
.fact-value .slash { color: var(--blue); }
.fact-note { margin-top: 10px; font-size: 16px; color: var(--muted-dark); }
.fact-bar { margin-top: 22px; height: 4px; border-radius: 4px; background: rgba(61,155,255,.15); overflow: hidden; }
.fact-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--blue-strong), var(--orange));
  transform-origin: left; animation: fill 2.4s cubic-bezier(.2,.7,.2,1) both;
}


/* 8. INFRASTRUCTURE ------------------------------------------------------- */
.infrastructure { padding-top: 140px; padding-bottom: 120px; }
.section-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 80px; align-items: end; }

.feature-grid { margin-top: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.feature-card {
  position: relative; padding: 36px;
  border: 1px solid var(--line); border-radius: 20px; background: #FFFFFF;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--blue); box-shadow: 0 30px 60px -30px rgba(10,40,110,.45); }
.feature-visual { position: relative; height: 150px; border-radius: 14px; background: var(--navy-800); overflow: hidden; }
.feature-visual svg { width: 100%; height: 150px; }
.feature-num { margin-top: 28px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; color: var(--orange-text); }
.feature-card h3 { margin-top: 8px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.feature-card p { margin-top: 14px; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* the battery in the Backup Power card */
.power { display: flex; align-items: center; justify-content: center; gap: 22px; height: 100%; }
.battery { position: relative; width: 150px; height: 48px; padding: 5px; border: 2px solid var(--blue-light); border-radius: 8px; }
.battery::after { content: ''; position: absolute; right: -8px; top: 14px; width: 5px; height: 16px; border-radius: 0 3px 3px 0; background: var(--blue-light); }
.battery span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue-strong), var(--orange)); animation: charge 3.2s ease-in-out infinite; }
.battery-label { margin-top: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--blue-light); }


/* 9. ABOUT ---------------------------------------------------------------- */
.about { background: var(--mist); border-top: 1px solid #E2E8F3; }
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 64px; align-items: center;
  padding-top: 120px; padding-bottom: 120px;
}
.about-media { position: relative; min-height: 460px; border-radius: 22px; overflow: hidden; background: var(--navy-900); }
.about-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; filter: saturate(1.2); }
.about-media .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,11,31,.1), rgba(5,11,31,.85)); }
.corner { position: absolute; width: 28px; height: 28px; border: 0 solid var(--orange); }
.corner.tl { left: 20px; top: 20px; border-left-width: 2px; border-top-width: 2px; }
.corner.tr { right: 20px; top: 20px; border-right-width: 2px; border-top-width: 2px; }
.corner.bl { left: 20px; bottom: 20px; border-left-width: 2px; border-bottom-width: 2px; border-color: var(--blue); }
.corner.br { right: 20px; bottom: 20px; border-right-width: 2px; border-bottom-width: 2px; border-color: var(--blue); }
.readouts {
  position: absolute; left: 44px; right: 44px; bottom: 44px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--soft-dark);
}
.readouts dt { color: var(--orange); }
.readouts dd { margin: 6px 0 0; color: #FFFFFF; font-size: 15px; }
.readouts .blink { color: var(--blue); }

.about-copy p { margin-top: 18px; font-size: 18px; line-height: 1.7; color: var(--muted); }
.about-copy p:first-of-type { margin-top: 28px; }
.pillars { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pillar { padding-top: 14px; border-top: 2px solid var(--blue-strong); }
.pillar.accent { border-top-color: var(--orange); }
.pillar strong { display: block; font-size: 17px; font-weight: 600; }
.pillar span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }


/* 10. CONTACT ------------------------------------------------------------- */
.contact { position: relative; overflow: hidden; background: var(--navy-900); color: #FFFFFF; }
.contact-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 48px; align-items: center;
  padding-top: 110px; padding-bottom: 110px;
}
.contact-title { margin-top: 18px; }
.contact-card { border-radius: 20px; padding: 36px; display: grid; gap: 22px; }
.contact-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.contact-row .mono-label { color: var(--blue-light); }
.contact-row a, .contact-row .value { color: #FFFFFF; font-size: 22px; text-decoration: none; text-align: right; line-height: 1.4; }
.contact-row a:hover { color: var(--blue-light); }
.contact-row .value.small { font-size: 18px; }
.divider { height: 1px; background: rgba(61,155,255,.2); }


/* 11. FOOTER -------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: #A9B8D6; border-top: 1px solid rgba(61,155,255,.18); }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px;
  padding-top: 64px; padding-bottom: 40px;
  font-size: 15px; line-height: 1.7;
}
.footer-grid .logo img { height: 40px; width: auto; }
.footer-label { margin-bottom: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; color: var(--orange); }
.footer-grid a { color: var(--soft-dark); text-decoration: none; }
.footer-grid a:hover { color: #FFFFFF; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px; padding-bottom: 40px;
  border-top: 1px solid rgba(61,155,255,.12);
  font-size: 13px; color: #8797B8;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-legal a { color: var(--soft-dark); }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: #FFFFFF; }
.status { font-family: var(--font-mono); letter-spacing: .12em; }
.status .blink { color: var(--blue); }


/* 12. LEGAL PAGES --------------------------------------------------------- */
.legal-hero { position: relative; overflow: hidden; background: var(--navy-900); color: #FFFFFF; }
.legal-hero .grid-bg { -webkit-mask-image: radial-gradient(ellipse at 75% 30%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse at 75% 30%, #000 10%, transparent 75%); }
.legal-intro { position: relative; padding-top: 56px; padding-bottom: 72px; }
.legal-intro h1 { margin-top: 20px; font-size: clamp(40px, 5.5vw, 72px); line-height: 1.04; font-weight: 600; letter-spacing: -.035em; }
.legal-meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 32px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--muted-dark); }
.legal-meta .blink { color: var(--orange); }
.legal-scan { position: relative; height: 2px; background: rgba(61,155,255,.15); overflow: hidden; }
.legal-scan span { display: block; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, var(--blue), var(--orange), transparent); animation: scanx 5s cubic-bezier(.5,0,.5,1) infinite; }

.legal-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 80px; padding-top: 56px; padding-bottom: 100px; }
.toc { flex: 1 1 240px; max-width: 300px; padding-top: 36px; }
.toc .mono-label { margin-bottom: 14px; color: var(--blue-text); }
.toc a {
  display: block; padding: 7px 0 7px 14px;
  border-left: 2px solid var(--line);
  color: var(--muted); font-size: 14px; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.toc a:hover { border-color: var(--orange); color: var(--ink); }

.legal-body { flex: 999 1 560px; min-width: 0; max-width: 820px; }
.legal-body section { padding: 36px 0; border-top: 1px solid #E2E8F3; scroll-margin-top: 16px; }
.legal-body h2 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.legal-body h2 span { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--orange-text); }
.legal-body h3 { margin: 24px 0 10px; font-size: 18px; font-weight: 600; }
.legal-body p { margin-bottom: 14px; font-size: 17px; line-height: 1.75; color: #3A4560; }
.legal-body ul { margin: 4px 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.legal-body li { position: relative; padding-left: 24px; font-size: 17px; line-height: 1.6; color: #3A4560; }
.legal-body li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 8px; height: 2px; background: var(--blue-strong); }
.legal-body strong { color: var(--ink); font-weight: 600; }
.callout { margin: 8px 0 16px; padding: 20px 24px; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 14px; background: var(--mist); }
.callout p { margin: 0; }
.callout.blue { border-left-color: var(--blue-strong); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }

.legal-footer .footer-bottom { border-top: 0; padding-top: 40px; align-items: center; font-size: 14px; }
.legal-footer .logo img { height: 34px; width: auto; }


/* 13. SMALL SCREENS & REDUCED MOTION -------------------------------------- */
@media (max-width: 820px) {
  :root { --gutter: 16px; }
  .nav-links { display: none; }
  .hud { display: none; }
  .hero-body { padding-top: 40px; }
  .infrastructure { padding-top: 96px; padding-bottom: 80px; }
  .about-grid, .contact-grid { padding-top: 80px; padding-bottom: 80px; }
  .about-media { min-height: 380px; }
  .readouts { left: 32px; right: 32px; bottom: 32px; }
  .fact-value { font-size: 52px; }
  .pillars { grid-template-columns: 1fr; }
  .contact-row a, .contact-row .value { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .js .reveal { opacity: 1; transform: none; }
}
