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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;    
    margin-left: 40px;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 0;
    border-bottom: 1px solid #e5e5e5;
    backdrop-filter: blur(10px);
    
}



.nav-menu a {
    color: #1a1a1a;                 /* Black text */
    background-color: #f0f0f0;      /* Light gray background */
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 400;
    white-space: nowrap;
}

.nav-menu a:hover {
    background-color: #e0e0e0;      /* Slightly darker gray on hover */
    color: #1a1a1a;
}

.nav-menu a.active {
    background-color: #d0d0d0;      /* Even darker gray for active page */
    color: #1a1a1a;
    font-weight: 500;
}




/* Image styles */
img {
    max-width: 90vw;  /* 80% of viewport width */
    height: auto;
}


/* Specific sizing for diagram images */
img[src*="/images/coil_finished.jpg"],
img[src*="/images/coil_finished_2.jpg"]
{
    width: 600px;     /* Adjust this to whatever looks good */
    max-width: 100%;  /* Still responsive on mobile */
}




.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}


/* Add this new rule */
.logo img {
    width: 200px;
    height: 67px;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-menu a {
    color: #666;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 400;
}

.nav-menu a:hover {
    color: #1a1a1a;
}

.nav-menu a.active {
    color: #1a1a1a;
    font-weight: 500;
}

/* Product hero: sunburst showcase behind the board image */
.hero {
    position: relative;
    width: 700px;
    max-width: 90vw;
    margin: 0.5rem 0 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.hero::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 150%;
    aspect-ratio: 1;
    translate: -50% -50%;
    background:
        repeating-conic-gradient(
            rgba(245, 185, 66, 0.28) 0deg 5deg,
            rgba(245, 185, 66, 0.0) 5deg 14deg
        ),
        radial-gradient(circle,
            rgba(255, 214, 110, 0.55) 0%,
            rgba(255, 214, 110, 0.18) 40%,
            rgba(255, 214, 110, 0) 70%
        );
    -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 72%);
    mask-image: radial-gradient(circle, #000 35%, transparent 72%);
    animation: hero-spin 90s linear infinite;
    pointer-events: none;
}

.hero img {
    position: relative;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 28px rgba(20, 25, 70, 0.35));
}

@keyframes hero-spin {
    to { rotate: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before { animation: none; }
}

/* Keep the heading and description solid above the burst */
h1:has(+ .hero),
.hero ~ p:not(.connections) {
    position: relative;
    z-index: 1;
    width: fit-content;
    background: #fff;
    box-shadow: 0 0 18px 14px #fff;
}

/* Coming-soon badge on the home page */
.coming-soon {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.45rem 1.2rem;
    border: 2px solid #f5b942;
    border-radius: 999px;
    color: #a5720d;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Main Content Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: calc(100vh - 200px);
}

h1 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.2;
}

h2 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

p {
    margin-bottom: 1.25rem;
    color: #666;
    font-size: 1.05rem;
    line-height: 1.7;    
}

/* Footer Styles */
footer {
    background-color: #fafafa;
    color: #666;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #e5e5e5;
    font-size: 0.9rem;
}

/* Full width despite the body's left margin */
body > footer {
    margin-left: -40px;
}

/* Connections diagram: starts 3cm below the bottom edge of the hero sunburst */
.connections {
    margin-top: calc(min(700px, 90vw) * 0.40 + 3cm);
}

.connections img {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0;
}

/* Software page */
.download a {
    display: inline-block;
    margin-right: 0.75rem;
    padding: 0.6rem 1.4rem;
    background: #d4a017;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
}

.download a:hover {
    background: #b8860b;
}

table.versions {
    border-collapse: collapse;
    margin-bottom: 1.25rem;
}

table.versions th,
table.versions td {
    padding: 0.4rem 1.5rem 0.4rem 0;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
}

h3 {
    margin-top: 1rem;
}

ul.changelog {
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
}

video.clip {
    display: block;
    width: 100%;
    max-width: 450px;
    height: auto;
    margin-bottom: 1.25rem;
}

.spaced {
    margin-top: 60px;
}
