/* ==========================================================================
   Forbire.com - Main Stylesheet
   Modern, Premium Design System
   ========================================================================== */

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

/* Glass Navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* Primary CTA Button - Black Pill */
.black-pill-btn {
    background: linear-gradient(180deg, #1A1A1A 0%, #000000 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 20px rgba(0, 0, 0, 0.3);
    color: white;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.black-pill-btn:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 32px -4px rgba(0, 0, 0, 0.5);
}

/* Glass Button Primary */
.glass-btn-primary {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px -6px rgba(0, 0, 0, 0.4);
    color: white;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.glass-btn-primary:hover {
    background: black;
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 32px -8px rgba(0, 0, 0, 0.5);
}

/* Glass Button Secondary */
.glass-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.glass-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* Flip Cards */
.flip-card-wrap {
    perspective: 1500px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card-wrap:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1.5rem;
    overflow: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: #0b0c10;
    color: white;
}

/* Mesh Background */
.mesh-bg {
    background-color: #ffffff;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 0.03) 0px, transparent 50%),
        radial-gradient(at 50% 100%, hsla(225, 39%, 30%, 0.02) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 0.02) 0px, transparent 50%);
}

/* Phase Pill Badge */
.phase-pill {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #86868b;
    border: 1px solid #e5e5e5;
    padding: 8px 16px;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2rem;
}

/* iOS Style Widget */
.ios-widget {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.ios-widget:hover {
    transform: scale(1.03);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

/* Dashboard Glass Panel */
.dashboard-glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 30px 60px -12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-glass:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 40px 80px -15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Bento Card */
.bento-card {
    position: relative;
    background: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border-radius: 24px;
}

.bento-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.02) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

/* Text Link Minimal */
.text-link-minimal {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: #1d1d1f;
    transition: color 0.2s ease;
    text-decoration: none;
}

.text-link-minimal:hover {
    color: #000;
}

.text-link-minimal::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.text-link-minimal:hover::after {
    transform: scaleX(1);
}

/* Hero Title Shadow */
.hero-title-shadow {
    text-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* Mockup Item */
.mockup-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.4s ease;
}

.mockup-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Chart Bar Animation */
.chart-bar {
    transition: all 0.4s ease;
}

.chart-bar:hover {
    filter: brightness(1.1);
    transform: scaleY(1.05);
    transform-origin: bottom;
}

/* Footer Styles */
.footer-link {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #1d1d1f;
}

/* Powered By Badge */
.powered-by {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.powered-by:hover {
    background: rgba(0, 0, 0, 0.06);
}

.powered-by img {
    height: 20px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.powered-by:hover img {
    opacity: 1;
}

/* Responsive Utilities */
@media (max-width: 1024px) {
    .dashboard-glass:hover {
        transform: none;
    }
}

@media (max-width: 768px) {

    /* === MOBILE NAVIGATION === */
    .glass-nav {
        padding: 0 0.75rem;
        height: 64px;
    }

    /* === BUTTONS === */
    .black-pill-btn,
    .glass-btn-primary {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    /* === FLIP CARDS === */
    .flip-card-wrap {
        touch-action: pan-y;
        height: 300px;
    }

    .flip-card-wrap:hover .flip-card-inner {
        transform: none;
    }

    .flip-card-wrap:active .flip-card-inner {
        transform: rotateY(180deg);
    }

    .flip-card-front,
    .flip-card-back {
        padding: 1.5rem !important;
    }

    .flip-card-front h4 {
        font-size: 2rem !important;
    }

    /* === PHASE PILLS === */
    .phase-pill {
        font-size: 0.6rem;
        padding: 6px 14px;
        margin-bottom: 1rem;
    }

    /* === BENTO CARDS === */
    .bento-card {
        padding: 1.25rem;
        border-radius: 1.25rem;
    }

    .bento-card h3 {
        font-size: 1rem;
    }

    .bento-card p {
        font-size: 0.875rem;
    }

    /* === SECTION PADDING === */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* === TYPOGRAPHY === */
    h2 {
        font-size: 2rem !important;
        line-height: 1.15 !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    /* === FOOTER === */
    .powered-by {
        justify-content: center;
    }

    /* === CODE SECTION === */
    .bento-card .material-symbols-outlined {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */

    /* Navigation */
    .glass-nav {
        height: 60px;
    }

    /* Flip cards */
    .flip-card-wrap {
        height: 260px;
    }

    .flip-card-front h4 {
        font-size: 1.75rem !important;
    }

    /* Pricing */
    .text-8xl,
    .text-9xl {
        font-size: 3rem !important;
    }

    /* Footer */
    .powered-by img {
        height: 16px;
    }

    /* Phase pills */
    .phase-pill {
        font-size: 0.55rem;
        padding: 5px 12px;
    }

    /* Section titles */
    h2 {
        font-size: 1.75rem !important;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Apply animations to hero elements */
.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Smooth scroll anchor offset for fixed nav */
:target {
    scroll-margin-top: 80px;
}

/* Selection styling */
::selection {
    background: #000;
    color: #fff;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #1d1d1f;
    outline-offset: 2px;
}

/* Print styles */
@media print {

    .glass-nav,
    .black-pill-btn,
    .glass-btn-primary,
    #mobile-menu {
        display: none !important;
    }

    body {
        background: white;
    }
}