:root {
    --blue-900: #1e3a5f;
    --blue-700: #1a56db;
    --blue-500: #3b82f6;
    --blue-300: #93c5fd;
    --purple-600: #7c3aed;
    --pink-500: #ec4899;
    --pink-400: #f472b6;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--gray-700);
    line-height: 1.7;
    background: var(--gray-50);
    overflow-x: hidden;
}

p { text-align: justify; }

a {
    color: var(--blue-700);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--purple-600);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[hidden] {
    display: none !important;
}

hr {
    margin: 60px auto;
    max-width: 120px;
    border: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-500), var(--pink-500));
    border-radius: 2px;
}

/* ===== HEADER ===== */

#header {
    position: relative;
    background: linear-gradient(145deg, #0f1b3d 0%, #1a3a6b 40%, #1f5e8e 70%, #2d8faa 100%);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

#header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 120px;
    background: url("curve.svg") no-repeat bottom center;
    background-size: 100% 100%;
    pointer-events: none;
}

/* ===== FIXED TITLE (navbar) ===== */

#title {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 40px;
    transition: var(--transition);
}

.title-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

#title h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--white);
    transition: var(--transition);
}

#title .white h1,
#title.white h1 {
    color: var(--white) !important;
}

#title .black h1,
#title.black h1 {
    color: var(--gray-900) !important;
}

#baseline {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
}

#baseline.black {
    color: var(--gray-700) !important;
}

#baseline p {
    text-align: left;
}

#sideMenu {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

#sideMenu .menu-item a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    transition: var(--transition);
}

#sideMenu .menu-item a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

/* ===== NAV MENU IN HEADER ===== */

.header-wave {
    padding: 80px 40px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

#menu {
    display: none;
}

#menu .menu-item a {
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 18px;
    border-radius: 20px;
    transition: var(--transition);
}

#menu .menu-item a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.header-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    text-align: center;
}

.header-tagline {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    line-height: 1.3;
}

.header-tagline span {
    font-weight: 300;
    opacity: 0.7;
    font-size: 1.2rem;
}

/* ===== CONTENT ===== */

#content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 40px 80px;
    background: transparent;
}

.content-section {
    margin-bottom: 50px;
}

#content h2 {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue-900);
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    padding-top: 30px;
    position: relative;
}

#content h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-500), var(--pink-500));
    border-radius: 2px;
    margin-top: 10px;
}

/* ===== DOC CARDS ===== */

.doc {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 32px 40px;
    margin-bottom: 24px;
    border: 1px solid var(--gray-100);
    transition: box-shadow var(--transition), transform var(--transition);
}

.doc:hover {
    box-shadow: var(--shadow-md);
}

.doc.shadowPink {
    box-shadow: 0 0 0 3px var(--pink-400), var(--shadow-md) !important;
    border-color: var(--pink-400);
}

.doc-inner {
    max-width: 100%;
}

.doc h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.doc p {
    color: var(--gray-700);
    margin-bottom: 12px;
    font-size: 0.98rem;
}

.doc p:last-child {
    margin-bottom: 0;
}

.doc b, .doc strong {
    color: var(--gray-900);
}

.doc ul {
    list-style: none;
    padding: 0;
}

.doc li {
    padding: 10px 0 10px 28px;
    position: relative;
    font-size: 0.98rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.doc li:last-child {
    border-bottom: none;
}

.doc li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), var(--purple-600));
}

/* ===== CONTAINER ZONE (doc images) ===== */

.container-zone {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.zone {
    flex: 1;
    min-width: 0;
}

.zone h3 {
    margin-top: 0;
}

.zone p {
    margin-bottom: 16px;
}

.zone-img {
    flex: 0 0 45%;
    max-width: 45%;
}

.zone-img img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    background: #0d1117;
    width: 100%;
    transition: transform var(--transition), box-shadow var(--transition);
}

.zone-img img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* ===== CODE BLOCKS ===== */

code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--pink-500);
}

.code-block-wrapper {
    margin-top: 16px;
}

.code-block {
    background: #0d1117;
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
    border: 1px solid #21262d;
    margin-top: 12px;
}

.code-block code {
    background: none;
    padding: 0;
    color: #e6edf3;
    font-size: inherit;
    display: block;
}

.code-keyword { color: #ff7b72; }
.code-string { color: #a5d6ff; }
.code-comment { color: #8b949e; }

/* ===== BUTTONS ===== */

button {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-demo {
    background: linear-gradient(135deg, var(--blue-700), var(--purple-600));
    color: var(--white);
    box-shadow: 0 2px 10px rgba(26, 86, 219, 0.3);
}

.btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 86, 219, 0.4);
}

.btn-demo:active {
    transform: translateY(0);
}

/* ===== FOOTER ===== */

#footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 40px 20px;
    text-align: center;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

#footer p {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ===== REVEAL ANIMATIONS ===== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
.reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
.reveal.revealed:nth-child(4) { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    #title {
        padding: 12px 16px;
        position: absolute;
    }

    .title-inner {
        flex-wrap: wrap;
        gap: 6px;
    }

    #title h1 {
        font-size: 1.3rem;
    }

    #baseline {
        font-size: 0.8rem;
        order: 3;
        width: 100%;
    }

    #sideMenu {
        display: none;
    }

    #header {
        min-height: 350px;
        padding-bottom: 60px;
    }

    .header-wave {
        padding: 70px 20px 0;
    }

    #menu {
        display: none;
    }

    .header-tagline {
        font-size: 1.3rem;
    }

    .header-tagline span {
        font-size: 1rem;
    }

    #content {
        padding: 24px 16px 60px;
    }

    #content h2 {
        font-size: 1.5rem;
    }

    .doc {
        padding: 20px;
    }

    .container-zone {
        flex-direction: column;
        gap: 20px;
    }

    .zone-img {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    hr {
        margin: 40px auto;
    }

    .code-block {
        padding: 14px 16px;
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #content {
        padding: 40px 24px 80px;
    }

    .doc {
        padding: 24px 28px;
    }
}
