/* W.COM.LY — shared theme (black / gold, high contrast) */

:root {
    --gold: #D4AF37;
    --gold-dim: #8a7020;
    --white: #ffffff;
    --gray: #666666;
    --black-overlay: rgba(0,0,0,0.85);
}

* { box-sizing: border-box; }

html, body {
    background-color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    color: #cccccc !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    overflow-x: hidden !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html { scrollbar-width: none; -ms-overflow-style: none; }
body::-webkit-scrollbar { display: none; }

html.home, body.home {
    height: 100% !important;
    overflow: hidden !important;
}

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.gold-text { color: var(--gold) !important; }
.white-text { color: var(--white) !important; }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeReveal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-in {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* ---------- Header ---------- */
.w-custom-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 2rem 5% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 9999 !important;
    background: var(--black-overlay) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

html.home .w-custom-header {
    position: absolute !important;
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    padding: 2rem !important;
}

.w-logo {
    text-decoration: none !important;
    font-size: 1.3rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase;
}
.logo-w { color: var(--white) !important; font-weight: 900 !important; }
.logo-suffix { color: var(--gray) !important; font-weight: 400 !important; transition: color 0.3s; }
.w-logo:hover .logo-suffix { color: var(--white) !important; }

.w-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; align-items: center; }
.w-nav a, .w-nav button {
    color: var(--gray) !important;
    text-decoration: none !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    transition: color 0.3s ease;
    font-family: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.w-nav a:hover, .w-nav button:hover, .w-nav a[aria-current="page"] { color: var(--white) !important; }
.w-nav a[aria-current="page"] { text-shadow: 0 0 8px rgba(255,255,255,0.35); }

html.home .w-nav a, html.home .w-nav button {
    font-size: 0.9rem !important;
    font-weight: 600;
}

/* ---------- Home ---------- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.w-wrapper {
    position: relative;
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
    perspective: 1000px;
}

.main-stage {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

.big-w-container { transform-style: preserve-3d; transition: transform 0.35s ease-out; will-change: transform; }

.big-w {
    font-size: clamp(8rem, 25vh, 22rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(180deg, #ffffff 25%, #666666 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 40px rgba(255,255,255,0.1));
    animation: fadeReveal 1.5s ease-out forwards;
}

.tagline {
    font-size: clamp(0.8rem, 1.6vw, 1.1rem);
    color: var(--white);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards 0.5s;
}

.cta-container {
    padding-bottom: 4rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    height: 120px;
}

.secure-input-wrapper {
    position: relative;
    width: 320px;
    max-width: 85%;
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards 1s;
}

.secure-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 15px 50px 15px 20px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.4s ease;
    border-radius: 4px;
}

.secure-input:focus { border-color: var(--gold); box-shadow: 0 0 20px rgba(212,175,55,0.12); }
.secure-input::placeholder { color: rgba(255,255,255,0.45); }
.secure-input:disabled { opacity: 0.6; }

.send-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}
.secure-input-wrapper.has-text .send-btn { opacity: 1; pointer-events: all; }
.send-btn:hover { color: var(--gold); }
.send-btn:disabled { opacity: 0.4 !important; pointer-events: none; }

.status-message {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    height: 1rem;
    text-align: center;
    transition: opacity 0.3s ease;
}
.status-message.visible { opacity: 1; }
.status-message.is-error { color: var(--gold); }

.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ---------- Content pages (About / Articles / 404) ---------- */
.content-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 180px 2rem 100px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -1.5px;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 6rem;
    font-weight: 500;
}

.info-block {
    margin-bottom: 6rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(212,175,55,0.3);
}

.block-title {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.block-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #a0a0a0;
    font-weight: 300;
    text-align: justify;
}

/* Identity showcase */
.showcase-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(20,20,20,0.5) 0%, rgba(0,0,0,0) 100%);
    border: 1px solid rgba(255,255,255,0.05);
}
.showcase-col h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #555;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #222;
    padding-bottom: 0.5rem;
}
.identity-item {
    display: block;
    font-family: "Courier New", Courier, monospace;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #ddd;
    transition: 0.3s;
}
.glow-gold {
    color: var(--gold) !important;
    text-shadow: 0 0 15px rgba(212,175,55,0.4), 0 0 30px rgba(212,175,55,0.1);
    font-weight: bold;
}

/* Acquisition + footer */
.acquisition-box {
    background: rgba(255,255,255,0.03);
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 4rem;
}
.acquisition-box .block-text { text-align: center; }

.footer-cta {
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid #111;
}
.cta-btn {
    display: inline-block;
    padding: 1.2rem 4rem;
    border: 1px solid #333;
    color: var(--white);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.5s ease;
    background: transparent;
    position: relative;
    overflow: hidden;
}
.cta-btn:hover {
    border-color: var(--gold);
    color: var(--gold) !important;
    box-shadow: 0 0 20px rgba(212,175,55,0.1);
}
.copyright { margin-top: 3rem; color: #333; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; }

/* ---------- Articles ---------- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 6rem;
}
.article-card {
    display: block;
    padding: 2rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.07);
    text-decoration: none;
    transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}
.article-card:hover {
    border-color: rgba(212,175,55,0.5);
    background: rgba(212,175,55,0.04);
    transform: translateY(-3px);
}
.article-meta { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 1rem; }
.article-title { font-size: 1.3rem; color: var(--white); margin: 0 0 0.8rem; font-weight: 600; line-height: 1.3; }
.article-excerpt { font-size: 0.95rem; line-height: 1.7; color: #a0a0a0; margin: 0 0 1.5rem; font-weight: 300; }
.article-read { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }

.post-view { max-width: 760px; margin: 0 auto; }
.post-body p { font-size: 1.1rem; line-height: 1.9; color: #a0a0a0; font-weight: 300; margin-bottom: 1.8rem; }
.back-link {
    display: inline-block;
    margin-bottom: 3rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
}
.back-link:hover { color: var(--white); }
.empty-note { color: #666; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; text-align: center; padding: 3rem 0; }

/* ---------- RTL adjustments ---------- */
html[dir="rtl"] .info-block {
    padding-left: 0 !important;
    padding-right: 2rem !important;
    border-left: none !important;
    border-right: 1px solid rgba(212,175,55,0.3) !important;
}
html[dir="rtl"] .secure-input { padding: 15px 20px 15px 50px; }
html[dir="rtl"] .send-btn { right: auto; left: 10px; }
html[dir="rtl"] .hero-title, html[dir="rtl"] .block-title, html[dir="rtl"] .tagline { letter-spacing: 0; }
html[dir="rtl"] .hero-subtitle, html[dir="rtl"] .article-meta, html[dir="rtl"] .article-read,
html[dir="rtl"] .status-message, html[dir="rtl"] .copyright, html[dir="rtl"] .back-link { letter-spacing: 1px; }
html[dir="rtl"] .block-text, html[dir="rtl"] .article-card, html[dir="rtl"] .acquisition-box .block-text { text-align: right; }
html[dir="rtl"] .showcase-col h3 { letter-spacing: 0; }
html[dir="rtl"] .cta-btn { letter-spacing: 1px; }
html[dir="rtl"] .article-read span { display: inline-block; transform: scaleX(-1); }

/* ---------- Responsive ---------- */
@media screen and (max-width: 768px) {
    .w-custom-header { padding: 1.5rem 2rem !important; }
    html.home .w-custom-header { padding: 1.5rem 2rem !important; }
    .w-nav ul { gap: 1rem; }
    .info-block {
        padding-left: 0 !important;
        border-left: none !important;
        border-top: 1px solid var(--gold-dim) !important;
        padding-top: 2rem !important;
    }
    html[dir="rtl"] .info-block {
        padding-right: 0 !important;
        border-right: none !important;
        border-top: 1px solid var(--gold-dim) !important;
        padding-top: 2rem !important;
    }
    .hero-title { font-size: 2.8rem !important; }
    .showcase-container { padding: 1rem; grid-template-columns: 1fr; }
    .acquisition-box { padding: 2rem 1rem; }
    .big-w { font-size: 30vh; }
    .cta-container { padding-bottom: 5rem; }
    .content-wrapper { padding: 140px 1.5rem 80px; }
    .hero-subtitle { margin-bottom: 4rem; }
    .articles-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .animate-in, .big-w, .tagline, .secure-input-wrapper { opacity: 1 !important; animation: none !important; transform: none !important; }
    .article-card, .cta-btn, .big-w-container, .secure-input, .send-btn { transition: none !important; }
}
