/* ========================================
   SupaDots Landing Page
   A dark, sophisticated design with purple accents
   ======================================== */

:root {
    /* Core Colors - Deep purples from logo */
    --primary-violet: #7C5CFC;
    --primary-purple: #9B7DFC;
    --primary-light: #B8A4FC;
    --primary-deep: #5B3FD9;

    /* Dark Theme */
    --bg-primary: #0A0A0F;
    --bg-secondary: #12121A;
    --bg-elevated: #1A1A24;
    --bg-glass: rgba(20, 20, 30, 0.7);

    /* Text */
    --text-primary: #FAFAFA;
    --text-secondary: #A0A0B0;
    --text-muted: #606070;

    /* Accents */
    --accent-glow: rgba(124, 92, 252, 0.4);
    --border-subtle: rgba(255, 255, 255, 0.06);

    /* Typography */
    --font-main: 'Bricolage Grotesque', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Grain Overlay for texture */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Background Gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(91, 63, 217, 0.15), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(124, 92, 252, 0.1), transparent);
    z-index: -1;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    z-index: 100;
    background: transparent;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--border-subtle);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    padding: calc(80px + var(--space-xl)) var(--space-lg) var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Tagline Pill */
.tagline-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    width: fit-content;
    backdrop-filter: blur(8px);
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-violet);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Title */
.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-violet) 50%, var(--primary-deep) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description */
.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.cta-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, var(--primary-violet), var(--primary-deep));
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.cta-button-secondary {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    box-shadow: none;
}

.cta-button-secondary:hover {
    background: var(--bg-elevated);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.store-icon {
    width: 20px;
    height: 20px;
}

.cta-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   Hero Visual - Phone Mockup
   ======================================== */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-lg);
}

.phone-mockup {
    position: relative;
    z-index: 2;
    border-radius: 32px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px var(--border-subtle),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px var(--accent-glow);
}

.phone-screenshot {
    display: block;
    width: 280px;
    height: auto;
    border-radius: 32px;
}

/* Widget Grid */
.widget-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.widget {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: var(--space-sm);
    backdrop-filter: blur(8px);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.widget-icon {
    font-size: 1rem;
}

.widget-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Large Widget - Life Dots */
.widget-large {
    padding: var(--space-md);
}

.dots-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3px;
    margin: var(--space-sm) 0;
}

.life-dots::before {
    content: '';
    display: block;
    grid-column: span 12;
}

/* Generate dots with CSS */
.life-dots {
    position: relative;
    height: 60px;
    background:
        radial-gradient(circle 3px, var(--primary-violet) 100%, transparent 100%) 0 0 / 10px 10px,
        radial-gradient(circle 3px, var(--primary-purple) 100%, transparent 100%) 5px 5px / 10px 10px;
    background-size: 10px 10px;
    mask: linear-gradient(90deg, #000 60%, transparent 100%);
    -webkit-mask: linear-gradient(90deg, #000 60%, transparent 100%);
    border-radius: 8px;
}

.widget-stats {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
}

.stat-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Small Widgets */
.widget-small {
    display: flex;
    flex-direction: column;
}

.countdown-display {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
}

.countdown-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-light);
}

.countdown-unit {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ========================================
   Floating Dots Animation
   ======================================== */
.floating-dots {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.dot {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.dot-1 {
    width: 60px;
    height: 60px;
    background: var(--primary-violet);
    opacity: 0.4;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.dot-2 {
    width: 40px;
    height: 40px;
    background: var(--primary-purple);
    opacity: 0.3;
    bottom: 20%;
    right: 20%;
    animation-delay: 1s;
}

.dot-3 {
    width: 24px;
    height: 24px;
    background: var(--primary-light);
    opacity: 0.5;
    top: 30%;
    left: 0%;
    animation-delay: 2s;
}

.dot-4 {
    width: 16px;
    height: 16px;
    background: var(--primary-deep);
    opacity: 0.6;
    bottom: 10%;
    left: 10%;
    animation-delay: 3s;
}

.dot-5 {
    width: 32px;
    height: 32px;
    background: var(--primary-violet);
    opacity: 0.25;
    top: 60%;
    right: 5%;
    animation-delay: 1.5s;
}

.dot-6 {
    width: 20px;
    height: 20px;
    background: var(--primary-purple);
    opacity: 0.35;
    top: 5%;
    left: 20%;
    animation-delay: 2.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    text-align: center;
    padding: var(--space-lg);
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.heart {
    color: #ff6b6b;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary-light);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }

    .hero-content {
        align-items: center;
    }

    .hero-description {
        text-align: center;
    }

    .tagline-pill {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 3rem;
    }

    .navbar {
        padding: var(--space-sm) var(--space-md);
    }

    .logo-img {
        height: 28px;
    }

    .hero {
        padding-top: calc(70px + var(--space-lg));
        min-height: auto;
        padding-bottom: var(--space-lg);
    }

    .phone-mockup {
        width: 240px;
        height: 500px;
    }

    .hero-visual {
        padding: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .cta-button {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
}