/* --- GLOBAL & RESET --- */
:root {
    --navy-bg: #02040a;
    --gold: #eab308;
    --gold-glow: rgba(234, 179, 8, 0.6);
    --blue-accent: #3b82f6;
    --white: #ffffff;
    --off-white: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #94a3b8;
    --text-muted-light: #64748b;
    --nav-height: 80px;
    --section-padding: 120px 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--navy-bg);
    color: var(--white);
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; color: var(--white); }
.headline-lg { font-size: clamp(2.2rem, 4vw, 2.8rem); line-height: 1.2; margin-bottom: 24px; }
.eyebrow { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; color: var(--blue-accent); margin-bottom: 16px; display: inline-block; }
.text-body { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 24px; }

/* BUTTONS */
.btn-primary { display: inline-flex; padding: 14px 32px; background: var(--gold); color: #000; border-radius: 99px; font-weight: 600; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; border: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--gold-glow); }
.btn-link { margin-left: 20px; border-bottom: 1px solid transparent; cursor: pointer; }
.btn-link:hover { color: var(--gold); border-color: var(--gold); }

/* BTN AI */
.btn-ai {
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}
.btn-ai:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--gold);
    box-shadow: 0 0 20px var(--gold-glow);
}

/* NAVBAR */
.navbar { position: fixed; top: 0; width: 100%; height: var(--nav-height); background: rgba(2,4,10,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.08); z-index: 1000; display: flex; align-items: center; }
.navbar-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { height: 50px; width: auto; }
.nav-menu { display: flex; gap: 24px; align-items: center; }
.nav-link { font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.7); position: relative; }
.nav-link:hover { color: var(--white); }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--gold); transition: 0.3s; }
.nav-link:hover::after { width: 100%; }
.nav-cta { padding: 8px 20px; border: 1px solid var(--gold); border-radius: 99px; color: var(--gold); font-weight: 600; font-size: 0.85rem; }
.nav-cta:hover { background: var(--gold); color: #000; box-shadow: 0 0 15px var(--gold-glow); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 6px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: white; }

/* HERO */
.hero { position: relative; padding-top: 160px; padding-bottom: 100px; min-height: 95vh; display: flex; align-items: center; overflow: hidden; background: radial-gradient(circle at 50% 50%, #0a1122 0%, #02040a 100%); }
#starfield-container { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.hero-text h1 { font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: 24px; text-shadow: 0 0 40px rgba(255,255,255,0.1); }

/* Kontener przycisków w Hero - WYRÓWNANIE DO LEWEJ */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: flex-start; /* Kluczowe dla wyrównania do lewej */
}

.hero-visual-col { display: flex; flex-direction: column; align-items: center; position: relative; overflow: visible; }
.latin-motto { font-size: 0.85rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); opacity: 0.9; margin-bottom: 20px; z-index: 10; text-shadow: 0 0 15px var(--gold-glow); }

/* STARS & CENTRAL STAR */
.star { position: absolute; background: white; border-radius: 50%; opacity: 0.3; transform: translate3d(0,0,0); pointer-events: none; transition: opacity 0.2s, box-shadow 0.2s, background-color 0.2s; }
.star.hovered { opacity: 1 !important; background-color: var(--gold); box-shadow: 0 0 10px var(--gold), 0 0 20px white; z-index: 10; }
.central-star { position: relative; width: 100px; height: 100px; border-radius: 50%; background: transparent; z-index: 5; }
.central-star::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,0.8) 0%, rgba(59,130,246,0.3) 25%, rgba(59,130,246,0) 70%); animation: auraPulse 4s infinite alternate ease-in-out; z-index: -1; pointer-events: none; }
.central-star::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; border-radius: 50%; background: white; box-shadow: 0 0 20px white, 0 0 50px rgba(59,130,246,0.9); z-index: 2; }
.central-star .ray { position: absolute; top: 50%; left: 50%; transform-origin: left center; width: 160px; height: 2px; background: linear-gradient(to right, rgba(255,255,255,0.5) 0%, transparent 100%); opacity: 0; z-index: 1; pointer-events: none; }
.central-star .ray:nth-child(1) { transform: rotate(20deg) translateX(15px); animation: rayFade 3s infinite ease-in-out 0s; }
.central-star .ray:nth-child(2) { transform: rotate(70deg) translateX(15px); animation: rayFade 3s infinite ease-in-out 0.5s; }
.central-star .ray:nth-child(3) { transform: rotate(110deg) translateX(15px); animation: rayFade 3s infinite ease-in-out 1s; }
.central-star .ray:nth-child(4) { transform: rotate(160deg) translateX(15px); animation: rayFade 3s infinite ease-in-out 1.5s; }
.central-star .ray:nth-child(5) { transform: rotate(200deg) translateX(15px); animation: rayFade 3s infinite ease-in-out 2s; }
.central-star .ray:nth-child(6) { transform: rotate(290deg) translateX(15px); animation: rayFade 3s infinite ease-in-out 2.5s; }
@keyframes auraPulse { 0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.8; } 100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } }
@keyframes rayFade { 0% { opacity: 0.2; width: 120px; } 50% { opacity: 0.6; width: 180px; } 100% { opacity: 0.2; width: 120px; } }

/* ABOUT */
.section-about { padding: var(--section-padding); background: linear-gradient(to bottom, var(--navy-bg) 0%, #050b1a 100%); z-index: 2; }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.stats-row { 
    display: flex; 
    gap: 20px; 
    margin-top: 40px; 
    padding-top: 30px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    justify-content: space-between; 
    flex-wrap: wrap; 
}
.stat-item {
    flex-basis: calc(50% - 10px); 
    min-width: 100px; 
    margin-bottom: 20px; /* Odstęp pionowy między wierszami statystyk */
}
.stat-num { display: block; font-size: 2.5rem; font-weight: 700; margin-bottom: 5px; line-height: 1; }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.stat-sublabel { font-size: 0.7rem; color: var(--text-muted); line-height: 1.2; text-transform: uppercase; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 50px;}
.glass-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px); padding: 30px; border-radius: 16px; transition: 0.3s; }
.glass-card:hover { transform: translateY(-5px); border-color: rgba(234, 179, 8, 0.3); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5); background: rgba(255, 255, 255, 0.05); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(234, 179, 8, 0.1); color: var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: 0.3s; }
.glass-card:hover .card-icon { background: var(--gold); color: #000; transform: scale(1.1); }
.glass-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.glass-card p { font-size: 0.9rem; color: var(--text-muted); }

/* THESIS (DARK) */
.section-thesis { padding: var(--section-padding); background-color: var(--navy-bg); }
.thesis-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.thesis-card { background: rgba(11, 18, 33, 0.6); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; padding: 40px; display: flex; gap: 24px; transition: 0.3s; }
.thesis-card:hover { border-color: rgba(59, 130, 246, 0.4); background: rgba(11, 18, 33, 0.9); transform: translateY(-5px); }
.thesis-icon { width: 60px; height: 60px; border-radius: 12px; background: rgba(59, 130, 246, 0.1); color: var(--blue-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: 0.3s; }
.thesis-card:hover .thesis-icon { background: var(--blue-accent); color: white; transform: scale(1.1); }
.thesis-tag { display: inline-block; font-size: 0.7rem; text-transform: uppercase; padding: 4px 10px; border: 1px solid rgba(255,255,255,0.1); border-radius: 99px; color: rgba(255,255,255,0.6); margin-top: 12px; }

/* TEAM (LIGHT) */
.light-section { background-color: var(--off-white); color: var(--text-dark); padding: var(--section-padding); }
.light-section .headline-lg, .light-section h3, .light-section h4 { color: var(--navy-bg); }
.light-section .text-body, .light-section p { color: var(--text-muted-light); }
.light-section .eyebrow { color: var(--gold); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.team-card { background: var(--white); padding: 32px; border-radius: 20px; text-align: center; box-shadow: 0 10px 30px -5px rgba(0,0,0,0.03); transition: 0.3s; }
.team-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08); border-color: var(--gold); }
.team-photo { width: 150px; height: 150px; margin: 0 auto 20px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--navy-bg); font-size: 1.5rem; overflow: hidden; }
.team-card .role { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 16px; font-weight: 600; }
.bio2 {margin-top: 16px;}
/* AI MODAL */
.ai-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(2, 4, 16, 0.9); backdrop-filter: blur(8px); z-index: 2000; display: none; align-items: center; justify-content: center; }
.ai-modal-overlay.active { display: flex; }
.ai-modal-content { width: 90%; max-width: 600px; background: #0b1221; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; padding: 40px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.ai-modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.ai-header h3 { font-size: 1.5rem; color: var(--white); margin-bottom: 8px; }
.ai-header p { color: var(--text-muted); margin-bottom: 24px; }
.ai-body textarea { width: 100%; height: 120px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 16px; color: var(--white); font-family: inherit; font-size: 1rem; margin-bottom: 20px; resize: none; }
.ai-body textarea:focus { outline: none; border-color: var(--gold); }
.btn-ai-submit { width: 100%; justify-content: center; }
.ai-result { margin-top: 20px; padding: 20px; background: rgba(59,130,246,0.1); border-radius: 12px; border: 1px solid rgba(59,130,246,0.3); color: var(--white); font-size: 0.95rem; display: none; }

/* ANIMATIONS */
.fade-in-section { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.fade-in-section.is-visible { opacity: 1; transform: translateY(0); }

/* CTA & FOOTER */
.section-cta { padding: 120px 0; background: var(--navy-bg); text-align: left; }
.footer { border-top: 1px solid rgba(255,255,255,0.05); padding: 40px 0; background: var(--navy-bg); text-align: left; font-size: 0.85rem; color: rgba(255,255,255,0.4); }
.footer-partners {gap: 1rem; flex-wrap: nowrap; display: flex; justify-content: flex-end;}
.footer-partners img { flex-shrink: 0; object-fit: contain; height: 2.5rem; max-width: 100%; display: block; vertical-align: middle; }

/* MOBILE */
@media (max-width: 960px) {
    .nav-menu { display: none; position: absolute; top: 80px; left: 0; width: 100%; background: var(--navy-bg); flex-direction: column; padding: 30px; }
    .nav-menu.active { display: flex; }
    .menu-toggle { display: block; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .about-layout, .tech-layout, .founders-grid, .team-grid { grid-template-columns: 1fr; }
    .timeline { grid-template-columns: 1fr; border-left: 1px solid #cbd5e1; padding-left: 20px; margin-top: 60px; }
    .timeline::before { display: none; }
    .timeline-step { padding: 0 0 30px 20px; }
    .step-number { left: 0; top: 0; font-size: 1.5rem; }
    .thesis-grid { grid-template-columns: 1fr; }
    .orbit-system { transform: scale(0.8); }
    .about-grid { grid-template-columns: 1fr; padding-top: 0; }
    .footer {text-align: center;}
    .footer-partners { justify-content: center; }
}