:root {
    --ink: #164778;
    --paper: #ffffff;
    --amber: #2e8bc9;
    --text: #1a1a1a;
    --hairline: #dce3ea;
    --ink-soft: #1f5a93;
    --paper-dim: #f2f6fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.translate-landing {
    background: var(--paper);
    color: var(--text);
    font-family: "Heebo", sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.translate-landing h1,
.translate-landing h2,
.translate-landing h3,
.translate-landing .display {
    font-family: "Frank Ruhl Libre", serif;
    font-weight: 900;
    letter-spacing: 0;
}

.translate-landing .mono {
    font-family: "JetBrains Mono", monospace;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.translate-landing a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 243, 236, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--hairline);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    max-width: 1080px;
    margin: 0 auto;
    gap: 18px;
}

.logo {
    font-family: "Frank Ruhl Libre", serif;
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    min-height: 36px;
}

.logo span {
    color: var(--amber);
}

.logo img {
    display: block;
    max-width: 150px;
    max-height: 42px;
    object-fit: contain;
}

.translate-landing .nav-cta {
    background: var(--ink);
    color: var(--paper);
    padding: 10px 22px;
    border-radius: 3px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.nav-cta:hover {
    background: var(--ink-soft);
}

.hero {
    padding: 64px 0 56px;
    border-bottom: 1px solid var(--hairline);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 22px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(46, 139, 201, 0.5);
    }

    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 6px rgba(46, 139, 201, 0);
    }
}

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.12;
    color: var(--ink);
    max-width: 780px;
}

.hero h1 em {
    font-style: normal;
    color: var(--amber);
}

.hero p.lede {
    margin-top: 22px;
    font-size: 1.15rem;
    color: #3a3a3a;
    max-width: 580px;
    font-weight: 400;
}

.caption-rig {
    margin-top: 44px;
    background: var(--ink);
    border-radius: 6px;
    padding: 26px 28px 22px;
    position: relative;
    overflow: hidden;
}

.caption-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(247, 243, 236, 0.09);
}

.caption-row:last-child {
    border-bottom: none;
}

.caption-tag {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
    color: rgba(247, 243, 236, 0.45);
    min-width: 38px;
    text-align: left;
    direction: ltr;
}

.caption-text {
    font-family: "Heebo", sans-serif;
    color: var(--paper);
    font-size: 1.05rem;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--amber);
    width: 0;
    animation: typeIn 2.4s steps(40, end) forwards, blinkCaret 0.75s step-end infinite;
}

.caption-row:nth-child(1) .caption-text {
    animation-delay: 0.1s;
    direction: rtl;
}

.caption-row:nth-child(2) .caption-text {
    animation-delay: 2.6s;
    border-color: transparent;
}

.caption-row:nth-child(3) .caption-text {
    animation-delay: 3.4s;
    border-color: transparent;
}

.caption-row:nth-child(4) .caption-text {
    animation-delay: 4.2s;
    border-color: transparent;
}

@keyframes typeIn {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blinkCaret {
    50% {
        border-color: transparent;
    }
}

.caption-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(247, 243, 236, 0.09);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    color: rgba(247, 243, 236, 0.55);
}

.caption-foot b {
    color: var(--amber);
    font-weight: 500;
}

.hero-ctas {
    margin-top: 32px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 3px;
    font-size: 0.98rem;
    font-weight: 600;
    transition: transform 0.15s ease, background 0.2s ease;
}

.translate-landing .btn-primary {
    background: var(--ink);
    color: var(--paper);
}

.btn-primary:hover {
    background: var(--ink-soft);
    transform: translateY(-1px);
}

.btn-ghost {
    border: 1.5px solid var(--ink);
    color: var(--ink);
}

.btn-ghost:hover {
    background: var(--ink);
    color: var(--paper);
}

.translate-landing section {
    padding: 56px 0;
}

.section-head {
    margin-bottom: 32px;
    max-width: 640px;
}

.section-head .tag {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 10px;
}

.section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--ink);
}

.proof {
    border-bottom: 1px solid var(--hairline);
    padding: 48px 0 52px;
}

.proof-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.proof-head .tag {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.proof-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 16px;
}

.proof-card {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--hairline);
    background: var(--ink);
}

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

.proof-card.tall {
    grid-row: span 2;
}

.proof-card .cap {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 18px 18px 14px;
    background: linear-gradient(to top, rgba(14, 47, 51, 0.92), rgba(14, 47, 51, 0));
    color: var(--paper);
}

.proof-card .cap .k {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 4px;
}

.proof-card .cap .t {
    font-size: 0.95rem;
    font-weight: 600;
}

.proof-pair {
    display: grid;
    gap: 16px;
}

.proof-pair .proof-card {
    aspect-ratio: 16 / 10.4;
}

.audience {
    border-bottom: 1px solid var(--hairline);
}

.aud-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--hairline);
    border: 1px solid var(--hairline);
}

.aud-card {
    background: var(--paper);
    padding: 30px 28px;
}

.aud-card .num {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: var(--ink-soft);
    margin-bottom: 14px;
    display: block;
}

.aud-card h3 {
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: 10px;
    font-weight: 700;
    font-family: "Heebo", sans-serif;
}

.aud-card p {
    color: #444444;
    font-size: 0.97rem;
}

.aud-card ul {
    margin-top: 14px;
    padding-right: 18px;
    color: #444444;
    font-size: 0.93rem;
}

.aud-card li {
    margin-bottom: 6px;
}

.how {
    background: var(--ink);
    color: var(--paper);
}

.how .section-head h2 {
    color: var(--paper);
}

.how .tag {
    color: var(--amber);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 8px;
}

.step {
    padding-right: 18px;
    border-right: 2px solid rgba(46, 139, 201, 0.4);
}

.step .step-n {
    font-family: "JetBrains Mono", monospace;
    color: var(--amber);
    font-size: 0.85rem;
}

.step h4 {
    margin: 10px 0 6px;
    font-size: 1.05rem;
    font-weight: 600;
}

.step p {
    font-size: 0.92rem;
    color: rgba(247, 243, 236, 0.75);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}

.why-grid p {
    color: #3a3a3a;
    font-size: 1rem;
}

.facts {
    display: grid;
    gap: 18px;
    margin-top: 4px;
}

.fact {
    background: var(--paper-dim);
    border: 1px solid var(--hairline);
    border-radius: 4px;
    padding: 18px 20px;
}

.fact .f-num {
    font-family: "JetBrains Mono", monospace;
    color: var(--ink);
    font-weight: 500;
    font-size: 1.4rem;
}

.fact .f-label {
    font-size: 0.88rem;
    color: #555555;
    margin-top: 4px;
}

.langs {
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.lang-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.lang-tag {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    border: 1px solid var(--hairline);
    border-radius: 20px;
    padding: 6px 14px;
    color: var(--ink-soft);
}

.lead {
    background: var(--paper-dim);
}

.lead-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: start;
}

.lead-copy h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    color: var(--ink);
    margin-bottom: 14px;
}

.lead-copy p {
    color: #444444;
    margin-bottom: 20px;
}

.quick-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.quick-contact a {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    color: var(--ink);
    font-size: 0.98rem;
    padding: 12px 16px;
    border: 1px solid var(--hairline);
    border-radius: 6px;
    background: var(--paper);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.quick-contact a:hover {
    color: var(--ink);
    border-color: var(--ink);
    box-shadow: 0 10px 22px rgba(22, 71, 120, 0.13);
    transform: translateY(-2px);
}

.quick-contact .ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
    border-radius: 999px;
    background: var(--paper-dim);
    color: var(--ink);
    transition: background 0.2s ease, color 0.2s ease;
}

.quick-contact a:hover .ic {
    background: var(--ink);
    color: var(--paper);
}

.qc-label {
    line-height: 1.3;
    word-break: break-word;
}

.lead-form,
.lead-success {
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: 6px;
    padding: 30px;
}

.field {
    margin-bottom: 16px;
}

.translate-landing label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.translate-landing input,
.translate-landing select,
.translate-landing textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--hairline);
    border-radius: 3px;
    background: #ffffff;
    font-family: "Heebo", sans-serif;
    font-size: 0.95rem;
    color: var(--text);
}

.translate-landing input:focus,
.translate-landing select:focus,
.translate-landing textarea:focus {
    outline: 2px solid var(--amber);
    outline-offset: 1px;
    border-color: var(--amber);
}

.translate-landing textarea {
    resize: vertical;
    min-height: 80px;
}

.translate-landing .is-invalid {
    border-color: #b42318;
}

.field-error,
.form-alert {
    color: #b42318;
    font-size: 0.82rem;
    margin-top: 7px;
}

.form-alert {
    background: #fff3f1;
    border: 1px solid #ffd7d2;
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.submit-btn {
    width: 100%;
    background: var(--ink);
    color: var(--paper);
    border: none;
    padding: 15px;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: "Heebo", sans-serif;
}

.submit-btn:hover {
    background: var(--ink-soft);
}

.form-note {
    font-size: 0.78rem;
    color: #777777;
    margin-top: 10px;
    text-align: center;
}

.lead-success {
    text-align: center;
}

.lead-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.lead-success h2 {
    color: var(--ink);
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.lead-success p {
    color: #444444;
    margin-bottom: 18px;
}

.lead-success .btn {
    justify-content: center;
}

.translate-footer {
    background: var(--ink);
    color: rgba(247, 243, 236, 0.7);
    padding: 34px 0;
    font-size: 0.85rem;
}

.foot-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.translate-footer a:hover {
    color: var(--amber);
}

.foot-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.foot-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 1rem;
    border-radius: 999px;
    color: rgba(247, 243, 236, 0.7);
    background: rgba(247, 243, 236, 0.08);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.foot-social a:hover {
    color: var(--ink);
    background: var(--paper);
    transform: translateY(-2px);
}

@media (max-width: 820px) {
    .lead-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .proof-grid {
        grid-template-columns: 1fr;
    }

    .proof-card.tall {
        aspect-ratio: 4 / 3;
        grid-row: auto;
    }

    .aud-grid,
    .steps,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .caption-text {
        white-space: normal;
        width: auto;
        animation: none;
        border-right: 0;
    }

    .hero {
        padding-top: 46px;
    }

    .nav-inner {
        padding: 14px 20px;
    }
}
