/* Bit by Bit Signal Processing — site styles */

html {
    -webkit-text-size-adjust: 100%; /* Prevents iOS Safari from auto-scaling text sizes */
    text-size-adjust: 100%;
}

:root {
  --navy: #070a1f;
  --navy-2: #0e1335;
  --green: #0e3500;
  --green1: #0e7500;
  --green2: #0e1500;
  --yellow: #856540;
  --yellow1: #A5A500;
  --yellow2: #353500;
  --yellow3: #353500;
  --lightblue: #2263ee;
  --lightblue1: #050ef0;
  --lightblue2: #150e50;
  --purple: #7500A5;
  --purple1: #A500A5;
  --purple2: #150015;
  --ink: #0c0f24;
  --text: #2a2f45;
  --muted: #5d6380;
  --line: #e3e6ef;
  --bg-alt: #f4f6fb;
  --blue: #2f6bff;
  --blue-dark: #1f50d6;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --white: #ffffff;
  --radius: 6px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: -0.01em; } */

h1, h2, h3, h4 { color: #fff; line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.right_margin { padding: 0 24px; }
.container_left { max-width: var(--max); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 10, 31, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid rgba(55,55,55,0.9);
}
.flush_left { justify-content: flex-start; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 17px; }
.brand2 { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 22px; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand2 img { height: 68px; width: auto; }
.brand small { display: block; font-weight: 500; font-size: 11px; color: #9aa3c7; letter-spacing: .08em; text-transform: uppercase; }
.brand2 small { display: block; font-weight: 500; font-size: 16px; color: #9aa3c7; letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #d7dcf0; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: #fff; text-decoration: none; }
.nav-links a.active { box-shadow: inset 0 -2px 0 var(--blue); padding-bottom: 4px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
}
.btn-text {
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #0000FF; }
.btn-primary:hover a { color: #0000FF; }
.btn-text:hover small { color: #0000FF; }
.btn-text:hover a { color: #0000FF; }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-myalign { margin-top: -8px; width: 250px; justify-content: center; }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: ' →'; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: #fff;
/*  padding: 110px 0 120px; */
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none;
}
.hero h1 { color: #fff; font-size: clamp(26px, 5vw, 38px); font-weight: 800; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .actions2 { display: flex; gap: 14px; flex-wrap: wrap; max-height: 20pt; margin-left: 20pt; }
.hero-sm { padding: 80px 0 84px; }
.hero-sm .container { grid-template-columns: 1fr; }

.hover-container {
  position: relative;
  width: 100%;
  height: 250px;
  margin-left: 20px;
  aspect-ratio: 12 / 6;
}

/* Initially hide the hover image */
.hover-container .hover-image {
  position: absolute;
  transition: opacity 0.3s ease; /* Smooth transition duration */
  top: 0;
  left: 100px;
  vertical-align:middle;
  opacity: 0;
  object-fit: contain;
  width: auto;
  height: 100%;  
}

.hover-container .base-image {
  position: absolute;
  transition: opacity 0.3s ease; /* Smooth transition duration */
  top: 0;
  left: 0;
  opacity: 1;
  vertical-align:middle;
  width: auto;
  height: 100%;
  object-fit: contain;
}

/* Reveal the hover image and fade out the base image when hovering over the container */
.hover-container:hover .hover-image {
  opacity: 1;
}

.hover-container:hover .base-image {
  opacity: 0;
}

.eyebrow { display: inline-block; font-size: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px; }
.eyebrow_color_yellow { color: var(--yellow2); }

.tutorial {
    display: flex; justify-content: space-between; margin-bottom: 0pt; align-items: top; max-width: 800px;
}

.hero_color_1 {
    background: var(--navy-2);
    /* p.lead { font-size: 19px; color: #c6cce6; max-width: 620px; margin-bottom: 32px; } */
    p.lead { font-size: 19px; color: #ffffff; margin-bottom: 32px; }
    a { color: #FFF; }
}
.hero_color_1::before { width: 620px; height: 620px; right: -120px; top: -160px; background: radial-gradient(circle, var(--violet), transparent 45%); }
.hero_color_1::after  { width: 560px; height: 560px; right: 220px; bottom: -280px; background: radial-gradient(circle, var(--blue), transparent 45%); }


.hero_color_2 {
    background: var(--green);
    p.lead { font-size: 19px; color: #c6cce6; margin-bottom: 20px; }
    a { color: #FFF; }
}
.hero_color_2::before { width: 620px; height: 620px; right: -120px; top: -160px; background: radial-gradient(circle, var(--green1), transparent 45%); }
.hero_color_2::after  { width: 560px; height: 560px; right: 220px; bottom: -280px; background: radial-gradient(circle, var(--green2), transparent 45%); }


.hero_color_3 {
    background: var(--lightblue);
    p.lead { font-size: 19px; color: #c6cce6; margin-bottom: -20px; }
}
.hero_color_3::before { width: 620px; height: 620px; right: -120px; top: -160px; background: radial-gradient(circle, var(--lightblue1), transparent 45%); }
.hero_color_3::after  { width: 560px; height: 560px; right: 220px; bottom: -280px; background: radial-gradient(circle, var(--lightblue2), transparent 45%); }

.hero_color_4 {
    background: var(--purple);
    p.lead { font-size: 19px; color: #FDF; margin-bottom: 40px; } */
}
.hero_color_4::before { width: 620px; height: 620px; right: -120px; top: -160px; background: radial-gradient(circle, var(--purple1), transparent 45%); }
.hero_color_4::after  { width: 560px; height: 560px; right: 220px; bottom: -280px; background: radial-gradient(circle, var(--purple2), transparent 45%); }

.hero_color_5 {
  background: var(--yellow);
  p.lead { font-size: 19px; color: yellow3; margin-bottom: 10px; } */
}
.hero_color_5::before { width: 620px; height: 620px; right: -120px; top: -160px; background: radial-gradient(circle, var(--yellow1), transparent 45%); }
.hero_color_5::after  { width: 560px; height: 560px; right: 220px; bottom: -280px; background: radial-gradient(circle, var(--yellow2), transparent 45%); }


/*.hero_1_column .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr; gap: 48px; align-items: center; }*/
.hero_2_column .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap:0px; align-items: center; }
.hero_2_column p.lead { max-width: 620px; }
.hero_2_column img { max-width: 500px; }

.hero_2_column_b .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .3fr; gap: 48px; align-items: center; }
.hero_2_column_b img { max-width: 240px; }


/* Spectrum graphic */
.spectrum {
  aspect-ratio: 1 / .8; border-radius: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.12);
  padding: 26px; display: flex; flex-direction: column; justify-content: flex-end;
}
.spectrum .bars { display: flex; align-items: flex-end; gap: 3px; height: 78%; }
.spectrum .bars span { flex: 1; min-width: 3px; border-radius: 2px 2px 0 0; background: linear-gradient(to top, var(--blue), var(--violet)); opacity: .9; }
.spectrum .axis { height: 1px; background: rgba(255,255,255,.35); margin-top: 6px; }
.spectrum .label { display: flex; justify-content: space-between; font-size: 11px; color: #8f97bd; margin-top: 8px; font-family: ui-monospace, monospace; }

/* ---------- Sections ---------- */
section { padding: 16px 0; scroll-margin-top: 70px }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #c6cce6; }
.section-dark h2, .section-dark h3 { color: #fff; }
/*.section-head { max-width: 760px; margin-bottom: 48px; } */
.section-head { margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 28px); }
.section-head p { font-size: 18px; color: var(--muted); }
.section-dark .section-head p { color: #aab2d6; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; display: block; }
.section-dark .kicker { color: var(--cyan); }

/* Feature trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trio .item { border-top: 3px solid var(--blue); padding-top: 22px; }
.trio h3 { font-size: 20px; }
.trio p { color: var(--muted); margin: 0; }

/* Feature quarto */
.quarto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.quarto .item { border-top: 3px solid var(--blue); padding-top: 22px; }
.quarto h3 { font-size: 20px; }
.quarto p { color: var(--muted); margin: 0; }

/* Product tiles */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 40px; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.product:hover { box-shadow: 0 18px 40px rgba(12,15,36,.10); transform: translateY(-3px); }
.product .tag { align-self: flex-end; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: rgba(47,107,255,.09); padding: 5px 10px; border-radius: 4px; margin-bottom: 18px; margin-left: 20px; }
.product h3 { font-size: 28px; }
.product p { color: var(--muted); flex: 1; }
.product .meta { display: flex; gap: 22px; flex-wrap: wrap; margin: 6px 0 24px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product .meta div { font-size: 13px; color: var(--muted); }
.product .meta strong { display: block; color: var(--ink); font-size: 18px; }
.product.featured { background: linear-gradient(150deg, var(--lightblue2), var(--lightblue)); border: 0; color: #c6cce6; }
.product.featured h3 { color: #fff; }
.product.featured p, .product.featured .meta div { color: #aab2d6; }
.product.featured .meta { border-color: rgba(255,255,255,.14); }
.product.featured .meta strong { color: #fff; }
.product.featured .tag { color: var(--cyan); background: rgba(34,211,238,.12); }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: left; }
.stat { border-left: 1px solid rgba(255,255,255,.18); padding-left: 24px; }
.stat .num { font-size: clamp(36px, 4vw, 52px); font-weight: 800; color: #fff; line-height: 1; background: linear-gradient(90deg, #fff, #b9c7ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .unit { font-weight: 700; color: #fff; margin-top: 10px; }
.stat .desc { font-size: 14px; color: #9aa3c7; }

/* Split / spotlight */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.panel-graphic {
  border-radius: 14px; min-height: 340px;
  background:
    radial-gradient(circle at 25% 30%, rgba(139,92,246,.55), transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(47,107,255,.6), transparent 50%),
    var(--navy);
  display: flex; align-items: center; justify-content: center; padding: 32px;
}
.panel-graphic img { border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.chip {
  width: 200px; height: 200px; border-radius: 16px;
  background: linear-gradient(145deg, #1b2150, #0b0f2c);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 0 0 10px rgba(255,255,255,.03), 0 30px 60px rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  color: #fff; font-weight: 800; font-size: 26px; letter-spacing: .02em;
}
.chip small { font-size: 12px; font-weight: 500; color: #9aa3c7; letter-spacing: .1em; }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px var(--blue); }
.section-dark .checklist li::before { box-shadow: inset 0 0 0 4px var(--navy), 0 0 0 1px var(--blue); }

/* Resource cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 28px; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--blue); box-shadow: 0 10px 28px rgba(47,107,255,.12); text-decoration: none; }
.card .icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(47,107,255,.1); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 20px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .card-type { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; display: block; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; color: var(--ink); display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info .row { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-info .row .icon { width: 44px; height: 44px; flex: none; border-radius: 10px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--cyan); }
.contact-info .row strong { display: block; color: #fff; }
.form { background: #fff; border-radius: 12px; padding: 32px; color: var(--text); }
.form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px;
  border: 1px solid #cfd4e3; border-radius: var(--radius); margin-bottom: 16px; background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form textarea { min-height: 110px; resize: vertical; }
.form .note { font-size: 12px; color: var(--muted); margin: 12px 0 0; }

/* Details / spec list */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.spec { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.spec h3 { font-size: 20px; }
.spec dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 18px 0 0; font-size: 15px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; color: var(--ink); font-weight: 600; }
.prose { max-width: 820px; font-size: 17px; }
.prose p { color: var(--text); }
.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.media-grid video, .media-grid img { width: 100%; border-radius: 10px; background: #000; }
.media-grid figure { margin: 0; }
.media-grid figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.download { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; }
.download h3 { font-size: 18px; margin: 0 0 4px; }
.download p { margin: 0; color: var(--muted); font-size: 14px; }
.callout { border-left: 4px solid var(--blue); background: rgba(47,107,255,.06); padding: 20px 24px; border-radius: 0 8px 8px 0; margin: 28px 0; }
.callout p:last-child { margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(110deg, var(--blue-dark), var(--violet)); color: #fff; padding: 64px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(26px, 3vw, 34px); }
.cta-band p { margin: 0; color: #e3e7ff; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: #e9edff; }

/* ---------- Footer ---------- */
.site-footer { background: #03041a; color: #9aa3c7; padding: 22px 0 28px; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 16px; }
.footer-grid h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #b7bedc; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { margin-top: 16px; max-width: 320px; }
.footer-bottom { border-top: 3px solid rgba(50,50,50,.9); padding-top: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.site-footer a { color: #8AF; }
.site-footer small { color: #8AF; }

.text-container {
  position: relative;
  width: 100%;
  height: 450px;
  margin-left: 20px;
}

.text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Forces the link to sit in front of the iframe */
}

.textbox {
    background-color: #555;
    width: 100%;
    height: 100%;
    border: 5px solid #000;
    /*border: none;       /* Removes the default iframe border */
    overflow: hidden;   /* Cuts off any extra content */
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container, .split, .contact { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .trio, .quarto, .cards { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .spectrum { max-width: 520px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--navy); padding: 8px 16px 20px; border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-links a.active { box-shadow: none; color: var(--cyan); }
  .container { padding: 0 16px; }
  section { padding: 68px 0; }
  .hero { padding: 72px 0 80px; }
  .products, .trio, .quarto, .cards, .spec-grid, .media-grid, .form .grid2 { grid-template-columns: 1fr; }
  .product { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .download { flex-direction: column; align-items: flex-start; }
}
