* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    color: black;
    background-color: white;
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    gap: 0.5rem;
    border-bottom: solid 1px #aaa;
    background-color: #eee;
}

nav a {
    display: inline-block;
    min-width: 9rem;
    padding: 0.5rem;
    border-radius: 0.2rem;
    border: solid 1px #aaa;
    text-align: center;
    text-decoration: none;
    color: #555;
}

nav a[aria-current='page'] {
    color: #000;
    background-color: #d4d4d4;
}

main {
    padding: 1rem;
}

h1 {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Ensures the link itself does not have default link styling */
.link-container {
    display: block;
    /* Makes the link behave like a block element */
    text-decoration: none;
    /* Removes underline */
    color: inherit;
    /* Inherits the text color from the parent */
}

/* Optional: Ensures the div takes the full width and height as a link */
.aspect-ratio__content {
    width: 100%;
    height: 100%;
}

/* ============================================
   FLIP CARD EFFECT
   ============================================ */

.flip-card {
    perspective: 1000px;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-card-front {
    background-color: transparent;
    color: black;
    transform: rotateY(0deg);
    z-index: 2;
}

.flip-card-back {
    background-color: transparent;
    color: #333;
    /* or #000 for black, or rgba(0,0,0,0.87) */
    margin-bottom: 2rem;
    /* Adjust the value as needed: 1rem, 2rem, etc. */
    transform: rotateY(180deg);
    z-index: 1;
}

body {
    background: #ECEFF1;
    color: rgba(0, 0, 0, 0.87);
    font-family: Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

#message {
    background: white;
    max-width: 360px;
    margin: 100px auto 16px;
    padding: 32px 24px;
    border-radius: 3px;
}

#message h2 {
    color: #ffa100;
    font-weight: bold;
    font-size: 16px;
    margin: 0 0 8px;
}

#message h1 {
    font-size: 22px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.6);
    margin: 0 0 16px;
}

#message p {
    line-height: 140%;
    margin: 16px 0 24px;
    font-size: 14px;
}

#message a {
    display: block;
    text-align: center;
    background: #039be5;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    padding: 16px;
    border-radius: 4px;
}

#message,
#message a {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

#load {
    color: rgba(0, 0, 0, 0.4);
    text-align: center;
    font-size: 13px;
}

.footer-logo {
    max-height: 260px;
    width: auto;
    display: block;
}

/* Footer-specific investor button */
.investor-button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-family: 'Inter', 'Helvetica Neue', -apple-system, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    color: #8a9ea8;
    /* Muted gray-blue, matches footer text tone */
    background-color: transparent;
    border: 1px solid #3a5563;
    /* Subtle, not too harsh */
    border-radius: 2px;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 25px;
}

.investor-button-outline:hover {
    color: #ffffff;
    background-color: #3a5563;
    border-color: #3a5563;
}

.investor-button-outline:focus-visible {
    outline: 2px solid #5b8c9e;
    outline-offset: 2px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer-logo {
        max-height: 40px;
        margin: 0 auto 1rem auto;
    }

    .investor-button-wrapper {
        text-align: center;
    }
}

@media (max-width: 600px) {

    body,
    #message {
        margin-top: 0;
        background: white;
        box-shadow: none;
    }

    body {
        border-top: 16px solid #ffa100;
    }
}