/* Platform landing page — groundsquirrel.cloud
   Single-screen dark hero on the shader background. Font stacks always
   include the invisible Block placeholder so the page paints with correct
   metrics before the real font loads — no layout shift when fonts swap in.
*/

:root {
    --landing-accent: #4ca8a1;
    --landing-accent-glow: rgba(76, 168, 161, 0.5);
    --landing-text: #f4f5f7;
    --landing-muted: #c2c4d4;
    --landing-dim: #9196b0;
}

html:has(body.landing) {
    padding: 0;
    margin: 0;
    display: block;
    background: #000;
}

body.landing {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #000;
    color: var(--landing-text);
    font-family: Nunito, 'Nunito Block';
    position: relative;
    overflow-x: hidden;
}

/* Material Symbols (icon tiles) */
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    src: url('https://fonts.noisefactor.io/fonts/material-symbols-outlined/material-symbols-outlined.woff2') format('woff2');
    font-display: block;
}

.material-symbols {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 1em;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    font-variation-settings: 'FILL' 0;
    width: 1em;
    overflow: hidden;
    text-align: center;
}

/* ===== Background shader + soft vignette ===== */

#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

body.landing::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(76, 168, 161, 0.16), transparent 55%),
        radial-gradient(ellipse at 80% 90%, rgba(118, 92, 255, 0.10), transparent 55%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.85) 60%, rgba(0, 0, 0, 0.92) 100%);
}

/* ===== Brand bar ===== */

.landing-topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    box-sizing: border-box;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--landing-text);
    transition: opacity 0.15s;
}

.brand-link:hover { opacity: 0.85; }

.brand-logo {
    width: 28px;
    height: 28px;
    display: block;
    color: var(--landing-accent);
    filter: drop-shadow(0 0 8px var(--landing-accent-glow));
}

.brand-wordmark {
    font-family: 'Space Grotesk', 'Space Grotesk Block';
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--landing-text);
}

.landing-topbar nav {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

.landing-topbar nav a {
    font-size: 0.85rem;
    color: var(--landing-muted);
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.landing-topbar nav a:hover {
    color: var(--landing-text);
    background: rgba(255, 255, 255, 0.06);
}

/* ===== Main column ===== */

.landing-main {
    position: relative;
    z-index: 2;
    max-width: 64rem;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 2rem 0.75rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    flex: 1 1 auto;
    justify-content: center;
}

/* ===== Row 1: Hero ===== */

.hero {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-width: 46rem;
}

.hero-eyebrow {
    margin: 0;
    font-size: 0.9rem;
    color: var(--landing-muted);
    line-height: 1.5;
}

.hero-headline {
    margin: 0;
    font-family: 'Space Grotesk', 'Space Grotesk Block';
    font-weight: 700;
    font-size: clamp(1.85rem, 4vw, 2.85rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--landing-text);
    /* Two-line headline (line break before "groundsquirrel.cloud.") pins
       the second line's vertical position regardless of which word
       ("auth" / "payments") is in the typewriter slot — the first line
       grows/shrinks horizontally only. */
    min-height: 2.2em;
    position: relative;
    overflow-wrap: anywhere;
}

/* Hanging chevron in the left margin — text position unchanged. */
.hero-headline::before {
    content: "❯";
    position: absolute;
    right: 100%;
    top: 0;
    margin-right: 0.35em;
    color: var(--landing-accent);
    text-shadow: 0 0 24px var(--landing-accent-glow);
    pointer-events: none;
}

.hero-headline .tw-prefix,
.hero-headline .tw-suffix {
    color: inherit;
}

.hero-headline .tw-word { display: inline; }

.hero-headline .accent {
    color: var(--landing-accent);
    text-shadow: 0 0 24px var(--landing-accent-glow);
}

.hero-headline .cursor {
    display: inline-block;
    width: 0.5ch;
    height: 0.95em;
    margin: 0 0.04em;
    vertical-align: -0.12em;
    background: var(--landing-accent);
    box-shadow: 0 0 10px var(--landing-accent-glow);
    animation: cursor-blink 1s steps(2, start) infinite;
}

@keyframes cursor-blink {
    to { visibility: hidden; }
}

.hero-subhead {
    margin: 0;
    font-size: 0.98rem;
    color: var(--landing-muted);
    line-height: 1.5;
    max-width: 38rem;
}

/* ===== Row 2: Icon tile grid (shuffleset glow-only style) ===== */

.feature-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.4rem;
}

.feature-grid li {
    width: 6.25rem;
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    border: none;
    background: transparent;
    padding: 0.35rem 0.3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem;
    transition: transform 0.15s ease;
}

.feature-grid li::before {
    content: "";
    position: absolute;
    inset: -15%;
    background: radial-gradient(circle at center, var(--landing-accent-glow), transparent 60%);
    filter: blur(14px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.feature-grid li:hover { transform: translateY(-1px); }
.feature-grid li:hover::before { opacity: 0.9; }

.feature-icon {
    color: var(--landing-accent);
    font-size: 2rem;
    line-height: 1;
    margin-top: 0.05rem;
    filter: drop-shadow(0 0 8px var(--landing-accent-glow));
}

.feature-label {
    font-family: 'Space Grotesk', 'Space Grotesk Block';
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--landing-text);
    text-align: center;
    letter-spacing: 0.01em;
}

/* ===== Row 3: Closing copy + Used by + CTAs ===== */

.closing {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 44rem;
}

.closing-copy {
    margin: 0;
    color: var(--landing-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.used-by {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.7rem;
    font-size: 0.82rem;
    color: var(--landing-dim);
}

.used-by-label {
    font-family: 'Space Grotesk', 'Space Grotesk Block';
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: var(--landing-muted);
}

.used-by-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--landing-text);
    text-decoration: none;
    padding: 0.15rem 0.35rem;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.used-by-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--landing-accent);
    transform: translateY(-1px);
}

.used-by-logo {
    width: 16px;
    height: 16px;
    color: var(--landing-accent);
    filter: drop-shadow(0 0 6px var(--landing-accent-glow));
    flex-shrink: 0;
}

.used-by-item span { font-weight: 600; letter-spacing: 0.01em; }

.used-by-sep { color: rgba(255, 255, 255, 0.18); }

.cta-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.cta-row a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.25rem;
    font-family: 'Space Grotesk', 'Space Grotesk Block';
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 8px;
    text-decoration: none;
    transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
}

.cta-row .cta {
    background: var(--landing-accent);
    color: #001210;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.cta-row .cta:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--landing-accent-glow), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.cta-row .cta:active { transform: translateY(0); filter: brightness(0.96); }

.cta-row .cta-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--landing-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-row .cta-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

/* ===== Footer ===== */

.landing-footer {
    position: relative;
    z-index: 2;
    max-width: 64rem;
    width: 100%;
    margin: 0 auto;
    padding: 0.55rem 2rem 0.7rem;
    box-sizing: border-box;
    font-size: 0.72rem;
    color: var(--landing-dim);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

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

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

.landing-footer p { margin: 0; }

/* ===== Responsive ===== */

@media (max-width: 48rem) {
    body.landing { overflow-y: auto; }
    .landing-topbar { padding: 0.7rem 1.25rem; }
    .landing-main { padding: 1.25rem 1.25rem 0.5rem; gap: 1.1rem; justify-content: flex-start; }
    .landing-footer { padding: 0.55rem 1.25rem 0.75rem; }
    .feature-grid { gap: 0.4rem; }
    .feature-grid li { width: 5.5rem; }
    .feature-icon { font-size: 1.7rem; }
    .feature-label { font-size: 0.65rem; }
    .hero-eyebrow { font-size: 0.85rem; }
    .hero-subhead { font-size: 0.92rem; }
    .closing-copy { font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-headline .cursor { animation: none; opacity: 0; }
    .feature-grid li, .cta-row a { transition: none; }
}
