/* GLOBAL */
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #070816;
    color: #e5e7eb;
    line-height: 1.6;
}

/* TOP PARTNER BAR */
.top-partner-bar {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #050510;
    color: #fff;
    text-align: center;
    padding: 8px 10px;
    font-size: 14px;
    border-bottom: 1px solid rgba(245,199,107,0.25);
}

.top-partner-bar span {
    opacity: 0.8;
    margin-right: 6px;
}

.top-partner-bar a,
footer a {
    color: #f5c76b;
    text-decoration: none;
    margin: 0 8px;
    font-weight: bold;
}

.top-partner-bar a:hover,
footer a:hover {
    text-decoration: underline;
}

/* HEADER */
header {
    background:
        radial-gradient(circle at top, rgba(245,199,107,0.18), transparent 35%),
        linear-gradient(135deg, #070816, #312e81, #111827);
    color: white;
    text-align: center;
    padding: 80px 20px;
    border-bottom: 1px solid rgba(245,199,107,0.25);
}

header h1 {
    font-size: 52px;
    margin: 0 0 10px;
    color: #f5c76b;
    letter-spacing: 1px;
}

header p {
    font-size: 20px;
    max-width: 760px;
    margin: 0 auto;
    color: #e5e7eb;
}

/* NAV */
nav {
    position: sticky;
    top: 38px;
    z-index: 9998;
    background: #111827;
    padding: 14px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(245,199,107,0.18);
}

nav a {
    color: #f5c76b;
    text-decoration: none;
    margin: 0 12px;
    font-weight: bold;
}

nav a:hover {
    color: #fff;
}

/* MAIN */
main {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.intro {
    text-align: center;
    margin-bottom: 45px;
}

.intro h2 {
    font-size: 34px;
    margin-bottom: 12px;
    color: #f5c76b;
}

.intro p {
    max-width: 780px;
    margin: 12px auto;
    color: #d1d5db;
}

.section-title {
    margin-top: 55px;
    margin-bottom: 20px;
    font-size: 28px;
    color: #f5c76b;
    scroll-margin-top: 80px;
}

/* TOOL GRID */
.tool-grid,
.partner-grid {
    display: grid;
}

.tool-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.partner-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

/* CARDS */
.tool-card,
.note-box {
    background: linear-gradient(145deg, #111827, #1e1b4b);
    border: 1px solid rgba(245,199,107,0.18);
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

.tool-card {
    padding: 24px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.45);
    border-color: rgba(245,199,107,0.45);
}

.tool-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #fff;
}

.tool-card p,
.note-box p {
    color: #d1d5db;
}

.tool-card p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.tool-card a,
.btn {
    display: inline-block;
    background: #f5c76b;
    color: #111827;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    margin-top: auto;
    align-self: flex-start;
}

.tool-card a:hover,
.btn:hover {
    background: #ffe08a;
}

/* NOTE BOX */
.note-box {
    padding: 28px;
    margin-top: 55px;
}

.note-box h2 {
    color: #f5c76b;
}

/* PARTNER GRID */
.partner-grid a {
    display: block;
    background: rgba(255,255,255,0.08);
    color: #f5c76b;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
}

.partner-grid a:hover {
    background: rgba(255,255,255,0.14);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px 20px;
    background: #050510;
    color: white;
    margin-top: 60px;
    border-top: 1px solid rgba(245,199,107,0.25);
}

/* SHARE BUTTON */
.share-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #f5c76b;
    color: #111827;
    border: none;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
    z-index: 9999;
}

.share-button:hover {
    background: #ffe08a;
}

/* SHARE MENU */
.share-menu {
    position: fixed;
    bottom: 75px;
    right: 20px;
    background: linear-gradient(135deg, #111827, #312e81);
    padding: 12px;
    border-radius: 14px;
    display: none;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    z-index: 9999;
    min-width: 130px;
    border: 1px solid rgba(245,199,107,0.25);
}

.share-menu.open {
    display: flex;
}

.share-menu a {
    text-decoration: none;
    color: #f5c76b;
    font-weight: bold;
    background: rgba(255,255,255,0.08);
    padding: 8px 10px;
    border-radius: 8px;
}

.share-menu a:hover {
    background: rgba(255,255,255,0.16);
}

/* MOBILE */
@media (max-width: 600px) {

    .top-partner-bar {
        font-size: 12px;
        line-height: 1.6;
        padding: 8px 6px;
    }

    nav {
        top: 34px;
        padding: 10px 12px;
    }

    nav a {
        display: inline-block;
        margin: 5px 7px;
        font-size: 13px;
    }

    header {
        padding: 60px 20px;
    }

    header h1 {
        font-size: 40px;
    }

    header p {
        font-size: 18px;
    }

    .intro h2,
    .section-title {
        font-size: 26px;
    }

    .section-title {
        scroll-margin-top: 100px;
    }

    .tool-card {
        min-height: 230px;
    }
}