/* ============================================================
   UNDECKD — Global Stylesheet
   ============================================================ */

/* --- Variables --- */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: #13131f;
    --bg-elevated: #1a1a2e;
    --accent-hot: #ff3366;
    --accent-warm: #ff6b35;
    --accent-burn: #ff1744;
    --accent-spicy: #e040fb;
    --accent-glow: #ffab40;
    --text-primary: #f5f5f7;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;
    --gradient-hot: linear-gradient(135deg, #ff3366, #ff6b35);
    --gradient-fire: linear-gradient(135deg, #ff1744, #ff6b35, #ffab40);
    --gradient-purple: linear-gradient(135deg, #e040fb, #7c4dff);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-logo span {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    background: var(--gradient-hot);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.nav-cta {
    background: var(--gradient-hot) !important;
    color: white !important;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s !important;
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 51, 102, 0.3);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
}

.nav-hamburger span {
    width: 28px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-hot);
    color: white;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 51, 102, 0.35);
}

.btn-primary svg { width: 20px; height: 20px; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s;
    cursor: pointer;
    font-family: inherit;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}


/* ============================================================
   SECTIONS — Common
   ============================================================ */
section { padding: 120px 40px; position: relative; }

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 80px;
}

.section-label {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-hot);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.gradient-text {
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 40px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(255,51,102,0.15) 0%, rgba(224,64,251,0.08) 40%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.2);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-hot);
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-hot);
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stars { display: flex; gap: 2px; color: var(--accent-glow); font-size: 1rem; }

/* Phone mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    perspective: 1200px;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.phone-mockup { position: relative; width: 280px; }

.phone-frame {
    width: 100%;
    background: #1c1c2e;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-frame:hover { transform: rotateY(0deg) rotateX(0deg); }

.phone-screen {
    width: 100%;
    aspect-ratio: 9/19.5;
    border-radius: 30px;
    overflow: hidden;
    background: var(--bg-dark);
}

.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

.phone-notch {
    position: absolute;
    top: 12px; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 28px;
    background: #1c1c2e;
    border-radius: 0 0 18px 18px;
    z-index: 2;
}

.floating-card {
    position: absolute;
    padding: 14px 20px;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.floating-card.card-1 { top: 15%; right: -60px; animation: float 6s ease-in-out infinite; }
.floating-card.card-2 { bottom: 25%; left: -70px; animation: float 6s ease-in-out infinite -2s; }
.floating-card.card-3 { top: 55%; right: -50px; animation: float 6s ease-in-out infinite -4s; }
.card-emoji { font-size: 1.2rem; margin-right: 6px; }


/* ============================================================
   FEATURES
   ============================================================ */
.features { background: var(--gradient-dark); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-hot);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 51, 102, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.feature-card:nth-child(1) .feature-icon { background: rgba(255,51,102,0.12); }
.feature-card:nth-child(2) .feature-icon { background: rgba(224,64,251,0.12); }
.feature-card:nth-child(3) .feature-icon { background: rgba(255,107,53,0.12); }
.feature-card:nth-child(4) .feature-icon { background: rgba(255,171,64,0.12); }
.feature-card:nth-child(5) .feature-icon { background: rgba(255,23,68,0.12); }
.feature-card:nth-child(6) .feature-icon { background: rgba(124,77,255,0.12); }

.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.65; }


/* ============================================================
   HEAT LEVELS
   ============================================================ */
.heat-levels { background: var(--bg-dark); overflow: hidden; }

.heat-cards {
    display: flex;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
}

.heat-card {
    flex: 1;
    min-width: 220px;
    max-width: 260px;
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.heat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1.5px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

.heat-card:hover { transform: translateY(-8px) scale(1.02); }

.heat-warm   { background: linear-gradient(160deg, rgba(255,171,64,0.08), rgba(255,171,64,0.02)); }
.heat-warm::before   { background: linear-gradient(160deg, rgba(255,171,64,0.3), transparent 60%); }
.heat-spicy  { background: linear-gradient(160deg, rgba(255,107,53,0.08), rgba(255,107,53,0.02)); }
.heat-spicy::before  { background: linear-gradient(160deg, rgba(255,107,53,0.3), transparent 60%); }
.heat-hot    { background: linear-gradient(160deg, rgba(255,51,102,0.08), rgba(255,51,102,0.02)); }
.heat-hot::before    { background: linear-gradient(160deg, rgba(255,51,102,0.3), transparent 60%); }
.heat-burning { background: linear-gradient(160deg, rgba(255,23,68,0.08), rgba(255,23,68,0.02)); }
.heat-burning::before { background: linear-gradient(160deg, rgba(255,23,68,0.3), transparent 60%); }

.heat-emoji { font-size: 2.8rem; margin-bottom: 16px; display: block; }
.heat-name  { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.heat-desc  { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }

.heat-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tag-free    { background: rgba(255,171,64,0.15); color: var(--accent-glow); }
.tag-premium { background: rgba(255,51,102,0.15); color: var(--accent-hot); }


/* ============================================================
   SCREENSHOTS
   ============================================================ */
.screenshots { background: var(--gradient-dark); }

.screenshots-scroll {
    display: flex;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
}

.screenshot-item {
    width: 260px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.06);
}

.screenshot-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 40px rgba(255,51,102,0.1);
}

.screenshot-item img { width: 100%; height: auto; }


/* ============================================================
   CTA Section
   ============================================================ */
.cta-section { background: var(--bg-dark); text-align: center; }

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 60px;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,51,102,0.08), transparent, rgba(224,64,251,0.08), transparent);
    animation: rotateBg 20s linear infinite;
}

.cta-box > * { position: relative; z-index: 1; }

.cta-box h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
    padding: 80px 40px 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 6px 0;
    transition: color 0.3s;
}

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

.footer-bottom {
    max-width: 1100px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom a { color: var(--text-muted); transition: color 0.3s; }
.footer-bottom a:hover { color: var(--text-secondary); }


/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-hero {
    padding: 160px 40px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,51,102,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.legal-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -1px;
    position: relative;
}

.legal-hero .last-update {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
    font-family: 'Space Mono', monospace;
    position: relative;
}

.legal-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 40px 100px;
}

.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content p,
.legal-content li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-content li { margin-bottom: 8px; }

.legal-content a { color: var(--accent-hot); }
.legal-content a:hover { text-decoration: underline; }

.legal-content .highlight-box {
    background: rgba(255,51,102,0.06);
    border: 1px solid rgba(255,51,102,0.12);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin: 24px 0;
}

.legal-content .highlight-box p {
    color: var(--text-primary);
    margin-bottom: 0;
}

.legal-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 40px 0;
}

.legal-footer-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 32px;
}


/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

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

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    nav { padding: 16px 24px; }
    nav.scrolled { padding: 12px 24px; }
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: rgba(10,10,15,0.97);
        backdrop-filter: blur(20px);
        justify-content: center;
        align-items: center;
        gap: 28px;
        z-index: 1000;
    }

    .nav-links.open a { font-size: 1.3rem; }

    section { padding: 80px 24px; }
    .hero { padding: 100px 24px 60px; }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-rating { justify-content: center; }

    .features-grid { grid-template-columns: 1fr; max-width: 400px; }
    .heat-cards { flex-direction: column; align-items: center; }
    .heat-card { max-width: 300px; width: 100%; }
    .screenshots-scroll { flex-direction: column; align-items: center; }
    .screenshot-item { width: 240px; }
    .floating-card { display: none; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    .cta-box { padding: 50px 30px; }
    .legal-content { padding: 0 24px 80px; }
    .legal-hero { padding: 140px 24px 40px; }
}

@media (max-width: 500px) {
    .hero h1 { letter-spacing: -1px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .phone-mockup { width: 220px; }
}
