:root {
    /* Color Palette */
    --bg-color: #0b0f19;
    --bg-gradient: linear-gradient(135deg, #0b0f19 0%, #1a1b3c 100%);
    --primary-color: #25D366; /* WhatsApp Green accent */
    --primary-glow: rgba(37, 211, 102, 0.4);
    --secondary-color: #8a2be2; /* Purple accent */
    --secondary-glow: rgba(138, 43, 226, 0.4);
    --text-color: #ffffff;
    --text-muted: #a0a5b5;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Blobs */
.glow-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
}
.blob-1 {
    top: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--primary-glow);
}
.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--secondary-glow);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glass Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}
h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}
h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
p {
    color: var(--text-muted);
}
.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-heading);
}
.btn-primary {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}
.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    z-index: 1000;
    border-radius: 100px;
    transition: all 0.3s ease;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}
.primary-color {
    color: var(--primary-color);
}
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}
.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}
.hero-content {
    display: flex;
    align-items: center;
    gap: 48px;
}
.hero-text {
    flex: 1;
}
.badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--primary-color);
}
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 32px;
    max-width: 500px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}
.stats {
    display: inline-flex;
    gap: 48px;
    padding: 24px 48px;
    border-radius: 16px;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary-color);
}
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.mockup-img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    animation: float 6s ease-in-out infinite;
}

/* Features */
.features {
    padding: 100px 0;
}
.section-header {
    margin-bottom: 64px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}
.feature-card {
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: inline-block;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
}
.steps-wrapper {
    padding: 64px;
}
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}
.step {
    text-align: center;
}
.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: #000;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    box-shadow: 0 0 20px var(--primary-glow);
}
.step h4 {
    margin-bottom: 12px;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
}
.cta-box {
    padding: 80px 48px;
    text-align: center;
    background: linear-gradient(135deg, rgba(37,211,102,0.1) 0%, rgba(138,43,226,0.1) 100%);
}
.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}
.store-buttons {
    display: flex;
    justify-content: center;
}
.store-btn {
    display: inline-flex;
    align-items: center;
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}
.store-btn:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}
.store-icon {
    font-size: 2rem;
    margin-right: 12px;
}
.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.small-text {
    font-size: 0.7rem;
    text-transform: uppercase;
}
.large-text {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* Footer */
footer {
    padding: 64px 0 32px 0;
    border-top: 1px solid var(--glass-border);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
}
.footer-brand p {
    margin-top: 16px;
    max-width: 300px;
}
.footer-links {
    display: flex;
    gap: 64px;
}
.link-group h4 {
    margin-bottom: 24px;
}
.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}
.link-group a:hover {
    color: var(--primary-color);
}
.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Menu Toggle default */
.menu-toggle {
    display: none;
}

/* Playground Section Styles */
.playground-section {
    padding: 100px 0;
    position: relative;
}
.playground-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    overflow: hidden;
}
.playground-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 16px;
}
.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}
.tab-btn:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.03);
}
.tab-btn.active {
    color: var(--primary-color);
    background: rgba(37, 211, 102, 0.1);
    box-shadow: inset 0 0 10px rgba(37, 211, 102, 0.1);
}
.playground-content {
    min-height: 300px;
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
.tab-desc {
    font-size: 1rem;
    margin-bottom: 24px;
}

/* ASCII Faces Styles */
.search-box {
    margin-bottom: 24px;
}
.glass-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 20px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}
.glass-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
    background: rgba(255, 255, 255, 0.06);
}
.ascii-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 8px;
}
.ascii-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    text-align: center;
}
.ascii-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2);
    background: rgba(37, 211, 102, 0.05);
}
.no-results {
    color: var(--text-muted);
    text-align: center;
    margin-top: 40px;
}

/* Text Repeater Styles */
.repeater-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}
.input-row {
    display: flex;
    gap: 24px;
    align-items: flex-end;
}
.options-group {
    display: flex;
    gap: 20px;
    padding-bottom: 12px;
}
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    color: var(--text-muted);
}
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    transition: all 0.3s ease;
}
.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(255,255,255,0.1);
}
.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}
.checkbox-container .checkmark:after {
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.repeater-output-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.repeater-output-container label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}
#repeater-output {
    height: 120px;
    resize: none;
    font-family: monospace;
    font-size: 0.95rem;
}
.output-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

/* FAQ Accordion Styles */
.faq-section {
    padding: 100px 0;
}
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 600;
}
.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding-top 0.3s ease;
}
.faq-item.active {
    border-color: var(--primary-glow);
    background: rgba(37, 211, 102, 0.03);
}
.faq-item.active .faq-answer {
    max-height: 1000px;
    padding-top: 16px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding-top 0.3s ease;
}
.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 50px);
    background: rgba(11, 15, 25, 0.9);
    border: 1px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    color: var(--text-color);
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 9999;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.toast-notification.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 5px 15px var(--primary-glow);
    border-color: var(--primary-color);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        margin-top: 60px;
    }
    .hero-subtitle {
        margin: 0 auto 32px auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .steps {
        grid-template-columns: 1fr;
    }
}

/* Privacy Policy Page Styles */
.privacy-main {
    padding: 160px 0 80px 0;
    position: relative;
    z-index: 1;
}
.privacy-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px;
}
.privacy-card h1 {
    font-size: 3rem;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}
.privacy-card .last-updated {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 40px;
}
.privacy-section {
    margin-bottom: 32px;
}
.privacy-card h2 {
    font-size: 1.8rem;
    margin: 32px 0 16px 0;
    color: var(--primary-color);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 8px;
}
.privacy-card h3 {
    font-size: 1.25rem;
    margin: 24px 0 12px 0;
    color: var(--text-color);
}
.privacy-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 16px;
}
.privacy-card ul {
    margin: 16px 0 24px 24px;
    color: var(--text-muted);
}
.privacy-card li {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 1.05rem;
}
.privacy-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.privacy-card a:hover {
    text-decoration: underline;
    color: #fff;
}
.contact-email {
    font-weight: 600;
}
.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
}
.privacy-table th, .privacy-table td {
    padding: 16px;
    text-align: left;
    border: 1px solid var(--glass-border);
}
.privacy-table th {
    background: rgba(255, 255, 255, 0.05);
    font-family: var(--font-heading);
    color: var(--text-color);
    font-weight: 600;
}
.privacy-table td {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 1001;
    }
    .menu-toggle .bar {
        height: 3px;
        width: 100%;
        background-color: var(--text-color);
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    /* Hamburger animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 90px;
        right: -100%;
        width: 260px;
        height: auto;
        background: rgba(11, 15, 25, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 24px;
        padding: 32px 24px;
        gap: 20px;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 999;
        align-items: flex-start;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
        right: 24px;
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
    }

    .hero { padding-top: 120px; }
    .stats { padding: 16px 24px; gap: 24px; }
    .stat-value { font-size: 1.5rem; }
    .footer-content { flex-direction: column; gap: 48px; }
    
    /* Playground Mobile Adjustments */
    .playground-card {
        padding: 24px 16px;
    }
    .playground-tabs {
        gap: 8px;
    }
    .tab-btn {
        font-size: 0.95rem;
        padding: 6px 12px;
        flex: 1;
        text-align: center;
    }
    .input-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .options-group {
        justify-content: space-between;
        padding-bottom: 0;
    }
    .output-actions {
        flex-direction: column;
    }
    .output-actions .btn {
        width: 100%;
    }
    .ascii-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        max-height: 260px;
    }
    .faq-item {
        padding: 16px;
    }
    .faq-question h3 {
        font-size: 1rem;
    }
    
    /* Privacy Policy Mobile Adjustments */
    .privacy-main {
        padding: 120px 0 60px 0;
    }
    .privacy-card {
        padding: 32px 20px;
    }
    .privacy-card h1 {
        font-size: 2.2rem;
    }
    .privacy-card h2 {
        font-size: 1.4rem;
        margin: 24px 0 12px 0;
    }
    .privacy-card h3 {
        font-size: 1.1rem;
    }
    .privacy-card p, .privacy-card li {
        font-size: 0.95rem;
    }
    .privacy-table th, .privacy-table td {
        padding: 10px;
        font-size: 0.85rem;
    }
}
