:root {
    /* Brand Colors */
    --c-obsidian: #0A0E17;
    --c-midnight: #141B2D;
    --c-platinum: #C9A962;
    --c-graphite: #2A3352;
    --c-arctic: #E8ECF4;
    --c-white: #FFFFFF;
    --c-gold: #D4B96E;
    --c-navy: #0F1729;
    --c-hasotek: #00D4FF;
    --c-tekthon: #8B9DC3;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Outfit', sans-serif;

    /* Layout */
    --container-max: 1280px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--c-obsidian);
    color: var(--c-arctic);
    font-family: var(--font-primary);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    background: linear-gradient(135deg, var(--c-obsidian) 0%, var(--c-midnight) 50%, var(--c-navy) 100%);
    min-height: 100vh;
}

/* SVG Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
}

/* Custom Cursor */
body, a, button {
    cursor: none !important;
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background-color: var(--c-platinum);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor-halo {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(201, 169, 98, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    transition-duration: 100ms;
    transition-timing-function: ease-out;
}

.cursor-hover .cursor-dot {
    width: 0;
    height: 0;
}

.cursor-hover .cursor-halo {
    width: 50px;
    height: 50px;
    background-color: rgba(201, 169, 98, 0.1);
    border-color: rgba(201, 169, 98, 0.8);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--c-obsidian);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s var(--ease-out);
}

.monolith-logo {
    width: 60px;
}

.monolith-path, .monolith-incision {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawMonolith 2s var(--ease-out) forwards;
}

.monolith-incision {
    animation-delay: 0.5s;
}

@keyframes drawMonolith {
    to { stroke-dashoffset: 0; }
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Typography & Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 5%;
}

.center {
    text-align: center;
}

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--c-white);
}

p {
    color: rgba(232, 236, 244, 0.85);
    margin-bottom: 1.5rem;
}

a {
    color: var(--c-white);
    text-decoration: none;
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 1000;
    transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.28em;
    color: var(--c-white);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--c-platinum);
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 1px;
    background-color: var(--c-white);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.2;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    z-index: 1;
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 300;
    color: var(--c-arctic);
    margin-bottom: 2.5rem;
    line-height: 1.2;
}

.gold-line {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--c-platinum), transparent);
    margin-bottom: 2.5rem;
    transition: width 1.5s var(--ease-out);
}

.hero.loaded .gold-line {
    width: 120px;
}

.hero-desc {
    max-width: 500px;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--c-platinum);
    color: var(--c-platinum);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--c-platinum) 0%, var(--c-gold) 100%);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out);
}

.cta-button:hover {
    color: var(--c-obsidian);
}

.cta-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.stagger-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s var(--ease-out);
}

.hero.loaded .stagger-text {
    opacity: 1;
    transform: translateY(0);
}

.hero.loaded .stagger-text:nth-child(1) { transition-delay: 0.8s; }
.hero.loaded .stagger-text:nth-child(2) { transition-delay: 1.0s; }
.hero.loaded .stagger-text:nth-child(3) { transition-delay: 1.2s; }
.hero.loaded .stagger-text:nth-child(4) { transition-delay: 1.4s; }
.hero.loaded .stagger-text:nth-child(5) { transition-delay: 1.6s; }

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    z-index: 1;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--c-platinum), transparent);
    animation: scrollLine 2s infinite;
}

.scroll-text {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--c-platinum);
    transform: rotate(90deg);
    transform-origin: center left;
    position: absolute;
    bottom: -15px;
    left: 0;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Sections General */
section:not(.hero) {
    padding: 8rem 0;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.2), transparent);
}

/* Thesis Section */
.thesis-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.thesis-content p {
    font-size: 1.1rem;
}

.flywheel {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.dash-ring {
    animation: rotateRing 40s linear infinite;
    transform-origin: 200px 200px;
}

@keyframes rotateRing {
    to { transform: rotate(360deg); }
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 4rem;
}

.kpi-item {
    text-align: center;
}

.kpi-value {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: clamp(40px, 5vw, 64px);
    color: var(--c-platinum);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.kpi-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-arctic);
    opacity: 0.7;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.glass-card {
    background: rgba(20, 27, 45, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 169, 98, 0.15);
    padding: 3rem 2rem;
    border-top: 2px solid transparent;
    transition: all 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(20, 27, 45, 0.8);
}

.card-hiram:hover { border-top-color: var(--c-platinum); }
.card-hasotek:hover { border-top-color: var(--c-hasotek); }
.card-tekthon:hover { border-top-color: var(--c-tekthon); }

.card-icon {
    margin-bottom: 2rem;
}

.card-title {
    font-size: 24px;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--c-platinum);
}

.card-desc {
    font-weight: 500;
    color: var(--c-white);
    margin-bottom: 1.5rem;
}

.card-expanded {
    opacity: 0.6;
    font-size: 0.95rem;
    margin-top: auto;
}

/* Value Chain Section */
.chain-flow {
    max-width: 600px;
    margin: 4rem auto 0;
    display: flex;
    flex-direction: column;
}

.chain-step {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255,255,255,0.02);
    padding: 1.5rem 2rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s;
}

.chain-step:hover {
    transform: translateX(10px);
    background: rgba(255,255,255,0.04);
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(20, 27, 45, 0.8);
    border: 1px solid rgba(201, 169, 98, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    color: var(--c-platinum);
}

.step-icon svg {
    width: 20px;
    height: 20px;
}

.step-content h4 {
    font-size: 18px;
    margin-bottom: 0.25rem;
}

.step-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.7;
}

.chain-connector {
    height: 40px;
    position: relative;
    margin-left: 3rem; /* Align with icon center */
}

.line-flow {
    position: absolute;
    top: 0;
    left: 23px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--c-platinum), transparent, var(--c-platinum));
    opacity: 0.3;
}

/* Impact Metrics */
.impact-metrics {
    background-color: var(--c-navy);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.impact-val {
    font-family: var(--font-secondary);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 600;
    color: var(--c-platinum);
    line-height: 1;
    margin-bottom: 1rem;
}

.impact-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: rgba(232, 236, 244, 0.6);
}

/* Contact Section */
.contact-desc {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.contact-info {
    margin-top: 3rem;
    font-size: 14px;
    color: rgba(232, 236, 244, 0.6);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    padding: 6rem 0 3rem;
    background-color: var(--c-obsidian);
}

.footer-logo {
    width: 30px;
    margin-bottom: 2rem;
}

.footer-company {
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.footer-reg {
    font-size: 12px;
    color: rgba(232, 236, 244, 0.5);
    margin-bottom: 3rem;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(201, 169, 98, 0.2);
    margin-bottom: 2rem;
}

.footer-legal {
    font-size: 11px;
    color: rgba(232, 236, 244, 0.4);
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .thesis-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .cursor-dot, .cursor-halo {
        display: none;
    }
}
