:root {
  --navy-950: #07111f;
  --navy-900: #0a1728;
  --navy-850: #0d1c30;
  --navy-800: #10233a;
  --line: rgba(255, 255, 255, 0.10);
  --text: #f3f7fb;
  --muted: #a9b7c8;
  --accent: #68b6d9;
  --accent-strong: #8fd5f3;
  --white-soft: #dfe8f2;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--navy-950);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 17, 31, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143, 213, 243, 0.42);
  border-radius: 8px;
  color: var(--accent-strong);
  background: rgba(104, 182, 217, 0.08);
  font-size: 0.88rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--white-soft);
  font-size: 0.94rem;
}

.site-nav a:not(.nav-cta):hover {
  color: var(--accent-strong);
}

.nav-cta {
  border: 1px solid rgba(143, 213, 243, 0.35);
  padding: 9px 15px;
  border-radius: 8px;
  background: rgba(104, 182, 217, 0.08);
}

.nav-cta:hover,
.nav-cta.active {
  border-color: rgba(143, 213, 243, 0.65);
  background: rgba(104, 182, 217, 0.14);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  min-height: 690px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 24%, rgba(42, 119, 153, 0.18), transparent 31%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: 80px;
  padding-block: 100px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.contact-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-text {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: 160ms ease;
}

.button-primary {
  color: #06101a;
  background: var(--accent-strong);
}

.button-primary:hover {
  transform: translateY(-1px);
  background: #a5e2fb;
}

.button-secondary {
  border-color: var(--line);
  color: var(--white-soft);
  background: rgba(255,255,255,0.025);
}

.button-secondary:hover {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.05);
}

.hero-panel {
  border: 1px solid rgba(143, 213, 243, 0.16);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(3, 11, 20, 0.72);
  box-shadow: 0 25px 80px rgba(0,0,0,0.24);
}

.terminal-top {
  display: flex;
  gap: 7px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
}

.terminal-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.23);
}

.terminal-body {
  min-height: 300px;
  padding: 34px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 2.05;
  color: var(--white-soft);
}

.prompt,
.terminal-ready {
  color: var(--accent-strong);
}

.muted {
  color: #72849a;
}

.terminal-ready {
  margin-top: 21px;
}

.section {
  padding: 110px 0;
}

.section-alt {
  border-block: 1px solid var(--line);
  background: var(--navy-900);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading h2,
.cta-box h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading > p:last-child,
.cta-box > div > p:last-child {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.card {
  min-height: 250px;
  padding: 31px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.012);
}

.card:hover {
  background: rgba(104, 182, 217, 0.035);
}

.card-icon {
  margin-bottom: 39px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.logo-item {
  height: 140px;
  padding: 24px 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  border: 1px solid rgba(169, 183, 200, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.logo-item img {
  display: block;
  width: 150px;
  height: 48px;
  max-width: 100%;
  object-fit: contain;
}

.logo-item img.beagleboard-logo {
  width: 240px;
  height: 120px;
}

.logo-note {
  margin: 20px 0 0;
  color: #66788d;
  font-size: 0.77rem;
}

.cta-section {
  padding: 84px 0;
}

.cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 55px;
  padding: 46px 48px;
  border: 1px solid rgba(143, 213, 243, 0.15);
  border-radius: 14px;
  background:
    linear-gradient(100deg, rgba(104, 182, 217, 0.065), rgba(255,255,255,0.018));
}

.cta-box > div {
  max-width: 740px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: #718196;
}

.footer-wrap {
  min-height: 100px;
  display: flex;
  align-items: center;
  gap: 35px;
  font-size: 0.8rem;
}

.footer-brand {
  color: var(--white-soft);
  margin-right: auto;
}

/* Contact */
.contact-main {
  min-height: calc(100vh - 175px);
  background:
    radial-gradient(circle at 20% 5%, rgba(42, 119, 153, 0.12), transparent 30%),
    var(--navy-950);
}

.contact-hero {
  padding: 95px 0 115px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 125px;
}

.contact-copy h1 {
  font-size: clamp(2.8rem, 6vw, 4.9rem);
}

.contact-copy > p:not(.eyebrow) {
  max-width: 580px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 1.06rem;
}

.contact-points {
  margin-top: 46px;
  border-top: 1px solid var(--line);
}

.contact-points div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-points span {
  color: var(--accent);
  font-family: monospace;
  font-size: 0.78rem;
}

.contact-points p {
  margin: 0;
  color: var(--white-soft);
  font-size: 0.9rem;
}

.contact-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--navy-900);
}

.contact-card h2 {
  margin: 0;
  font-size: 1.65rem;
}

.form-note {
  margin: 8px 0 27px;
  color: #7c8da2;
  font-size: 0.83rem;
}

form {
  display: grid;
  gap: 19px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--white-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  outline: none;
  color: var(--text);
  background: #081525;
  padding: 13px 14px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(143, 213, 243, 0.55);
  box-shadow: 0 0 0 3px rgba(104, 182, 217, 0.07);
}

select option {
  background: var(--navy-900);
}

.form-button {
  margin-top: 3px;
}

.form-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-block: 78px;
  }

  .hero-panel {
    max-width: 630px;
  }

  .capability-grid,
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-copy {
    position: static;
  }

  .cta-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 660px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 20px 23px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    background: var(--navy-950);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-cta {
    text-align: center;
  }

  .hero h1,
  .contact-copy h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .section {
    padding: 80px 0;
  }

  .capability-grid,
  .logo-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  .cta-box,
  .contact-card {
    padding: 28px 24px;
  }

  .footer-wrap {
    padding-block: 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  .footer-brand {
    margin: 0 0 6px;
  }
}
