/* ========================================
   HOME PAGE STYLES
   ======================================== */

.home-container {
    max-width: var(--mkt-max, 1120px);
    margin: 0 auto;
    padding: 0 1.25rem 2rem;
    overflow-x: clip;
}

@media (max-width: 480px) {
    .home-container {
        padding: 0 0.85rem 2rem;
    }
}

.home-hero {
    margin-bottom: 2.5rem;
}

/* ========================================
   HOME LANDING (company page — not typing hub)
   ======================================== */

.home-landing {
    padding-top: 0.5rem;
}

.home-company-hero {
    text-align: center;
    padding: clamp(2.5rem, 7vw, 4rem) 1rem 2.5rem;
    margin-bottom: 2rem;
}

.home-company-hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--mkt-text, #0f172a);
}

.home-company-lead {
    margin: 0 auto 1.75rem;
    max-width: 38rem;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.6;
    color: var(--mkt-muted, #64748b);
}

.home-company-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.home-company-cta {
    padding: 0.85rem 1.75rem;
    font-weight: 700;
    border-radius: 999px;
}

.home-company-cta-secondary {
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    border-radius: 999px;
}

.home-about,
.home-offer {
    background: var(--mkt-surface, #fff);
    border-radius: var(--mkt-radius-lg, 20px);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    border: 1px solid var(--mkt-border, #e2e8f0);
    box-shadow: var(--mkt-shadow);
}

.home-about-body {
    max-width: 42rem;
    margin: 0 auto;
}

.home-about-body p {
    margin: 0 0 1rem;
    line-height: 1.65;
    color: var(--mkt-text, #334155);
}

.home-about-body p:last-child {
    margin-bottom: 0;
}

.home-about-link-wrap {
    margin-top: 1.25rem !important;
}

.home-about-link {
    font-weight: 600;
    color: var(--mkt-accent, #2563eb);
    text-decoration: none;
}

.home-about-link:hover {
    text-decoration: underline;
}

.home-offer-list {
    max-width: 36rem;
    margin: 0 auto 1.5rem;
    padding-left: 1.25rem;
    line-height: 1.65;
    color: var(--mkt-text, #334155);
}

.home-offer-list li + li {
    margin-top: 0.5rem;
}

.home-offer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.home-offer-actions .btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
}

.setup-notice {
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
}

.setup-notice code {
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

/* ========================================
   TYPING TEST HERO (minimal hub layout)
   ======================================== */

.home-page {
    padding-top: 0.5rem;
}

.home-typing-hero {
    text-align: center;
    padding: clamp(2rem, 6vw, 3.5rem) 1rem 2rem;
    margin-bottom: 2rem;
}

.home-typing-hero h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--mkt-text, #0f172a);
}

.home-typing-tagline {
    margin: 0 0 1.75rem;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--mkt-muted, #64748b);
}

.home-typing-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 1.75rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: var(--mkt-surface, #fff);
    border: 1px solid var(--mkt-border, #e2e8f0);
}

.home-typing-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--mkt-muted, #64748b);
    transition: color 0.15s, background 0.15s;
}

.home-typing-tab:hover {
    color: var(--mkt-text, #0f172a);
}

.home-typing-tab.is-active {
    color: #fff;
    background: var(--mkt-accent, #2563eb);
}

.home-typing-start {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.home-typing-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 14rem;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: var(--mkt-accent, #2563eb);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.home-typing-go:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32);
}

.home-typing-meta {
    font-size: 0.82rem;
    color: var(--mkt-muted, #64748b);
}

.home-section-title {
    margin: 0 0 1.15rem;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mkt-text, #0f172a);
    text-align: center;
}

.home-start .home-section-title,
.home-browse .home-section-title {
    margin-bottom: 1.25rem;
}

.home-leaderboard-head .home-section-title {
    margin: 0;
    text-align: left;
}

/* Legacy hero classes kept for compatibility */
.brand-color {
    color: var(--mkt-accent, #2563eb);
}

/* ========================================
   START TYPING TEST (language links)
   ======================================== */

.home-start {
    background: var(--mkt-surface, #fff);
    border-radius: var(--mkt-radius-lg, 20px);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    box-shadow: var(--mkt-shadow);
    margin-bottom: 2.5rem;
    border: 1px solid var(--mkt-border, #e2e8f0);
}

.home-start-head {
    margin-bottom: 1.35rem;
}

.home-lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.home-lang-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1rem 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1.5px solid var(--mkt-border, #e2e8f0);
    background: #fff;
    text-decoration: none;
    color: var(--mkt-text, #0f172a);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.home-lang-card:hover {
    border-color: var(--mkt-accent, #2563eb);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.home-lang-card:focus-visible {
    outline: 2px solid var(--mkt-accent, #2563eb);
    outline-offset: 2px;
}

.home-lang-flag {
    font-size: 2rem;
    line-height: 1;
}

.home-lang-name {
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
}

.home-lang-go {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--mkt-accent, #2563eb);
    margin-top: 0.15rem;
}

.home-empty-note {
    text-align: center;
    color: #64748b;
    margin: 0;
}

.home-empty-note code {
    font-size: 0.9em;
    background: #f1f5f9;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

/* ========================================
   BROWSE ALL TYPING TESTS
   ======================================== */

.home-browse {
    background: #fff;
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 2.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.home-browse-head {
    text-align: center;
    margin-bottom: 1.35rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.home-test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.6rem;
}

.home-test-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
    text-decoration: none;
    color: #0f172a;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.home-test-card:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.home-test-flag {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.home-test-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.home-test-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.home-test-sub {
    font-size: 0.75rem;
    color: #64748b;
}

.home-browse-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.65rem 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.35rem;
    border-top: 1px solid #e5e7eb;
}

.home-browse-all {
    padding: 0.65rem 1.35rem;
    font-weight: 600;
    border-radius: 10px;
}

.home-browse-link {
    font-size: 0.92rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
}

.home-browse-link:hover {
    color: var(--mkt-accent, #2563eb);
}

/* Legacy selection (unused) */

.selection-container {
    background: var(--mkt-surface, #fff);
    border-radius: var(--mkt-radius-lg, 20px);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    box-shadow: var(--mkt-shadow);
    margin-bottom: 2.5rem;
    border: 1px solid var(--mkt-border, #e2e8f0);
}

.selection-head {
    margin-bottom: 1.5rem;
}

.selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.selection-grid-single {
    grid-template-columns: 1fr;
}

.selection-card-wide {
    max-width: 100%;
}

.browse-cards-single {
    grid-template-columns: 1fr;
}

.browse-card-featured {
    min-height: auto;
}

.selection-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--mkt-radius, 14px);
    border: 1px solid var(--mkt-border, #e2e8f0);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.selection-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.selection-card h2 {
    font-size: 1.1rem;
    margin: 0 0 1.25rem;
    padding-bottom: 0.6rem;
    color: var(--mkt-text, #0f172a);
    font-weight: 700;
    border-bottom: 1px solid var(--mkt-border, #e2e8f0);
}

/* ========================================
   LANGUAGE GRID
   ======================================== */

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 1.2rem;
}

.language-btn {
    padding: 0.85rem 0.5rem;
    border: 1.5px solid var(--mkt-border, #e2e8f0);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
}

.language-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(244, 114, 182, 0.1));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.language-btn:hover {
    border-color: var(--mkt-accent, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.language-btn:hover::before {
    opacity: 1;
}

.language-btn.selected {
    border-color: var(--mkt-accent, #2563eb);
    background: var(--mkt-accent-soft, #eff6ff);
    color: var(--mkt-accent, #2563eb);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.flag {
    font-size: 2.2rem;
}

.lang-name {
    font-size: 0.85rem;
}

/* ========================================
   DIFFICULTY GRID
   ======================================== */

.difficulty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.difficulty-btn {
    padding: 1.5rem;
    border: 2.5px solid;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    font-family: 'Poppins', sans-serif;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.difficulty-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 12px 0 0 12px;
    transition: all 0.3s ease;
}

.difficulty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.difficulty-btn:not(:disabled):hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.difficulty-btn.selected {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(244, 114, 182, 0.1));
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

.level-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.level-wpm {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.level-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ========================================
   ACTION SECTION
   ======================================== */

.action-section {
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 0.25rem;
    background: #f8fafc;
    border-radius: var(--mkt-radius, 14px);
    border: 1px solid var(--mkt-border, #e2e8f0);
}

#start-btn.btn-primary {
    background: var(--mkt-accent, #2563eb);
    border: none;
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
    border-radius: 10px;
}

#start-btn.btn-primary:not(:disabled):hover {
    background: #1d4ed8;
}

.btn-arrow {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(6px);
}

.btn-primary:active .btn-arrow {
    transform: translateX(2px);
}

.hint-text {
    color: var(--text-secondary);
    margin-top: 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ========================================
   BROWSE TYPING TESTS
   ======================================== */

.browse-tests {
    background: #fff;
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.15rem, 2.5vw, 1.75rem) 1.75rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
}

.browse-tests-header {
    text-align: center;
    margin-bottom: 1.75rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.browse-tests-title {
    font-size: clamp(1.35rem, 2.8vw, 1.65rem);
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.browse-title-kicker {
    display: inline-block;
    margin-right: 0.35rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    vertical-align: middle;
    position: relative;
    top: -0.05em;
}

.browse-tests-header h2::after {
    display: none;
}

.browse-tests-lead {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

.browse-tests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.browse-tests-grid-wide {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px) {
    .browse-tests-grid-wide {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .browse-tests-grid,
    .browse-tests-grid-wide {
        grid-template-columns: 1fr;
    }
}

.browse-world-block {
    background: #fafafa;
    border-radius: 12px;
    padding: 1.1rem 1rem;
    border: 1px solid #e5e7eb;
}

.browse-tests-grid-wide .browse-world-block-wide {
    grid-column: 1 / -1;
}

.browse-world-block-wide {
    background: #fafafa;
    border-color: #e5e7eb;
}

.browse-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.browse-hub-chip {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    text-decoration: none;
    color: #0f172a;
    font-size: 0.75rem;
    line-height: 1.35;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.browse-hub-chip:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.browse-hub-flag {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.browse-hub-title {
    font-weight: 500;
    color: #334155;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.browse-lang-block {
    background: #fafafa;
    border-radius: 12px;
    padding: 1.1rem 1rem;
    border: 1px solid #e5e7eb;
}

.browse-lang-block-tamil {
    background: #fafafa;
    border-color: #e5e7eb;
}

.browse-lang-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.browse-lang-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    flex-shrink: 0;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.browse-lang-mark-ta {
    color: #0f766e;
    background: #f0fdfa;
    border-color: #99f6e4;
}

.browse-lang-mark-all {
    width: auto;
    min-width: 2.35rem;
    padding: 0 0.45rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #475569;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.browse-lang-head-text {
    min-width: 0;
}

.browse-lang-head h3 {
    margin: 0 0 0.15rem;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.browse-lang-link {
    font-size: 0.8125rem;
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

.browse-lang-link:hover {
    text-decoration: underline;
}

.browse-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .browse-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.browse-cards-compact {
    grid-template-columns: 1fr 1fr;
}

.browse-card-compact {
    padding: 0.65rem 0.75rem;
    border-left-width: 3px;
}

.browse-card-compact .browse-card-title {
    font-size: 0.85rem;
}

.browse-card-compact .browse-card-meta {
    font-size: 0.72rem;
}

.browse-card {
    display: flex;
    flex-direction: column;
    padding: 0.65rem 0.7rem;
    min-height: 4.5rem;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-left: 3px solid var(--accent, #2563eb);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.browse-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.browse-card-level {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent, #2563eb);
}

.browse-card-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0.1rem 0;
    line-height: 1.25;
}

.browse-card-meta {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: auto;
}

.browse-tests-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.65rem 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.35rem;
    border-top: 1px solid #e5e7eb;
}

.browse-guides-link {
    position: relative;
    font-size: 0.92rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    padding: 0.35rem 0;
}

.browse-guides-link:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}

.browse-guides-link:hover {
    color: var(--primary-color);
}

.browse-all-btn {
    padding: 0.65rem 1.35rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: none;
}

.browse-all-btn:hover {
    transform: none;
    box-shadow: none;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features {
    padding: 2rem 1.5rem 2.25rem;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.features-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.features-header h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.55rem);
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
}

.features-header p {
    color: #64748b;
    margin: 0 auto;
    max-width: 28rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.features-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.feature-card {
    background: #fafafa;
    padding: 1.25rem 1.15rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.feature-card::before {
    display: none;
}

.feature-card:hover {
    transform: none;
    background: #f8fafc;
    border-color: #d1d5db;
    box-shadow: none;
}

.feature-card:hover::before {
    display: none;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #0f172a;
}

.feature-card p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .home-typing-tabs {
        border-radius: 12px;
        width: 100%;
        max-width: 22rem;
    }

    .home-typing-tab {
        flex: 1 1 auto;
        justify-content: center;
        padding: 0.5rem 0.65rem;
        font-size: 0.8rem;
    }

    .home-lang-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }

    .home-test-grid {
        grid-template-columns: 1fr;
    }

    .features-header h2 {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .features-grid-three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .features-grid:not(.features-grid-three) {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid-three {
        grid-template-columns: 1fr;
    }
}
