@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@600&family=Nunito+Sans:wght@600;700&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
    color-scheme: light;
    --bg: #fff3f5;
    --bg-2: #f0f7ff;
    --bg-3: #fff9e9;
    --text: #1e1a2b;
    --muted: #5e5872;
    --surface: #ffffff;
    --surface-2: #fff6fb;
    --border: #f2d9ef;
    --accent: #ff7ac8;
    --accent-2: #6b7bff;
    --accent-3: #53d6c2;
    --shadow: 0 18px 45px rgba(86, 66, 114, 0.18);
    --glow: 0 0 0 6px rgba(255, 122, 200, 0.15);
    --ball-1: #f7c843;
    --ball-2: #7dd3fc;
    --ball-3: #86efac;
    --ball-4: #f9a8d4;
    --ball-5: #fdba74;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #151126;
    --bg-2: #1a1f34;
    --bg-3: #18162c;
    --text: #f6f2ff;
    --muted: #b5adcf;
    --surface: #221c39;
    --surface-2: #1c1731;
    --border: #332a57;
    --accent: #ff7ac8;
    --accent-2: #7aa7ff;
    --accent-3: #50e3c2;
    --shadow: 0 24px 60px rgba(8, 6, 20, 0.65);
    --glow: 0 0 0 6px rgba(122, 167, 255, 0.2);
    --ball-1: #f7c843;
    --ball-2: #60a5fa;
    --ball-3: #34d399;
    --ball-4: #f472b6;
    --ball-5: #fb923c;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    background: radial-gradient(420px 220px at 15% 10%, rgba(255, 122, 200, 0.35), transparent 60%),
        radial-gradient(520px 320px at 85% 15%, rgba(122, 167, 255, 0.3), transparent 60%),
        radial-gradient(620px 420px at 40% 85%, rgba(83, 214, 194, 0.22), transparent 60%),
        linear-gradient(145deg, var(--bg), var(--bg-2), var(--bg-3));
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100dvh;
    margin: 0;
    padding: 48px 16px 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.top-bar {
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 10;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.container {
    width: 100%;
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 22px 18px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: visible;
}

.container::before {
    content: "";
    position: absolute;
    inset: -25% -10% auto auto;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle at center, rgba(255, 122, 200, 0.35), transparent 65%);
    opacity: 0.8;
    pointer-events: none;
}

.container::after {
    content: "";
    position: absolute;
    inset: auto auto -18% -10%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle at center, rgba(122, 167, 255, 0.3), transparent 68%);
    opacity: 0.7;
    pointer-events: none;
}

.header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    flex-direction: column;
}

.title-block {
    width: 100%;
    text-align: center;
}

.title-block h1 {
    font-family: "Nunito Sans", "Space Grotesk", "Times New Roman", sans-serif;
    font-size: clamp(2.2rem, 3.4vw, 2.9rem);
    margin: 6px 0 8px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.7rem;
    color: var(--muted);
    margin: 0;
}

.subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

.actions {
    justify-content: center;
}

button {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.primary-btn {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 20px rgba(70, 50, 92, 0.12);
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(70, 50, 92, 0.18);
}

.ghost-btn {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.ghost-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: var(--accent-2);
    box-shadow: var(--glow);
}

.ghost-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.theme-toggle {
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: var(--accent-2);
    box-shadow: var(--glow);
}

.color-panel {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    border-radius: 26px;
    border: 1px solid var(--border);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(47, 37, 67, 0.1);
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.color-swatch {
    width: 130px;
    height: 130px;
    border-radius: 38% 62% 52% 48% / 55% 40% 60% 45%;
    background: #ffffff;
    box-shadow: inset 0 0 0 1.5px rgba(216, 207, 230, 0.7), 0 14px 30px rgba(76, 59, 107, 0.2);
    animation: floaty 6s ease-in-out infinite;
}

.color-details {
    display: grid;
    gap: 6px;
}

.color-label {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.7rem;
    color: var(--muted);
    margin: 0;
}

.color-details h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
}

.color-hex {
    margin: 0;
    font-family: "Courier New", Courier, monospace;
    color: var(--muted);
}

.footer-note {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.content-grid {
    margin-top: 26px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.info-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 252, 0.9));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px 18px;
    box-shadow: 0 10px 22px rgba(70, 50, 92, 0.08);
}

.info-card h2,
.faq h2 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.info-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.6;
}

.faq {
    margin-top: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 246, 251, 0.4));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 18px 20px;
}

.faq-item + .faq-item {
    border-top: 1px dashed var(--border);
    margin-top: 14px;
    padding-top: 14px;
}

.faq-item h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.faq-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

@keyframes pop-in {
    0% {
        transform: scale(0.85);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes floaty {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-6px) rotate(2deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@media (min-width: 900px) {
    body {
        padding: 24px;
    }

    .container {
        max-width: 480px;
    }
}
.color-details {
    justify-items: center;
    text-align: center;
}
