:root {
    --tm-bg: #07111f;
    --tm-panel: #0c1b2d;
    --tm-panel-light: #10243b;
    --tm-text: #f4f7fc;
    --tm-muted: #a7b6ca;
    --tm-blue: #4b8cff;
    --tm-cyan: #58d5f5;
    --tm-gold: #d9b36c;
    --tm-line: rgba(175, 199, 230, .15);
    --tm-container: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body.typing-master-page {
    margin: 0;
    background: var(--tm-bg);
    color: var(--tm-text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.typing-master-page a {
    color: inherit;
    text-decoration: none;
}

.tm-container {
    width: min(var(--tm-container), calc(100% - 48px));
    margin-inline: auto;
}

.tm-header {
    position: relative;
    z-index: 5;
    background: rgba(7, 17, 31, .94);
    border-bottom: 1px solid var(--tm-line);
}

.tm-nav-wrap {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.tm-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.tm-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.tm-brand span {
    display: grid;
    line-height: 1.2;
}

.tm-brand strong {
    font-size: 1.05rem;
    letter-spacing: .16em;
}

.tm-brand small {
    margin-top: 5px;
    color: var(--tm-muted);
    font-size: .59rem;
    letter-spacing: .09em;
}

.tm-nav,
.tm-nav-actions {
    display: flex;
    align-items: center;
    gap: 26px;
}

.tm-nav a,
.tm-login {
    color: var(--tm-muted);
    font-size: .88rem;
    transition: color .2s ease;
}

.tm-nav a:hover,
.tm-nav a[aria-current="page"],
.tm-login:hover {
    color: var(--tm-cyan);
}

.tm-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 21px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-weight: 700;
    font-size: .9rem;
    line-height: 1.3;
    text-align: center;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.tm-button:hover {
    transform: translateY(-2px);
}

.tm-button-primary {
    color: #07111f !important;
    background: linear-gradient(115deg, #70dcf5, #70a5ff);
    box-shadow: 0 8px 28px rgba(75, 140, 255, .19);
}

.tm-button-primary:hover {
    background: linear-gradient(115deg, #a0edff, #91b9ff);
}

.tm-button-secondary {
    color: var(--tm-text);
    border-color: var(--tm-line);
    background: rgba(255, 255, 255, .025);
}

.tm-button-secondary:hover {
    border-color: rgba(88, 213, 245, .55);
    background: rgba(88, 213, 245, .06);
}

.tm-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 108px;
    background:
        radial-gradient(ellipse at 78% 42%, rgba(44, 102, 180, .19), transparent 42%),
        linear-gradient(180deg, #09182a, var(--tm-bg));
}

.tm-hero-grid {
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    align-items: center;
    gap: 66px;
}

.tm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--tm-cyan);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.tm-hero-copy .tm-eyebrow > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tm-cyan);
    box-shadow: 0 0 15px rgba(88, 213, 245, .75);
}

.tm-hero h1 {
    max-width: 650px;
    margin: 23px 0 20px;
    font-size: clamp(2.9rem, 5.5vw, 5.15rem);
    line-height: 1.06;
    letter-spacing: -.055em;
}

.tm-hero h1 span,
.tm-section-heading h2 span,
.tm-method h2 span {
    color: var(--tm-cyan);
}

.tm-lead {
    max-width: 590px;
    color: var(--tm-muted);
    font-size: 1.1rem;
    line-height: 1.85;
}

.tm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 32px;
}

.tm-note {
    margin-top: 24px;
    color: #8397b0;
    font-size: .82rem;
}

.tm-hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 390px;
}

.tm-visual-glow {
    position: absolute;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    background: rgba(52, 116, 218, .18);
    filter: blur(75px);
}

.tm-screen {
    position: relative;
    z-index: 2;
    width: min(100%, 490px);
    overflow: hidden;
    border: 1px solid rgba(113, 166, 226, .32);
    border-radius: 18px;
    background: linear-gradient(145deg, #102943, #0a192a);
    box-shadow: 0 35px 90px rgba(0, 0, 0, .4), 0 0 50px rgba(58, 135, 230, .1);
    transform: rotate(-2deg);
}

.tm-screen-bar {
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 19px;
    border-bottom: 1px solid var(--tm-line);
    color: #c5d6e9;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.tm-window-dots {
    display: flex;
    gap: 5px;
}

.tm-window-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6383a7;
}

.tm-window-dots i:first-child {
    background: #e58b85;
}

.tm-window-dots i:nth-child(2) {
    background: #dfbd70;
}

.tm-window-dots i:nth-child(3) {
    background: #6bc9a0;
}

.tm-live {
    color: #8be1c0;
    font-size: .59rem;
}

.tm-live i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: #6bd5a5;
}

.tm-screen-content {
    padding: 31px 30px 25px;
}

.tm-label {
    color: var(--tm-cyan);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.tm-screen-content h2 {
    margin: 12px 0 25px;
    font-size: 1.8rem;
    line-height: 1.2;
    letter-spacing: -.035em;
}

.tm-keyboard {
    display: grid;
    gap: 8px;
}

.tm-key-row {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.tm-key-row span {
    flex: 1;
    min-width: 0;
    display: grid;
    place-items: center;
    aspect-ratio: 1.05;
    border: 1px solid rgba(140, 179, 224, .2);
    border-radius: 5px;
    background: linear-gradient(145deg, #1a3552, #11243a);
    color: #dceaff;
    font-size: .7rem;
    font-weight: 700;
    box-shadow: 0 3px 0 #071321;
}

.tm-key-row span:first-child,
.tm-key-row span:last-child {
    color: var(--tm-cyan);
}

.tm-key-row.tm-offset {
    padding-inline: 15px;
}

.tm-key-row .tm-space {
    flex: 0 0 48%;
    aspect-ratio: auto;
    min-height: 23px;
    font-size: .56rem;
    letter-spacing: .15em;
}

.tm-screen-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 23px;
    padding-top: 16px;
    border-top: 1px solid var(--tm-line);
    color: var(--tm-muted);
    font-size: .78rem;
}

.tm-screen-foot strong {
    color: var(--tm-gold);
    font-size: 1.3rem;
}

.tm-orbit {
    position: absolute;
    border: 1px solid rgba(88, 213, 245, .15);
    border-radius: 50%;
    pointer-events: none;
}

.tm-orbit-one {
    width: 540px;
    height: 540px;
}

.tm-orbit-two {
    width: 650px;
    height: 650px;
    border-color: rgba(75, 140, 255, .1);
}

.tm-section {
    padding: 92px 0;
}

.tm-intro {
    border-bottom: 1px solid var(--tm-line);
    background: #091728;
}

.tm-intro-inner {
    max-width: 820px;
    text-align: center;
}

.tm-intro h2 {
    margin: 17px 0;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.2;
    letter-spacing: -.04em;
}

.tm-intro p,
.tm-section-heading > p {
    color: var(--tm-muted);
    font-size: 1rem;
    line-height: 1.85;
}

.tm-section-heading {
    max-width: 760px;
    margin: 0 auto 43px;
    text-align: center;
}

.tm-section-heading h2 {
    margin: 14px 0;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.2;
    letter-spacing: -.04em;
}

.tm-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tm-feature-card {
    position: relative;
    min-height: 260px;
    padding: 29px 27px;
    border: 1px solid var(--tm-line);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(17, 39, 63, .92), rgba(10, 26, 43, .95));
    transition: transform .2s ease, border-color .2s ease;
}

.tm-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(88, 213, 245, .38);
}

.tm-feature-number {
    position: absolute;
    top: 24px;
    right: 25px;
    color: #7189a6;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.tm-feature-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border: 1px solid rgba(88, 213, 245, .22);
    border-radius: 12px;
    background: rgba(88, 213, 245, .07);
    color: var(--tm-cyan);
    font-size: 1.5rem;
}

.tm-feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.tm-feature-card p {
    margin: 0;
    color: var(--tm-muted);
    font-size: .91rem;
    line-height: 1.8;
}

.tm-method {
    background: #091728;
    border-top: 1px solid var(--tm-line);
    border-bottom: 1px solid var(--tm-line);
}

.tm-method-grid {
    display: grid;
    grid-template-columns: 1fr .9fr;
    align-items: center;
    gap: 85px;
}

.tm-method h2 {
    margin: 17px 0;
    font-size: clamp(2.1rem, 3.8vw, 3.35rem);
    line-height: 1.16;
    letter-spacing: -.045em;
}

.tm-method-grid > div > p {
    color: var(--tm-muted);
    line-height: 1.9;
}

.tm-text-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
    color: var(--tm-cyan) !important;
    font-weight: 700;
}

.tm-steps {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tm-steps li {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 22px 0;
    border-bottom: 1px solid var(--tm-line);
}

.tm-steps li > span {
    color: var(--tm-gold);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.tm-steps strong {
    font-size: 1.05rem;
}

.tm-steps p {
    margin: 4px 0 0;
    color: var(--tm-muted);
    font-size: .88rem;
}

.tm-certificate-inner {
    display: grid;
    grid-template-columns: 1fr 230px;
    align-items: center;
    gap: 55px;
    padding: 45px 55px;
    border: 1px solid rgba(217, 179, 108, .27);
    border-radius: 17px;
    background:
        radial-gradient(circle at 85% 50%, rgba(217, 179, 108, .12), transparent 30%),
        linear-gradient(130deg, #11243a, #0b192a);
}

.tm-certificate h2 {
    max-width: 620px;
    margin: 15px 0;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    line-height: 1.2;
    letter-spacing: -.04em;
}

.tm-certificate p {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--tm-muted);
    line-height: 1.85;
}

.tm-certificate-mark {
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-self: center;
    border: 2px solid rgba(217, 179, 108, .65);
    border-radius: 50%;
    outline: 1px solid rgba(217, 179, 108, .24);
    outline-offset: 7px;
    color: var(--tm-gold);
}

.tm-certificate-mark > span {
    font-size: 1.1rem;
}

.tm-certificate-mark strong {
    font-size: 3rem;
    line-height: 1;
}

.tm-certificate-mark small {
    margin-top: 5px;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .17em;
}

.tm-certificate-mark i {
    margin-top: 9px;
    font-size: .57rem;
    font-style: normal;
    letter-spacing: .1em;
}

.tm-faq {
    background: #091728;
    border-top: 1px solid var(--tm-line);
}

.tm-faq-list {
    max-width: 850px;
    margin-inline: auto;
    border-top: 1px solid var(--tm-line);
}

.tm-faq-list details {
    border-bottom: 1px solid var(--tm-line);
}

.tm-faq-list summary {
    position: relative;
    padding: 22px 42px 22px 4px;
    color: var(--tm-text);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.tm-faq-list summary::-webkit-details-marker {
    display: none;
}

.tm-faq-list summary::after {
    content: "+";
    position: absolute;
    top: 17px;
    right: 8px;
    color: var(--tm-cyan);
    font-size: 1.5rem;
    font-weight: 400;
}

.tm-faq-list details[open] summary::after {
    content: "−";
}

.tm-faq-list details p {
    max-width: 760px;
    margin: 0;
    padding: 0 35px 22px 4px;
    color: var(--tm-muted);
    font-size: .94rem;
    line-height: 1.85;
}

.tm-final-cta {
    padding: 86px 0;
    background:
        radial-gradient(ellipse at 50% 110%, rgba(57, 117, 204, .2), transparent 65%),
        linear-gradient(135deg, #0d2037, #0a1728);
    text-align: center;
}

.tm-final-cta-inner {
    max-width: 790px;
}

.tm-final-cta h2 {
    margin: 17px 0;
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    line-height: 1.16;
    letter-spacing: -.045em;
}

.tm-final-cta p {
    margin: 0 auto 27px;
    color: var(--tm-muted);
    line-height: 1.8;
}

.tm-footer {
    background: #050d18;
    border-top: 1px solid var(--tm-line);
}

.tm-footer-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 35px;
    padding-top: 36px;
    padding-bottom: 36px;
}

.tm-footer-main > p {
    color: var(--tm-muted);
    font-size: .84rem;
}

.tm-footer-main nav {
    display: flex;
    flex-wrap: wrap;
    gap: 19px;
}

.tm-footer-main nav a,
.tm-footer-bottom a {
    color: var(--tm-muted);
    font-size: .82rem;
}

.tm-footer-main nav a:hover,
.tm-footer-bottom a:hover {
    color: var(--tm-cyan);
}

.tm-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 19px;
    padding-bottom: 19px;
    border-top: 1px solid var(--tm-line);
    color: #8092a9;
    font-size: .77rem;
}

.typing-master-page a:focus-visible,
.typing-master-page summary:focus-visible {
    outline: 2px solid var(--tm-cyan);
    outline-offset: 4px;
}

@media (max-width: 960px) {
    .tm-nav-wrap {
        gap: 16px;
    }

    .tm-nav {
        gap: 15px;
    }

    .tm-hero-grid {
        gap: 35px;
    }

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

    .tm-method-grid {
        gap: 45px;
    }

    .tm-footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .tm-footer-main nav {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .tm-container {
        width: min(100% - 36px, var(--tm-container));
    }

    .tm-nav-wrap {
        min-height: 72px;
        flex-wrap: wrap;
        justify-content: space-between;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .tm-brand img {
        width: 40px;
        height: 40px;
    }

    .tm-brand strong {
        font-size: .95rem;
    }

    .tm-brand small {
        font-size: .52rem;
    }

    .tm-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: 9px;
        border-top: 1px solid var(--tm-line);
    }

    .tm-nav a {
        font-size: .8rem;
    }

    .tm-nav-actions {
        gap: 13px;
    }

    .tm-nav-actions .tm-button {
        min-height: 40px;
        padding: 9px 13px;
        font-size: .78rem;
    }

    .tm-login {
        font-size: .8rem;
    }

    .tm-hero {
        padding: 67px 0 72px;
    }

    .tm-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tm-hero h1 {
        font-size: clamp(2.7rem, 12vw, 4.2rem);
    }

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

    .tm-hero-visual {
        min-height: 310px;
    }

    .tm-screen {
        width: min(100%, 460px);
    }

    .tm-orbit-one {
        width: 400px;
        height: 400px;
    }

    .tm-orbit-two {
        width: 480px;
        height: 480px;
    }

    .tm-section {
        padding: 69px 0;
    }

    .tm-feature-grid {
        grid-template-columns: 1fr;
    }

    .tm-feature-card {
        min-height: 0;
    }

    .tm-method-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .tm-certificate-inner {
        grid-template-columns: 1fr;
        gap: 42px;
        padding: 32px 25px;
    }

    .tm-certificate-mark {
        width: 155px;
        height: 155px;
    }

    .tm-footer-main {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tm-footer-main nav {
        grid-column: auto;
        gap: 16px;
    }

    .tm-footer-bottom {
        flex-wrap: wrap;
    }
}

@media (max-width: 390px) {
    .tm-actions {
        flex-direction: column;
    }

    .tm-actions .tm-button {
        width: 100%;
    }

    .tm-screen-content {
        padding: 23px 17px 20px;
    }

    .tm-key-row {
        gap: 4px;
    }

    .tm-key-row span {
        font-size: .59rem;
    }

    .tm-screen-content h2 {
        font-size: 1.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .typing-master-page *,
    .typing-master-page *::before,
    .typing-master-page *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}