/* simulai.tech - Dopamine-charged serenity */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #1a1a2e;
    color: #f5f0e8;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 144, 217, 0.15);
    transition: all 0.4s ease;
}

#main-nav.scrolled {
    padding: 1rem 3rem;
    background: rgba(26, 26, 46, 0.95);
}

.nav-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 0.2em;
    color: #e8b84b;
    text-transform: uppercase;
}

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

.nav-link {
    color: #f5f0e8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e8b84b;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #e8b84b;
}

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

/* Hero Section */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#generative-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(26, 26, 46, 0.3) 0%, rgba(26, 26, 46, 0.8) 70%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(5rem, 15vw, 12rem);
    letter-spacing: 0.15em;
    line-height: 0.9;
    color: #f5f0e8;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 60px rgba(232, 184, 75, 0.3), 0 0 120px rgba(74, 144, 217, 0.15);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: #6c757d;
    min-height: 2em;
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
}

.hero-subtitle .cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: #e8b84b;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #e8b84b;
    color: #1a1a2e;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #f5f0e8;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 184, 75, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: #4a90d9;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #4a90d9;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(74, 144, 217, 0.15);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid #e8b84b;
    border-bottom: 2px solid #e8b84b;
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(10px); }
    60% { transform: rotate(45deg) translateY(5px); }
}

/* Sections General */
.section-angled,
.section-dark {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

.section-angled {
    background: #1a1a2e;
}

.section-dark {
    background: #12121f;
}

.section-inner {
    position: relative;
    z-index: 5;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.section-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f5f0e8;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #e8b84b;
    margin: 1rem auto 0;
}

/* Angle Cuts */
.angle-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    background: #12121f;
    clip-path: polygon(0 0, 100% 0, 100% 0%, 0 100%);
    z-index: 4;
}

.angle-top-reverse {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    background: #1a1a2e;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0%);
    z-index: 4;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.about-card {
    background: rgba(74, 144, 217, 0.05);
    border: 1px solid rgba(74, 144, 217, 0.15);
    padding: 2.5rem;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.about-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-card:hover {
    background: rgba(74, 144, 217, 0.1);
    border-color: rgba(232, 184, 75, 0.3);
    transform: translateY(-5px);
}

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

.card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e8b84b;
    margin-bottom: 1rem;
}

.card-text {
    font-size: 0.95rem;
    font-weight: 300;
    color: #6c757d;
    line-height: 1.7;
    min-height: 4em;
}

.card-text .cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #4a90d9;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.8s infinite;
}

/* Features Section */
#features {
    position: relative;
}

#features-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.feature-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.feature-number {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    color: rgba(232, 184, 75, 0.2);
    line-height: 1;
    min-width: 80px;
}

.feature-item:hover .feature-number {
    color: #e8b84b;
    transition: color 0.3s ease;
}

.feature-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #f5f0e8;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.95rem;
    font-weight: 300;
    color: #6c757d;
    line-height: 1.7;
}

.feature-line {
    position: absolute;
    bottom: 0;
    left: 80px;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(74, 144, 217, 0.3), transparent);
}

/* Technology Section */
.tech-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid rgba(74, 144, 217, 0.2);
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
    overflow: hidden;
}

#neural-canvas {
    width: 100%;
    height: 100%;
}

.tech-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.tech-stat {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.tech-stat.visible {
    opacity: 1;
    transform: translateX(0);
}

.stat-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    color: #e8b84b;
    line-height: 1;
}

.stat-unit {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #4a90d9;
    margin-left: 0.25rem;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Contact Section */
.contact-subtitle {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 300;
    color: #6c757d;
    margin-bottom: 3rem;
    min-height: 1.5em;
}

.contact-subtitle .cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: #e8b84b;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.8s infinite;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-input {
    background: rgba(74, 144, 217, 0.05);
    border: 1px solid rgba(74, 144, 217, 0.2);
    padding: 1rem 1.25rem;
    color: #f5f0e8;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: #6c757d;
}

.form-input:focus {
    border-color: #e8b84b;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* Footer */
#footer {
    background: #0d0d1a;
    padding: 3rem 0;
    border-top: 1px solid rgba(74, 144, 217, 0.1);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    color: #e8b84b;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f5f0e8;
}

.footer-copy {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .tech-showcase {
        grid-template-columns: 1fr;
    }

    .tech-visual {
        max-width: 400px;
        margin: 0 auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    #main-nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .section-inner {
        padding: 0 1.5rem;
    }

    .feature-item {
        flex-direction: column;
        gap: 1rem;
    }

    .feature-line {
        left: 0;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .section-heading {
        font-size: 2rem;
    }
}
