@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg: #f3f8ff;
    --surface: rgba(255, 255, 255, 0.82);
    --line: rgba(13, 27, 42, 0.12);
    --text: #0d1b2a;
    --muted: #51627f;
    --primary: #0a6cff;
    --primary-strong: #004bbb;
    --secondary: #00b8a8;
    --accent: #ff8a1f;
    --radius: 18px;
    --shadow-soft: 0 18px 44px rgba(7, 35, 74, 0.12);
    --shadow-strong: 0 26px 58px rgba(7, 35, 74, 0.2);
}

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

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #eaf3ff 0%, #f8fbff 35%, #f3f8ff 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.tree-bg-shape {
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    z-index: -1;
}

.shape-one {
    width: 520px;
    height: 520px;
    right: -180px;
    top: -180px;
    background: radial-gradient(circle at 35% 35%, rgba(10, 108, 255, 0.24), rgba(10, 108, 255, 0));
}

.shape-two {
    width: 420px;
    height: 420px;
    left: -140px;
    bottom: -140px;
    background: radial-gradient(circle at 70% 70%, rgba(0, 184, 168, 0.21), rgba(0, 184, 168, 0));
}

.tree-shell {
    width: min(760px, calc(100% - 28px));
    margin: 0 auto;
    padding: 24px 0 34px;
}

.tree-header {
    position: sticky;
    top: 14px;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 13px 14px;
    border-radius: 16px;
    background: rgba(248, 252, 255, 0.83);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.tree-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.tree-logo img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.tree-logo h1 {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    font-size: 1.42rem;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 4px;
}

.tree-logo p {
    font-size: 0.88rem;
    color: var(--muted);
}

.language-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 8px 10px;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(10, 108, 255, 0.14), rgba(0, 184, 168, 0.14));
    color: var(--primary-strong);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.tree-panel {
    border-radius: 22px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.section-title {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.link-button {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 14px;
    border: 1px solid rgba(13, 27, 42, 0.08);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 26px rgba(8, 31, 66, 0.08);
    color: inherit;
    text-decoration: none;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.link-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(10, 108, 255, 0.32);
}

.link-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid rgba(13, 27, 42, 0.08);
}

.link-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-soft {
    color: var(--primary);
    background: rgba(10, 108, 255, 0.08);
}

.link-text h3 {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    font-size: 1.05rem;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

.link-text p {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 5px;
}

.link-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(10, 108, 255, 0.12);
    color: var(--primary-strong);
}

.app-link .link-badge {
    background: rgba(0, 184, 168, 0.13);
    color: #00796f;
}

.web-link .link-badge {
    background: rgba(255, 138, 31, 0.13);
    color: #be5a00;
}

.link-button i {
    color: rgba(13, 27, 42, 0.46);
    transition: transform 0.24s ease, color 0.24s ease;
}

.link-button:hover i {
    transform: translateX(2px) translateY(-2px);
    color: var(--primary-strong);
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13, 27, 42, 0.2), transparent);
    margin: 18px 0;
}

.devnova-button-container {
    position: sticky;
    bottom: 16px;
    margin-top: 12px;
    z-index: 30;
}

.devnova-button {
    border-radius: 16px;
    background: linear-gradient(128deg, #0a4aa3, #0a6cff 60%, #00b8a8);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    box-shadow: var(--shadow-strong);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.devnova-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 66px rgba(8, 40, 88, 0.32);
}

.devnova-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.devnova-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.18);
}

.devnova-icon img {
    width: 26px;
    height: auto;
}

.devnova-text h3 {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    font-size: 1.02rem;
    margin-bottom: 2px;
}

.devnova-text p {
    font-size: 0.8rem;
    color: rgba(234, 243, 255, 0.86);
}

.tree-footer {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.79rem;
    padding: 4px 2px;
}

.footer-links {
    display: inline-flex;
    gap: 12px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-strong);
}

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

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 640px) {
    .tree-shell {
        width: min(760px, calc(100% - 18px));
        padding-top: 14px;
    }

    .tree-header {
        top: 8px;
        padding: 11px 12px;
    }

    .tree-logo h1 {
        font-size: 1.3rem;
    }

    .tree-logo p {
        font-size: 0.81rem;
    }

    .tree-panel {
        padding: 14px;
    }

    .link-button {
        grid-template-columns: 48px 1fr auto;
        padding: 10px;
    }

    .link-icon {
        width: 48px;
        height: 48px;
    }

    .devnova-button {
        padding: 11px 12px;
    }

    .tree-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
