/* AlziDetect Base Styles - Dark Purple Theme */

/* CSS Variables */
:root {
    --base-color-neutral--gray--100: #2d1b3d;
    --base-color-neutral--gray--200: #3d274d;
    --base-color-neutral--gray--300: #4d335d;
    --base-color-neutral--gray--600: #8b7a9b;
    --base-color-neutral--gray--900: #1a1625;
    --text-color--text-primary: #a78bfa;
    --border-color--border-primary: #a78bfa;
}

/* Base Styles */
body {
    background:
        radial-gradient(circle at 15% 20%, rgba(167, 139, 250, 0.12), transparent 32%),
        radial-gradient(circle at 85% 10%, rgba(59, 130, 246, 0.1), transparent 28%),
        radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.08), transparent 30%),
        var(--base-color-neutral--gray--900);
    color: #f0f0f0;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Subtle starfield overlay to mirror landing page atmosphere */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.18), transparent 55%),
        radial-gradient(1px 1px at 140px 120px, rgba(167, 139, 250, 0.25), transparent 55%),
        radial-gradient(1px 1px at 260px 80px, rgba(59, 130, 246, 0.22), transparent 55%),
        radial-gradient(1px 1px at 40px 200px, rgba(255, 255, 255, 0.16), transparent 55%);
    background-size: 240px 240px, 320px 320px, 280px 280px, 200px 200px;
    opacity: 0.6;
    mix-blend-mode: screen;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Besley', serif;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.heading-style-h1 {
    font-family: 'Besley', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.heading-style-h2 {
    font-family: 'Besley', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.heading-style-h3 {
    font-family: 'Besley', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    line-height: 1.3;
}

.heading-style-h4 {
    font-family: 'Besley', serif;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 500;
    line-height: 1.4;
}

.text-color-primary {
    color: var(--text-color--text-primary);
}

.text-color-secondary {
    color: rgba(255, 255, 255, 0.8);
}

/* Button Styles */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    background: var(--text-color--text-primary);
    color: var(--base-color-neutral--gray--900);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background: rgba(167, 139, 250, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(167, 139, 250, 0.3);
}

/* Container */
.container-medium {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Padding */
.padding-global {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media screen and (min-width: 768px) {
    .padding-global {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.padding-section-medium {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.padding-section-large {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.container-large {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Backgrounds */
.section-bg-1 {
    background: var(--base-color-neutral--gray--900);
}

.section-bg-2 {
    background: var(--base-color-neutral--gray--100);
}

/* Utility Classes */
.margin-bottom {
    margin-bottom: 1rem;
}

.margin-large {
    margin-top: 3rem;
}

.text-size-regular {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.text-size-medium {
    font-size: 1rem;
    line-height: 1.6;
}

/* Shared surfaces and chips */
.surface-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.4rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #f8fafc;
    text-decoration: none;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(167, 139, 250, 0.22), transparent 45%),
        radial-gradient(ellipse at 80% 0%, rgba(99, 102, 241, 0.16), transparent 40%),
        linear-gradient(135deg, #24172f 0%, #191226 50%, #24172f 100%);
    border: 1px solid rgba(167, 139, 250, 0.4);
    box-shadow:
        0 6px 28px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(167, 139, 250, 0.16) inset,
        0 0 24px rgba(167, 139, 250, 0.28);
    transition: all 0.25s ease;
}

.primary-cta:hover {
    transform: translateY(-2px);
    border-color: rgba(167, 139, 250, 0.6);
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(167, 139, 250, 0.22) inset,
        0 0 30px rgba(167, 139, 250, 0.4);
}

/* Sidebar hero CTAs (match landing buttons) */
.sidebar_cta-group .button-primary-hero,
.sidebar_cta-group .button-secondary-hero {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    min-height: 52px;
    font-size: 1rem;
    border-radius: 0.9rem;
    letter-spacing: 0.03em;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(167, 139, 250, 0.35);
    box-shadow:
        0 4px 20px rgba(167, 139, 250, 0.3),
        0 0 0 1px rgba(167, 139, 250, 0.15) inset,
        0 2px 10px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(167, 139, 250, 0.2);
    background:
        radial-gradient(ellipse at top left, rgba(167, 139, 250, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #2d1b3d 0%, #1a1625 50%, #2d1b3d 100%);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.sidebar_cta-group .button-primary-hero::before,
.sidebar_cta-group .button-secondary-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(167, 139, 250, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.08) 0%, transparent 30%);
    pointer-events: none;
    animation: nebulaFloat 10s ease-in-out infinite;
}

.sidebar_cta-group .button-primary-hero::after,
.sidebar_cta-group .button-secondary-hero::after {
    content: '✦';
    position: absolute;
    top: 18%;
    left: 18%;
    font-size: 0.6rem;
    color: rgba(167, 139, 250, 0.6);
    animation: starTwinkle 2s ease-in-out infinite;
    pointer-events: none;
}

.sidebar_cta-group .button-secondary-hero {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow:
        0 4px 20px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.15) inset,
        0 2px 10px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(99, 102, 241, 0.2);
    background:
        radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #2d1b3d 0%, #1a1625 50%, #2d1b3d 100%);
}

.sidebar_cta-group .button-primary-hero:hover,
.sidebar_cta-group .button-secondary-hero:hover {
    transform: translateY(-2px);
}

/* Shared hero buttons (match landing CTA styles) */
.button-primary-hero {
    padding: 1.25rem 2.5rem;
    min-height: 56px;
    min-width: 160px;
    font-size: 1.125rem;
    background:
        radial-gradient(ellipse at top left, rgba(167, 139, 250, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #2d1b3d 0%, #1a1625 50%, #2d1b3d 100%);
    color: #ffffff;
    border: 2px solid rgba(167, 139, 250, 0.4);
    box-shadow:
        0 4px 20px rgba(167, 139, 250, 0.3),
        0 0 0 1px rgba(167, 139, 250, 0.15) inset,
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(167, 139, 250, 0.2);
    font-weight: 600;
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    z-index: 1;
    border-radius: 999px;
}

.button-primary-hero > * {
    position: relative;
    z-index: 2;
}

.button-primary-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(167, 139, 250, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.1) 0%, transparent 30%);
    animation: nebulaFloat 8s ease-in-out infinite;
    pointer-events: none;
}

.button-primary-hero::after {
    content: '✦';
    position: absolute;
    top: 15%;
    left: 20%;
    font-size: 0.6rem;
    color: rgba(167, 139, 250, 0.6);
    animation: starTwinkle 2s ease-in-out infinite;
    pointer-events: none;
}

.button-primary-hero:hover {
    background:
        radial-gradient(ellipse at top left, rgba(167, 139, 250, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #3d274d 0%, #2d1b3d 50%, #3d274d 100%);
    transform: translateY(-2px);
    box-shadow:
        0 6px 30px rgba(167, 139, 250, 0.5),
        0 0 0 1px rgba(167, 139, 250, 0.25) inset,
        0 4px 15px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(167, 139, 250, 0.4);
    border-color: rgba(167, 139, 250, 0.6);
}

.button-primary-hero:hover::after {
    color: rgba(167, 139, 250, 0.9);
    animation: starTwinkle 1s ease-in-out infinite;
}

.button-primary-hero:focus {
    outline: 3px solid rgba(167, 139, 250, 0.5);
    outline-offset: 3px;
}

.button-primary-hero:active {
    transform: translateY(0);
    box-shadow:
        0 2px 15px rgba(167, 139, 250, 0.4),
        0 0 0 1px rgba(167, 139, 250, 0.2) inset;
}

.button-secondary-hero {
    padding: 1.25rem 2.5rem;
    min-height: 56px;
    min-width: 160px;
    font-size: 1.125rem;
    background:
        radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #2d1b3d 0%, #1a1625 50%, #2d1b3d 100%);
    color: #ffffff;
    border: 2px solid rgba(99, 102, 241, 0.4);
    box-shadow:
        0 4px 20px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.15) inset,
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(99, 102, 241, 0.2);
    font-weight: 600;
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    z-index: 1;
    border-radius: 999px;
}

.button-secondary-hero > * {
    position: relative;
    z-index: 2;
}

.button-secondary-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 80% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 20% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 30%);
    animation: nebulaFloat 10s ease-in-out infinite reverse;
    pointer-events: none;
}

.button-secondary-hero::after {
    content: '✦';
    position: absolute;
    top: 15%;
    right: 20%;
    font-size: 0.6rem;
    color: rgba(99, 102, 241, 0.6);
    animation: starTwinkle 2.5s ease-in-out infinite;
    pointer-events: none;
}

.button-secondary-hero:hover {
    background:
        radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #3d274d 0%, #2d1b3d 50%, #3d274d 100%);
    transform: translateY(-2px);
    box-shadow:
        0 6px 30px rgba(99, 102, 241, 0.5),
        0 0 0 1px rgba(99, 102, 241, 0.25) inset,
        0 4px 15px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.6);
}

.button-secondary-hero:hover::after {
    color: rgba(99, 102, 241, 0.9);
    animation: starTwinkle 1s ease-in-out infinite;
}

.button-secondary-hero:focus {
    outline: 3px solid rgba(99, 102, 241, 0.5);
    outline-offset: 3px;
}

.button-secondary-hero:active {
    transform: translateY(0);
    box-shadow:
        0 2px 15px rgba(99, 102, 241, 0.4),
        0 0 0 1px rgba(99, 102, 241, 0.2) inset;
}

@keyframes nebulaFloat {
    0%, 100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(10px, -8px, 0) scale(1.03); }
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}
