:root {
    --bg: #07111f;
    --bg-2: #0d1728;
    --text: #0f172a;
    --muted: #64748b;
    --white: #ffffff;
    --soft: #f6f8fb;
    --line: rgba(148, 163, 184, 0.22);
    --green: #20d466;
    --green-dark: #0ba64b;
    --blue: #33a4ff;
    --purple: #7758ff;
    --dark-card: rgba(15, 23, 42, 0.72);
    --radius: 28px;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
    --shadow-strong: 0 35px 100px rgba(15, 23, 42, 0.28);
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

img, svg {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 1.1rem;
}

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

h1 {
    font-size: clamp(3rem, 7vw, 6.6rem);
}

h2 {
    font-size: clamp(2.25rem, 4vw, 4.4rem);
}

h3 {
    font-size: 1.35rem;
}

ul {
    padding-left: 1.25rem;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    width: min(860px, calc(100% - 40px));
}

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link:focus {
    left: 20px;
    top: 20px;
    width: auto;
    height: auto;
    padding: 12px 16px;
    clip: auto;
    background: var(--white);
    color: var(--text);
    border-radius: 12px;
    z-index: 9999;
}

.site-header {
    position: fixed;
    inset: 18px 0 auto 0;
    z-index: 1000;
    transition: all 240ms ease;
}

.site-header.scrolled .header-inner {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    border-color: rgba(226, 232, 240, 0.9);
}

.header-inner {
    min-height: 74px;
    padding: 12px 14px 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(7, 17, 31, 0.56);
    backdrop-filter: blur(18px);
    color: var(--white);
    transition: all 240ms ease;
}

.site-header.scrolled .header-inner {
    color: var(--text);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 850;
    letter-spacing: -0.04em;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: inline-grid;
    place-items: center;
    color: #05120b;
    background: linear-gradient(135deg, var(--green), #a4ffcd);
    box-shadow: 0 16px 34px rgba(32, 212, 102, 0.28);
}

.custom-logo-link img {
    max-height: 44px;
    width: auto;
    display: block;
}

.primary-nav {
    margin-left: auto;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.menu a {
    display: inline-flex;
    align-items: center;
    padding: 11px 13px;
    border-radius: 999px;
    color: currentColor;
    font-size: 0.93rem;
    opacity: 0.86;
    transition: 180ms ease;
}

.menu a:hover,
.menu a:focus {
    opacity: 1;
    background: rgba(255, 255, 255, 0.12);
}

.site-header.scrolled .menu a:hover,
.site-header.scrolled .menu a:focus {
    background: rgba(15, 23, 42, 0.06);
}

.header-cta,
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    border: 0;
    font-weight: 780;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    white-space: nowrap;
}

.header-cta {
    padding: 13px 18px;
    background: linear-gradient(135deg, var(--green), #7effaf);
    color: #04130a;
    box-shadow: 0 16px 34px rgba(32, 212, 102, 0.22);
}

.header-cta:hover,
.btn:hover {
    transform: translateY(-2px);
}

.btn {
    min-height: 54px;
    padding: 16px 23px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green), #9cffc4);
    color: #04130a;
    box-shadow: 0 18px 44px rgba(32, 212, 102, 0.28);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.section .btn-secondary,
.section-muted .btn-secondary,
.prose .btn-secondary {
    color: var(--text);
    background: var(--white);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    padding: 0;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    margin: 5px auto;
    border-radius: 2px;
    transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
    position: relative;
    min-height: 100vh;
    padding: 166px 0 80px;
    background:
        radial-gradient(circle at 15% 18%, rgba(32, 212, 102, 0.24), transparent 30%),
        radial-gradient(circle at 85% 18%, rgba(119, 88, 255, 0.38), transparent 32%),
        linear-gradient(135deg, #06101d 0%, #0b1425 48%, #0f1a31 100%);
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 58px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(32, 212, 102, 0.12);
    color: var(--green);
    font-size: 0.82rem;
    font-weight: 820;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-subtitle {
    max-width: 690px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(1.08rem, 1.7vw, 1.3rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-trust {
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.95rem;
}

.hero-visual {
    min-height: 620px;
    position: relative;
}

.phone-mockup {
    position: absolute;
    right: 64px;
    top: 10px;
    width: 330px;
    padding: 16px;
    border-radius: 42px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,248,255,0.92));
    color: var(--text);
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(255,255,255,0.6);
}

.phone-top {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 14px;
}

.phone-top span {
    width: 6px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 50%;
}

.chat-header {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px;
    border-radius: 24px;
    background: #0f172a;
    color: var(--white);
}

.chat-header small {
    display: block;
    color: var(--green);
}

.avatar-dot {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--green), var(--blue));
    display: grid;
    place-items: center;
    font-weight: 900;
}

.chat-area {
    padding: 18px 6px 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bubble {
    max-width: 88%;
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 0.92rem;
    line-height: 1.4;
}

.bubble.bot {
    background: #eef2ff;
    align-self: flex-start;
}

.bubble.user {
    background: #dcfce7;
    align-self: flex-end;
}

.bubble.success {
    background: #052e16;
    color: var(--white);
}

.option-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.option-row span {
    padding: 8px 10px;
    border: 1px solid #dbeafe;
    color: #2563eb;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 760;
    background: #eff6ff;
}

.dashboard-card {
    position: absolute;
    left: 0;
    bottom: 54px;
    width: 420px;
    padding: 24px;
    border-radius: 30px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(20px);
}

.card-header-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.card-header-line span {
    color: rgba(255,255,255,0.64);
}

.card-header-line strong {
    color: var(--green);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 18px 0;
}

.metric-grid div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.metric-grid small {
    display: block;
    color: rgba(255,255,255,0.6);
}

.metric-grid strong {
    display: block;
    margin-top: 4px;
}

.sync-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.72);
}

.sync-line i {
    flex: 1;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green), var(--purple));
}

.floating-card {
    animation: floatY 6s ease-in-out infinite;
}

.alt-card {
    animation-delay: -2s;
}

.floating-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: 0.9;
}

.orb-one {
    width: 170px;
    height: 170px;
    right: 0;
    bottom: 95px;
    background: rgba(32, 212, 102, 0.22);
}

.orb-two {
    width: 110px;
    height: 110px;
    left: 120px;
    top: 40px;
    background: rgba(119, 88, 255, 0.22);
}

.logo-strip {
    background: #07111f;
    color: rgba(255,255,255,0.68);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.strip-inner {
    min-height: 92px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section {
    padding: 116px 0;
}

.section-muted {
    background:
        radial-gradient(circle at 12% 10%, rgba(32, 212, 102, 0.10), transparent 26%),
        linear-gradient(180deg, #f8fafc, #eef4fb);
}

.section-dark {
    background:
        radial-gradient(circle at 80% 12%, rgba(32, 212, 102, 0.18), transparent 28%),
        linear-gradient(135deg, #07111f, #101827);
    color: var(--white);
}

.section-heading {
    width: min(780px, 100%);
    margin: 0 auto 56px;
    text-align: center;
}

.section-heading.left {
    text-align: left;
    margin: 0;
}

.section-heading p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 1.08rem;
}

.section-dark .section-heading p {
    color: rgba(255,255,255,0.7);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card,
.step-card,
.pricing-card,
.security-card,
.content-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-card {
    padding: 30px;
    min-height: 265px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover,
.pricing-card:hover,
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.16);
    border-color: rgba(32, 212, 102, 0.24);
}

.icon-badge {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(32, 212, 102, 0.16), rgba(51, 164, 255, 0.16));
    color: var(--green-dark);
    font-weight: 900;
}

.feature-card p,
.step-card p,
.pricing-card p {
    margin-top: 12px;
    color: var(--muted);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.step-card {
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.step-card span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 50%;
    color: #04130a;
    font-weight: 900;
    background: linear-gradient(135deg, var(--green), #a4ffcd);
}

.integration-grid {
    display: grid;
    grid-template-columns: 0.82fr 1fr;
    gap: 56px;
    align-items: center;
}

.integration-copy p {
    color: var(--muted);
    font-size: 1.08rem;
}

.flow-panel {
    min-height: 440px;
    padding: 44px;
    border-radius: 38px;
    background:
        radial-gradient(circle at 70% 20%, rgba(119, 88, 255, 0.16), transparent 30%),
        #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.flow-node {
    padding: 22px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    background: var(--white);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.flow-node strong {
    font-size: 1.08rem;
}

.flow-node small {
    color: var(--muted);
}

.webot-node {
    background: #07111f;
    color: var(--white);
}

.webot-node small {
    color: rgba(255,255,255,0.62);
}

.flow-arrow {
    width: 3px;
    height: 36px;
    margin-left: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--green), var(--purple));
    position: relative;
}

.notification-grid {
    display: grid;
    grid-template-columns: 0.72fr 1fr;
    gap: 56px;
    align-items: center;
}

.notification-stack {
    display: grid;
    gap: 16px;
}

.notification-card {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(14px);
}

.notification-card p {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.72);
}

.security-card {
    padding: 44px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 34px;
    align-items: start;
    background:
        radial-gradient(circle at 90% 20%, rgba(32, 212, 102, 0.16), transparent 24%),
        var(--white);
}

.security-card p {
    color: var(--muted);
    font-size: 1.08rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

.pricing-card {
    padding: 32px;
    position: relative;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.pricing-card.featured {
    background: #07111f;
    color: var(--white);
    transform: translateY(-10px);
}

.pricing-card.featured p,
.pricing-card.featured li {
    color: rgba(255,255,255,0.72);
}

.plan-badge {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(32, 212, 102, 0.16);
    color: var(--green);
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pricing-card ul {
    margin: 24px 0 28px;
    padding: 0;
    list-style: none;
}

.pricing-card li {
    margin: 12px 0;
    color: var(--muted);
    padding-left: 28px;
    position: relative;
}

.pricing-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 900;
}

.cta-section {
    padding: 116px 0;
    background: #07111f;
    color: var(--white);
}

.cta-card {
    padding: clamp(42px, 7vw, 80px);
    border-radius: 42px;
    background:
        radial-gradient(circle at 20% 20%, rgba(32, 212, 102, 0.22), transparent 25%),
        radial-gradient(circle at 80% 10%, rgba(119, 88, 255, 0.28), transparent 24%),
        linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
    border: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    box-shadow: var(--shadow-strong);
}

.cta-card p {
    width: min(760px, 100%);
    margin: 20px auto 30px;
    color: rgba(255,255,255,0.72);
    font-size: 1.1rem;
}

.site-footer {
    padding: 76px 0 28px;
    background: #050b14;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.8fr 0.8fr 1fr;
    gap: 36px;
}

.footer-brand p,
.footer-column p,
.footer-bottom {
    color: rgba(255,255,255,0.62);
}

.footer-brand p {
    max-width: 360px;
    margin-top: 18px;
}

.footer-logo {
    color: var(--white);
}

.footer-column h3 {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.62);
    transition: 160ms ease;
}

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

.footer-bottom {
    margin-top: 54px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.92rem;
}

.page-hero {
    padding: 170px 0 86px;
    color: var(--white);
    background:
        radial-gradient(circle at 15% 12%, rgba(32, 212, 102, 0.24), transparent 28%),
        radial-gradient(circle at 80% 20%, rgba(119, 88, 255, 0.32), transparent 28%),
        linear-gradient(135deg, #07111f, #121a2d);
}

.compact-hero p {
    color: rgba(255,255,255,0.72);
    font-size: 1.08rem;
    margin-top: 18px;
}

.content-section {
    padding: 80px 0 110px;
}

.prose {
    font-size: 1.05rem;
    color: #334155;
}

.prose h2,
.prose h3 {
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose a {
    color: var(--green-dark);
    font-weight: 750;
}

.contact-grid,
.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 28px;
    align-items: start;
}

.content-card {
    padding: 34px;
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.contact-list li {
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
}

.webot-form {
    display: grid;
    gap: 14px;
}

.webot-form label {
    display: grid;
    gap: 8px;
    font-weight: 760;
}

.webot-form input,
.webot-form textarea,
.webot-form select {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    background: #f8fafc;
    color: var(--text);
}

.webot-form textarea {
    min-height: 140px;
    resize: vertical;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 90ms; }
.delay-2 { transition-delay: 180ms; }
.delay-3 { transition-delay: 270ms; }
.delay-4 { transition-delay: 360ms; }

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1080px) {
    .header-cta {
        display: none;
    }

    .hero-grid,
    .integration-grid,
    .notification-grid,
    .security-card,
    .contact-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 560px;
    }

    .feature-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .site-header {
        inset: 12px 0 auto 0;
    }

    .header-inner {
        border-radius: 26px;
        color: var(--white);
    }

    .nav-toggle {
        display: block;
        color: currentColor;
    }

    .primary-nav {
        position: fixed;
        top: 94px;
        left: 20px;
        right: 20px;
        display: none;
        padding: 18px;
        border-radius: 26px;
        background: rgba(7, 17, 31, 0.97);
        color: var(--white);
        border: 1px solid rgba(255,255,255,0.12);
        box-shadow: var(--shadow-strong);
    }

    body.nav-open .primary-nav {
        display: block;
    }

    .menu {
        display: grid;
        gap: 4px;
    }

    .menu a {
        width: 100%;
        padding: 14px;
    }

    .hero {
        padding-top: 142px;
    }

    .hero-visual {
        min-height: 720px;
    }

    .phone-mockup {
        right: 50%;
        transform: translateX(50%);
        width: min(330px, 92vw);
    }

    .dashboard-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
        width: min(420px, 92vw);
    }

    .floating-card {
        animation: none;
    }

    .feature-grid,
    .pricing-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .section,
    .cta-section {
        padding: 84px 0;
    }

    .footer-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .container,
    .narrow {
        width: min(100% - 28px, 1180px);
    }

    .hero-actions {
        display: grid;
    }

    .btn {
        width: 100%;
    }

    .strip-inner {
        justify-content: center;
        text-align: center;
    }

    .flow-panel,
    .security-card,
    .content-card {
        padding: 24px;
        border-radius: 24px;
    }

    .flow-node {
        display: grid;
    }

    .page-hero {
        padding-top: 150px;
    }
}


/* Legal pages: smaller typography for Privacy Policy, Terms of Use, and Data Deletion. */
.legal-hero {
    padding: 140px 0 62px;
}

.legal-hero h1 {
    font-size: clamp(2.1rem, 4vw, 4rem);
    letter-spacing: -0.035em;
}

.legal-hero p {
    max-width: 820px;
    font-size: 1rem;
}

.legal-content-section {
    padding: 58px 0 92px;
}

.legal-prose {
    max-width: 880px;
    font-size: 0.96rem;
    line-height: 1.78;
    color: #334155;
}

.legal-prose p,
.legal-prose li {
    font-size: 0.96rem;
    line-height: 1.78;
}

.legal-prose h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.95rem);
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.legal-prose h3 {
    font-size: 1.06rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-top: 1.4rem;
    margin-bottom: 0.65rem;
}

.legal-prose .legal-updated {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 1.6rem;
}

.legal-prose a {
    word-break: break-word;
}

@media (max-width: 700px) {
    .legal-hero {
        padding: 118px 0 48px;
    }

    .legal-content-section {
        padding: 42px 0 72px;
    }

    .legal-prose,
    .legal-prose p,
    .legal-prose li {
        font-size: 0.93rem;
    }

    .legal-prose h2 {
        font-size: 1.28rem;
    }
}


/* Fix: legal page content must be visible even if scroll-reveal JS is delayed or blocked. */
.legal-content-section .reveal,
.legal-prose.reveal {
    opacity: 1 !important;
    transform: none !important;
}

.legal-content-section .container {
    display: block;
}

/* Webot 2.0 - Facebook Login / Meta Embedded Signup page */
.facebook-login-page {
    min-height: 100vh;
    padding: 170px 0 90px;
    background:
        radial-gradient(circle at 12% 18%, rgba(32, 212, 102, 0.22), transparent 34%),
        radial-gradient(circle at 88% 10%, rgba(119, 88, 255, 0.26), transparent 38%),
        linear-gradient(135deg, #061a18 0%, #07111f 47%, #111642 100%);
    color: var(--white);
    display: flex;
    align-items: center;
}

.facebook-login-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.72fr);
    gap: 44px;
    align-items: center;
}

.facebook-login-copy h1 {
    max-width: 780px;
    font-size: clamp(3rem, 6.2vw, 6.2rem);
}

.facebook-login-copy .hero-subtitle {
    color: rgba(255, 255, 255, 0.78);
    max-width: 720px;
}

.webot-facebook-connect {
    position: relative;
    overflow: hidden;
}

.webot-facebook-connect::before {
    content: "f";
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #1877f2;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-size: 18px;
    line-height: 1;
}

.webot-login-status {
    display: none;
    width: min(100%, 690px);
    margin-top: 22px;
    padding: 15px 17px;
    border-radius: 18px;
    border: 1px solid rgba(32, 212, 102, 0.3);
    background: rgba(32, 212, 102, 0.12);
    color: #caffdd;
    font-size: 0.95rem;
    line-height: 1.55;
}

.webot-login-note {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.64);
    max-width: 640px;
    font-size: 0.95rem;
}

.facebook-login-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
    border-radius: 34px;
    padding: 28px;
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: hidden;
}

.facebook-login-card::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    top: -90px;
    right: -90px;
    background: rgba(32, 212, 102, 0.16);
    filter: blur(8px);
}

.facebook-card-top,
.facebook-flow-list,
.facebook-mini-panel {
    position: relative;
    z-index: 1;
}

.facebook-card-top {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
}

.facebook-card-icon {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    background: #1877f2;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 35px;
    font-weight: 900;
    line-height: 1;
}

.facebook-card-top strong {
    display: block;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.facebook-card-top small {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 2px;
}

.facebook-flow-list {
    display: grid;
    gap: 14px;
}

.facebook-flow-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.055);
}

.facebook-flow-item > span {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(32, 212, 102, 0.16);
    color: var(--green);
    font-weight: 850;
}

.facebook-flow-item strong {
    display: block;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.facebook-flow-item p,
.facebook-mini-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.93rem;
    line-height: 1.5;
}

.facebook-mini-panel {
    margin-top: 18px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(32, 212, 102, 0.16), rgba(51, 164, 255, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.facebook-mini-panel strong {
    display: block;
    margin-bottom: 6px;
}

@media (max-width: 960px) {
    .facebook-login-page {
        padding: 145px 0 70px;
    }

    .facebook-login-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .facebook-login-page {
        padding: 124px 0 56px;
    }

    .facebook-login-copy .hero-actions,
    .facebook-login-copy .btn {
        width: 100%;
    }

    .facebook-login-card {
        padding: 20px;
        border-radius: 26px;
    }
}


/* Webot 2.1 - Meta embedded signup CTA */
.webot-facebook-connect {
    text-align: center;
}

.webot-facebook-connect:focus-visible {
    outline: 3px solid rgba(49, 231, 107, 0.45);
    outline-offset: 4px;
}
