:root {
    --bg: #100b14;
    --surface: #1d1422;
    --surface-hover: #30203a;
    --border: #493453;
    --text: #f8fafc;
    --muted: #b3a2b8;
    --accent: #6f3692;
    --accent-hover: #5b2d78;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
    radial-gradient(
        circle at top,
        rgba(111, 54, 146, 0.18),
                    transparent 45%
    ),
    var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

    display: flex;
    flex-direction: column;
}

/* HEADER */

header {
    padding: 2rem 1.5rem 1rem;
    text-align: center;
}

.logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin-bottom: 1rem;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header p {
    max-width: 650px;
    margin: 0.75rem auto 0;
    color: var(--muted);
    line-height: 1.6;
}

.powered-by {
    margin: 0.4rem 0 0 !important;
    font-size: 0.8rem;
    color: var(--muted);
}

.powered-by a {
    color: var(--muted);
    text-decoration: underline;
}

.powered-by a:hover {
    color: var(--text);
}

/* MAIN */

main {
    width: min(1100px, 92%);
    margin: 2rem auto;
    flex: 1;
}

.section-title {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* SERVICES */

.services {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(260px, 1fr)
    );
    gap: 1.25rem;
}

.service {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 2rem;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;

    color: inherit;
    text-decoration: none;

    transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s;
}

.service:hover {
    transform: translateY(-4px);
    background: var(--surface-hover);
    border-color: var(--accent);
}

.service-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1.25rem;
}

.service h2 {
    margin: 0;
    font-size: 1.3rem;
}

.service p {
    margin: 0.6rem 0 0;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}

/* INFO */

.info {
    margin-top: 2rem;
    padding: 1.5rem;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;

    text-align: center;
}

.info p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0.5rem 0;
}

.info code {
    color: var(--text);
}

/* FOOTER */

footer {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--muted);
}

footer a {
    color: var(--muted);
    text-decoration: none;
    margin: 0 0.5rem;
}

footer a:hover {
    color: var(--text);
}

.shoutout {
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.shoutout a {
    margin: 0;
}

.legal {
    font-size: 0.85rem;
}

.cloud-service {
    position: relative;
    border: 2px solid transparent;
    box-shadow: 0 0 12px rgba(180, 76, 255, 0.35);

    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        conic-gradient(
            from 0deg,
            #6f3692,
            #b44cff,
            #e35cff,
            #6f3692,
            #3d1760,
            #b44cff,
            #6f3692
        ) border-box;

    animation: cloud-border 4s linear infinite;
}

@keyframes cloud-border {
    0% {
        background:
            linear-gradient(var(--surface), var(--surface)) padding-box,
            conic-gradient(
                from 0deg,
                #6f3692,
                #b44cff,
                #e35cff,
                #6f3692,
                #3d1760,
                #b44cff,
                #6f3692
            ) border-box;
    }

    100% {
        background:
            linear-gradient(var(--surface), var(--surface)) padding-box,
            conic-gradient(
                from 360deg,
                #6f3692,
                #b44cff,
                #e35cff,
                #6f3692,
                #3d1760,
                #b44cff,
                #6f3692
            ) border-box;
    }
}
