/* ============================================================
   Synapse Semiconductor — Launch page
   Shares the stealth theme of the main site.
   ============================================================ */

:root {
    --bg: #050608;
    --text: #e9ebee;
    --muted: #8b9099;
    --faint: #565b63;
    --line: rgba(255, 255, 255, 0.08);
    --serif: "Instrument Serif", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
    min-height: 100vh;
    animation: fade 1.2s ease both;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

::selection { background: var(--text); color: var(--bg); }

/* ---------- Moving background ---------- */
.bg {
    position: fixed; inset: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}
.bg-veil {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(120% 80% at 50% 30%, transparent 40%, rgba(5, 6, 8, 0.55) 100%),
        linear-gradient(to bottom, rgba(5, 6, 8, 0.35), transparent 25%, transparent 70%, rgba(5, 6, 8, 0.6));
}
.content { position: relative; z-index: 2; }

/* ---------- Header ---------- */
.head {
    position: relative; z-index: 3;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.6rem clamp(1.4rem, 5vw, 3rem);
    max-width: 760px; margin: 0 auto;
}
.brand {
    font-size: 0.82rem; letter-spacing: 0.04em;
    color: var(--text); text-decoration: none;
}
.brand-mail {
    font-size: 0.8rem; color: var(--faint); text-decoration: none;
    letter-spacing: 0.02em; transition: color 0.3s ease;
}
.brand-mail:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
    position: relative; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    padding: clamp(2rem, 6vh, 4rem) 1.4rem clamp(2rem, 5vh, 3rem);
}
.eyebrow {
    position: relative; z-index: 2;
    font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--muted); font-weight: 400; margin-bottom: 1.1rem;
}
.lede {
    position: relative; z-index: 2;
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.1;
    letter-spacing: -0.01em; color: #fff;
}
.hero-para {
    position: relative; z-index: 2;
    margin: 1.6rem auto 0; max-width: 22em;
    font-size: clamp(0.98rem, 1.7vw, 1.1rem); line-height: 1.7;
    color: var(--text); opacity: 0.82; font-weight: 300; text-wrap: pretty;
}

/* ---------- Steps ---------- */
.paper {
    max-width: 560px; margin: 0 auto;
    padding: clamp(1rem, 4vh, 2.5rem) clamp(1.4rem, 5vw, 2rem) 3rem;
}
.steps { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }

.step {
    display: flex; gap: 1.1rem; align-items: flex-start;
    padding: 1.4rem 1.5rem;
    background: rgba(255, 255, 255, 0.022);
    border: 1px solid var(--line);
    border-radius: 14px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: border-color 0.3s ease, background 0.3s ease;
}
.step:hover { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.035); }

.num {
    flex: 0 0 auto;
    width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--serif); font-size: 1.05rem; color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(40, 70, 120, 0.14);
    margin-top: 0.1rem;
}
.step-body { flex: 1 1 auto; min-width: 0; }
.step-title {
    font-size: 1.02rem; font-weight: 400; color: var(--text);
    margin-bottom: 0.9rem; letter-spacing: -0.005em;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--sans); font-size: 0.85rem; font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text); text-decoration: none; cursor: pointer;
    padding: 0.6rem 1.15rem; border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.25s ease;
}
.btn:hover { background: #fff; color: var(--bg); border-color: #fff; }
.btn[data-pending] { opacity: 0.5; pointer-events: none; }
.btn.copied { background: rgba(80, 170, 120, 0.18); border-color: rgba(120, 210, 150, 0.5); color: #cfefd8; }

/* ---------- Friend message ---------- */
.msg {
    font-size: 0.95rem; line-height: 1.65; color: var(--text);
    opacity: 0.9; font-weight: 300;
    padding: 0.95rem 1.1rem; margin-bottom: 0.9rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--line); border-radius: 10px;
    text-wrap: pretty;
}
.msg-link { color: #9db8e6; }

/* ---------- Footer ---------- */
.foot {
    max-width: 560px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.5rem clamp(1.4rem, 5vw, 2rem) 3rem;
    font-size: 0.75rem; color: var(--faint); letter-spacing: 0.02em;
    border-top: 1px solid var(--line);
}
.foot a { color: var(--faint); text-decoration: none; transition: color 0.3s ease; }
.foot a:hover { color: var(--text); }

@media (max-width: 480px) {
    .step { padding: 1.15rem 1.2rem; gap: 0.9rem; }
    .btn { width: 100%; text-align: center; }
}
