:root {
    --bg-color: hsl(220, 20%, 5%);
    --bg-surface: hsla(220, 20%, 15%, 0.4);
    --text-primary: hsl(0, 0%, 100%);
    --text-secondary: hsl(220, 10%, 60%);
    --accent-start: hsl(260, 100%, 65%);
    --accent-end: hsl(210, 100%, 55%);
    --gradient-primary: linear-gradient(135deg, var(--accent-start), var(--accent-end));

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

/* Background Blobs for Atmosphere */
.blob-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: drift 20s infinite alternate linear;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-start);
    top: -100px;
    left: -150px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: var(--accent-end);
    bottom: 20%;
    right: -200px;
    animation-delay: -5s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Typography & Utilities */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

/* Buttons */
button {
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    outline: none;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
    transform: scale(1.02);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    padding: 10px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

button.large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 5% 80px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 80vh;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--accent-start);
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

/* Mock App UI */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.mock-app-ui {
    width: 380px;
    height: 600px;
    padding: 24px;
    border-radius: 36px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mock-app-ui:hover {
    transform: rotateY(-5deg) rotateX(2deg) translateY(-10px);
}

.mock-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.mock-header .greeting {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
}

.mock-header .date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.mock-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: hidden;
}

/* Feed List Item inside Mock App */
.feed-item {
    background: rgba(255, 255, 255, 0.04);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.feed-item.alertable {
    border-left: 3px solid var(--accent-start);
}

.feed-item .relevance {
    font-size: 0.75rem;
    color: var(--accent-start);
    font-weight: 600;
    margin-bottom: 4px;
}

.feed-item .title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.3;
}

.feed-item .meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Features */
.features-section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto 120px;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.feature-card h3 {
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 0 5% 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px;
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 60px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

/* Curation Form Styles */
.curation-form {
    width: 100%;
    max-width: 450px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.glass-input,
.glass-textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

.glass-input:focus,
.glass-textarea:focus {
    outline: none;
    border-color: var(--accent-start);
    background: rgba(255, 255, 255, 0.08);
}

.glass-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Segmented Control */
.segmented-control {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 4px;
    position: relative;
    overflow: hidden;
}

.segmented-control input[type="radio"] {
    display: none;
}

.segmented-control label {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s;
    color: var(--text-secondary);
    margin: 0;
}

.segmented-control input[type="radio"]:checked+label {
    color: white;
}

.segment-indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(33.33% - 5.33px);
    background: var(--gradient-primary);
    border-radius: 100px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

#week:checked~.segment-indicator {
    transform: translateX(0);
}

#month:checked~.segment-indicator {
    transform: translateX(100%);
}

#alltime:checked~.segment-indicator {
    transform: translateX(200%);
}

.btn-primary.full-width {
    width: 100%;
    margin-top: 10px;
}

/* Results Section */
.results-section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.results-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.results-section .section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: -40px;
    margin-bottom: 40px;
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .curation-form {
        max-width: 100%;
    }

    #see-demo-btn,
    #demo-modal {
        display: none !important;
        pointer-events: none !important;
    }
}

.disclaimer {
    font-size: 0.35rem;
    color: var(--text-secondary);
    opacity: 0.4;
    margin-top: 12px;
    width: 100%;
    text-align: center;
}

/* --- Demo Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none;
    z-index: -100;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: scaleUp 0.3s ease forwards;
}

.close-modal {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary-accent);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transition: transform 0.2s, background 0.2s;
}

.close-modal:hover {
    transform: scale(1.1);
    background: #4B52FF;
}

.demo-video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    display: block;
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}