/* NostrDeck Homepage Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Important for mobile menu positioning */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    z-index: 1001; /* Keep logo above mobile menu */
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav-cta {
    background: var(--gradient);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001; /* Keep button above mobile menu */
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: all 0.3s;
}

/* Hamburger Animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==================== */
/* MOBILE RESPONSIVE CSS */
/* ==================== */

@media (max-width: 768px) {
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Hide desktop nav links by default */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 1.5rem 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        gap: 0;
        border-top: 1px solid var(--gray-100);
    }
    
    /* Show nav links when mobile menu is open */
    .nav-links.mobile-open {
        display: flex !important;
    }
    
    /* Style mobile menu links */
    .nav-links a {
        padding: 1rem 0;
        width: 100%;
        border-bottom: 1px solid var(--gray-100);
        font-size: 1.125rem;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    /* Style CTA button in mobile menu */
    .btn-nav-cta {
        margin-top: 1rem;
        text-align: center;
        display: block;
        width: 100%;
    }
    
    /* Adjust nav container padding on mobile */
    .nav-container {
        padding: 0.75rem 1.5rem;
    }
}

/* Tablet screens (769px to 1024px) - Optional adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-arrow {
    font-size: 1.25rem;
}

.verified-badge {
    font-size: 1.25rem;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Tools Section */
.tools-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tool-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
    border-color: var(--primary);
}

.tool-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.tool-card.premium-tool {
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
    border-color: var(--accent);
}

.tool-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.tool-description {
    color: var(--gray-600);
    font-size: 0.938rem;
    margin-bottom: 1rem;
}

.tool-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
}

.tag.popular {
    background: var(--primary);
    color: white;
}

.tag.premium {
    background: var(--accent);
    color: white;
}

.view-all {
    text-align: center;
}

.btn-text {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.btn-text:hover {
    gap: 1rem;
}

.arrow {
    font-size: 1.25rem;
}

/* NIP-05 Section */
.nip05-section {
    padding: 5rem 0;
    background: white;
}

.nip05-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.nip05-card {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--gray-200);
    position: relative;
    transition: all 0.3s;
}

.nip05-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.nip05-card.premium {
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
    border-color: var(--accent);
}

.nip05-card.featured {
    background: linear-gradient(135deg, #fde68a 0%, #ffffff 100%);
    border-color: #f59e0b;
}

.nip05-card.free {
    background: linear-gradient(135deg, #d1fae5 0%, #ffffff 100%);
    border-color: var(--success);
}

.nip05-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.premium-badge {
    background: var(--accent);
    color: white;
}

.featured-badge {
    background: #f59e0b;
    color: white;
}

.professional-badge {
    background: var(--primary);
    color: white;
}

.free-badge {
    background: var(--success);
    color: white;
}

.nip05-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.nip05-domain {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.nip05-price {
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.period {
    font-size: 1rem;
    color: var(--gray-600);
}

.nip05-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.nip05-features li {
    padding: 0.5rem 0;
    color: var(--gray-700);
    font-size: 0.938rem;
}

.btn-nip05 {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
    background: var(--gray-900);
    color: white;
}

.btn-nip05:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.premium-btn {
    background: var(--gradient);
}

.free-btn {
    background: var(--success);
}

.nip05-compare {
    text-align: center;
}

/* Premium Section */
.premium-section {
    padding: 5rem 0;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.premium-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid var(--gray-200);
    position: relative;
    transition: all 0.3s;
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
    border-color: var(--primary);
}

.premium-card.popular {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.premium-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.813rem;
    font-weight: 700;
}

.premium-header {
    margin-bottom: 1.5rem;
}

.premium-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.premium-price .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.premium-price .period {
    font-size: 1rem;
    color: var(--gray-600);
}

.premium-description {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.premium-features {
    list-style: none;
    margin-bottom: 2rem;
}

.premium-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-700);
}

.check {
    color: var(--success);
    font-weight: 700;
}

.btn-premium {
    width: 100%;
    padding: 1rem;
    background: var(--gradient);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-text {
    color: var(--gray-600);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: var(--gradient);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-cta-primary {
    background: white;
    color: var(--primary);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    color: var(--gray-400);
}

.footer-love {
    margin-top: 0.5rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gray-900);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    pointer-events: none;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        gap: 2rem;
    }

    .tools-grid,
    .nip05-grid,
    .premium-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .container {
        padding: 0 1rem;
    }
}