/* Host Digital - Shared Styles */

/* Fonts - loaded via link tag in HTML for better performance */
:root {
    --ease-ai: cubic-bezier(0.22, 1, 0.36, 1);
    --delay-base: 0.03s;
    --font-headline: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --color-primary: #00a897;
    --color-primary-light: #00c9b3;
}

/* Base */
body {
    font-family: var(--font-body);
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
}

/* Grid Lines */
.grid-lines {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    pointer-events: none;
    z-index: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    opacity: 0.4;
}

.grid-line {
    width: 1px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Animation System */
.ai-char, .ai-word {
    opacity: 0;
    display: inline-block;
    white-space: pre;
    will-change: transform, opacity;
    transform: translateY(20px);
}

.ai-active .ai-char,
.ai-active .ai-word {
    animation: animationIn 0.6s var(--ease-ai) forwards;
    animation-delay: calc(var(--ai-index) * var(--delay-base));
}

h1 .ai-char, h2 .ai-char {
    --delay-base: 0.04s;
    animation-duration: 0.8s;
}

@keyframes animationIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 3s;
}

/* Fade Up Block */
.fade-up-block {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.ai-active.fade-up-block {
    opacity: 1;
    transform: translateY(0);
}

/* Section Numbers */
.section-number {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* Hover Interaction */
.ai-hover-target {
    transition: letter-spacing 0.3s var(--ease-ai), opacity 0.3s ease;
}

.ai-hover-target:hover {
    letter-spacing: 0.02em;
    opacity: 0.9;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* Performance */
section { content-visibility: auto; }

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: none;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.glass-card strong {
    color: var(--color-primary);
    font-weight: 600;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1.5px;
    background: linear-gradient(
        135deg,
        rgba(0, 168, 151, 0.6) 0%,
        rgba(0, 168, 151, 0.2) 30%,
        rgba(0, 168, 151, 0.1) 70%,
        rgba(0, 168, 151, 0.4) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 1.2rem;
    background: linear-gradient(
        135deg,
        rgba(0, 168, 151, 0.25) 0%,
        transparent 40%,
        transparent 60%,
        rgba(0, 168, 151, 0.15) 100%
    );
    filter: blur(6px);
    pointer-events: none;
    z-index: -1;
}

/* Accordion */
.accordion-content {
    transition: max-height 0.4s var(--ease-ai), opacity 0.4s var(--ease-ai);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.accordion-content.open {
    opacity: 1;
}

/* Utilities */
.tabular-nums {
    font-variant-numeric: tabular-nums;
}
