/* Scrykey public site — shared styles.
   Flat, typographic, generous whitespace. Palette mirrors OnboardingView.swift. */

:root {
    --bg: #000;
    --fg: #fff;
    --fg-dim: rgba(255, 255, 255, 0.78);
    --fg-muted: rgba(255, 255, 255, 0.48);
    --fg-faint: rgba(255, 255, 255, 0.28);
    --rule: rgba(255, 255, 255, 0.08);
    --cyan: rgb(38, 217, 242);
    --link: rgb(115, 217, 242);

    --col: 560px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}

body {
    background:
        radial-gradient(
            ellipse 800px 560px at 50% -80px,
            rgba(26, 140, 166, 0.45) 0%,
            rgba(13, 25, 45, 0) 70%
        ),
        #000;
    background-attachment: fixed;
}

.page {
    max-width: var(--col);
    margin: 0 auto;
    padding: 88px 24px 96px;
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
    text-align: center;
    margin-bottom: 96px;
}

.logo-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 4px;
}

.logo-wrap::before {
    content: "";
    position: absolute;
    inset: -50px;
    background: radial-gradient(
        circle at center,
        rgba(38, 217, 242, 0.45) 0%,
        rgba(38, 217, 242, 0) 60%
    );
    filter: blur(24px);
    z-index: 0;
    pointer-events: none;
    animation: halo-pulse 4.8s ease-in-out infinite;
}

@keyframes halo-pulse {
    0%, 100% { opacity: 0.70; }
    50%      { opacity: 1.00; }
}

.logo {
    position: relative;
    width: 144px;
    height: 144px;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(38, 217, 242, 0.35));
    z-index: 1;
}

.wordmark {
    display: block;
    margin: 8px auto 18px;
    width: 260px;
    max-width: 80%;
    filter: drop-shadow(0 4px 10px rgba(38, 217, 242, 0.25));
}

.tagline {
    font-size: 17px;
    font-weight: 400;
    color: var(--fg-dim);
    letter-spacing: 0.1px;
    margin: 0 0 14px;
}

.byok-line {
    font-size: 14px;
    color: var(--fg-muted);
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.55;
}

.byok-line strong {
    color: var(--fg);
    font-weight: 600;
}

/* --- Section heading (shared small-caps label) ------------------------- */

.pillars > h2,
.cost > h2,
.providers h2 {
    margin: 0 0 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--fg-faint);
}

/* --- How it works (numbered steps) ------------------------------------- */

.pillars {
    margin: 0 0 96px;
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.steps li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 0;
    border-top: 1px solid var(--rule);
}

.steps li:last-child {
    border-bottom: 1px solid var(--rule);
}

.step-num {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--fg-faint);
    color: var(--fg-muted);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.steps h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--fg);
    letter-spacing: -0.1px;
}

.steps p {
    margin: 0;
    font-size: 15px;
    color: var(--fg-muted);
    line-height: 1.55;
}

/* --- Features (flat, typographic) --------------------------------------- */

.features {
    list-style: none;
    margin: 0 0 96px;
    padding: 0;
}

.features li {
    padding: 28px 0;
    border-top: 1px solid var(--rule);
}

.features li:last-child {
    border-bottom: 1px solid var(--rule);
}

.features h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 600;
    color: var(--fg);
    letter-spacing: -0.1px;
}

.features p {
    margin: 0;
    font-size: 15px;
    color: var(--fg-muted);
    line-height: 1.5;
}

/* --- Cost section (figure grid) ---------------------------------------- */

.cost {
    margin: 0 0 96px;
}

.cost-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin: 0 0 24px;
}

.cost-cell {
    padding: 24px 0 0;
    border-top: 1px solid var(--rule);
}

.cost-figure {
    font-size: 34px;
    font-weight: 700;
    color: var(--fg);
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 4px;
}

.cost-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fg-faint);
    margin-bottom: 10px;
}

.cost-cell p {
    margin: 0;
    font-size: 14px;
    color: var(--fg-muted);
    line-height: 1.55;
}

.cost code {
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.88em;
    padding: 1px 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    color: var(--fg);
}

.cost .note {
    margin: 0 0 18px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--fg-muted);
    line-height: 1.55;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--fg-faint);
    border-radius: 2px;
}

.cost .small {
    margin: 0;
    font-size: 13px;
    color: var(--fg-faint);
    letter-spacing: 0.2px;
}

.cost .small a {
    color: var(--fg-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 120ms ease, border-color 120ms ease;
}

.cost .small a:hover {
    color: var(--fg);
    border-bottom-color: var(--fg-muted);
}

/* --- Providers section -------------------------------------------------- */

.providers {
    margin: 0 0 96px;
}

.providers p {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--fg-dim);
    line-height: 1.6;
}

.providers strong {
    color: var(--fg);
    font-weight: 600;
}

/* --- Twin pillars (BYOK + On-device) ----------------------------------- */

.pillars-twin {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 0 0 96px;
    padding: 36px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.pillar h2 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--fg);
    letter-spacing: -0.1px;
    text-transform: none;
}

.pillar p {
    margin: 0;
    font-size: 15px;
    color: var(--fg-muted);
    line-height: 1.55;
}

/* --- Coming soon (quiet text, not a box) ------------------------------- */

.soon {
    text-align: center;
    margin: 0 0 80px;
    font-size: 13px;
    color: var(--fg-faint);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.soon strong {
    color: var(--fg-muted);
    font-weight: 500;
}

/* --- Footer -------------------------------------------------------------- */

.footer {
    font-size: 12px;
    color: var(--fg-faint);
    text-align: center;
    letter-spacing: 0.2px;
}

.footer a {
    color: var(--fg-muted);
    text-decoration: none;
}

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

.footer .dot {
    display: inline-block;
    margin: 0 10px;
    color: var(--fg-faint);
}

/* --- Privacy page typography -------------------------------------------- */

.privacy .back {
    display: inline-block;
    margin: 0 0 40px;
    font-size: 13px;
    color: var(--fg-faint);
    text-decoration: none;
    letter-spacing: 0.2px;
}

.privacy .back:hover {
    color: var(--fg-muted);
}

.privacy h1 {
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.privacy .meta {
    font-size: 13px;
    color: var(--fg-faint);
    margin: 0 0 48px;
    letter-spacing: 0.2px;
}

.privacy h2 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--fg-faint);
    margin: 56px 0 14px;
}

.privacy p {
    font-size: 16px;
    color: var(--fg-dim);
    margin: 0 0 16px;
    line-height: 1.65;
}

.privacy ul {
    padding-left: 22px;
    margin: 0 0 18px;
}

.privacy li {
    font-size: 16px;
    color: var(--fg-dim);
    margin: 0 0 10px;
    line-height: 1.6;
}

.privacy a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px solid rgba(115, 217, 242, 0.3);
    transition: border-color 120ms ease;
}

.privacy a:hover {
    border-bottom-color: var(--link);
}

.privacy code {
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.92em;
    padding: 1px 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    color: var(--fg);
}

.privacy .footer {
    margin-top: 80px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
}

/* --- Small screens ------------------------------------------------------- */

@media (max-width: 520px) {
    html, body { font-size: 16px; }
    .page { padding: 64px 22px 72px; }
    .logo { width: 120px; height: 120px; }
    .wordmark { width: 220px; }
    .hero { margin-bottom: 72px; }
    .pillars { margin-bottom: 72px; }
    .features { margin-bottom: 72px; }
    .cost { margin-bottom: 72px; }
    .providers { margin-bottom: 72px; }
    .pillars-twin {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 72px;
        padding: 32px 0;
    }
    .cost-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .cost-figure { font-size: 30px; }
    .soon { margin-bottom: 56px; }
    .privacy h1 { font-size: 28px; }
    .privacy h2 { margin-top: 44px; }
}
