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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    background-size: 300% 300%;
    animation: gradientFlow 18s ease infinite;
    color: #eaeaea;
}

.bg-blobs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.bg-blobs span {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f5a0, #00d9f5);
    opacity: .18;
    filter: blur(90px);
    animation: float 20s infinite alternate ease-in-out;
}

.bg-blobs span:nth-child(1) {
    top: -120px;
    left: -120px;
}

.bg-blobs span:nth-child(2) {
    bottom: -120px;
    right: -120px;
    animation-delay: 5s;
}

.bg-blobs span:nth-child(3) {
    top: 50%;
    left: 60%;
    animation-delay: 10s;
}

@keyframes float {
    to {
        transform: translate(140px, -140px);
    }
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

nav.menu {
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 99;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

nav.menu a {
    color: #f1f1f1;
    text-decoration: none;
    font-weight: 500;
    padding: .55rem 1.2rem;
    border-radius: 999px;
    position: relative;
    transition: all .35s cubic-bezier(.4,0,.2,1);
}

nav.menu a::after {
    content: "";
    position: absolute;
    left: 10%;
    bottom: 5px;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, #00f5a0, #00d9f5);
    transform: scaleX(0);
    transition: transform .35s ease;
}

nav.menu a:hover::after,
nav.menu a.active::after {
    transform: scaleX(1);
}

nav.menu a:hover {
    background: rgba(255,255,255,.1);
    transform: translateY(-1px);
}

main.content {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

section {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.12);
    padding: 2.5rem;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    animation: fadeSlide .6s cubic-bezier(.4,0,.2,1);
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00f5a0, #00d9f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h3 {
    margin-top: 1.2rem;
    margin-bottom: .4rem;
    color: #00f5a0;
}

p, li {
    line-height: 1.7;
    color: rgba(255,255,255,.85);
}

ul {
    margin-left: 1.2rem;
    margin-bottom: 1rem;
}

.btn {
    background: linear-gradient(135deg, #00f5a0, #00d9f5);
    border: none;
    padding: .7rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    color: #002c30;
    cursor: pointer;
    transition: all .35s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,245,160,.45);
}

@media (max-width: 768px) {
    nav.menu {
        gap: .6rem;
    }

    section {
        padding: 1.6rem;
    }
}

figure { margin: 1rem 0 1.6rem; }
figure img { display: block; width: 100%; height: auto; border-radius: 10px; }
figure > figcaption { margin-top: .5rem; color: rgba(255,255,255,.78); font-size: .95rem; }
.figure-card {
    display: inline-block;
    padding: 10px;
    border-radius: 16px;
    border: 3px solid #00f5a0;
    background: rgba(0, 245, 160, 0.10);
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.img--neumann { width: 340px; max-width: 100%; }
.img--arch    { width: 560px; max-width: 100%; }
.grid--neumann {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.2rem 2rem;
    align-items: start;
    margin: 1.2rem 0 2rem;
}

.grid--arch {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.2rem 2rem;
    align-items: start;
    margin: 1.2rem 0 2rem;
}

@media (max-width: 900px) {
    .grid--neumann,
    .grid--arch {
        grid-template-columns: 1fr;
    }
    .img--neumann,
    .img--arch {
        width: 100%;
    }
}

.text-col p { margin-top: .4rem; }
h3 { color: #00f5a0; margin-bottom: .5rem; }