.mtyping-page {
    --mtyping-bg: rgba(10, 12, 20, 0.7);
    --mtyping-card: rgba(14, 20, 34, 0.82);
    --mtyping-card-soft: rgba(17, 24, 39, 0.74);
    --mtyping-line: rgba(255, 255, 255, 0.08);
    --mtyping-text: rgba(255, 255, 255, 0.94);
    --mtyping-muted: rgba(255, 255, 255, 0.7);
    --mtyping-cyan: #38bdf8;
    --mtyping-green: #4ade80;
    --mtyping-amber: #fbbf24;
    --mtyping-ink: #071018;
    position: relative;
    padding: 4rem 1.5rem 4.5rem;
    overflow-x: clip;
}

.mtyping-page::before,
.mtyping-page::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.34;
    pointer-events: none;
}

.mtyping-page::before {
    top: 7rem;
    left: 5%;
    width: 18rem;
    height: 18rem;
    background: rgba(56, 189, 248, 0.22);
}

.mtyping-page::after {
    right: 4%;
    bottom: 8rem;
    width: 22rem;
    height: 22rem;
    background: rgba(74, 222, 128, 0.18);
}

.mtyping-shell {
    position: relative;
    z-index: 1;
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
}

.mtyping-hero,
.mtyping-workbench,
.mtyping-example-section,
.mtyping-guide-card,
.mtyping-feature-card,
.mtyping-usage-card,
.mtyping-faq-card {
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
        var(--mtyping-bg);
    border: 1px solid var(--mtyping-line);
    border-radius: 28px;
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

.mtyping-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 1.4rem;
    padding: 1.8rem;
}

.mtyping-hero-copy,
.mtyping-hero-panel {
    min-width: 0;
}

.mtyping-hero-copy {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.mtyping-kicker,
.mtyping-panel-label,
.mtyping-section-label,
.mtyping-feature-eyebrow,
.mtyping-card-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d7f7ff;
}

.mtyping-kicker {
    padding: 0.58rem 0.92rem;
    border-radius: 999px;
    background: rgba(13, 24, 38, 0.78);
    border: 1px solid rgba(56, 189, 248, 0.16);
}

.mtyping-kicker-dot {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mtyping-cyan), var(--mtyping-green));
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.mtyping-title {
    margin: 0;
    max-width: 11ch;
    font-size: clamp(2.5rem, 5vw, 4.85rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: #fff;
}

.mtyping-intro,
.mtyping-feature-card p,
.mtyping-section-copy,
.mtyping-sample-card p,
.mtyping-suggestion-copy,
.mtyping-guide-card p,
.mtyping-usage-card p,
.mtyping-faq-card p {
    margin: 0;
    color: var(--mtyping-muted);
    line-height: 1.72;
}

.mtyping-current-word {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.3rem;
    margin: -0.1rem 0 0;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(37, 99, 235, 0.08)),
        rgba(10, 16, 28, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mtyping-current-word.is-loading {
    background:
        linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(56, 189, 248, 0.08)),
        rgba(10, 16, 28, 0.82);
}

.mtyping-current-word.is-ready {
    background:
        linear-gradient(135deg, rgba(74, 222, 128, 0.16), rgba(56, 189, 248, 0.1)),
        rgba(10, 16, 28, 0.82);
}

.mtyping-current-label {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mtyping-current-word strong {
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.25;
}

.mtyping-current-word small {
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.55;
}

.mtyping-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mtyping-badge {
    padding: 0.72rem 0.96rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
}

.mtyping-hero-panel {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.mtyping-sample-card {
    display: grid;
    gap: 0.85rem;
    padding: 1.25rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 36%),
        rgba(14, 20, 34, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mtyping-sample-card.is-accent {
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.2), transparent 36%),
        rgba(14, 20, 34, 0.86);
}

.mtyping-sample-row {
    display: grid;
    gap: 0.35rem;
}

.mtyping-sample-row small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.94rem;
}

.mtyping-sample-row strong {
    color: #fff;
    font-size: clamp(1.45rem, 2vw, 1.95rem);
    line-height: 1.22;
    font-family: 'Noto Sans Malayalam', 'Manjari', 'Nirmala UI', sans-serif;
}

.mtyping-mini-list,
.mtyping-check-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.72rem;
}

.mtyping-mini-list li,
.mtyping-check-list li {
    position: relative;
    padding-left: 1.4rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
}

.mtyping-mini-list li::before,
.mtyping-check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mtyping-green), var(--mtyping-cyan));
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.22);
}

.mtyping-feature-grid,
.mtyping-guide-grid,
.mtyping-usage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.mtyping-feature-card,
.mtyping-guide-card,
.mtyping-usage-card {
    display: grid;
    align-content: start;
    gap: 0.75rem;
    padding: 1.25rem;
}

.mtyping-feature-card h2,
.mtyping-guide-card h3,
.mtyping-usage-card h3,
.mtyping-faq-card h3,
.mtyping-card-head h3 {
    margin: 0;
    color: #fff;
    line-height: 1.3;
}

.mtyping-feature-card h2 {
    font-size: 1.2rem;
}

.mtyping-workbench {
    display: grid;
    gap: 1.2rem;
    padding: 1.5rem;
}

.mtyping-workbench-head,
.mtyping-card-head,
.mtyping-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.mtyping-section-title {
    margin: 0.45rem 0 0;
    color: #fff;
    font-size: clamp(1.5rem, 2.8vw, 2.3rem);
    line-height: 1.18;
}

.mtyping-status-stack {
    display: grid;
    justify-items: end;
    gap: 0.7rem;
    min-width: 15rem;
}

.mtyping-live-pill,
.mtyping-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
}

.mtyping-live-pill {
    padding: 0.55rem 0.82rem;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
}

.mtyping-status {
    min-height: 2.35rem;
    padding: 0.5rem 0.82rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mtyping-status.is-loading {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.24);
    color: #dff7ff;
}

.mtyping-status.is-success {
    background: rgba(74, 222, 128, 0.14);
    border-color: rgba(74, 222, 128, 0.24);
    color: #e8ffef;
}

.mtyping-status.is-error {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.24);
    color: #ffe8e8;
}

.mtyping-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.mtyping-editor-card,
.mtyping-suggestion-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.1), transparent 36%),
        var(--mtyping-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mtyping-suggestion-card {
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.12), transparent 34%),
        radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.12), transparent 38%),
        rgba(15, 20, 34, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

.mtyping-suggestion-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(56, 189, 248, 0.09), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 18%);
    pointer-events: none;
}

.mtyping-editor-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 24px 0 0 24px;
    background: rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.mtyping-editor-card.is-input {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 36%),
        linear-gradient(180deg, rgba(14, 165, 233, 0.05), transparent 34%),
        rgba(10, 18, 32, 0.88);
    border-color: rgba(56, 189, 248, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 24px 90px rgba(0, 0, 0, 0.2);
}

.mtyping-editor-card.is-input::before {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.95), rgba(37, 99, 235, 0.72));
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.22);
}

.mtyping-editor-card.is-output {
    background:
        radial-gradient(circle at top right, rgba(74, 222, 128, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(74, 222, 128, 0.06), transparent 34%),
        rgba(9, 20, 18, 0.88);
    border-color: rgba(74, 222, 128, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 24px 90px rgba(0, 0, 0, 0.2);
}

.mtyping-editor-card.is-output::before {
    background: linear-gradient(180deg, rgba(74, 222, 128, 0.96), rgba(22, 163, 74, 0.74));
    box-shadow: 0 0 18px rgba(74, 222, 128, 0.2);
}

.mtyping-editor-card.is-input .mtyping-card-label {
    color: #d8f4ff;
}

.mtyping-editor-card.is-output .mtyping-card-label {
    color: #dfffe8;
}

.mtyping-editor-card.is-input .mtyping-card-head h3 {
    color: #eefbff;
}

.mtyping-editor-card.is-output .mtyping-card-head h3 {
    color: #f1fff5;
}

.mtyping-ghost-btn,
.mtyping-action-btn,
.mtyping-example-chip,
.mtyping-suggestion-chip {
    appearance: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

.mtyping-ghost-btn {
    padding: 0.72rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.mtyping-ghost-btn:hover,
.mtyping-example-chip:hover,
.mtyping-suggestion-chip:hover {
    transform: translateY(-1px);
}

.mtyping-action-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.mtyping-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.72rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.94), rgba(37, 99, 235, 0.84));
    border: 1px solid rgba(125, 211, 252, 0.36);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(14, 165, 233, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.mtyping-action-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 18px 34px rgba(14, 165, 233, 0.22);
}

.mtyping-example-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.mtyping-example-chip,
.mtyping-suggestion-chip,
.mtyping-empty-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.68rem 0.9rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
}

.mtyping-example-chip {
    text-align: left;
}

.mtyping-suggestion-list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.mtyping-suggestion-chip {
    position: relative;
    overflow: hidden;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0.42rem;
    padding: 0.9rem 0.95rem;
    text-align: left;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
        rgba(16, 28, 44, 0.9);
    border-color: rgba(56, 189, 248, 0.14);
    box-shadow: 0 14px 32px rgba(7, 12, 24, 0.16);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    animation: mtypingSuggestionRise 0.34s ease both;
}

.mtyping-suggestion-chip.is-active {
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(74, 222, 128, 0.2)),
        rgba(16, 28, 44, 0.92);
    border-color: rgba(125, 211, 252, 0.32);
    color: #fff;
    box-shadow: 0 18px 38px rgba(14, 165, 233, 0.16);
}

.mtyping-suggestion-chip.is-active::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 16px 0 0 16px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 1), rgba(74, 222, 128, 0.95));
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.18);
}

.mtyping-suggestion-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.36rem 0.62rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mtyping-suggestion-chip.is-active .mtyping-suggestion-rank {
    background: rgba(255, 255, 255, 0.12);
    color: #f7feff;
}

.mtyping-suggestion-word {
    color: #fff;
    font-size: 1.18rem;
    line-height: 1.32;
    font-family: 'Noto Sans Malayalam', 'Manjari', 'Nirmala UI', sans-serif;
}

.mtyping-suggestion-note {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
    font-size: 0.88rem;
}

.mtyping-suggestion-chip.is-active .mtyping-suggestion-note {
    color: rgba(255, 255, 255, 0.86);
}

.mtyping-empty-chip {
    color: rgba(255, 255, 255, 0.62);
}

@keyframes mtypingSuggestionRise {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mtyping-textarea {
    width: 100%;
    min-height: 300px;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 12, 20, 0.78);
    color: var(--mtyping-text);
    font: inherit;
    line-height: 1.75;
    resize: vertical;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mtyping-editor-card.is-input .mtyping-textarea {
    background:
        linear-gradient(180deg, rgba(56, 189, 248, 0.04), transparent 24%),
        rgba(6, 14, 28, 0.86);
    border-color: rgba(56, 189, 248, 0.16);
    box-shadow:
        inset 0 0 0 1px rgba(56, 189, 248, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mtyping-editor-card.is-output .mtyping-textarea {
    background:
        linear-gradient(180deg, rgba(74, 222, 128, 0.05), transparent 24%),
        rgba(7, 18, 14, 0.88);
    border-color: rgba(74, 222, 128, 0.16);
    box-shadow:
        inset 0 0 0 1px rgba(74, 222, 128, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mtyping-textarea:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.42);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.mtyping-textarea::placeholder {
    color: rgba(255, 255, 255, 0.34);
}

.mtyping-output {
    font-family: 'Noto Sans Malayalam', 'Manjari', 'Nirmala UI', sans-serif;
    font-size: 1.08rem;
    color: #f3fff7;
}

.mtyping-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

.mtyping-example-section {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
}

.mtyping-table-shell {
    overflow: auto;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 12, 20, 0.6);
}

.mtyping-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.mtyping-table th,
.mtyping-table td {
    padding: 1rem 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    vertical-align: top;
}

.mtyping-table thead th {
    position: sticky;
    top: 0;
    background: rgba(8, 12, 20, 0.95);
    z-index: 1;
}

.mtyping-table-ml {
    color: #fff;
    font-family: 'Noto Sans Malayalam', 'Manjari', 'Nirmala UI', sans-serif;
}

.mtyping-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.mtyping-faq-card {
    display: grid;
    gap: 0.75rem;
    padding: 1.3rem;
}

@media (max-width: 1180px) {
    .mtyping-hero,
    .mtyping-editor-grid,
    .mtyping-feature-grid,
    .mtyping-guide-grid,
    .mtyping-usage-grid,
    .mtyping-faq-grid {
        grid-template-columns: 1fr;
    }

    .mtyping-title {
        max-width: 100%;
    }
}

@media (max-width: 760px) {
    .mtyping-page {
        padding: 2rem 1rem 4rem;
    }

    .mtyping-shell {
        gap: 1rem;
    }

    .mtyping-hero,
    .mtyping-workbench,
    .mtyping-example-section,
    .mtyping-feature-card,
    .mtyping-guide-card,
    .mtyping-usage-card,
    .mtyping-faq-card,
    .mtyping-editor-card,
    .mtyping-suggestion-card {
        border-radius: 24px;
    }

    .mtyping-hero,
    .mtyping-workbench,
    .mtyping-example-section {
        padding: 1rem;
    }

    .mtyping-feature-card,
    .mtyping-guide-card,
    .mtyping-usage-card,
    .mtyping-faq-card,
    .mtyping-editor-card,
    .mtyping-suggestion-card {
        padding: 1rem;
    }

    .mtyping-title {
        font-size: clamp(2.15rem, 11vw, 3.7rem);
        line-height: 1.08;
    }

    .mtyping-workbench-head,
    .mtyping-card-head,
    .mtyping-section-head {
        flex-direction: column;
    }

    .mtyping-status-stack,
    .mtyping-action-group {
        justify-items: start;
        justify-content: flex-start;
    }

    .mtyping-status-stack {
        min-width: 0;
        width: 100%;
    }

    .mtyping-hero-badges,
    .mtyping-example-strip {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }

    .mtyping-badge,
    .mtyping-example-chip {
        flex: 0 0 auto;
    }

    .mtyping-suggestion-list {
        grid-template-columns: 1fr;
    }

    .mtyping-suggestion-chip,
    .mtyping-empty-chip {
        min-height: 0;
    }

    .mtyping-textarea {
        min-height: 230px;
    }

    .mtyping-table {
        min-width: 620px;
    }
}
