* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

:root {
    --bg: #07040f;
    --bg-soft: #0d0818;
    --card-bg: #0e0a1c;
    --card-bg-alt: #140d26;
    --purple: #5b21b6;
    --purple-light: #7c3aed;
    --accent: #a855f7;
    --accent-glow: rgba(168, 85, 247, 0.35);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.68);
    --muted-dark: rgba(255, 255, 255, 0.4);
    --outline: rgba(255, 255, 255, 0.14);
    --outline-strong: rgba(255, 255, 255, 0.45);
    --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    --radius: 14px;
}

body {
    position: relative;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Roboto Slab', Georgia, serif;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.bg-glow {
    position: fixed;
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    width: 820px;
    height: 560px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.28) 0%, rgba(7, 4, 15, 0) 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

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

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-grid-bg,
    .avatar-ring {
        animation: none !important;
    }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(7, 4, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--outline);
}

.site-nav-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 16px 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.site-nav-logo {
    display: inline-flex;
    line-height: 0;
}

.site-nav-logo img {
    height: 38px;
    width: 38px;
    object-fit: contain;
    border-radius: 9px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.site-nav-logo:hover img {
    transform: scale(1.06);
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.site-nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-group {
    position: relative;
}

.nav-top-link {
    display: inline-block;
    background: transparent;
    border: 1px solid transparent;
    color: var(--muted);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-top-link:hover {
    color: #ffffff;
}

.nav-top-link.is-active {
    color: #ffffff;
    border-color: var(--outline-strong);
    background: rgba(255, 255, 255, 0.05);
}

.nav-group.is-open .nav-top-link {
    color: #ffffff;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-drop {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    display: flex;
    flex-direction: column;
    min-width: 180px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid var(--outline);
    background: var(--card-bg);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.nav-group.is-open .nav-drop {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    border-color: var(--outline-strong);
}

.nav-drop a {
    padding: 9px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid transparent;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.nav-drop a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-drop a.is-active {
    color: #ffffff;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   HERO BANNER (IN-MOTION TOPBAR / HERO)
   ========================================================================== */

.hero-banner {
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-height: 320px;
    padding: 70px 24px 60px;
    border-bottom: 1px solid var(--outline);
    background: var(--bg);
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
    z-index: 0;
}

.hero-banner-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    order: 2;
}

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: 10px;
}

.hero-sub {
    display: block;
    font-size: clamp(15px, 2vw, 18px);
    font-style: normal;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 20px;
}

/* Static Avatar */
.hero-avatar-wrapper {
    flex-shrink: 0;
    order: 1;
}

.avatar-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: none;
}

/* ==========================================================================
   PAGE BANNER & GENERAL LAYOUT
   ========================================================================== */

.page-banner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 360px;
    padding: 90px 24px;
    background: linear-gradient(180deg, rgba(7, 4, 15, 0.55) 0%, rgba(7, 4, 15, 0.93) 100%), var(--bg) url('contact.png') center/cover no-repeat;
    border-bottom: 1px solid var(--outline);
}

.page-banner-inner {
    width: min(640px, 100%);
}

.page-banner-title {
    font-size: clamp(38px, 6vw, 58px);
    line-height: 1.05;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    margin-bottom: 16px;
}

.page-banner-text {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

.wrap {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 50px 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ==========================================================================
   CARDS & BUTTONS
   ========================================================================== */

.card {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--outline);
    padding: 34px 32px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    transition: transform 200ms ease, border-color 200ms ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--outline-strong);
}

.card-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 16px;
}

.card-sub {
    display: block;
    text-align: center;
    color: var(--muted);
    font-size: 15px;
    margin: -6px auto 22px;
    max-width: 480px;
}

.card-text {
    max-width: 560px;
    margin: 0 auto 24px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
    text-align: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 26px;
    width: fit-content;
    white-space: nowrap;
    border-radius: 9999px;
    background: var(--purple-light);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--accent);
    border-color: #fff;
    box-shadow: 0 0 24px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
}

/* Secondary CTA — scoped with higher specificity so it actually
   overrides the solid purple .btn-primary background */
.btn-primary.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.btn-primary.btn-outline:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: #ffffff;
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-wrap {
    display: flex;
    justify-content: center;
}

.social-wrap {
    gap: 14px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--card-bg-alt);
    border: 1px solid var(--outline);
    color: var(--muted);
    transition: all 0.2s ease;
}

.icon-btn:hover {
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 18px var(--accent-glow);
    transform: translateY(-2px);
}

.icon-btn svg {
    width: 22px;
    height: 22px;
}

.cta-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* ==========================================================================
   QUALITIES, TAGS, SITES & APPS GRIDS
   ========================================================================== */

.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.quality-item {
    text-align: center;
    border-radius: 10px;
    border: 1px solid var(--outline);
    background: var(--card-bg-alt);
    padding: 24px 22px;
    transition: transform 180ms ease, border-color 180ms ease;
}

.quality-item:hover {
    transform: translateY(-3px);
    border-color: var(--outline-strong);
}

.quality-item h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.quality-item p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.tag-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tag {
    background: rgba(124, 58, 237, 0.14);
    color: #e4d6ff;
    border: 1px solid var(--outline);
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 7px;
}

.subpage-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 26px;
}

.subpage-switch a {
    padding: 9px 20px;
    border-radius: 8px;
    border: 1px solid var(--outline);
    color: var(--muted);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.subpage-switch a:hover {
    border-color: var(--outline-strong);
    color: var(--text);
}

.subpage-switch a.is-active {
    border-color: #ffffff;
    background: rgba(168, 85, 247, 0.2);
    color: #ffffff;
}

.section-note {
    text-align: center;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14.5px;
}

/* --- Sites Grid & Responsive Scaling --- */

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    width: 100%;
}

.site-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--outline);
    background: var(--card-bg-alt);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-card:hover {
    transform: translateY(-3px);
    border-color: var(--outline-strong);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 24px var(--accent-glow);
}

.site-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.03);
}

.site-img-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.8);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.site-card:hover .site-img-wrap img {
    filter: grayscale(0);
    transform: scale(1.03);
}

.site-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.site-info h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: #ffffff;
}

.site-info p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0;
}

/* --- Apps & Content Cards --- */

.app-card {
    display: block;
    text-align: center;
    padding: 22px 20px;
    border-radius: 10px;
    border: 1px solid var(--outline);
    background: var(--card-bg-alt);
    transition: transform 180ms ease, border-color 180ms ease;
}

.app-card:hover {
    transform: translateY(-3px);
    border-color: var(--outline-strong);
}

.app-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 14px;
}

.app-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.app-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.app-link {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    transition: color 180ms ease;
}

.app-card:hover .app-link {
    color: var(--accent);
}

.video-card {
    border-radius: 10px;
    border: 1px solid var(--outline);
    background: var(--card-bg-alt);
    overflow: hidden;
}

.video-card video {
    display: block;
    width: 100%;
}

.video-caption {
    padding: 14px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.testimonial-card {
    text-align: center;
    border-radius: 10px;
    border: 1px solid var(--outline);
    background: var(--card-bg-alt);
    padding: 22px 20px;
    transition: transform 180ms ease, border-color 180ms ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    border-color: var(--outline-strong);
}

.testimonial-card.has-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.testimonial-card.has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(7, 4, 15, 0.55), rgba(7, 4, 15, 0.9));
}

.testimonial-message {
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.testimonial-person {
    font-weight: 800;
    font-size: 14px;
}

.testimonial-role {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.ftr {
    position: relative;
    z-index: 1;
    padding: 44px 0 32px;
    text-align: center;
}

.footer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 auto 32px;
    padding: 18px 28px;
    width: fit-content;
    max-width: 90%;
    border-radius: 10px;
    border: 1px solid var(--outline);
    background: var(--card-bg);
    transition: border-color 0.2s ease;
}

.footer-cta:hover {
    border-color: var(--outline-strong);
}

.footer-cta span {
    color: var(--muted);
    font-size: 14px;
}

.footer-cta a {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 6px;
    border: 1px solid #ffffff;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.footer-cta a:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 18px var(--accent-glow);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--outline);
    color: var(--muted);
    transition: all 0.2s ease;
}

.footer-socials a:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.footer-socials svg {
    width: 20px;
    height: 20px;
}

.copyright {
    color: var(--muted-dark);
    font-family: var(--mono);
    font-size: 12px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 768px) {
    .hero-banner-inner {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .cta-row {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero-banner {
        min-height: 300px;
        padding: 60px 20px 46px;
    }

    .avatar-ring {
        width: 130px;
        height: 130px;
    }

    .card {
        padding: 26px 20px;
    }
}

@media (max-width: 480px) {
    .site-nav-inner {
        padding: 14px 16px 12px;
    }

    .nav-top-link {
        padding: 8px 12px;
        font-size: 13px;
    }

    .sites-grid {
        grid-template-columns: 1fr;
    }
}
