/* ---------- ROOT & BACKGROUND ---------- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('bp_land_wp.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    line-height: 1.6;
    font-size: 16px;
    scroll-behavior: smooth;
}

/* overlay to mute busy wallpaper */
body::after {
    content: "";
    position: fixed;
    top: 60px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 60px);
    pointer-events: none;
    z-index: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.45);
}

/* ---------- HEADER & NAV ---------- */
header {
    background-color: #333;
    padding: 0;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    min-height: 60px;
    z-index: 1001;
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

#menu-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

#menu {
    display: flex;
    justify-content: center;
    flex: 1;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

nav ul li a.active {
    background-color: rgba(255,255,255,0.15);
    font-weight: 600;
}

/* LOGIN / SIGNUP BUTTONS */
.login-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

#login-button,
#signup-button {
    background: none;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#login-button {
    background: #2ecc40;
    color: #181818;
}
#login-button:hover {
    background: #27ae38;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 204, 64, 0.3);
}

#signup-button {
    background: #ffb347;
    color: #5a3300;
}
#signup-button:hover {
    background: #ffd6a0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 179, 71, 0.3);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    #menu-toggle {
        display: block;
        order: 1;
    }
    
    #menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #333;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        transition: left 0.3s ease;
        z-index: 1100;
    }
    
    #menu.show {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    
    nav ul li {
        margin: 10px 0;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px;
        font-size: 18px;
        border-radius: 8px;
    }
    
    .login-container {
        order: 3;
        gap: 8px;
    }
    
    #login-button,
    #signup-button {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* ---------- MAIN & HERO ---------- */
main {
    padding: 40px 20px 60px;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.shining-title {
    font-size: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(120deg,#222 20%,#6c7a7b 30%,#222 60%,#181818 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 4.5s linear infinite;
    font-weight: 800;
    margin-bottom: 0.15em;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

@keyframes shine {
    0%   { background-position:0% center; }
    6%   { background-position:18% center; }
    93%  { background-position:100% center; }
    100% { background-position:0% center; }
}

.subtitle {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    color: #333;
    font-weight: 500;
    margin-top: -0.4em;
    margin-bottom: 32px;
    text-shadow: 0 1px 3px rgba(255,255,255,0.15);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- TRUST BANNER ---------- */
.trust-banner {
    display: inline-block;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 12px 28px;
    font-size: 0.95em;
    font-weight: 600;
    color: #222;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 50px;
    transition: transform 0.2s ease;
}

.trust-banner:hover {
    transform: translateY(-2px);
}

/* ---------- CARD GRID ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.card {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    padding: 32px 24px;
    text-align: left;
    transition: all 0.3s cubic-bezier(.22,1,.36,1);
    border: 1px solid rgba(255,255,255,0.2);
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    animation: fade-in-up 0.7s cubic-bezier(.22,1,.36,1) forwards;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:nth-child(1) { animation-delay:0.1s; }
.card:nth-child(2) { animation-delay:0.2s; }
.card:nth-child(3) { animation-delay:0.3s; }
.card:nth-child(4) { animation-delay:0.4s; }
.card:nth-child(5) { animation-delay:0.5s; }
.card:nth-child(6) { animation-delay:0.6s; }

@keyframes fade-in-up {
    to {
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.4);
}

.card h3 {
    margin-top: 0;
    font-size: 1.25em;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.card p {
    margin: 0;
    font-size: 0.95em;
    color: #333;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ---------- CTA BELOW CARDS ---------- */
.below-cards-signup {
    display: flex;
    justify-content: center;
    margin: 60px 0 0 0;
    position: relative;
    z-index: 1;
}

.below-cards-signup-btn {
    background: linear-gradient(135deg, #ffb347, #ffa500);
    color: #5a3300;
    border: none;
    border-radius: 16px;
    font-size: 1.25em;
    font-weight: 700;
    padding: 20px 48px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(255, 179, 71, 0.3);
    position: relative;
    overflow: hidden;
}

.below-cards-signup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.below-cards-signup-btn:hover::before {
    left: 100%;
}

.below-cards-signup-btn:hover {
    background: linear-gradient(135deg, #ffd6a0, #ffb347);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(255, 179, 71, 0.4);
}

.below-cards-signup-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* hide main when modal is open */
body.modal-open main,
body.modal-open .card-grid,
body.modal-open .below-cards-signup {
    display: none !important;
}

/* ---------- SPINNER ---------- */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 8px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ---------- MODALS ---------- */
.modal {
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(221,221,221,0.5);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border-radius: 16px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 480px;
    padding: 40px;
    box-sizing: border-box;
    display: none;
    z-index: 999;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal::backdrop {
    background-color: rgba(0,0,0,0.5);
}

.modal input[type="email"],
.modal input[type="password"],
.modal input[type="text"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: rgba(255,255,255,0.8);
}

.modal input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    font-size: 1.2em;
    color: #666;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #333;
}

/* Form buttons */
.modal button[type="button"] {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 10px;
}

.modal button[type="button"]:hover {
    background: linear-gradient(135deg, #357ABD, #2E6DA4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.modal button[type="button"]:active {
    transform: translateY(0);
}

/* Success and error messages */
.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    font-weight: 600;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
}

.error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    font-weight: 600;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
}

/* ---------- PAGE SPECIFIC STYLES ---------- */
/* Simple content pages */
.simple-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.simple-content h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.simple-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* ---------- FORM STYLES ---------- */
form input[type="text"],
form input[type="email"],
form select,
form textarea {
    transition: border-color 0.2s, box-shadow 0.2s;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: #4A90E2 !important;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1) !important;
}

form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* Responsive form adjustments */
@media (max-width: 480px) {
    form input,
    form select,
    form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 480px) {
    nav {
        padding: 0 15px;
    }
    
    main {
        padding: 30px 15px 50px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .card {
        padding: 24px 20px;
    }
    
    .trust-banner {
        padding: 10px 20px;
        font-size: 0.9em;
        margin-bottom: 40px;
    }
    
    .below-cards-signup-btn {
        font-size: 1.1em;
        padding: 16px 32px;
    }
    
    .modal {
        width: 95%;
        padding: 30px 20px;
        margin: 20px;
    }
    
    .shining-title {
        margin-bottom: 0.3em;
    }
    
    .subtitle {
        margin-bottom: 30px;
    }
}

/* ---------- PRICING SPECIFIC STYLES ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.pricing-card {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 600px;
    transition: all 0.3s cubic-bezier(.22,1,.36,1);
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.6s ease forwards;
}

.pricing-card h3 {
    margin-top: 0;
    font-size: 1.5em;
    margin-bottom: 15px;
    min-height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-card > div[style*="font-size: 2.5em"] {
    min-height: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-card > p {
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.pricing-card ul {
    text-align: left;
    margin: 0;
    list-style: none;
    padding-left: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.pricing-card ul li {
    margin: 12px 0;
    display: flex;
    align-items: flex-start;
    min-height: 1.5em;
}

.pricing-card ul li span {
    margin-right: 8px;
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }

.pricing-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.pricing-btn {
    transition: all 0.3s ease;
    margin-top: auto;
}

.pricing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.pricing-btn:active {
    transform: translateY(0);
}

/* Mobile pricing adjustments */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }
    
    .pricing-card {
        padding: 30px 25px;
        min-height: auto;
        text-align: left;
    }
    
    .pricing-card h3 {
        font-size: 1.3em;
        text-align: center;
        justify-content: center;
    }
    
    .pricing-card > div[style*="font-size: 2.5em"] {
        text-align: center;
        justify-content: center;
    }
    
    .pricing-card > p {
        text-align: center;
        justify-content: center;
    }
    
    .pricing-card ul {
        text-align: left;
    }
    
    .pricing-card ul li {
        font-size: 0.95em;
        margin: 10px 0;
        align-items: flex-start;
        text-align: left;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .pricing-card ul li strong {
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .pricing-btn {
        font-size: 1em;
        padding: 14px 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 25px 20px;
    }
    
    .pricing-card h3 {
        font-size: 1.2em;
    }
    
    .pricing-card div[style*="font-size: 2.5em"] {
        font-size: 2em !important;
    }
    
    .pricing-card ul li {
        font-size: 0.9em;
        line-height: 1.4;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .shining-title {
        animation: none;
        background: #333;
        -webkit-background-clip: text;
        background-clip: text;
    }
}

/* Additional mobile responsiveness for new elements */
@media (max-width: 768px) {
    /* Twitter embed mobile responsiveness */
    .twitter-timeline {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Mobile form improvements */
    .form-row {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    /* GitHub repository link mobile */
    div[style*="display: inline-flex"] {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    /* Mobile button groups */
    div[style*="display: flex"][style*="gap: 20px"] {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    /* Smaller screens: stack buttons vertically */
    div[style*="display: flex"][style*="gap: 20px"] {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    /* Twitter/X feed mobile optimization */
    div[style*="max-width: 600px"] {
        max-width: 100% !important;
        padding: 0 10px !important;
    }
    
    /* FAQ page mobile improvements */
    .simple-content section {
        margin: 30px 0 !important;
    }
    
    .simple-content h2 {
        font-size: 1.5rem !important;
    }
    
    /* Contact form mobile */
    #contact-form {
        padding: 15px !important;
    }
}
