/* ================================================
   LANDING PAGE STYLES
   ================================================ */

/* --- Announcement Bar --- */
.announcement-bar {
    width: 100%;
    padding: 10px 24px;
    background: rgba(14, 165, 233, 0.08);
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bs-primary);
    letter-spacing: 0.02em;
    z-index: 100;
    flex-shrink: 0;
}

.announcement-bar a {
    color: var(--bs-primary-hover);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.announcement-bar a:hover {
    color: #fff;
}

/* --- Full-Bleed Background Hero Section --- */
.hero-bg-banner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-bg-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-static-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.65) contrast(1.1);
    transform: scale(1.02);
}

.hero-bg-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 50% 35%, rgba(14, 165, 233, 0.18) 0%, transparent 65%),
        linear-gradient(to bottom, rgba(14, 14, 16, 0.45) 0%, rgba(14, 14, 16, 0.75) 60%, var(--bs-body-bg, #121212) 100%);
    pointer-events: none;
}

.hero-bg-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    padding: 2.5rem 2rem 3rem;
    margin: 0 auto;
}

.hero-bg-content .login-cta-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1rem;
    margin: 0 auto;
}

.hero-bg-content .google-auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.hero-bg-content .g_id_signin {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-bg-content .g_id_signin > iframe,
.hero-bg-content .g_id_signin > div {
    margin: 0 auto !important;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 9999px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--bs-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.2);
    backdrop-filter: blur(12px);
}

.hero-title-lg {
    font-size: 3.75rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1rem;
    line-height: 1.25;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-title-lg.text-start {
    text-align: left;
    font-size: 2.5rem;
}

.hero-title-gradient {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 60%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
}

.hero-desc-lg {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    line-height: 1.7;
    margin: 0 auto 1.5rem;
    max-width: 680px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* --- Landing Sections Container --- */
.landing-sections {
    overflow-y: auto;
    scroll-behavior: smooth;
    width: 100%;
}

.landing-section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-section:first-child {
    padding-top: 2.5rem;
}

/* --- Section Headers --- */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bs-secondary);
    margin-bottom: 0.75rem;
}

.section-eyebrow::before {
    content: "";
    width: 16px;
    height: 2px;
    background: var(--bs-secondary);
    opacity: 0.5;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}

.section-title span {
    color: var(--bs-primary);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--bs-body-color);
    line-height: 1.7;
    max-width: 680px;
    margin: 0 0 1.5rem;
}

/* --- Feature Grid --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature-grid-two-col {
    grid-template-columns: repeat(2, 1fr);
}

.feature-grid-card {
    display: flex;
    gap: 1rem;
    background: linear-gradient(145deg, rgba(43, 43, 43, 0.6) 0%, rgba(34, 34, 34, 0.6) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-grid-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(14, 165, 233, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.feature-grid-card > div {
    z-index: 1;
}

.feature-grid-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(14, 165, 233, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feature-grid-card:hover::after {
    opacity: 1;
}

.feature-grid-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-bottom: 0;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.15);
    color: var(--bs-primary);
    z-index: 1;
    transition: all 0.3s ease;
}

.feature-grid-card:hover .feature-grid-icon {
    transform: scale(1.1);
}

.feature-grid-icon.cyan { background: rgba(6, 182, 212, 0.08); border-color: rgba(6, 182, 212, 0.15); color: var(--bs-info); }
.feature-grid-icon.green { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.15); color: var(--bs-success); }
.feature-grid-icon.amber { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.15); color: var(--bs-warning); }

.feature-grid-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.feature-grid-text {
    font-size: 0.9rem;
    color: var(--bs-secondary);
    line-height: 1.6;
}

/* --- Safeguards Section --- */
.safeguards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.safeguard-card {
    display: flex;
    gap: 1rem;
    background: linear-gradient(145deg, rgba(43, 43, 43, 0.6) 0%, rgba(34, 34, 34, 0.6) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.safeguard-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.safeguard-card > div {
    z-index: 1;
}

.safeguard-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.safeguard-card:hover::after {
    opacity: 1;
}

.safeguard-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: var(--bs-success);
    z-index: 1;
    transition: all 0.3s ease;
}

.safeguard-card:hover .safeguard-icon {
    transform: scale(1.1);
}

.safeguard-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.35rem;
}

.safeguard-text {
    font-size: 0.85rem;
    color: var(--bs-secondary);
    line-height: 1.5;
}

/* --- Screenshot Showcase --- */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.screenshot-card {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
    transition: all 0.3s;
}

.screenshot-card:hover {
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.screenshot-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    object-position: top; /* Anchored to the top of image */
    display: block;
    background: #111;
}

.screenshot-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: var(--bs-secondary);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.screenshot-caption {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--bs-border-color);
}

.screenshot-caption-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 0.25rem;
}

.screenshot-caption-text {
    font-size: 0.8rem;
    color: var(--bs-secondary);
}

/* --- Highlight Tiles (minimal, no card chrome) --- */
.highlight-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.highlight-tile {
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 255, 255, 0.08);
}

.highlight-tile-icon {
    color: var(--bs-primary);
    margin-bottom: 0.75rem;
}

.highlight-tile-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.highlight-tile-text {
    font-size: 0.9rem;
    color: var(--bs-secondary);
    line-height: 1.6;
}

.highlight-tile-text a {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 600;
}

.highlight-tile-text a:hover {
    color: var(--bs-primary-hover);
}

.highlights-more-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

/* --- Landing Footer --- */
.landing-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--bs-border-color);
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-footer-text {
    font-size: 0.85rem;
    color: var(--bs-secondary);
    line-height: 1.6;
}

.landing-footer-text a {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 600;
}

.landing-footer-text a:hover {
    color: var(--bs-primary-hover);
}

.landing-footer-alpha {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: var(--bs-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Smooth Reveal Animation --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Sticky Page Navigation --- */
.page-with-sidebar {
    display: flex;
    max-width: 1400px;
    position: relative;
}

.page-with-sidebar.wide {
    max-width: 1600px;
    padding: 16px;
}

.sticky-page-nav {
    position: sticky;
    top: 16px;
    width: 260px;
    flex-shrink: 0;
    height: max-content;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-right: 1px solid var(--bs-border-color);
}

.sticky-nav-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bs-secondary);
    font-weight: 800;
    margin-bottom: 0.75rem;
    padding-left: 1rem;
}

.sticky-nav-item {
    padding: 0.5rem 1rem;
    color: var(--bs-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
    border-left: 2px solid transparent;
}

.sticky-nav-item:hover {
    color: #e0e0e0;
    background: var(--surface-hover);
}

.sticky-nav-item.active {
    color: var(--bs-primary);
    background: rgba(14, 165, 233, 0.08);
    border-left-color: var(--bs-primary);
}

.page-main-content {
    flex: 1;
    padding: 1rem;
    min-width: 0; /* Prevents flex children from blowing out width */
}

.landing-section.section-no-padding {
    padding: 0 0 2rem;
}

/* --- Slam Animation (AI Limitations) --- */
.slam-container {
    position: relative;
    width: 100%;
    min-height: 350px;
    margin-top: 1.25rem;
    perspective: 1000px;
}

.slam-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform-origin: center center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
}

.slam-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Keyframes for the "newspaper slam" effect */
@keyframes newspaperSlam {
    0% {
        transform: scale(4) rotate(15deg) translateY(-50px);
        opacity: 0;
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: scale(var(--slam-scale, 1)) rotate(var(--slam-rotation)) translateY(var(--slam-offset-y));
        opacity: 1;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }
}

.slam-card.is-slammed {
    /* Smoother fall and bounce */
    animation: newspaperSlam 0.85s cubic-bezier(0.34, 1.15, 0.64, 1) forwards;
}



/* --- Responsive --- */
@media (max-width: 1024px) {
    .landing-section { padding: 2.5rem 1.5rem; }
    .landing-section.section-no-padding {
        padding: 0 0 1.5rem;
    }
    .section-title { font-size: 2rem; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .safeguards-grid { grid-template-columns: 1fr; }
    .screenshot-grid { grid-template-columns: 1fr; }
    .highlight-tiles { grid-template-columns: 1fr; gap: 1.5rem; }

    .page-with-sidebar {
        flex-direction: column;
    }
    .sticky-page-nav {
        position: sticky;
        top: 0;
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--bs-border-color);
        background: rgba(28, 28, 28, 0.95);
        backdrop-filter: blur(10px);
        z-index: 50;
        align-items: center;
        /* Hide scrollbars */
        -ms-overflow-style: none;
        scrollbar-width: none;
        padding: 8px;
    }
    .sticky-page-nav::-webkit-scrollbar {
        display: none;
    }
    .sticky-nav-title {
        margin-bottom: 0;
        margin-right: 1rem;
        white-space: nowrap;
        display: none;
    }
    .sticky-nav-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: 4px;
    }
    .sticky-nav-item.active {
        border-left-color: transparent;
        border-bottom-color: var(--bs-primary);
    }
}

@media (max-width: 768px) {
    /* The landing content scrolls inside .landing-sections, not the outer
       .dashboard-content, so the fixed bottom toolbar clearance must be applied
       here too — otherwise the footer scrolls behind the toolbar and can never
       be brought fully into view. */
    .landing-sections {
        padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
    }

    .page-with-sidebar {
        padding: 0 0 env(safe-area-inset-bottom, 0px) !important;
    }
    .sticky-page-nav {
        width: 100%;
    }
    .landing-section { padding: 2rem 1.5rem; }
    .landing-section.section-no-padding {
        padding: 0 0 1.5rem;
    }
    .section-title { font-size: 1.75rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .hero-title-lg { font-size: 2.25rem; }
    .hero-desc-lg { font-size: 1rem; }
    .hero-centered-full { padding: 0 1rem; margin: 1.5rem auto 2.5rem; }
    .hero-app-screenshot { max-height: 420px; }
}

/* --- Extracted Landing Utility Classes --- */
.landing-code {
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

.warning-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.08);
    margin-bottom: 1.25rem;
}

.warning-banner-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

.warning-banner-text strong {
    color: #fbbf24;
}

.badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--bs-primary);
    margin-right: 4px;
    display: inline-block;
}