/* ============================================================
   rayb.shop
   File: assets/css/style.css
   Purpose: Main Generation 6 website styling
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    --bg: #070711;
    --bg-2: #0b0b18;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-strong: rgba(255, 255, 255, 0.10);
    --surface-dark: rgba(10, 10, 24, 0.82);

    --purple: #8b5cf6;
    --purple-strong: #7a00ff;
    --cyan: #00d9ff;
    --pink: #ff2bd6;
    --green: #35ffb6;

    --text: #ffffff;
    --text-soft: #c9c9d6;
    --text-muted: #8f90a6;

    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(139, 92, 246, 0.45);

    --shadow-purple: 0 0 34px rgba(139, 92, 246, 0.28);
    --shadow-cyan: 0 0 30px rgba(0, 217, 255, 0.20);
    --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.38);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;

    --container: 1180px;
    --header-height: 82px;
}

/* ============================================================
   Base
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Tajawal", Tahoma, Arial, sans-serif;
    background:
        radial-gradient(circle at 15% 10%, rgba(122, 0, 255, 0.22), transparent 34%),
        radial-gradient(circle at 85% 8%, rgba(0, 217, 255, 0.13), transparent 30%),
        radial-gradient(circle at 50% 90%, rgba(255, 43, 214, 0.10), transparent 36%),
        linear-gradient(180deg, var(--bg), #04040b 72%, #060611);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

::selection {
    background: rgba(139, 92, 246, 0.65);
    color: var(--text);
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.site-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

.site-main {
    min-height: 70vh;
}

.section {
    padding: 82px 0;
    position: relative;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 13px;
    border: 1px solid rgba(0, 217, 255, 0.24);
    border-radius: 999px;
    color: #bff6ff;
    background: rgba(0, 217, 255, 0.08);
    box-shadow: 0 0 22px rgba(0, 217, 255, 0.10);
    font-weight: 800;
    font-size: 0.86rem;
    letter-spacing: 0.2px;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 14px var(--cyan);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2.35rem, 6vw, 5.1rem);
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
}

h2 {
    font-size: clamp(1.85rem, 4vw, 3.2rem);
    line-height: 1.18;
    letter-spacing: -0.6px;
    margin-bottom: 16px;
}

h3 {
    font-size: 1.35rem;
    line-height: 1.32;
    margin-bottom: 12px;
}

p {
    color: var(--text-soft);
}

.site-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    filter: blur(24px);
    opacity: 0.28;
    animation: floatGlow 12s ease-in-out infinite;
}

.glow-one {
    top: 12%;
    right: -150px;
    background: rgba(139, 92, 246, 0.75);
}

.glow-two {
    bottom: 10%;
    left: -170px;
    background: rgba(0, 217, 255, 0.50);
    animation-delay: -4s;
}

.glow-three {
    top: 44%;
    left: 28%;
    width: 300px;
    height: 300px;
    background: rgba(255, 43, 214, 0.35);
    animation-delay: -7s;
}

.grid-light {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 86%);
}

@keyframes floatGlow {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(18px, -22px, 0) scale(1.06);
    }
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    display: flex;
    align-items: center;
    backdrop-filter: blur(18px);
    background: rgba(7, 7, 17, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(122, 0, 255, 0.96), rgba(0, 217, 255, 0.20)),
        rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-weight: 900;
    font-size: 1.55rem;
    font-style: italic;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-purple);
}

.brand-logo-mark {
    overflow: hidden;
    padding: 0;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.10), transparent 36%),
        linear-gradient(135deg, rgba(122, 0, 255, 0.88), rgba(0, 217, 255, 0.10)),
        rgba(7, 7, 17, 0.90);
}

.brand-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

.brand-text {
    display: grid;
    gap: 0;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 1.08rem;
    letter-spacing: 0.3px;
}

.brand-text small {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.78rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    color: var(--text-soft);
    font-weight: 800;
    font-size: 0.96rem;
    padding: 10px 14px;
    border-radius: 999px;
    transition:
        color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.main-nav .nav-cta {
    color: var(--text);
    background: linear-gradient(135deg, var(--purple-strong), var(--purple));
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.main-nav .nav-cta:hover {
    box-shadow: 0 0 34px rgba(139, 92, 246, 0.52);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
    border-radius: 999px;
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 900;
    line-height: 1.2;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.btn::after {
    content: "";
    position: absolute;
    inset: -40% auto -40% -70%;
    width: 48%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.30), transparent);
    transition: left 520ms ease;
}

.btn:hover::after {
    left: 120%;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--text);
    background: linear-gradient(135deg, var(--purple-strong), var(--purple), #4d9dff);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.40);
}

.btn-primary:hover {
    box-shadow: 0 0 44px rgba(139, 92, 246, 0.58);
}

.btn-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
}

.btn-secondary:hover {
    border-color: rgba(0, 217, 255, 0.44);
    box-shadow: var(--shadow-cyan);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
    padding-top: 90px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.03fr 0.97fr;
    align-items: center;
    gap: 54px;
}

.hero-content p {
    max-width: 690px;
    font-size: 1.12rem;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
}

.hero-stats div {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border);
}

.hero-stats strong {
    display: block;
    font-size: 1.25rem;
    color: var(--text);
    line-height: 1.1;
}

.hero-stats span {
    display: block;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.88rem;
    margin-top: 5px;
}

.hero-visual {
    position: relative;
    min-height: 500px;
    display: grid;
    place-items: center;
}

.visual-card {
    width: 100%;
    border-radius: var(--radius-xl);
    padding: 16px;
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.20), rgba(0, 217, 255, 0.08)),
        rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow-soft), var(--shadow-purple);
}

.visual-main {
    transform: rotate(-1.5deg);
}

.image-placeholder {
    min-height: 230px;
    border-radius: var(--radius-lg);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 28px;
    color: var(--text);
    background:
        linear-gradient(135deg, rgba(122, 0, 255, 0.32), rgba(0, 217, 255, 0.10)),
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.12), transparent 28%),
        rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.24);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: "";
    position: absolute;
    inset: -80px;
    background:
        linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
    animation: softSweep 5.5s ease-in-out infinite;
}

.image-placeholder span,
.image-placeholder strong {
    position: relative;
    z-index: 2;
}

.image-placeholder span {
    display: block;
    color: #bff6ff;
    font-weight: 900;
    margin-bottom: 6px;
}

.image-placeholder strong {
    display: block;
    font-size: 1.1rem;
}

.hero-placeholder {
    min-height: 430px;
}

@keyframes softSweep {
    0%,
    100% {
        transform: translateX(-22%);
        opacity: 0;
    }

    45%,
    60% {
        opacity: 1;
    }

    100% {
        transform: translateX(22%);
    }
}

.floating-badge {
    position: absolute;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(12, 12, 28, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-purple);
    color: var(--text);
    font-weight: 900;
    backdrop-filter: blur(14px);
}

.badge-top {
    top: 48px;
    left: 18px;
}

.badge-bottom {
    right: 4px;
    bottom: 72px;
}

/* ============================================================
   Sections
   ============================================================ */

.section-head {
    text-align: center;
    max-width: 820px;
    margin-bottom: 32px;
}

.section-head .eyebrow {
    margin-inline: auto;
    margin-bottom: 14px;
}

.section-head p {
    font-size: 1.04rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.script-card,
.blog-card,
.video-card,
.cta-card,
.not-found-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.045)),
        rgba(8, 8, 18, 0.78);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.script-card::before,
.blog-card::before,
.video-card::before,
.cta-card::before,
.not-found-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.60), rgba(0, 217, 255, 0.22), transparent 48%);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.58;
}

.script-card {
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.script-card:hover {
    transform: translateY(-7px);
    border-color: rgba(139, 92, 246, 0.40);
    box-shadow: var(--shadow-soft), var(--shadow-purple);
}

.card-image {
    padding: 14px 14px 0;
}

.card-image .image-placeholder {
    min-height: 190px;
}

.card-body {
    padding: 22px;
}

.card-kicker {
    display: block;
    color: var(--cyan);
    font-weight: 900;
    margin-bottom: 8px;
}

.card-body p {
    margin-bottom: 18px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tags span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.22);
    color: #e5d8ff;
    font-size: 0.82rem;
    font-weight: 800;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-actions a {
    color: var(--text);
    font-weight: 900;
}

.card-actions a:last-child {
    color: var(--cyan);
}

.split-section {
    padding-top: 60px;
}

.split-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 34px;
    align-items: center;
}

.split-visual,
.split-content {
    border-radius: var(--radius-xl);
}

.tall-placeholder {
    min-height: 470px;
}

.split-content {
    padding: 38px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.split-content .eyebrow {
    margin-bottom: 14px;
}

.feature-list {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.feature-list div {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border);
}

.feature-list strong {
    display: block;
    color: var(--text);
    font-size: 1.06rem;
    margin-bottom: 4px;
}

.feature-list span {
    color: var(--text-soft);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.blog-card {
    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 217, 255, 0.34);
    box-shadow: var(--shadow-soft), var(--shadow-cyan);
}

.blog-image {
    padding: 14px 14px 0;
}

.blog-image .image-placeholder {
    min-height: 170px;
}

.blog-content {
    padding: 22px;
}

.blog-content > span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--cyan);
    font-weight: 900;
}

.blog-content a {
    color: var(--text);
    font-weight: 900;
}

.video-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 22px;
    align-items: center;
    padding: 28px;
}

.video-copy .eyebrow {
    margin-bottom: 14px;
}

.video-preview {
    min-height: 310px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at center, rgba(139, 92, 246, 0.28), transparent 36%),
        linear-gradient(135deg, rgba(0, 217, 255, 0.12), rgba(255, 43, 214, 0.10)),
        rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.play-circle {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-strong), var(--cyan));
    box-shadow: var(--shadow-purple), var(--shadow-cyan);
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.cta-section {
    padding-top: 40px;
}

.cta-card,
.not-found-card {
    text-align: center;
    padding: 54px 24px;
    background:
        radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.26), transparent 32%),
        radial-gradient(circle at 80% 30%, rgba(0, 217, 255, 0.16), transparent 28%),
        rgba(255, 255, 255, 0.055);
}

.cta-card .eyebrow,
.not-found-card .eyebrow {
    margin-inline: auto;
    margin-bottom: 14px;
}

.cta-card p,
.not-found-card p {
    max-width: 720px;
    margin-inline: auto;
    font-size: 1.06rem;
}

.cta-card .btn {
    margin-top: 10px;
}

.not-found-page {
    min-height: 62vh;
    display: grid;
    place-items: center;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    position: relative;
    padding: 54px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(3, 3, 10, 0.64);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.footer-logo {
    margin-bottom: 18px;
}

.footer-brand p {
    max-width: 560px;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links h2 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-soft);
    font-weight: 700;
    transition: color 160ms ease, transform 160ms ease;
}

.footer-links a:hover {
    color: var(--cyan);
    transform: translateX(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 28px;
    margin-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-bottom p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================================
   Reveal animations
   ============================================================ */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 620ms ease,
        transform 620ms ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   Scripts page
   ============================================================ */

.page-hero {
    padding-top: 86px;
    padding-bottom: 56px;
}

.compact-hero {
    min-height: auto;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 38px;
    align-items: center;
}

.page-hero-content p {
    max-width: 720px;
    font-size: 1.08rem;
    margin-bottom: 28px;
}

.page-hero-visual .image-placeholder {
    min-height: 340px;
}

.scripts-intro {
    padding-top: 35px;
    padding-bottom: 35px;
}

.scripts-list-section {
    padding-top: 40px;
}

.scripts-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.toolbar-label {
    display: block;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.scripts-toolbar strong {
    display: block;
    color: var(--text);
    font-size: 1.2rem;
}

.scripts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.script-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    padding: 6px 10px;
    border-radius: 999px;
    color: #d7fff3;
    background: rgba(53, 255, 182, 0.10);
    border: 1px solid rgba(53, 255, 182, 0.25);
    font-size: 0.78rem;
    font-weight: 900;
}

.script-card h2 {
    font-size: 1.28rem;
    margin-bottom: 12px;
}

/* ============================================================
   Single script page
   ============================================================ */

.script-single-hero {
    padding-top: 92px;
    padding-bottom: 62px;
}

.script-single-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 46px;
    align-items: center;
}

.script-single-content p {
    max-width: 760px;
    font-size: 1.1rem;
    margin-bottom: 22px;
}

.script-single-content .eyebrow {
    margin-bottom: 16px;
}

.script-single-visual {
    position: relative;
}

.script-single-visual .visual-card {
    transform: rotate(-1deg);
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.single-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid var(--border);
    font-weight: 900;
    font-size: 0.9rem;
}

.single-meta span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 14px rgba(53, 255, 182, 0.55);
}

.single-tags {
    margin-bottom: 24px;
}

.script-overview-section {
    padding-top: 48px;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.feature-card,
.gallery-card,
.details-card,
.faq-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.04)),
        rgba(8, 8, 18, 0.76);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.feature-card::before,
.gallery-card::before,
.details-card::before,
.faq-item::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.45), rgba(0, 217, 255, 0.18), transparent 50%);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.54;
}

.feature-card {
    padding: 22px;
    min-height: 142px;
    display: flex;
    align-items: flex-start;
    transition:
        transform 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.38);
    box-shadow: var(--shadow-soft), var(--shadow-purple);
}

.feature-card strong {
    position: relative;
    z-index: 2;
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.65;
}

.script-video-section {
    padding-top: 50px;
    padding-bottom: 50px;
}

.script-video-section .video-card {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 28px;
    align-items: center;
    padding: 24px;
    max-width: 1080px;
    margin-inline: auto;
    background:
        radial-gradient(circle at 20% 25%, rgba(139, 92, 246, 0.18), transparent 34%),
        radial-gradient(circle at 78% 20%, rgba(0, 217, 255, 0.10), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.086), rgba(255, 255, 255, 0.038)),
        rgba(8, 8, 18, 0.82);
}

.script-video-section .video-copy {
    position: relative;
    z-index: 2;
}

.script-video-section .video-copy h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    margin-bottom: 14px;
}

.script-video-section .video-copy p {
    max-width: 520px;
    margin-bottom: 14px;
}

.script-video-section .compact-meta {
    justify-content: flex-start;
    margin-bottom: 0;
}

.script-video-section .video-preview {
    position: relative;
    min-height: auto;
    display: block;
    padding: 12px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(0, 217, 255, 0.09)),
        rgba(255, 255, 255, 0.052);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.035),
        var(--shadow-soft),
        0 0 34px rgba(139, 92, 246, 0.18);
}

.script-video-section .video-preview .media-frame {
    min-height: 0;
    border-radius: 20px;
    box-shadow: none;
}

.script-video-section .video-preview .media-frame::before {
    background:
        linear-gradient(180deg, transparent 58%, rgba(4, 4, 12, 0.42)),
        radial-gradient(circle at 30% 18%, rgba(139, 92, 246, 0.18), transparent 32%);
}

.script-video-section .video-preview > .play-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 6;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.26), transparent 28%),
        linear-gradient(135deg, var(--purple-strong), var(--cyan));
    box-shadow:
        0 0 0 10px rgba(139, 92, 246, 0.10),
        0 0 38px rgba(139, 92, 246, 0.46),
        0 0 28px rgba(0, 217, 255, 0.22);
}

.script-video-section .video-preview > span {
    position: absolute;
    right: 24px;
    bottom: 22px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--text);
    background: rgba(5, 5, 14, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    font-weight: 900;
    font-size: 0.86rem;
}

.script-video-section .video-preview > span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.55);
}

.script-gallery-section {
    padding-top: 58px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.gallery-card {
    padding: 14px;
    transition:
        transform 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 217, 255, 0.35);
    box-shadow: var(--shadow-soft), var(--shadow-cyan);
}

.gallery-card .image-placeholder {
    min-height: 250px;
}

.script-details-section {
    padding-top: 58px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.details-card {
    padding: 28px;
}

.details-card .eyebrow {
    margin-bottom: 14px;
}

.details-card h2 {
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.clean-list {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: grid;
    gap: 12px;
}

.clean-list li {
    position: relative;
    padding: 14px 42px 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.052);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--text-soft);
    font-weight: 700;
}

.clean-list li::before {
    content: "✓";
    position: absolute;
    right: 14px;
    top: 14px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #06110d;
    background: linear-gradient(135deg, var(--green), var(--cyan));
    font-size: 0.82rem;
    font-weight: 900;
    box-shadow: 0 0 18px rgba(53, 255, 182, 0.24);
}

.faq-section {
    padding-top: 58px;
}

.faq-list {
    display: grid;
    gap: 16px;
    max-width: 920px;
    margin-inline: auto;
}

.faq-item {
    padding: 24px;
    transition:
        transform 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.faq-item:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.34);
    box-shadow: var(--shadow-soft), var(--shadow-purple);
}

.faq-item h3 {
    position: relative;
    z-index: 2;
    color: var(--text);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.faq-item p {
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

.script-single-hero + .script-overview-section,
.script-overview-section + .script-video-section,
.script-video-section + .script-gallery-section,
.script-gallery-section + .script-details-section,
.script-details-section + .faq-section {
    margin-top: -18px;
}

/* ============================================================
   Blog page
   ============================================================ */

.blog-featured-section {
    padding-top: 48px;
    padding-bottom: 48px;
}

.featured-post-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
    align-items: center;
    padding: 18px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 18% 18%, rgba(139, 92, 246, 0.22), transparent 30%),
        radial-gradient(circle at 86% 22%, rgba(0, 217, 255, 0.13), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.086), rgba(255, 255, 255, 0.04)),
        rgba(8, 8, 18, 0.78);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft), var(--shadow-purple);
}

.featured-post-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.62), rgba(0, 217, 255, 0.28), transparent 55%);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.75;
}

.featured-post-image,
.featured-post-content {
    position: relative;
    z-index: 2;
}

.featured-post-image .image-placeholder {
    min-height: 390px;
}

.featured-post-content {
    padding: 22px 18px;
}

.featured-post-content .eyebrow {
    margin-bottom: 14px;
}

.featured-post-content h2 {
    font-size: clamp(1.8rem, 3.6vw, 3.1rem);
    margin-bottom: 14px;
}

.featured-post-content p {
    max-width: 690px;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.post-meta span,
.post-meta small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.060);
    border: 1px solid rgba(255, 255, 255, 0.11);
    font-weight: 800;
    font-size: 0.86rem;
}

.post-meta span::before,
.post-meta small::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.45);
}

.compact-meta {
    justify-content: space-between;
    gap: 8px;
    margin: 16px 0 16px;
}

.blog-list-section {
    padding-top: 50px;
}

.blog-card h2 {
    font-size: 1.22rem;
    line-height: 1.38;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.blog-card .blog-content p {
    margin-bottom: 14px;
}

.blog-card .blog-content a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    padding: 9px 0;
    color: var(--cyan);
    transition: color 160ms ease, transform 160ms ease;
}

.blog-card .blog-content a::after {
    content: "←";
    font-weight: 900;
    transition: transform 160ms ease;
}

.blog-card:hover .blog-content a {
    color: var(--text);
    transform: translateX(-2px);
}

.blog-card:hover .blog-content a::after {
    transform: translateX(-4px);
}

/* ============================================================
   Single blog post page
   ============================================================ */

.blog-single-hero {
    padding-top: 92px;
    padding-bottom: 62px;
}

.blog-single-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 46px;
    align-items: center;
}

.blog-single-content .eyebrow {
    margin-bottom: 16px;
}

.blog-single-content p {
    max-width: 760px;
    font-size: 1.1rem;
    margin-bottom: 22px;
}

.blog-single-visual {
    position: relative;
}

.blog-single-visual .visual-card {
    transform: rotate(-1deg);
}

.article-section {
    padding-top: 54px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    align-items: start;
}

.article-card,
.sidebar-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.04)),
        rgba(8, 8, 18, 0.78);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.article-card::before,
.sidebar-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.42), rgba(0, 217, 255, 0.18), transparent 50%);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.58;
}

.article-card {
    padding: 38px;
}

.article-content-block {
    position: relative;
    z-index: 2;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.article-content-block:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.article-content-block h2 {
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    margin-bottom: 14px;
}

.article-content-block p {
    font-size: 1.06rem;
    margin-bottom: 16px;
}

.article-content-block p:last-child {
    margin-bottom: 0;
}

.article-list {
    margin-top: 18px;
}

.article-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: calc(var(--header-height) + 22px);
}

.sidebar-card {
    padding: 24px;
}

.sidebar-card .eyebrow {
    margin-bottom: 14px;
}

.sidebar-card h2 {
    font-size: 1.32rem;
    line-height: 1.35;
    margin-bottom: 12px;
}

.sidebar-card p {
    margin-bottom: 18px;
}

.sidebar-card .btn {
    width: 100%;
}

.sidebar-links {
    display: grid;
    gap: 10px;
}

.sidebar-links a {
    position: relative;
    display: block;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-weight: 800;
    transition:
        color 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.sidebar-links a:hover {
    color: var(--text);
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.30);
    transform: translateX(-4px);
}

.article-faq-section {
    padding-top: 58px;
}

.blog-single-hero + .article-section,
.article-section + .article-faq-section {
    margin-top: -18px;
}

/* ============================================================
   Videos page
   ============================================================ */

.videos-intro-section {
    padding-top: 35px;
    padding-bottom: 35px;
}

.videos-list-section {
    padding-top: 40px;
}

.videos-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.video-list-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.045)),
        rgba(8, 8, 18, 0.78);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.video-list-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.60), rgba(0, 217, 255, 0.22), transparent 48%);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.58;
}

.video-list-card:hover {
    transform: translateY(-7px);
    border-color: rgba(0, 217, 255, 0.34);
    box-shadow: var(--shadow-soft), var(--shadow-cyan);
}

.video-card-preview {
    position: relative;
    padding: 14px 14px 0;
}

.video-card-preview .image-placeholder {
    min-height: 205px;
}

.video-play-button {
    position: absolute;
    inset-inline-start: 50%;
    top: 50%;
    transform: translate(-50%, -42%);
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--text);
    background: linear-gradient(135deg, var(--purple-strong), var(--cyan));
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: var(--shadow-purple), var(--shadow-cyan);
    font-weight: 900;
    font-size: 1.42rem;
    z-index: 3;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        opacity 180ms ease;
}

.video-play-button:hover {
    transform: translate(-50%, -42%) scale(1.06);
    box-shadow: 0 0 44px rgba(139, 92, 246, 0.58), 0 0 34px rgba(0, 217, 255, 0.28);
}

.video-play-button.is-disabled {
    opacity: 0.72;
    filter: grayscale(0.35);
    cursor: default;
}

.video-card-body {
    position: relative;
    z-index: 2;
    padding: 22px;
}

.video-card-body h2 {
    font-size: 1.25rem;
    line-height: 1.38;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.video-card-body p {
    margin-bottom: 18px;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.video-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.060);
    border: 1px solid rgba(255, 255, 255, 0.11);
    font-weight: 800;
    font-size: 0.82rem;
}

.video-meta span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.45);
}

/* ============================================================
   Media images
   ============================================================ */

.media-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(122, 0, 255, 0.20), rgba(0, 217, 255, 0.08)),
        rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow-soft);
    isolation: isolate;
}

.media-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 54%, rgba(5, 5, 14, 0.36)),
        radial-gradient(circle at 18% 18%, rgba(139, 92, 246, 0.24), transparent 34%),
        radial-gradient(circle at 82% 12%, rgba(0, 217, 255, 0.16), transparent 30%);
    opacity: 0.9;
}

.media-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 -60px 120px rgba(0, 0, 0, 0.22);
}

.media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    transform: scale(1.001);
    transition:
        transform 420ms ease,
        filter 420ms ease;
}

.media-frame:hover .media-image {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.05);
}

.media-frame .image-placeholder {
    min-height: 100%;
    height: 100%;
    border-radius: inherit;
}

.hero-media-frame {
    min-height: 340px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft), var(--shadow-purple);
}

.visual-card .hero-media-frame,
.script-single-visual .hero-media-frame,
.blog-single-visual .hero-media-frame {
    min-height: 430px;
}

.card-media-frame {
    min-height: 190px;
}

.featured-media-frame {
    min-height: 390px;
}

.blog-media-frame {
    min-height: 170px;
}

.video-media-frame {
    min-height: 205px;
}

.gallery-media-frame {
    min-height: 250px;
}

.featured-post-card .media-frame,
.script-card .media-frame,
.blog-card .media-frame,
.video-list-card .media-frame,
.gallery-card .media-frame {
    box-shadow: none;
}

.script-card:hover .media-image,
.blog-card:hover .media-image,
.video-list-card:hover .media-image,
.gallery-card:hover .media-image {
    transform: scale(1.055);
}

.video-card-preview .media-frame {
    border-radius: var(--radius-lg);
}

.gallery-card .media-frame {
    height: 100%;
}