/* ============================================================================
   supremacy.invest - Stylesheet
   Brutalist Quantitative Design | Capital Concentration Theme
   ========================================================================== */

:root {
    --color-bg-deep: #0a0a0a;
    --color-bg-mid: #1a1a1a;
    --color-line: #333333;
    --color-accent-primary: #c9a961;
    --color-accent-secondary: #e8e8e8;
    --color-accent-tertiary: #8b2323;
    --color-glow: #e6d989;
    
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Courier New', monospace;
    
    --timing-sharp: cubic-bezier(0.25, 0.1, 0.25, 1);
    --timing-standard: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================================
   RESET & BASE
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent-primary) var(--color-bg-mid);
}

html::-webkit-scrollbar {
    width: 12px;
}

html::-webkit-scrollbar-track {
    background: var(--color-bg-mid);
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-accent-primary) 0%, #666666 100%);
    border-radius: 6px;
}

html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-glow) 0%, #888888 100%);
}

body {
    background: linear-gradient(135deg, var(--color-bg-mid) 0%, var(--color-bg-deep) 100%);
    color: var(--color-accent-secondary);
    font-family: var(--font-body);
    font-weight: 500;
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

/* ============================================================================
   SCROLL INDICATOR & NAVIGATION
   ========================================================================== */

.scroll-track {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 200px;
    background: rgba(51, 51, 51, 0.3);
    border-radius: 2px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.scrolling .scroll-track {
    opacity: 1;
}

.scroll-indicator {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle at center, var(--color-accent-primary) 0%, #8b6914 100%);
    border-radius: 50%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    box-shadow: 0 0 10px 2px rgba(201, 169, 97, 0.4);
    transition: top 0.1s linear;
}

/* ============================================================================
   SECTIONS & LAYOUT
   ========================================================================== */

.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section {
    height: 100vh;
}

.content-section {
    height: 80vh;
    background: linear-gradient(135deg, var(--color-bg-mid) 0%, var(--color-bg-deep) 100%);
}

.apex-section {
    height: 100vh;
    background: linear-gradient(135deg, var(--color-bg-mid) 0%, var(--color-bg-deep) 100%);
}

/* ============================================================================
   HERO SECTION - ZENITH
   ========================================================================== */

.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hero-text-wrapper {
    text-align: center;
    z-index: 20;
}

.domain-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.5rem, 10vw, 8rem);
    letter-spacing: -0.02em;
    color: var(--color-accent-secondary);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInLetters 4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

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

.capital-phrase {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1rem, 3vw, 2rem);
    letter-spacing: 0.12em;
    color: var(--color-accent-primary);
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInPhrase 1.5s ease-out 1.5s forwards;
    margin-top: 0.5rem;
}

@keyframes fadeInPhrase {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Pinning Lines */
.pinning-line {
    position: absolute;
    height: 1px;
    background: var(--color-line);
    width: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: extendLine 3s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.pinning-top {
    top: 40%;
    animation-delay: 0.6s;
}

.pinning-bottom {
    top: 60%;
    animation-delay: 0.6s;
}

@keyframes extendLine {
    0% {
        width: 0;
    }
    100% {
        width: 60vw;
        max-width: 500px;
    }
}

/* ============================================================================
   CONTENT SECTIONS
   ========================================================================== */

.content-column {
    max-width: 50em;
    padding: clamp(2rem, 5vw, 4rem);
    position: relative;
    z-index: 10;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(201, 169, 97, 0.1) 35px,
        rgba(201, 169, 97, 0.1) 70px
    );
    pointer-events: none;
}

.section-heading {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 5rem);
    letter-spacing: -0.02em;
    color: var(--color-accent-secondary);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.section-body {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.8;
    color: var(--color-accent-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
}

/* Metric Display */
.metric-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(201, 169, 97, 0.3);
    background: rgba(26, 26, 26, 0.5);
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent-primary);
    opacity: 0.8;
}

.metric-value {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: -0.01em;
    color: var(--color-accent-secondary);
    text-transform: uppercase;
}

/* ============================================================================
   APEX SECTION - CONVERGENCE
   ========================================================================== */

.apex-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.apex-point {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--color-accent-primary) 0%, #8b6914 100%);
    box-shadow: 0 0 20px 4px rgba(201, 169, 97, 0.6), 0 0 40px 8px rgba(201, 169, 97, 0.3);
    animation: pulseApex 2s ease-in-out infinite;
}

@keyframes pulseApex {
    0%, 100% {
        box-shadow: 0 0 20px 4px rgba(201, 169, 97, 0.6), 0 0 40px 8px rgba(201, 169, 97, 0.3);
    }
    50% {
        box-shadow: 0 0 30px 8px rgba(201, 169, 97, 0.8), 0 0 60px 12px rgba(201, 169, 97, 0.5);
    }
}

.convergence-text {
    text-align: center;
    z-index: 20;
    position: relative;
}

.apex-phrase-primary {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 5rem);
    letter-spacing: -0.02em;
    color: var(--color-accent-secondary);
    margin: 0;
    line-height: 1.1;
}

.apex-phrase-secondary {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 5rem);
    letter-spacing: -0.02em;
    color: var(--color-accent-primary);
    margin: 0;
    line-height: 1.1;
}

.apex-phrase-tertiary {
    font-family: var(--font-mono);
    font-size: clamp(0.9rem, 2vw, 1.5rem);
    letter-spacing: 0.15em;
    color: var(--color-accent-primary);
    text-transform: uppercase;
    margin-top: 1.5rem;
    opacity: 0.7;
}

/* ============================================================================
   DIAGONAL CANVAS
   ========================================================================== */

.diagonal-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.diagonal-canvas line {
    stroke: var(--color-line);
    stroke-width: 1;
    opacity: 0.4;
}

/* ============================================================================
   RESPONSIVE DESIGN - TABLET
   ========================================================================== */

@media (max-width: 1024px) {
    .scroll-track {
        right: 20px;
        width: 3px;
        height: 150px;
    }
    
    .section {
        min-height: 100vh;
    }
    
    .content-section {
        height: 100vh;
    }
    
    .section-heading {
        font-size: clamp(1.5rem, 5vw, 3.5rem);
    }
    
    .metric-display {
        padding: 1rem;
    }
}

/* ============================================================================
   RESPONSIVE DESIGN - MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    .scroll-track {
        opacity: 0 !important;
    }
    
    .domain-name {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    
    .capital-phrase {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
        letter-spacing: 0.08em;
    }
    
    .pinning-line {
        max-width: 80vw;
    }
    
    .content-column {
        padding: 2rem 1.5rem;
    }
    
    .section-heading {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        margin-bottom: 1.5rem;
    }
    
    .section-body {
        font-size: clamp(0.9rem, 1vw, 1rem);
        margin-bottom: 1rem;
    }
    
    .metric-display {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .metric-label {
        font-size: 0.75rem;
    }
    
    .metric-value {
        font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    }
    
    .apex-phrase-primary {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .apex-phrase-secondary {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .apex-phrase-tertiary {
        font-size: clamp(0.8rem, 1.5vw, 1rem);
        margin-top: 1rem;
    }
}

/* ============================================================================
   TRANSITION STATES
   ========================================================================== */

a {
    color: var(--color-accent-primary);
    text-decoration: none;
    position: relative;
    transition: color 0.3s var(--timing-sharp);
}

a:hover {
    color: var(--color-glow);
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent-primary);
    transition: width 0.3s var(--timing-sharp);
}

a:hover::after {
    width: 100%;
    background: var(--color-glow);
}

/* ============================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .scroll-track,
    .diagonal-canvas {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .domain-name,
    .section-heading,
    .apex-phrase-primary,
    .apex-phrase-secondary {
        color: black;
    }
    
    .capital-phrase,
    .metric-label,
    .apex-phrase-tertiary,
    .color-accent-primary {
        color: #666;
    }
}
