/* Discord Translate — landing + docs. Self-contained, no build step.
   Xaeryx house style: monochrome white-on-#0a0a0a, Inter, dot-grid + vignette, glass, shimmer. */

:root {
    --bg: #0a0a0a;
    --bg-soft: #101012;
    --fg: #fafafa;
    --muted: #9a9aa2;
    --line: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-strong: rgba(255, 255, 255, 0.06);
    --you: #3b82f6; /* English / you */
    --partner: #ec4899; /* Indonesian / partner */
    --radius: 16px;
    --maxw: 1080px;
}

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

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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Fixed dot-grid + vignette backdrop */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 80%);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse 60% 50% at 50% -10%, rgba(99, 102, 241, 0.12), transparent 70%);
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.shimmer {
    background: linear-gradient(100deg, #fff 30%, #8b8b94 50%, #fff 70%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
    to {
        background-position: -200% center;
    }
}

/* ---- Nav ---- */
header.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(10, 10, 10, 0.6);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.brand .star {
    font-size: 18px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    color: var(--muted);
}
.nav-links a:hover {
    color: var(--fg);
}
.nav-links .btn {
    color: var(--fg);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--glass-strong);
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}
.btn.primary {
    background: var(--fg);
    color: #0a0a0a;
    border-color: var(--fg);
}
.btn.primary:hover {
    transform: translateY(-1px);
    background: #fff;
}

/* ---- Hero ---- */
.hero {
    text-align: center;
    padding: 96px 0 64px;
    position: relative;
}
.hero .star-hero {
    font-size: 34px;
    opacity: 0.9;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.25));
}
.eyebrow {
    display: inline-block;
    font-size: 13px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 24px;
    background: var(--glass);
}
.hero h1 {
    font-size: clamp(34px, 6vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
    max-width: 16ch;
    margin: 0 auto 20px;
}
.hero p.sub {
    font-size: clamp(16px, 2.4vw, 20px);
    color: var(--muted);
    max-width: 56ch;
    margin: 0 auto 32px;
}
.cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Caption card mockups ---- */
.cards-demo {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 560px;
    margin: 56px auto 0;
}
.cap {
    text-align: left;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.cap.partner {
    border-left-color: var(--partner);
}
.cap.you {
    border-left-color: var(--you);
}
.cap .head {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 8px;
}
.cap .orig {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}
.cap .big {
    font-size: 16px;
    font-weight: 700;
}
.cap .engines {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.cap .engine .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}
.cap .engine .val {
    font-size: 15px;
    font-weight: 600;
}

/* ---- Sections ---- */
section {
    padding: 72px 0;
    border-top: 1px solid var(--line);
}
.section-head {
    text-align: center;
    margin-bottom: 48px;
}
.section-head h2 {
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -0.02em;
    font-weight: 800;
}
.section-head p {
    color: var(--muted);
    margin-top: 12px;
    font-size: 17px;
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
}

/* Feature grid */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.feature {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.feature:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: var(--glass-strong);
}
.feature .ico {
    font-size: 24px;
    margin-bottom: 14px;
}
.feature h3 {
    font-size: 17px;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.feature p {
    color: var(--muted);
    font-size: 14.5px;
}

/* Steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 820px;
    margin: 0 auto;
}
.step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 20px;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 26px;
}
.step .num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: var(--glass-strong);
    border: 1px solid var(--line);
}
.step h3 {
    font-size: 18px;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.step p,
.step li {
    color: var(--muted);
    font-size: 15px;
}
.step ul,
.step ol {
    margin: 10px 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.step a.inline {
    color: var(--fg);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--line);
}
.step a.inline:hover {
    text-decoration-color: var(--fg);
}

/* Code block */
.code {
    position: relative;
    margin-top: 14px;
    background: #0d0d10;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px 18px;
    font-family: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, monospace;
    font-size: 13px;
    color: #cdd0d6;
    overflow-x: auto;
    line-height: 1.7;
}
.code .k {
    color: #8ab4ff;
}
.copy {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    color: var(--muted);
    background: var(--glass-strong);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 4px 9px;
    cursor: pointer;
}
.copy:hover {
    color: var(--fg);
}
.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 8px;
    margin-left: 8px;
    vertical-align: middle;
}
.tag.opt {
    color: #e0b341;
    border-color: rgba(224, 179, 65, 0.4);
}

/* FAQ */
.faq {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq details {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px 20px;
}
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 0;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq summary::-webkit-details-marker {
    display: none;
}
.faq summary::after {
    content: "+";
    color: var(--muted);
    font-size: 20px;
}
.faq details[open] summary::after {
    content: "\2212";
}
.faq details p {
    color: var(--muted);
    padding: 0 0 18px;
    font-size: 15px;
}

/* Footer */
footer {
    border-top: 1px solid var(--line);
    padding: 48px 0;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}
footer .flinks {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 18px;
}
footer .flinks a:hover {
    color: var(--fg);
}

@media (max-width: 820px) {
    .features {
        grid-template-columns: 1fr;
    }
    .nav-links a:not(.btn) {
        display: none;
    }
    .step {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .step .num {
        margin-bottom: 4px;
    }
}
