/* landing.css — dark theme, Linear-inspired */

:root {
    /* Background */
    --bg: #08090a;
    --bg-alt: #0e1011;
    --bg-elevated: #141516;
    --bg-dark: #0e1011;

    /* Text */
    --text-h: #f7f8f8;
    --text-p: #d0d6e0;
    --text-muted: #8a8f98;
    --text-dim: #5a5f6a;
    --text-inv: #f7f8f8;

    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);

    /* Shadows */
    --shadow-img: 0 24px 64px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3);

    /* Legacy aliases */
    --text-strong: var(--text-h);
    --text-body: var(--text-p);
    --text-soft: var(--text-muted);
    --accent: var(--text-h);
    --accent-strong: var(--text-h);
    --accent-navy: var(--text-h);
    --accent-hover: #d0d6e0;
    --accent-light: rgba(255, 255, 255, 0.06);
    --text-primary: var(--text-h);
    --text-secondary: var(--text-p);
    --text-tertiary: var(--text-muted);
    --text-invert: var(--text-inv);
    --bg-canvas: var(--bg);
    --bg-surface-1: var(--bg-alt);
    --bg-surface-2: var(--bg-elevated);
    --bg-invert: var(--bg);
    --border-soft: var(--border);
    --line: var(--border);
    --line-strong: var(--border-medium);
    --shadow-lifted: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-hero-img: var(--shadow-img);
}

/* ─── Base ─────────────────────────────────────────────── */

.landing-page {
    background: var(--bg);
    color: var(--text-h);
}

.landing-page a {
    transition: opacity 200ms ease, color 200ms ease;
}

/* ─── Navbar (dark) ────────────────────────────────────── */

.landing-page .site-navbar {
    background: rgba(8, 9, 10, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-page .site-navbar.navbar-scrolled {
    background: rgba(8, 9, 10, 0.92) !important;
    backdrop-filter: blur(16px) !important;
}

.landing-page .site-navbar .max-w-7xl {
    margin-top: 0 !important;
}

.landing-page .site-navbar .h-16 {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: 3.5rem !important;
}

.landing-page .site-nav-link {
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 400;
}

.landing-page .site-nav-link:hover {
    color: var(--text-h);
}

.landing-page .site-nav-action {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.landing-page .nav-cta {
    background: #e6e6e6 !important;
    color: var(--bg) !important;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 6px 14px;
}

.landing-page .nav-cta:hover {
    background: #ffffff !important;
    color: var(--bg) !important;
}

/* ─── CTA Buttons ──────────────────────────────────────── */

.cta-solid {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #e6e6e6;
    color: var(--bg);
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 200ms ease;
    white-space: nowrap;
}

.cta-solid:hover {
    background: #ffffff;
    color: var(--bg);
}

.cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 200ms ease;
    white-space: nowrap;
}

.cta-ghost:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-h);
}

/* ─── Eyebrow Pill ─────────────────────────────────────── */

.eyebrow-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}

.eyebrow-pill-muted {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--text-dim);
}

/* ─── Screenshot Frame ─────────────────────────────────── */

.screenshot-frame {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-img);
}

.screenshot-frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* ─── Reveal animation ─────────────────────────────────── */

[data-animate] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].animate-fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

[data-animate] > [style*="--reveal-delay"] {
    transition-delay: calc(var(--reveal-delay, 0) * 80ms);
}

/* ─── Hero badges / actions ──────────────────────────── */

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* ─── Inline link ──────────────────────────────────────── */

.marketing-inline-link {
    color: var(--text-h);
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 0.8;
}

.marketing-inline-link:hover {
    opacity: 1;
}

/* ─── Legacy: hero orbs (product/studio/pricing) ──────── */

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.4;
    pointer-events: none;
}

.hero-orb-left {
    width: 22rem;
    height: 22rem;
    left: -8rem;
    top: 5rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02), transparent 70%);
}

.hero-orb-right {
    width: 30rem;
    height: 30rem;
    right: -10rem;
    top: 1rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03), transparent 70%);
}

/* ─── Legacy typography (product/studio/pricing) ──────── */

.hero-title {
    font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-h);
    text-wrap: balance;
    margin-top: 1.2rem;
    font-size: clamp(2.45rem, 5.1vw, 4.2rem);
}

.hero-subtitle {
    color: var(--text-p);
    max-width: 34rem;
    margin-top: 1.35rem;
    font-size: clamp(1rem, 1.55vw, 1.12rem);
    line-height: 1.8;
}

.section-kicker {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* ─── Dark override for app-ui components ─────────────── */
/* Community, docs, login pages use app-ui.css components
   that default to light. Force dark when inside .landing-page. */

.landing-page {
    background: var(--bg) !important;
    color: var(--text-h) !important;

    /* Remap app-ui (light-theme) tokens to dark equivalents
       so Tailwind arbitrary values like text-[var(--app-text)]
       and inline styles resolve correctly on dark backgrounds. */
    --app-bg: var(--bg);
    --app-bg-0: var(--bg-alt);
    --app-bg-2: var(--bg-alt);
    --app-bg-3: var(--bg-elevated);
    --app-surface: var(--bg-elevated);
    --app-surface-strong: var(--bg-elevated);
    --app-surface-soft: var(--bg-alt);
    --app-line: var(--border);
    --app-line-strong: var(--border-medium);
    --app-text: var(--text-h);
    --app-text-body: var(--text-p);
    --app-text-soft: var(--text-muted);
    --app-text-muted: var(--text-muted);
    --app-accent: var(--text-h);
    --app-accent-strong: var(--text-h);
    --app-border: var(--border-medium);
    --app-shadow-md: 0 16px 38px rgba(0, 0, 0, 0.3);
    --app-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.landing-page .app-section-head {
    margin-bottom: 2.75rem;
}

.landing-page .app-kicker {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.landing-page .app-title {
    color: #f5f8ff;
}

.landing-page .app-subtitle {
    color: #c2cad8;
}

.landing-page .ui-card {
    background: linear-gradient(180deg, rgba(18, 21, 27, 0.95), rgba(14, 18, 24, 0.98));
    border: 1px solid rgba(160, 166, 176, 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 28px rgba(0, 0, 0, 0.35);
}

.landing-page .ui-card:hover {
    border-color: rgba(186, 192, 203, 0.62);
    background: linear-gradient(180deg, rgba(20, 24, 31, 0.96), rgba(16, 20, 27, 0.99));
}

.landing-page .ui-input,
.landing-page input[type="text"],
.landing-page input[type="search"] {
    background: #0b111a !important;
    border: 1px solid rgba(162, 181, 214, 0.56) !important;
    color: #edf3ff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.landing-page .ui-input::placeholder,
.landing-page input::placeholder {
    color: #8d9ab0 !important;
}

.landing-page .ui-input:focus,
.landing-page input[type="text"]:focus,
.landing-page input[type="search"]:focus {
    border-color: rgba(133, 169, 238, 0.72) !important;
    box-shadow: 0 0 0 3px rgba(82, 126, 212, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.landing-page .community-search-btn {
    background: linear-gradient(135deg, #f4f7ff 0%, #e5ecff 100%) !important;
    color: #0a1630 !important;
    border: 1px solid rgba(209, 223, 255, 0.92);
}

.landing-page .community-search-btn:hover {
    background: linear-gradient(135deg, #ffffff 0%, #edf2ff 100%) !important;
    color: #081226 !important;
}

.landing-page .community-filter-chip {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-page .community-filter-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-p);
    border-color: rgba(255, 255, 255, 0.14);
}

.landing-page .community-filter-chip.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-h);
    border-color: rgba(255, 255, 255, 0.18);
    font-weight: 700;
}

.landing-page .community-sort-link {
    color: var(--text-muted);
}

.landing-page .community-sort-link:hover {
    color: var(--text-p);
}

.landing-page .community-sort-link.is-active {
    color: var(--text-h);
    font-weight: 700;
}

.landing-page .community-item h3,
.landing-page .docs-tile h3 {
    color: var(--text-h) !important;
}

.landing-page .community-item p,
.landing-page .docs-tile p {
    color: var(--text-p) !important;
}

.landing-page .community-item .ui-chip {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.landing-page .community-item .ui-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.landing-page .community-filter-panel {
    border-color: rgba(160, 166, 176, 0.52);
    background: linear-gradient(180deg, rgba(18, 22, 29, 0.97), rgba(14, 18, 24, 0.99));
}

.landing-page .community-meta-pane {
    color: var(--text-p);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .landing-page .community-meta-pane {
        border-top: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.landing-page .docs-tile-icon {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-page .docs-tile svg {
    color: var(--text-p) !important;
}

.landing-page .docs-gpts-badge {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

/* Auth page (login/register) */
.landing-page .auth-card,
.landing-page [class*="auth"] {
    background: var(--bg-elevated) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

.landing-page .auth-card h1,
.landing-page .auth-card h2,
.landing-page .ui-auth-card h1,
.landing-page .ui-auth-card h2 {
    color: var(--text-h) !important;
}
