/* RemoteAll Desk website mockup — shared styles */

:root {
    --accent:        #FF4500;
    --accent-soft:   #FF6B35;
    --accent-glow:   rgba(255, 69, 0, 0.18);
    --bg:            #FFFFFF;
    --bg-alt:        #F7F7F9;
    --bg-dark:       #0F0F12;
    --bg-dark-2:     #1A1A1F;
    --text:          #1A1A1F;
    --text-muted:    #6B6B73;
    --text-on-dark:  #F5F5F7;
    --text-on-dark-muted: #9999A0;
    --border:        #E5E5EA;
    --radius:        12px;
    --radius-sm:     6px;
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-md:     0 4px 16px rgba(0,0,0,0.06), 0 12px 40px rgba(0,0,0,0.06);
    --font:          -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
                     "Malgun Gothic", "Pretendard", "Helvetica Neue", Arial, sans-serif;
    --mono:          "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ─── Navbar ──────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nav-logo {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
}
.nav-logo .dot { color: var(--accent); }
.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}
.nav-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: background .15s ease;
}
.nav-cta:hover { background: var(--accent-soft); }

/* ─── Generic section ─────────────────────────────────────── */
section { padding: 96px 24px; }
.section-narrow { padding: 64px 24px; }
.container {
    max-width: 1180px;
    margin: 0 auto;
}
.container-narrow {
    max-width: 880px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
h1, h2, h3 { letter-spacing: -0.02em; }
h1 {
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 20px;
}
h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 16px;
}
h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}
p.lede {
    font-size: 19px;
    color: var(--text-muted);
    margin: 0 0 32px;
}

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
    padding: 72px 24px 96px;
    background:
        radial-gradient(800px 400px at 50% -100px, var(--accent-glow), transparent 60%),
        var(--bg);
    text-align: center;
}
.hero h1 {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}
.hero p.lede {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
.hero-cta-row {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, background .15s ease;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-soft); }
.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--text); }
.btn:active { transform: translateY(1px); }

/* ─── Spec strip ──────────────────────────────────────────── */
.spec-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.spec-strip .item {
    text-align: center;
}
.spec-strip .num {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1;
}
.spec-strip .label {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ─── Feature grid ────────────────────────────────────────── */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.card {
    padding: 32px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .15s ease, transform .15s ease;
}
.card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.card .icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--accent-glow);
    color: var(--accent);
    margin-bottom: 18px;
}
.card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 15px;
}
.card.compact { padding: 24px; }

/* ─── Alt-bg section ──────────────────────────────────────── */
.alt-bg { background: var(--bg-alt); }
.dark-bg {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}
.dark-bg .lede, .dark-bg p { color: var(--text-on-dark-muted); }
.dark-bg .card {
    background: var(--bg-dark-2);
    border-color: #2A2A30;
    color: var(--text-on-dark);
}
.dark-bg .card p { color: var(--text-on-dark-muted); }

/* ─── 60fps gauge ─────────────────────────────────────────── */
.gauge-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.gauge {
    padding: 28px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.gauge .v {
    font-size: 56px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.04em;
}
.gauge .v small { font-size: 18px; color: var(--text-muted); margin-left: 4px; }
.gauge .l { font-size: 14px; color: var(--text-muted); margin-top: 8px; }
.gauge .bar {
    margin-top: 16px;
    height: 6px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}
.gauge .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    border-radius: 999px;
    animation: fillBar 1.4s ease-out both;
}
@keyframes fillBar {
    from { width: 0; }
}

/* ─── NAT diagram ─────────────────────────────────────────── */
.nat-diagram {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 32px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 32px;
    overflow-x: auto;
}
.nat-node {
    text-align: center;
    padding: 18px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    min-width: 140px;
}
.nat-node .glyph {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 6px;
}
.nat-node .t { font-weight: 700; font-size: 14px; }
.nat-node .s { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.nat-arrow {
    color: var(--accent);
    font-size: 22px;
    line-height: 1;
}

/* ─── Code block ──────────────────────────────────────────── */
pre {
    font-family: var(--mono);
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 20px 24px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 13.5px;
    line-height: 1.5;
}
pre .k { color: #FFB37C; }
pre .s { color: #B5E48C; }
pre .c { color: #76798A; font-style: italic; }
code.inline {
    font-family: var(--mono);
    background: var(--bg-alt);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.92em;
    border: 1px solid var(--border);
}

/* ─── FAQ list ────────────────────────────────────────────── */
.faq {
    border-top: 1px solid var(--border);
}
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 24px 4px;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    color: var(--accent);
    font-size: 22px;
    font-weight: 400;
    transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .body {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}
.faq-item .body strong { color: var(--text); }
.faq-cat {
    margin-top: 56px;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ─── Footer ──────────────────────────────────────────────── */
footer {
    background: var(--bg-dark);
    color: var(--text-on-dark-muted);
    padding: 56px 24px 32px;
    font-size: 14px;
}
footer .container {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
}
footer h4 {
    color: var(--text-on-dark);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 16px;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; }
footer a:hover { color: var(--text-on-dark); }
.foot-bottom {
    max-width: 1180px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid #2A2A30;
    font-size: 12px;
}

/* ─── Tables ──────────────────────────────────────────────── */
table.spec {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}
table.spec th, table.spec td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14.5px;
}
table.spec th {
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-alt);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ─── Steps ───────────────────────────────────────────────── */
.steps {
    counter-reset: step;
    display: grid;
    gap: 16px;
    margin-top: 24px;
}
.steps .step {
    padding: 20px 24px 20px 60px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
}
.steps .step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 20px;
    top: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

/* ─── Form ────────────────────────────────────────────────── */
form.contact-form {
    display: grid;
    gap: 16px;
    background: var(--bg);
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
form.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}
form.contact-form input,
form.contact-form textarea,
form.contact-form select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: border-color .15s ease;
}
form.contact-form input:focus,
form.contact-form textarea:focus,
form.contact-form select:focus {
    outline: none;
    border-color: var(--accent);
}
form.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

/* ─── Util ────────────────────────────────────────────────── */
.tc { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.muted { color: var(--text-muted); }
hr.spacer { border: 0; height: 0; margin: 64px 0; }
.tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 720px) {
    section { padding: 64px 20px; }
    .nav-links { gap: 16px; }
    .nav-links a:not(.nav-cta) { display: none; }
    footer .container { grid-template-columns: 1fr; gap: 32px; }
    .nat-diagram { grid-template-columns: 1fr; }
    .nat-arrow { transform: rotate(90deg); }
}
