/* ApexWEB — standalone marketing site */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100dvh;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #e5e7eb;
    background: #050817;
}

a {
    color: #40e0d0;
}

a:hover {
    color: #7af0e8;
}

img {
    max-width: 100%;
    height: auto;
}

/* —— Splash —— */

body.apexweb-splash-active {
    overflow: hidden;
}

.apexweb-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #02040d;
    pointer-events: none;
}

.apexweb-splash__stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1.5px 1.5px at 80% 20%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 40% 80%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 10% 60%, rgba(255, 255, 255, 0.4), transparent);
    opacity: 0;
    animation: apexweb-stars-in 0.8s ease forwards;
}

.apexweb-splash__glow {
    position: absolute;
    width: min(90vw, 520px);
    height: min(90vw, 520px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(64, 224, 208, 0.35) 0%, rgba(64, 224, 208, 0.08) 40%, transparent 70%);
    filter: blur(24px);
    opacity: 0;
    transform: scale(0.6);
    animation: apexweb-glow-pulse 2s ease-in-out 0.2s forwards;
}

.apexweb-splash__word {
    position: relative;
    display: flex;
    gap: clamp(0.08em, 1.5vw, 0.18em);
    margin: 0;
    font-size: clamp(4.5rem, 22vw, 11rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.apexweb-splash__letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(12%) scale(0.92);
    background: linear-gradient(165deg, #ffffff 0%, #40e0d0 45%, #7af0e8 70%, #ffb86b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 28px rgba(64, 224, 208, 0.45));
    animation: apexweb-letter-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.apexweb-splash__letter:nth-child(1) { animation-delay: 0.05s; }
.apexweb-splash__letter:nth-child(2) { animation-delay: 0.15s; }
.apexweb-splash__letter:nth-child(3) { animation-delay: 0.25s; }
.apexweb-splash__letter:nth-child(4) { animation-delay: 0.35s; }

.apexweb-splash.is-exiting .apexweb-splash__word {
    animation: apexweb-word-exit 0.85s cubic-bezier(0.55, 0, 0.45, 1) forwards;
}

.apexweb-splash.is-exiting .apexweb-splash__glow {
    animation: apexweb-glow-exit 0.85s ease forwards;
}

.apexweb-splash.is-exiting {
    animation: apexweb-screen-exit 0.9s ease 0.15s forwards;
}

.apexweb-splash.is-done {
    display: none;
}

@keyframes apexweb-letter-in {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes apexweb-stars-in {
    to { opacity: 1; }
}

@keyframes apexweb-glow-pulse {
    0% { opacity: 0; transform: scale(0.6); }
    40% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.85; transform: scale(1.08); }
}

@keyframes apexweb-word-exit {
    to { opacity: 0; transform: scale(1.35); filter: blur(6px); }
}

@keyframes apexweb-glow-exit {
    to { opacity: 0; transform: scale(1.6); }
}

@keyframes apexweb-screen-exit {
    to { opacity: 0; visibility: hidden; }
}

/* —— Site shell —— */

.apexweb-site {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}

.apexweb-site.is-visible {
    opacity: 1;
    transform: none;
}

.apexweb-site--instant {
    opacity: 1;
    transform: none;
    transition: none;
}

.apexweb-sky {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse 120% 80% at 50% 0%, #0f172a 0%, #050817 55%, #02040d 100%);
    pointer-events: none;
}

.apexweb-sky__stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 15% 25%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1px 1px at 55% 65%, rgba(255, 255, 255, 0.25), transparent),
        radial-gradient(1.5px 1.5px at 75% 15%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 35% 85%, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0.7;
}

.apexweb-sky__glow {
    position: absolute;
    top: -20%;
    left: 50%;
    width: min(100vw, 720px);
    height: min(100vw, 720px);
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(64, 224, 208, 0.12) 0%, transparent 65%);
    filter: blur(40px);
}

/* —— Header —— */

.apexweb-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem clamp(1rem, 4vw, 2rem);
    backdrop-filter: blur(12px);
    background: rgba(5, 8, 23, 0.72);
    border-bottom: 1px solid rgba(64, 224, 208, 0.12);
}

.apexweb-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 72rem;
    margin: 0 auto;
}

.apexweb-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.apexweb-brand__logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.apexweb-brand__title {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.apexweb-brand__title-prefix {
    color: #ffffff;
}

.apexweb-brand__title-accent {
    color: #40e0d0;
}

.apexweb-brand__tagline {
    display: block;
    font-size: 0.72rem;
    color: #9ca3af;
    letter-spacing: 0.04em;
}

.apexweb-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.apexweb-nav {
    display: none;
    gap: 1rem;
    font-size: 0.9rem;
}

.apexweb-nav a {
    color: #b7c4d6;
    text-decoration: none;
}

.apexweb-nav a:hover {
    color: #40e0d0;
}

@media (min-width: 640px) {
    .apexweb-nav {
        display: flex;
    }
}

/* —— Buttons —— */

.apexweb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.apexweb-btn--primary {
    background: linear-gradient(135deg, #40e0d0, #2bb8aa);
    color: #041018;
    border-color: rgba(64, 224, 208, 0.5);
}

.apexweb-btn--primary:hover {
    background: linear-gradient(135deg, #7af0e8, #40e0d0);
    color: #041018;
}

.apexweb-btn--secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.14);
}

.apexweb-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* —— Main —— */

.apexweb-main {
    flex: 1;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem) 3rem;
}

.apexweb-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* —— Hero —— */

.apexweb-hero-kicker {
    display: inline-flex;
    margin: 0 0 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(64, 224, 208, 0.35);
    background: rgba(64, 224, 208, 0.08);
    color: #40e0d0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.apexweb-hero-title {
    margin: 0 0 1rem;
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.apexweb-hero-title-accent {
    background: linear-gradient(90deg, #40e0d0, #ffb86b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.apexweb-hero-lead {
    max-width: 42rem;
    margin: 0;
    color: #b7c4d6;
    font-size: 1.05rem;
    line-height: 1.65;
}

.apexweb-benefits {
    display: grid;
    gap: 1rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .apexweb-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.apexweb-benefit {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 8, 23, 0.45);
}

.apexweb-benefit__title {
    color: #ffffff;
    font-size: 0.98rem;
}

.apexweb-benefit__body {
    color: #b7c4d6;
    font-size: 0.92rem;
    line-height: 1.55;
}

/* —— Cards —— */

.apexweb-card {
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border-radius: 20px;
    border: 1px solid rgba(64, 224, 208, 0.18);
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(8px);
}

.apexweb-card__label {
    margin: 0 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #40e0d0;
}

.apexweb-card__title {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
}

.apexweb-body {
    margin: 0 0 1.25rem;
    color: #b7c4d6;
    line-height: 1.65;
}

.apexweb-app-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 720px) {
    .apexweb-app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.apexweb-app-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(64, 224, 208, 0.22);
    background: rgba(17, 24, 39, 0.72);
}

.apexweb-app-card__tag {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #40e0d0;
}

.apexweb-app-card__name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
}

.apexweb-app-card__name-sky {
    color: #ffffff;
}

.apexweb-app-card__name-sky-accent,
.apexweb-app-card__name-hud-accent {
    color: #40e0d0;
}

.apexweb-app-card__body {
    margin: 0;
    flex: 1;
    color: #b7c4d6;
    font-size: 0.95rem;
    line-height: 1.55;
}

.apexweb-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.apexweb-footer-note {
    margin: 1.25rem 0 0;
    color: #6b7280;
    font-size: 0.85rem;
}

.apexweb-footer-note a {
    color: #9ca3af;
}

/* —— Skip link (a11y + SEO crawl aid) —— */

.apexweb-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 0.5rem 1rem;
    background: #40e0d0;
    color: #041018;
    font-weight: 600;
    text-decoration: none;
}

.apexweb-skip-link:focus {
    left: 0.5rem;
    top: 0.5rem;
}

/* —— FAQ —— */

.apexweb-faq {
    margin: 0;
}

.apexweb-faq__item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.apexweb-faq__item:first-child {
    padding-top: 0;
}

.apexweb-faq__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.apexweb-faq__q {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.apexweb-faq__a {
    margin: 0;
    color: #b7c4d6;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* —— Footer —— */

.apexweb-footer {
    padding: 1.25rem clamp(1rem, 4vw, 2rem);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.apexweb-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.apexweb-footer__legal a {
    color: #9ca3af;
    text-decoration: none;
}

.apexweb-footer__legal a:hover {
    color: #40e0d0;
}

.apexweb-footer__copy {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
}

@media (prefers-reduced-motion: reduce) {
    .apexweb-splash {
        display: none !important;
    }

    .apexweb-site {
        opacity: 1;
        transform: none;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
