/* ========================================
   LAYOUTS — Reset, Grid, Sections, Responsive
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --- Section --- */
.section {
    position: relative;
    padding: var(--section-padding);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .section {
        padding: var(--section-padding-lg);
    }
}

.section__header {
    text-align: center;
    margin-bottom: 48px;
}
.section__title {
    font-size: 1.875rem;
    margin-bottom: 16px;
}
.section__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .section__title { font-size: 2.25rem; }
}
@media (min-width: 1024px) {
    .section__title { font-size: 3rem; }
    .section__header { margin-bottom: 64px; }
}

/* --- Grid --- */
.grid {
    display: grid;
    gap: 24px;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .grid-5 { grid-template-columns: repeat(5, 1fr); gap: 32px; }
}
@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Background Effects --- */
.bg-gradient-main {
    background: linear-gradient(135deg, #020617 0%, rgba(30, 27, 75, 0.3) 50%, #020617 100%);
}
.bg-gradient-section {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.bg-gradient-down {
    background: linear-gradient(180deg, var(--color-bg), rgba(30, 27, 75, 0.1), var(--color-bg));
}
.bg-gradient-radial-purple {
    background: radial-gradient(ellipse at center, rgba(109, 40, 217, 0.1), transparent 70%);
}
.bg-gradient-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 128px;
    background: linear-gradient(to top, var(--color-bg), transparent);
    pointer-events: none;
}

/* --- Glow Orb --- */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}
.glow-orb--purple {
    background: radial-gradient(circle, rgba(109, 40, 217, 0.5), transparent 70%);
}
.glow-orb--cyan {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.5), transparent 70%);
}
.glow-orb--mixed {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.2), transparent 70%);
}
.glow-orb--xl { width: 500px; height: 500px; }
.glow-orb--lg { width: 384px; height: 384px; }
.glow-orb--md { width: 256px; height: 256px; }

/* --- Decorative Lines --- */
.deco-line-top,
.deco-line-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    pointer-events: none;
}
.deco-line-top { top: 0; }
.deco-line-bottom { bottom: 0; }

/* --- Decorative Glow Blobs --- */
.deco-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #020617, rgba(30, 27, 75, 0.3), #020617);
}
.hero__content {
    position: relative;
    z-index: 10;
}
.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
@media (min-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}
.hero__text {
    text-align: center;
}
@media (min-width: 1024px) {
    .hero__text { text-align: left; }
}
.hero__title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}
@media (min-width: 640px) {
    .hero__title { font-size: 3rem; }
}
@media (min-width: 1024px) {
    .hero__title { font-size: 3.75rem; }
}
.hero__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 1024px) {
    .hero__subtitle {
        margin-left: 0;
        margin-right: 0;
    }
}
.hero__buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
}
@media (min-width: 640px) {
    .hero__buttons { flex-direction: row; }
}
@media (min-width: 1024px) {
    .hero__buttons { justify-content: flex-start; }
}
.hero__trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
@media (min-width: 1024px) {
    .hero__trust-badges { justify-content: flex-start; }
}
.hero__trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}
.hero__trust-badge svg {
    width: 16px;
    height: 16px;
    color: var(--color-green);
}
.hero__demo {
    display: none;
}
@media (min-width: 768px) {
    .hero__demo { display: block; }
}

/* ========================================
   NAVIGATION / HEADER
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all var(--transition);
}
.site-header--scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
@media (min-width: 768px) {
    .site-header__inner { height: 80px; }
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-logo__icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary-light);
}
@media (min-width: 768px) {
    .site-logo__icon { width: 32px; height: 32px; }
}
.site-logo__text {
    font-size: 1.25rem;
    font-weight: 700;
}
@media (min-width: 768px) {
    .site-logo__text { font-size: 1.5rem; }
}

/* Desktop Nav */
.nav-desktop {
    display: none;
    align-items: center;
    gap: 32px;
}
@media (min-width: 1024px) {
    .nav-desktop { display: flex; }
}
.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.nav-link:hover {
    color: #fff;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    transition: width var(--transition);
}
.nav-link:hover::after {
    width: 100%;
}
.nav-cta {
    display: none;
}
@media (min-width: 1024px) {
    .nav-cta { display: block; }
}

/* Mobile Nav */
.mobile-menu-btn {
    display: flex;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
}
@media (min-width: 1024px) {
    .mobile-menu-btn { display: none; }
}
.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(139, 92, 246, 0.2);
    padding: 80px 24px 24px;
    z-index: 100;
    flex-direction: column;
    gap: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
}
.mobile-nav.open {
    display: flex;
    transform: translateX(0);
}
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}
.mobile-nav-overlay.open {
    display: block;
}
.mobile-nav__link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    padding: 8px 0;
    transition: color var(--transition);
}
.mobile-nav__link:hover {
    color: #fff;
}

/* ========================================
   READERS SECTION
   ======================================== */
.readers__header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}
@media (min-width: 1024px) {
    .readers__header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

/* ========================================
   TRUST SIGNALS SECTION
   ======================================== */
.trust-section {
    position: relative;
    padding: 64px 0;
    overflow: hidden;
}
@media (min-width: 1024px) {
    .trust-section { padding: 80px 0; }
}
.trust-section__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30, 27, 75, 0.3), #020617, rgba(30, 27, 75, 0.3));
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}
@media (min-width: 1024px) {
    .cta-banner { padding: 112px 0; }
}
.cta-banner__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(109, 40, 217, 0.15), rgba(15, 23, 42, 1), rgba(109, 40, 217, 0.15));
}
.cta-banner__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(109, 40, 217, 0.2), rgba(6, 182, 212, 0.2), rgba(109, 40, 217, 0.2));
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    opacity: 0.5;
}
.cta-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #6d28d9, #06b6d4);
    margin-bottom: 32px;
    box-shadow: var(--shadow-glow-lg);
}
.cta-banner__icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    position: relative;
    padding-top: 64px;
    padding-bottom: 32px;
    background: #020617;
}
.site-footer__top-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 48px;
    }
}
.footer-brand {
    grid-column: span 2;
}
@media (min-width: 768px) {
    .footer-brand { grid-column: span 1; }
}
.footer-brand__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    max-width: 280px;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social__link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all var(--transition);
}
.footer-social__link:hover {
    color: var(--color-primary-light);
    border-color: rgba(139, 92, 246, 0.5);
}
.footer-social__link svg {
    width: 20px;
    height: 20px;
}
.footer-col__title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 16px;
}
.footer-col__links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col__links li {
    margin-bottom: 12px;
}
.footer-col__links a {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    transition: color var(--transition);
}
.footer-col__links a:hover {
    color: var(--color-primary-light);
}
.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}
.footer-bottom p {
    font-size: 0.875rem;
    color: var(--color-text-dim);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.4); }
    50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.8); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-10px); }
    75% { transform: translateY(-30px) translateX(5px); }
}

@keyframes typing-dot {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* --- Selection --- */
::selection {
    background: rgba(109, 40, 217, 0.3);
    color: var(--color-text);
}

/* --- WP Admin Bar Fix --- */
body.admin-bar .site-header {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}
