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

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a2e;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

#graphCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 2rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-left, .nav-right {
    display: flex;
    gap: 2rem;
}

.nav-item {
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nav-item:hover {
    opacity: 0.7;
}

.main {
    padding-top: 8rem;
    min-height: 100vh;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    padding: 2rem 2rem 1rem;
    padding-top: 130px;
    /* Single control for moving the whole hero block up/down */
    --hero-offset: -3rem;
}

.hero-text {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; /* precise space between logo and EST. */
    transform: translateY(var(--hero-offset));
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.company-logo {
    max-width: 1024px;
    width: 80%;
    height: auto;
    margin: 0; /* spacing handled by gap */
    filter: brightness(1.1);
    display: block;
}

.est-date {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    opacity: 0.6;
    margin: 0; /* spacing handled by gap */
}

/* Responsively ease the negative offset on smaller screens */
@media (max-width: 1024px) {
    .hero { --hero-offset: -2rem; }
}

@media (max-width: 640px) {
    .hero { --hero-offset: -1rem; }
}

.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section {
    margin-bottom: 4rem;
    max-width: 600px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.section-description {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 600px;
    opacity: 0.8;
}

.process-items {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

.process-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.process-number {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.process-title {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.process-description {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
    opacity: 0.7;
    max-width: 500px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 300;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Team Section */
.team-section {
    margin-top: 3rem;
}

.subsection-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-member {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.team-member h5 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.role {
    font-size: 0.875rem;
    font-weight: 400;
    color: #ffffff;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.bio {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.5;
    opacity: 0.7;
}

/* Feature Lists */
.feature-list {
    list-style: none;
    margin-top: 1rem;
    padding-left: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 300;
    opacity: 0.8;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #ffffff;
    opacity: 0.6;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-post {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.blog-post:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.blog-post h4 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-meta {
    font-size: 0.75rem;
    font-weight: 300;
    opacity: 0.6;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-excerpt {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.5;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.read-more {
    font-size: 0.875rem;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.read-more:hover {
    opacity: 1;
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.job-posting {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.job-posting:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.job-posting h4 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.job-location {
    font-size: 0.875rem;
    font-weight: 300;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.job-description {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.5;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.job-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.requirement {
    font-size: 0.75rem;
    font-weight: 300;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    opacity: 0.8;
}

.apply-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

.apply-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.footer {
    text-align: center;
    padding: 4rem 2rem 2rem;
    font-size: 0.875rem;
    font-weight: 300;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-left, .nav-right {
        gap: 1rem;
    }
    
    .nav-item {
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: 1.25rem;
    }
    
    .company-logo {
        max-width: 400px;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .process-title {
        font-size: 1.125rem;
    }
    
    .process-description {
        font-size: 0.875rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .job-requirements {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-left, .nav-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 0 1rem;
    }
    
    .company-name {
        font-size: 2rem;
    }
    
    .content {
        padding: 4rem 1rem;
    }
    
    .section {
        margin-bottom: 4rem;
    }
    
    .process-items {
        gap: 2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a2e;
}

::-webkit-scrollbar-thumb {
    background: #2a2a5e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a7e;
}
