:root {
    --primary: #007AFF;
    --primary-bright: #0A84FF;
    --primary-glow: rgba(0, 122, 255, 0.4);
    --bg-dark: #050507;
    --card-bg: rgba(20, 20, 25, 0.7);
    --nav-bg: rgba(5, 5, 7, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-main: #FFFFFF;
    --text-dim: #A1A1A6;
    --accent: #5AC8FA;
    --gradient: linear-gradient(135deg, #007AFF 0%, #5AC8FA 100%);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Animated Blobs */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: floating 25s infinite alternate;
}

.blob-1 { background: var(--primary); top: -200px; right: -100px; }
.blob-2 { background: var(--accent); bottom: -100px; left: -200px; animation-delay: -7s; }
.blob-3 { background: #5856D6; top: 30%; left: 40%; animation-duration: 30s; opacity: 0.1; }

@keyframes floating {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(150px, 100px) scale(1.1); }
}

/* Glass Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand span { color: var(--primary); }

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover { color: white; }

/* Hero Section */
.hero-section {
    padding: 180px 0 100px;
    text-align: center;
}

h1 {
    font-size: 84px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -3px;
    margin-bottom: 24px;
}

@media (max-width: 768px) { h1 { font-size: 52px; letter-spacing: -1.5px; } }

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

.hero-subtitle {
    font-size: 22px;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Buttons */
.primary-btn {
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.primary-btn:hover {
    background: var(--primary-bright);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px var(--primary-glow);
}

.outline-btn {
    background: transparent;
    color: white;
    padding: 14px 28px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

.outline-btn:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Apps Grid */
.apps-section {
    padding: 100px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.app-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.app-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    background: rgba(30, 30, 40, 0.8);
}

.app-icon-bg {
    font-size: 64px;
    margin-bottom: 24px;
    display: block;
    text-align: center;
    filter: drop-shadow(0 0 10px rgba(0, 122, 255, 0.3));
}

.app-card h3 { margin-bottom: 12px; font-weight: 700; }
.app-card p { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }

.card-footer {
    display: flex;
    justify-content: center;
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 10px;
}

.badge {
    background: var(--primary);
    color: white;
    padding: 0 40px;
    font-size: 10px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    position: absolute;
    top: 14px;
    right: -32px;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 5;
}

.badge-new {
    background: #34C759;
    color: white;
    padding: 0 40px;
    font-size: 10px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    position: absolute;
    top: 14px;
    right: -32px;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 5;
}

.quick-download {
    background: var(--primary);
    color: white;
    padding: 0 40px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    transition: all 0.3s;
    border: none;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    box-shadow: 0 5px 15px var(--primary-glow);
}

.quick-download:hover {
    background: var(--primary-bright);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* App Details Overlay */
.details-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.hidden { display: none !important; }

.details-content {
    max-width: 600px;
    width: 90%;
    position: relative;
    padding: 48px;
}

.close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 32px;
    cursor: pointer;
}

.details-header {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.large-icon { font-size: 64px; }
.tagline { color: var(--text-dim); margin-top: 4px; }

.features-list h4 { margin-bottom: 16px; font-weight: 700; text-transform: uppercase; font-size: 13px; color: var(--primary); }
.features-list ul { list-style: none; margin-bottom: 32px; }
.features-list li { margin-bottom: 12px; padding-left: 24px; position: relative; }
.features-list li::before { content: "✓"; position: absolute; left: 0; color: #34C759; }

/* Support & Payment */
.support-section { padding: 80px 0; }
.support-card { text-align: center; }
.support-header { margin-bottom: 40px; }

.highlight-price {
    font-weight: 800;
    font-size: 1.25em;
    color: var(--primary);
}

.payment-options {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.payment-btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.payment-btn:hover { transform: scale(1.05); }

.payment-btn.paypal { background: #FFC439; color: #003087; }
.payment-btn.stripe { background: #635BFF; color: white; }

/* Generator States */
.generator-locked {
    position: relative;
    padding: 32px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.4);
    min-height: 300px;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 16px;
}

.unlocked .lock-overlay { display: none; }

.input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.input-group {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 20px;
    width: 100%;
}

.input-group label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    width: 90px;
    flex-shrink: 0;
    margin-top: 12px;
}

input, select, textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    flex-grow: 1;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

textarea {
    resize: vertical;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

footer { padding: 64px 0; text-align: center; color: var(--text-dim); font-size: 13px; }

.key-result {
    background: rgba(0, 122, 255, 0.1);
    border: 1px dashed var(--primary);
    padding: 16px;
    border-radius: 8px;
    margin: 24px 0;
}

#finalKey { font-family: 'JetBrains Mono', monospace; color: var(--primary); font-weight: 700; }
