/* =============================================================
   hero.css  —  LearnGecko
   Covers: Hero section, Bento feature cards, base utilities,
           keyframe animations, badges, shapes, scrollbar styles.
   ============================================================= */


/* ── BASE UTILITIES ── */

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ── FONTS ── */

#knowly-hero {
    font-family: 'Outfit', sans-serif;
}

.inter-section {
    font-family: 'Inter', sans-serif;
}

/* ── GRADIENT TEXT ── */

.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, #FF4D29, #FF8F6B);
}

/* ── SHAPE CONTAINER (inline icons in headline) ── */

.shape-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.clip-path-half-circle {
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    border-radius: 9999px 9999px 0 0;
    transform: translateY(50%);
}

/* ── DIAGNOSTIC INLINE BADGES ── */

.inline-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFF2EB;
    color: #FF4D29;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(255, 77, 41, 0.1);
    margin: 2px 0;
    vertical-align: middle;
}

.inline-badge .dot {
    width: 5px;
    height: 5px;
    background: #FF4D29;
    border-radius: 50%;
}

.inner-styled-box {
    background: #F9FAFB;
    border: 1px solid rgba(255, 77, 41, 0.1);
    border-radius: 20px;
    padding: 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* ── KEYFRAME ANIMATIONS ── */

/* Catch-cycle animation — "What We Catch Per Quiz" card */
@keyframes catch-highlight {

    0%,
    15% {
        background-color: #f97316;
        color: #ffffff !important;
        transform: scale(1.05);
        box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.3);
        z-index: 30;
    }

    16.6%,
    100% {
        background-color: white;
        color: #000000 !important;
        transform: scale(1);
        box-shadow: none;
        z-index: 20;
    }
}

@keyframes catch-finger {

    0%,
    15% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    16.6%,
    100% {
        opacity: 0;
        transform: translateY(-50%) scale(0.6);
    }
}

.catch-item-active {
    animation: catch-highlight 6s infinite;
    position: relative;
    border-radius: 1rem;
    transition: all 0.3s;
    color: #000000;
}

.catch-item-active>div {
    background: inherit !important;
    color: inherit !important;
    border-color: transparent !important;
}

.catch-item-active .finger {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    animation: catch-finger 6s infinite;
    font-size: 18px;
    pointer-events: none;
    opacity: 0;
    z-index: 40;
}

/* Target EVERYTHING inside to ensure color inheritance */
.catch-item-active *,
.catch-item-active span,
.catch-item-active div {
    color: inherit !important;
}

/* Float animation — phone mockup, mascot */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Modal entrance animation */
@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

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

.animate-modal-in {
    animation: modal-in 0.3s ease-out forwards;
}


/* =============================================================
   BENTO  SECTION  (dark feature cards grid)
   ============================================================= */

.bento-section {
    font-family: 'DM Sans', sans-serif;
    background: #0a0a0a;
    padding: 60px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-section .grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    max-width: 1100px;
    width: 100%;
}

.bento-section .card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-section .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* === CARD 1: Custom Editor Typefaces === */

.bento-section .card-typefaces {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1052 40%, #1a2040 100%);
    grid-column: 1;
    grid-row: 1;
    min-height: 210px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.bento-section .card-typefaces .dropdown {
    position: absolute;
    top: 24px;
    left: 24px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
    min-width: 170px;
    z-index: 2;
}

.bento-section .card-typefaces .dropdown-item {
    padding: 7px 16px;
    font-size: 13.5px;
    color: #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bento-section .card-typefaces .dropdown-item.active {
    background: #2a2a2a;
}

.bento-section .card-typefaces .dropdown-item .font-name {
    font-weight: 600;
    color: #fff;
}

.bento-section .card-typefaces .dropdown-item .font-sub {
    color: #666;
    font-size: 12px;
}

.bento-section .card-typefaces .cursor-icon {
    position: absolute;
    top: 68px;
    left: 186px;
    font-size: 18px;
    z-index: 3;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.bento-section .card-typefaces h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    text-align: right;
    position: relative;
    z-index: 1;
}

/* === CARD 2: Auto-save === */

.bento-section .card-autosave {
    background: #141414;
    border: 1px solid #222;
    grid-column: 2;
    grid-row: 1;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.bento-section .card-autosave h2 {
    font-size: 20px;
    font-weight: 500;
    color: #f0f0f0;
    text-align: center;
    line-height: 1.3;
}

.bento-section .card-autosave .stats-card {
    background: #1c1c1c;
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bento-section .card-autosave .graph-box {
    width: 100%;
    height: 45px;
    opacity: 0.9;
}

.bento-section .card-autosave .stats-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4px;
}

.bento-section .card-autosave .stat-label {
    font-size: 13px;
    color: #aaa;
    font-weight: 500;
}

.bento-section .card-autosave .stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bento-section .card-autosave .stat-value.decrease {
    color: #ef4444;
}

.bento-section .card-autosave .stats-card:last-child {
    margin-top: 10px;
}

/* === CARD 3: Editor Shortcuts === */

.bento-section .card-shortcuts {
    background: linear-gradient(135deg, #0d1f0d 0%, #0a1a2e 60%, #1a0d2e 100%);
    grid-column: 3;
    grid-row: 1;
    min-height: 210px;
}

.bento-section .card-shortcuts h2 {
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.bento-section .card-shortcuts .menu {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 6px 0;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.bento-section .card-shortcuts .menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    font-size: 13px;
    color: #bbb;
    position: relative;
}

.bento-section .card-shortcuts .menu-item.active {
    background: #252525;
    border-radius: 8px;
    margin: 0 4px;
    color: #fff;
}

.bento-section .card-shortcuts .menu-icon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.bento-section .icon-h1 {
    background: #1a2540;
    color: #5b9cf6;
}

.bento-section .icon-todo {
    background: #0d2010;
    color: #4caf50;
}

.bento-section .icon-img {
    background: #261800;
    color: #ffa040;
}

.bento-section .icon-code {
    background: #1e0a2e;
    color: #b47fdb;
}

.bento-section .icon-quote {
    background: #0a1a30;
    color: #42a5f5;
}

.bento-section .icon-div {
    background: #2a0a14;
    color: #f06292;
}

.bento-section .cursor-shortcuts {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

/* === CARD 4: Markdown Import === */

.bento-section .card-markdown {
    background: #141414;
    border: 1px solid #222;
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 130px;
}

.bento-section .file-icon {
    width: 80px;
    height: 100px;
    background: #fff;
    border-radius: 4px;
    position: relative;
    padding: 18px 8px 8px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.bento-section .file-icon::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 16px 16px 0;
    border-style: solid;
    border-color: transparent transparent #e0e0e0 #e0e0e0;
    display: block;
    width: 0;
    box-shadow: -1px 1px 2px rgba(0, 0, 0, 0.05);
}

.bento-section .file-icon .file-inner-text {
    font-size: 8px;
    font-weight: 700;
    color: #333;
    text-align: center;
    line-height: 1.3;
    margin-top: 5px;
}

.bento-section .file-icon .file-badge {
    color: #e8490f;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 2px;
}

.bento-section .card-markdown .file-preview {
    background: #1c1c1c;
    border-radius: 10px;
    padding: 10px 12px;
    flex: 1;
}

.bento-section .card-markdown .file-preview .line {
    height: 7px;
    background: #2e2e2e;
    border-radius: 4px;
    margin-bottom: 6px;
}

.bento-section .card-markdown .file-preview .line:last-child {
    margin-bottom: 0;
}

.bento-section .card-markdown .file-preview .line.short {
    width: 60%;
}

.bento-section .card-markdown .file-preview .line.med {
    width: 80%;
}

.bento-section .card-markdown h2 {
    font-size: 22px;
    font-weight: 500;
    color: #f0f0f0;
    line-height: 1.3;
}

/* === CARD 5: Centre (logo + brand name) === */

.bento-section .card-center {
    background: linear-gradient(135deg, #c67a4b 0%, #9e5325 100%);
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 32px !important;
    gap: 20px;
}

.bento-section .card-center .logo {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bento-section .card-center .logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.bento-section .card-center h1 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.1;
    text-align: left;
}

/* === CARD 6: Risk Indicator === */

.bento-section .card-focus {
    background: linear-gradient(135deg, #1a0a0a 0%, #2a0a0a 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    grid-column: 3;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-height: 130px;
}

.bento-section .card-focus .alert-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    width: fit-content;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.bento-section .alert-pulse {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: bento-pulse-red 2s infinite;
}

@keyframes bento-pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.bento-section .card-focus h2 {
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    line-height: 1.25;
}

.bento-section .card-focus .collapse-line {
    width: 80px;
    height: 24px;
    margin-top: 4px;
    opacity: 0.6;
}

/* === CARD 7: Bi-directional Links === */

.bento-section .card-bidir {
    background: linear-gradient(135deg, #0a1520 0%, #120a20 50%, #1a0a0a 100%);
    grid-column: 1;
    grid-row: 3;
    min-height: 240px;
}

.bento-section .card-bidir h2 {
    font-size: 20px;
    font-weight: 400;
    color: #e0e0e0;
    margin-bottom: 16px;
    line-height: 1.3;
}

.bento-section .card-bidir h2 em {
    font-style: italic;
    font-weight: 600;
    color: #5b9cf6;
}

.bento-section .card-bidir .text-box {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.bento-section .card-bidir .text-box p {
    font-size: 13px;
    color: #999;
    line-height: 1.65;
}

.bento-section .inline-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #1a2540;
    color: #5b9cf6;
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.bento-section .inline-tag:hover {
    background: #223060;
}

.bento-section .inline-tag .tag-dot {
    width: 6px;
    height: 6px;
    background: #5b9cf6;
    border-radius: 50%;
}

.bento-section .tag-orange {
    background: #261400;
    color: #ffa040;
}

.bento-section .tag-orange .tag-dot {
    background: #ffa040;
}

/* === CARD 8: Images for Notes === */

.bento-section .card-images {
    background: #141414;
    border: 1px solid #222;
    grid-column: 2;
    grid-row: 3;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bento-section .card-images h2 {
    font-size: 20px;
    font-weight: 500;
    color: #f0f0f0;
    text-align: center;
}

.bento-section .card-images .img-placeholder {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.bento-section .journal-caption {
    font-size: 12px;
    color: #bbb;
    font-weight: 500;
    text-align: center;
}

.bento-section .journal-sub {
    font-size: 11px;
    color: #555;
    text-align: center;
    margin-top: 2px;
}

/* === CARD 9: Notes Analyzer === */

.bento-section .card-analyzer {
    background: linear-gradient(135deg, #0a1a10 0%, #101a0a 100%);
    grid-column: 3;
    grid-row: 3;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bento-section .card-analyzer h2 {
    font-size: 20px;
    font-weight: 500;
    color: #f0f0f0;
    line-height: 1.3;
}

.bento-section .card-analyzer .tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bento-section .card-analyzer .tag {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.bento-section .tag-green {
    background: #0d2010;
    color: #4caf50;
}

.bento-section .tag-blue {
    background: #0a1a30;
    color: #5b9cf6;
}

.bento-section .tag-amber {
    background: #261a00;
    color: #ffc107;
}

.bento-section .tag-pink {
    background: #2a0a1a;
    color: #f48fb1;
}

.bento-section .card-analyzer .bar-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.bento-section .bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bento-section .bar-label {
    font-size: 11px;
    color: #666;
    width: 80px;
    flex-shrink: 0;
}

.bento-section .bar-track {
    flex: 1;
    height: 6px;
    background: #1e1e1e;
    border-radius: 4px;
    overflow: hidden;
}

.bento-section .bar-fill {
    height: 100%;
    border-radius: 4px;
}