/* MotionReady — mobile first, dark base. Tweak freely. */

:root {
    --bg: #0e1115;
    --bg-soft: #161a20;
    --card: #1c2129;
    --border: #2a313c;
    --text: #eef1f5;
    --text-dim: #9aa3af;
    --accent: #006ac1;
    --accent-hover: #0082e6;
    --radius: 10px;
    --nav-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}

img { max-width: 100%; display: block; }

a { color: var(--accent-hover); }

/* ===== Header ===== */

.site-header {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-weight: 800;
    font-size: 1.15rem;
    text-decoration: none;
    color: var(--text);
    letter-spacing: -0.02em;
}

.site-header .header-nav { display: none; }

/* ===== Bottom nav (mobile) ===== */

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(14, 17, 21, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 100;
}

.bottom-nav a,
.bottom-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.7rem;
    color: var(--text-dim);
    text-decoration: none;
    background: none;
    border: 0;
    font-family: inherit;
    cursor: pointer;
    min-height: 44px;
    padding: 0;
}

.bottom-nav a.active,
.bottom-nav a:hover { color: var(--text); }

.bottom-nav svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.25rem 2rem;
}

/* ===== Hero ===== */

.hero {
    text-align: center;
    padding: 3rem 0 3.5rem;
}

.hero--video {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 78vh;
    min-height: 78svh;
    padding: 4rem 1.25rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(14, 17, 21, 0.55), rgba(14, 17, 21, 0.88)),
        radial-gradient(circle at 50% 40%, rgba(0, 106, 193, 0.25), transparent 60%);
}

.hero-content {
    max-width: 760px;
    margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
    .hero--video {
        background: url('/assets/hero-poster.jpg') center / cover no-repeat;
    }
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
    line-height: 1.1;
    padding-bottom:2rem;
}

.hero .tagline {
    font-size: 1.2rem;
    color: var(--text);
    font-weight: 600;
    margin: 0 0 1rem;
    text-transform: lowercase;
    line-height: 1.8rem;
}

.hero p { color: var(--text-dim); margin: 0 0 1.5rem; }

/* ===== Buttons ===== */

.cta,
button[type="submit"],
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 200ms ease, transform 200ms ease;
}

.cta:hover,
button[type="submit"]:hover,
.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* ===== Sections / cards ===== */

section { margin-bottom: 2.5rem; }

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.4rem; }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 250ms ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55);
}

.card p { color: var(--text-dim); margin: 0; }

.card ul {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.card ul li {
    color: var(--text-dim);
    padding: 0.35rem 0;
    position: relative;
    padding-left: 1.1rem;
}

.card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ===== Target list ===== */

.audience-list { list-style: none; padding: 0; margin: 0; }
.audience-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.audience-list li:last-child { border-bottom: 0; }
.audience-list strong { color: var(--text); }

/* ===== Auth forms ===== */

form { display: flex; flex-direction: column; gap: 0.9rem; }
form.inline { display: inline; }

label { font-size: 0.9rem; font-weight: 600; }

input[type="text"],
input[type="email"],
input[type="password"] {
    padding: 0.75rem 0.9rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
}

input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-link { color: var(--text-dim); font-size: 0.9rem; }
.error { color: #f87171; margin: 0; font-size: 0.85rem; }

/* ===== Reveal on scroll ===== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

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

.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 1.25rem 2rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.site-footer a { color: var(--text-dim); margin: 0 0.4rem; }

/* ===== Desktop (>=768px): top nav, hide bottom nav ===== */

@media (min-width: 768px) {
    body { padding-bottom: 0; }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(14, 17, 21, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        padding: 0.9rem 2rem;
    }

    .site-header .header-nav {
        display: flex;
        gap: 1.25rem;
        align-items: center;
    }

    .header-nav a { color: var(--text-dim); text-decoration: none; font-weight: 600; }
    .header-nav a:hover { color: var(--text); }

    .header-nav button {
        background: none;
        border: 0;
        color: var(--text-dim);
        font: inherit;
        font-weight: 600;
        cursor: pointer;
    }

    .header-nav button:hover { color: var(--text); }

    .bottom-nav { display: none; }

    main { max-width: 960px; padding: 0 2rem 3rem; }

    .hero { padding: 5rem 0 5.5rem; }
    .hero h1 { font-size: 3.5rem; }
    .hero .tagline { font-size: 1.35rem; }

    h2 { font-size: 2rem; }

    .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .cards .card { margin-bottom: 0; }
}

/* ===== Admin ===== */

.admin-body { padding-bottom: 0; }

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.9rem 1.5rem;
    background: #0a0c10;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-badge {
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    vertical-align: middle;
    letter-spacing: 0.05em;
}

.admin-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.admin-toolbar h1 { margin: 0; }

.alert {
    background: rgba(0, 106, 193, 0.15);
    border: 1px solid var(--accent);
    color: var(--text);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.admin-table th {
    text-align: left;
    color: var(--text-dim);
    font-weight: 600;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.admin-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    white-space: nowrap;
}

.link-danger {
    background: none;
    border: 0;
    color: #f87171;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text-dim);
}

.badge-live {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    color: #4ade80;
}

select, textarea {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    padding: 0.7rem 0.9rem;
    width: 100%;
}

select:focus, textarea:focus { outline: none; border-color: var(--accent); }

/* ===== Public blog ===== */

.post-list-item {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 250ms ease;
}

.post-list-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55);
}

.post-meta {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-body p { color: var(--text-dim); }

/* ===== Extras ===== */

.price { font-size: 1.5rem; font-weight: 800; color: var(--text); margin: 0 0 0.5rem; }

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===== Tags ===== */

.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0 1.5rem;
}

.tag-filter a {
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.tag-filter a:hover { color: var(--text); }

.tag-filter a.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-decoration: none;
}

/* ===== Article blocks ===== */

.block { margin-bottom: 1rem; }

.block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.block-actions { display: flex; gap: 0.4rem; align-items: center; }

.link-plain {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.1rem 0.5rem;
    cursor: pointer;
    color: var(--text-dim);
}

.link-plain:hover { color: var(--text); }

.block-image {
    display: block;
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 0.6rem;
}

.block-add {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.block-add form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
}

.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.85rem; }

.post-figure { margin: 1.5rem 0; }

.post-figure img {
    width: 100%;
    border-radius: 10px;
}

/* ===== Review & permissions ===== */

.badge-rejected { color: #f87171; border-color: #7f1d1d; }
.post-approval { color: var(--text-dim); font-size: 0.8rem; margin: -0.5rem 0 1rem; }
.review-card { margin-bottom: 1rem; }
.review-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 0.8rem; }
.review-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
.review-reject { display: flex; gap: 0.5rem; align-items: flex-end; margin: 0; flex: 1; }
.review-reject textarea { flex: 1; min-width: 200px; }
.user-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.8rem; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.4rem; margin-bottom: 1rem; }
.perm { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--text-dim); }
.perm input { width: auto; }

/* ===== Full-bleed hero video ===== */

html { overflow-x: clip; }

.hero--video {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 0;
    border-radius: 0;
    min-height: 82svh;
    padding: 4rem 1.25rem;
}

.hero--video .hero-video {
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}

.hero--video .hero-overlay {
    background:
        linear-gradient(180deg, rgba(14, 17, 21, 0.30) 0%, rgba(14, 17, 21, 0.50) 38%, rgba(14, 17, 21, 0.88) 76%, var(--bg) 100%),
        radial-gradient(circle at 50% 35%, rgba(0, 106, 193, 0.22), transparent 60%);
}

@media (min-width: 881px) {
    .hero--video { padding: 5rem 2rem; }
}

/* ===== Hero word revolve ===== */

          
            .revolve-wrapper {

                box-sizing: content-box;
                height: 72px;
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                border-radius: 8px;
                box-shadow: 0 20px 25px rgba(0, 0, 0, 0.2);
            }
          .revolve-container {
                overflow: hidden;
                height: inherit;
                font-size: 1.6rem;
                width:10ch;
            }

            .heading-revolve {
                display: block;
                height: 100%;
                padding-right: .5rem;
                animation: spin_words 13s infinite cubic-bezier(1,-0.42, 0, 1.56);
                
                text-align:right;
                color: var(--accent-hover);
              
            }

            

            .wait-2 span{
                    animation-direction:reverse;
                    animation-duration:20s;
                    text-align:left;
                    padding-left:.5rem;
            }

            @keyframes spin_words {
                0% {
                    transform: translateY(0%);
                    }
                15% {
                    transform: translateY(0%);
                
                }
                20% {
                    transform: translateY(-100%);
                    
                }
                35% {
                    transform: translateY(-100%);
                    }
                40% {
                    transform: translateY(-200%);
                    }
                55% {
                    transform: translateY(-200%);
                    }
                60% {
                    transform: translateY(-300%);
                    }
                75% {
                    transform: translateY(-300%);
                    }
                80% {
                    transform: translateY(-400%);
                    }
                95% {
                    transform: translateY(-400%);
                    }
                100% {
                    transform: translateY(-500%);
                    }
            }

/* ===== Sticky header ===== */

body:not(:has(.hero--video)) .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(14, 17, 21, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

/* Transparent over the home hero, solid after scrolling */
body:has(.hero--video) .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    transition: background 0.25s ease, border-color 0.25s ease;
}

body:has(.hero--video) .site-header.is-scrolled {
    background: rgba(14, 17, 21, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
