/* Threatly landing — visual language inspired by fonio.ai
   Scoped primarily to .page-landing; shared tokens update marketing chrome. */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

body.page-landing {
    --bg: #F7F8FC;
    --bg-muted: #EEF0F7;
    --bg-dark: #0f0f16;
    --bg-card: #ffffff;
    --text: #0f0f16;
    --text-secondary: #555B6E;
    --text-muted: #8B90A0;
    --text-on-dark: #F7F8FC;
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.14);
    --accent: #585dfe;
    --accent-hover: #4549e8;
    --accent-soft: #bcc3f6;
    --accent-tint: rgba(88, 93, 254, 0.12);
    --highlight: #585dfe;
    --highlight-hover: #4549e8;
    --mint: #d1f4c7;
    --aqua: #bfeff2;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12);
    --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
    --max-wide: 1120px;
    --header-h: 68px;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
}

/* —— Sticky header (transparent over hero) —— */
body.page-landing .top-bar {
    display: none;
}

body.page-landing .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 248, 252, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, background 0.25s ease;
}

body.page-landing .site-header.is-scrolled {
    border-bottom-color: var(--border);
    background: rgba(247, 248, 252, 0.92);
}

body.page-landing .site-brand__link {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text);
}

body.page-landing .site-header__tools .language-selector select {
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: #fff;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
}

/* —— Hero —— */
body.page-landing .hero {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    display: flex;
    align-items: center;
    padding: 48px 20px 72px;
    overflow: hidden;
    background: transparent;
}

body.page-landing .hero__blobs {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

body.page-landing .hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.85;
    will-change: transform;
}

body.page-landing .hero__blob--1 {
    width: min(720px, 90vw);
    height: min(720px, 90vw);
    left: -28%;
    bottom: -18%;
    background:
        radial-gradient(circle at 35% 40%, var(--accent-soft) 0%, transparent 58%),
        radial-gradient(circle at 60% 60%, var(--aqua) 0%, transparent 55%);
    animation: threatly-drift-1 18s ease-in-out infinite alternate;
}

body.page-landing .hero__blob--2 {
    width: min(520px, 70vw);
    height: min(520px, 70vw);
    right: -18%;
    top: -8%;
    background:
        radial-gradient(circle at 40% 40%, var(--mint) 0%, transparent 55%),
        radial-gradient(circle at 70% 50%, var(--accent-soft) 0%, transparent 60%);
    animation: threatly-drift-2 22s ease-in-out infinite alternate;
}

@keyframes threatly-drift-1 {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(36px, -28px) scale(1.06); }
}

@keyframes threatly-drift-2 {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-28px, 40px) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    body.page-landing .hero__blob {
        animation: none;
    }
}

body.page-landing .hero__inner {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}

body.page-landing .hero__brand {
    margin: 0 0 18px;
    font-size: clamp(2.75rem, 8vw, 4.25rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 1;
    color: var(--text);
    animation: threatly-fade-up 0.7s ease both;
}

body.page-landing .hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 8px 14px 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.86);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    animation: threatly-fade-up 0.7s ease 0.06s both;
}

body.page-landing .hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-tint);
}

body.page-landing .hero h1,
body.page-landing .hero__headline {
    margin: 0 0 14px;
    max-width: 18ch;
    font-size: clamp(1.65rem, 4.2vw, 2.65rem);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: var(--text);
    text-wrap: balance;
    animation: threatly-fade-up 0.7s ease 0.12s both;
}

body.page-landing .hero .subheadline {
    margin: 0 auto 28px;
    max-width: 34em;
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--text-secondary);
    animation: threatly-fade-up 0.7s ease 0.18s both;
}

body.page-landing .hero__orb {
    width: 112px;
    height: 112px;
    margin: 4px auto 28px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, #fff 0%, transparent 42%),
        radial-gradient(circle at 50% 50%, var(--accent) 0%, var(--accent-soft) 42%, var(--aqua) 72%, transparent 78%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 18px 50px rgba(88, 93, 254, 0.35);
    animation: threatly-orb 4.5s ease-in-out infinite;
}

@keyframes threatly-orb {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
    body.page-landing .hero__orb {
        animation: none;
    }
}

body.page-landing .hero__cta {
    width: 100%;
    max-width: 440px;
    animation: threatly-fade-up 0.7s ease 0.24s both;
}

body.page-landing .hero__cta .error,
body.page-landing .hero__cta .success {
    margin-bottom: 12px;
    text-align: left;
}

body.page-landing .hero .signup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

body.page-landing .hero .signup-form input[type="email"],
body.page-landing .hero .signup-form button {
    box-sizing: border-box;
    width: 100%;
    height: 52px;
    min-height: 52px;
    margin: 0;
    padding: 0 18px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.2;
    border-radius: 12px;
}

body.page-landing .hero .signup-form input[type="email"] {
    border: 1px solid var(--border-strong);
    background: #fff;
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

body.page-landing .hero .signup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-tint);
}

body.page-landing .hero .signup-form button,
body.page-landing .btn-fonio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 28px rgba(88, 93, 254, 0.28);
}

body.page-landing .btn-fonio {
    height: 52px;
    min-height: 52px;
    padding: 0 22px;
    box-sizing: border-box;
    border-radius: 12px;
    font-size: 15px;
    text-decoration: none;
}

body.page-landing .hero .signup-form button:hover,
body.page-landing .btn-fonio:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

body.page-landing .hero .access-code-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

@keyframes threatly-fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* —— Sections —— */
body.page-landing .section {
    padding: 88px 20px;
}

body.page-landing .section--muted {
    background: #fff;
}

body.page-landing .section--soft {
    background:
        linear-gradient(180deg, rgba(191, 239, 242, 0.28), rgba(247, 248, 252, 0) 40%),
        var(--bg);
}

body.page-landing .section--dark {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

body.page-landing .section__eyebrow {
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: none;
    font-size: 0.875rem;
    font-weight: 600;
}

body.page-landing .section--dark .section__eyebrow {
    color: var(--accent-soft);
}

body.page-landing .section__title {
    font-weight: 500;
    letter-spacing: -0.03em;
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

body.page-landing .section__lead {
    color: var(--text-secondary);
}

body.page-landing .section--dark .section__lead {
    color: rgba(247, 248, 252, 0.7);
}

/* —— Why / features: open tiles, not heavy cards —— */
body.page-landing .feature-grid {
    gap: 16px;
}

body.page-landing .feature-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: left;
    box-shadow: none;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

body.page-landing .feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-soft);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

body.page-landing .feature-card__icon {
    width: 42px;
    height: 42px;
    margin: 0 0 16px;
    border-radius: 12px;
    background: var(--accent-tint);
    color: var(--accent);
}

body.page-landing .feature-card h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* —— Steps —— */
body.page-landing .step-grid {
    display: grid;
    gap: 14px;
}

@media (min-width: 800px) {
    body.page-landing .step-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

body.page-landing .step-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: left;
    box-shadow: none;
}

body.page-landing .step-card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 14px;
    border-radius: 10px;
    background: var(--bg-dark);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

body.page-landing .step-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.975rem;
    line-height: 1.5;
}

/* —— Alert preview —— */
body.page-landing .section--dark {
    position: relative;
    overflow: hidden;
}

body.page-landing .section--dark::before {
    content: '';
    position: absolute;
    inset: auto -10% -40% auto;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 93, 254, 0.35), transparent 70%);
    pointer-events: none;
}

body.page-landing .alert-carousel__nav {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
}

body.page-landing .alert-carousel__dot.is-active {
    background: var(--accent-soft);
}

/* —— FAQ accordion —— */
body.page-landing .faq-grid.seo-faq {
    max-width: 720px;
    margin: 0 auto;
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px 22px;
}

body.page-landing .faq-item {
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

body.page-landing .faq-item:last-child {
    border-bottom: none;
}

body.page-landing .faq-item summary,
body.page-landing .faq-item dt {
    list-style: none;
    cursor: pointer;
    padding: 18px 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

body.page-landing .faq-item summary::-webkit-details-marker {
    display: none;
}

body.page-landing .faq-item summary::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

body.page-landing .faq-item[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 6px;
}

body.page-landing .faq-item dd,
body.page-landing .faq-item .faq-item__body {
    margin: 0;
    padding: 0 0 18px;
    color: var(--text-secondary);
    font-size: 0.975rem;
    line-height: 1.6;
}

/* —— Closing CTA —— */
body.page-landing .closing-cta {
    position: relative;
    overflow: hidden;
    padding: 96px 20px;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 80% at 20% 100%, rgba(209, 244, 199, 0.55), transparent 55%),
        radial-gradient(ellipse 70% 70% at 90% 10%, rgba(191, 239, 242, 0.55), transparent 50%),
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(188, 195, 246, 0.45), transparent 60%),
        #fff;
}

body.page-landing .closing-cta__inner {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

body.page-landing .closing-cta h2 {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    font-weight: 500;
    letter-spacing: -0.03em;
}

body.page-landing .closing-cta p {
    margin: 0 auto 28px;
    max-width: 34em;
    color: var(--text-secondary);
}

body.page-landing .closing-cta .btn-fonio {
    display: inline-flex;
    text-decoration: none;
}

/* —— Footer —— */
body.page-landing .site-footer {
    background: var(--bg-dark);
    color: rgba(247, 248, 252, 0.78);
    border-top: none;
}

body.page-landing .site-footer__brand {
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.03em;
}

body.page-landing .site-footer a:hover {
    color: var(--accent-soft);
}

@media (max-width: 560px) {
    body.page-landing .hero {
        padding-top: 28px;
        padding-bottom: 56px;
        min-height: auto;
    }

    body.page-landing .hero__orb {
        width: 88px;
        height: 88px;
    }

    body.page-landing .section {
        padding: 64px 20px;
    }
}
